SWAG

Table of Contents

Namespaces

Structs

composite

dialogs

paint

property

richedit

widgets

wnd

Interfaces

property

richedit

wnd

Enums

composite

dialogs

paint

property

richedit

widgets

wnd

Type Aliases

richedit

wnd

Attributes

property

Functions

composite

dialogs

paint

property

richedit

widgets

wnd

Module gui

Content

type alias Clipboard.Type Aliases [src]

ValueFormat Clipboard.ValueFormat
FrameCallback FrameCallback
HookEvent HookEvent
RichEditStyleRef RichEditStyleRef
WndId WndId

struct Gui.AboutDlg [src]

using dialog Dialog
labelIcon *Label
labelMessageTitle *Label
labelMessage *Label

Functions

create Creates the message box.
doModal Display the box, centered, and returns the id of the pressed button.

func AboutDlg.create [src]

Creates the message box.

func create(from: *Surface, params: AboutDlgParams, width, height: s32 = 0)->*AboutDlg

func AboutDlg.doModal [src]

Display the box, centered, and returns the id of the pressed button.

func doModal(me, from: *Surface)

struct Gui.AboutDlgParams [src]

dlgTitle string
messageTitle string
message string
iconTitle Icon Icon that will be displayed in the title bar.
bigIcon Icon Big icon, inside the dialog.

struct Gui.ActionContext [src]

wnd *Wnd
id WndId

enum Gui.AddItemFlags [src]

Zero
Name
Description

enum Gui.AnchorStyle [src]

None
X
Y
Width
Height

struct Gui.Application [src]

using native ApplicationNative
sigFrame SigArray'(func(*Application))
options ApplicationOptions
appIcon Pixel.Image
renderer Pixel.RenderOgl
theme *Theme
style ThemeStyle
keyb Core.Input.Keyboard
mouse Core.Input.Mouse
mainSurface *Surface
postedEvents Core.Array'(IEvent)
surfaces Core.Array'(*Surface)
postDestroy Core.Array'(*Wnd)
hookOnEvent Core.Array'(*Wnd)
frameCursor Cursor
endModalExit WndId
inModalLoop u32
quitCode s32
timing Core.Time.FrameTiming
mustQuit bool
endModal bool
isActivated bool
fadeDisabledSurface bool
mutexPostedEvents Core.Sync.Mutex
duringTimerEvents bool
timers Core.Array'(*Timer)
timersToAdd Core.Array'(*Timer)
timersToDelete Core.Array'(*Timer)
frameEvents Core.Array'(*Wnd)
modalSurfaces Core.Array'(*Surface)
toDelete Core.Array'({ptr:*void,type:const *Swag.TypeInfo})
mouseEnterWnd *Wnd
mouseCaptureWnd *Wnd
keybFocusWnd *Wnd
maxRunFrame u32
configPath Core.String
hotKeys Core.Array'(KeyShortcut)
dirtyTheme u32

Functions

addTimer Register a new timer for the given target.
createSurface Creates a new surface.
deleteTimer Delete and unregister timer.
destroyWnd Destroy a window To cleanly close a window, you should call wnd.destroy().
disableHotKeys Disable the processing of hot keys.
doModalLoop
enableHotKeys Enable or disable the processing of hot keys.
exitModal End current modal for.
getDirectoryIcon
getDt
getFileIcon
getHotKeyShortcut Get the id associated with a shortcut. null if none.
getHotKeyShortcutNameFor Get the name associated with a given id shortcut.
getKeyboard
getMouse
getMouseCapture Return the captured wnd for mouse.
getRenderer
getWndAtMouse Returns the window under the given point.
invalidate Force all surfaces to be painted.
loadState Load the application state.
postEvent Post a new event (thread safe).
postQuitEvent Ask to exit the application.
registerFrameEvent Register a window to receive a FrameEvent each running for.
registerHookEvents Register a window to receive hook events.
registerHotKey Register a global os key action.
run Run until exit.
runFrame
runSurface Create a main surface, and run.
saveState Save the application state.
sendEvent
setActivated Set activated state.
setAppIcon Associate a configuration file.
setConfigPath Associate a configuration file.
setFrameCursor Push a new mouse cursor.
themeHasChanged Call it when the theme has changed.
unregisterFrameEvent Unregister a window that receives a FrameEvent each running for.
unregisterHookEvents Unregister a window to receive hook events.

Special Functions

opDrop

func Application.addTimer [src]

Register a new timer for the given target.

func addTimer(me, time: Time.Duration, target: *Wnd)->*Timer

func Application.createSurface [src]

Creates a new surface.

func createSurface(me, x, y, width, height: s32, flags = SurfaceFlags.OverlappedWindow, view: *Wnd = null, hook: HookEvent = null, surfaceID: string = null)->*Surface throw

func Application.deleteTimer [src]

Delete and unregister timer.

func deleteTimer(me, timer: *Timer)

func Application.destroyWnd [src]

Destroy a window To cleanly close a window, you should call wnd.destroy().

func destroyWnd(me, wnd: *Wnd)

func Application.disableHotKeys [src]

Disable the processing of hot keys.

func disableHotKeys(me)

func Application.doModalLoop [src]

func doModalLoop(me, surface: #null *Surface, cb: func||(*Application) = null)->WndId

func Application.enableHotKeys [src]

Enable or disable the processing of hot keys.

func enableHotKeys(me, state = true)

func Application.exitModal [src]

End current modal for.

func exitModal(me, exitId: string = "")

func Application.getDirectoryIcon [src]

func getDirectoryIcon(me, name: string, small = true)->Icon

func Application.getDt [src]

func getDt(const me)->f32

func Application.getFileIcon [src]

func getFileIcon(me, name: string, small = true)->Icon

func Application.getHotKeyShortcut [src]

Get the id associated with a shortcut. null if none.

func getHotKeyShortcut(me, mdf: Input.KeyModifiers, key: Input.Key)->{id:WndId,wnd:*Wnd}

func Application.getHotKeyShortcutNameFor [src]

Get the name associated with a given id shortcut.

func getHotKeyShortcutNameFor(me, wndId: WndId)->Core.String

func Application.getKeyboard [src]

func getKeyboard(me)->*Core.Input.Keyboard

func Application.getMouse [src]

func getMouse(me)->*Core.Input.Mouse

func Application.getMouseCapture [src]

Return the captured wnd for mouse.

func getMouseCapture(me)->*Wnd

func Application.getRenderer [src]

func getRenderer(me)->*Pixel.RenderOgl

func Application.getWndAtMouse [src]

Returns the window under the given point.

func getWndAtMouse(me)->*Wnd

func Application.invalidate [src]

Force all surfaces to be painted.

func invalidate(me)

func Application.loadState [src]

Load the application state.

func loadState(me) throw

func Application.opDrop [src]

func opDrop(me)

func Application.postEvent [src]

Post a new event (thread safe).

func postEvent(me, event: IEvent)

func Application.postQuitEvent [src]

Ask to exit the application.

func postQuitEvent(me, quitCode: s32 = 0)

func Application.registerFrameEvent [src]

Register a window to receive a FrameEvent each running for.

func registerFrameEvent(me, target: *Wnd)

func Application.registerHookEvents [src]

Register a window to receive hook events.

func registerHookEvents(me, target: *Wnd)

func Application.registerHotKey [src]

Register a global os key action.

func registerHotKey(me, mdf: Input.KeyModifiers, key: Input.Key, wndId: WndId, target: *Wnd) throw

func Application.run [src]

Run until exit.

func run(me)->s32

func Application.runFrame [src]

func runFrame(me)

func Application.runSurface [src]

Create a main surface, and run.

func runSurface(x, y, width, height: s32, title: string = null, view: *Wnd = null, borders = true, canSize = true, hook: HookEvent = null, init: func(*Application) = null)

func Application.saveState [src]

Save the application state.

func saveState(me) throw

func Application.sendEvent [src]

func sendEvent(me, event: IEvent)

func Application.setActivated [src]

Set activated state.

func setActivated(me, activated: bool)

func Application.setAppIcon [src]

Associate a configuration file.

func setAppIcon(me, img: Pixel.Image)

func Application.setConfigPath [src]

Associate a configuration file.

func setConfigPath(me, path: string)

func Application.setFrameCursor [src]

Push a new mouse cursor.

func setFrameCursor(me, cursor: Cursor)

func Application.themeHasChanged [src]

Call it when the theme has changed.

func themeHasChanged(me)

func Application.unregisterFrameEvent [src]

Unregister a window that receives a FrameEvent each running for.

func unregisterFrameEvent(me, target: *Wnd)

func Application.unregisterHookEvents [src]

Unregister a window to receive hook events.

func unregisterHookEvents(me, target: *Wnd)

struct Gui.ApplicationNative [src]

fileSmallIconsImage Pixel.Image
fileSmallIconsImageList ImageList
mapFileSmallIcons Core.HashTable'(Core.String, s32)
fileBigIconsImage Pixel.Image
fileBigIconsImageList ImageList
mapFileBigIcons Core.HashTable'(Core.String, s32)
hotKeysDisabled bool

struct Gui.ApplicationOptions [src]

showClipRect bool

enum Gui.BackgroundStyle [src]

Transparent
Window
Dialog
DialogBar
View

struct Gui.BlendColor [src]

Used to animate the blending of a color.

curVec4 Core.Math.Vector4
startVec4 Core.Math.Vector4
destVec4 Core.Math.Vector4
factor f32
speed f32
themeCrc u32

Functions

apply Apply the color lerp to reach target.
cur Get the current color.
reset Reset the blend.

func BlendColor.apply [src]

Apply the color lerp to reach target.

func apply(me, wnd: *Wnd, target: Color)

func BlendColor.cur [src]

Get the current color.

func cur(me)->Pixel.Color

func BlendColor.reset [src]

Reset the blend.

func reset(me)

struct Gui.Button [src]

using wnd Wnd
icon Icon
iconSizeX f32
iconSizeY f32
sigPressed SigArray'(func(*Button))
sigRightPressed SigArray'(func(*Button))
isPressed bool
isPressing bool
isHot bool
isIn bool

enum Gui.ButtonCheckState [src]

UnChecked
Checked
Undefined

struct Gui.CheckButton [src]

using button Button
checked ButtonCheckState
checkButtonFlags CheckButtonFlags
sigChanged SigArray'(func(*CheckButton))

Functions

create
isChecked Returns true if the button is checked.
isUndefined Returns true if the button is undefined.
toggle Toggle the button state.

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func CheckButton.create [src]

func create(parent: *Wnd, name: string, position: Math.Rectangle = {}, id: WndId = null)->*CheckButton

func CheckButton.isChecked [src]

Returns true if the button is checked.

func isChecked(const me)->bool

func CheckButton.isUndefined [src]

Returns true if the button is undefined.

func isUndefined(const me)->bool

func CheckButton.toggle [src]

Toggle the button state.

func toggle(me)

enum Gui.CheckButtonFlags [src]

Zero
ThreeState
RightAlign

struct Gui.Circular [src]

using wnd Wnd
value1 f32 Primary value (or left value in range mode).
value2 f32 Secondary value (right value in range mode).
min f32 Minimum value.
max f32 Maximum value.
steps f32 Step size (0 = no stepping).
circularFlags CircularFlags Control behavior flags (Range, Integer, etc.).
stepForm CircularStepForm Visual form of step indicators (None, Dot, Tick).
markerForm CircularMarkerForm Visual form of value markers (None, Circle, Needle).
startAngle f32 Starting angle of the circular range (0 = top).
endAngle f32 Ending angle of the circular range (2Ï€ = full circle).
tickCount u32 Number of step indicators to draw.
tickInnerRadiusFactor f32 Distance from main circle to inner edge of ticks.
tickOuterRadiusFactor f32 Distance from main circle to outer edge of ticks.
circleGap f32 Gap between inner and outer circles (0 = single circle).
rangeColor Pixel.Color Color for the range arc (when in range mode).
sigStartChange SigArray'(func(*Circular)) Fired when user starts changing value.
sigChanged SigArray'(func(*Circular)) Fired when value changes.
sigEndChange SigArray'(func(*Circular)) Fired when user finishes changing value.

Functions

create
getValue
getValueLeft
getValueRight
setAngleRange Set the angular range of the circular slider.
setMinMax Set the min and max values, and optional steps.
setRangeValues Set left and right values, for a range.
setStepCount Set the number of step indicators to display (only applies when stepForm is Dot or Tick).
setStepForm Set the display stepForm (None, Dot, or Tick).
setValue
setValueLeft Set the left value (in case of a range).
setValueNoChange
setValueRight Set the right value (in case of a range).

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func Circular.create [src]

func create(parent: *Wnd, position: Math.Rectangle = {}, id: WndId = null, range = false)->*Circular

func Circular.getValue [src]

func getValue(const me)->f32

func Circular.getValueLeft [src]

func getValueLeft(const me)->f32

func Circular.getValueRight [src]

func getValueRight(const me)->f32

func Circular.setAngleRange [src]

Set the angular range of the circular slider.

func setAngleRange(me, startAngle, endAngle: Math.Angle)

func Circular.setMinMax [src]

Set the min and max values, and optional steps.

func setMinMax(me, min, max: f32, steps: f32 = 0)

func Circular.setRangeValues [src]

Set left and right values, for a range.

func setRangeValues(me, left, right: f32)

func Circular.setStepCount [src]

Set the number of step indicators to display (only applies when stepForm is Dot or Tick).

func setStepCount(me, count: u32)

func Circular.setStepForm [src]

Set the display stepForm (None, Dot, or Tick).

func setStepForm(me, form: CircularStepForm)

func Circular.setValue [src]

func setValue(me, f: f32)

func Circular.setValueLeft [src]

Set the left value (in case of a range).

func setValueLeft(me, f: f32)

func Circular.setValueNoChange [src]

func setValueNoChange(me, f: f32)

func Circular.setValueRight [src]

Set the right value (in case of a range).

func setValueRight(me, f: f32)

enum Gui.CircularFlags [src]

Zero
Range
Integer

enum Gui.CircularMarkerForm [src]

None
Circle
Needle

enum Gui.CircularStepForm [src]

None
Dot
Tick

namespace Gui.Clipboard

Functions

addImage Add an image.
addString Add string to clipboard.
addTypedData Add data of a given format of the given type to the clipboard type can be null to just check for the given clipboard format.
addTypedValue Add whatever value with a given type.
getImage Get image from clipboard.
getString Get utf8 string from clipboard.
getTypedData Get data of the given format and type type can be null to just check for the given clipboard format.
getTypedValue Get whatever value with a given type.
hasFormat Returns true if the clipboard contains the given format.
hasImage Returns true if the clipbboard contains an image.
hasString Returns true if the clipboard contains a string.
hasTypedData Returns true if the clipboard contains the given format of the given type.
hasTypedValue Get whatever value with a given type.
registerFormat Register a new format.

func Clipboard.addImage [src]

Add an image.

func addImage(image: Image)

func Clipboard.addString [src]

Add string to clipboard.

func addString(str: string)

func Clipboard.addTypedData [src]

Add data of a given format of the given type to the clipboard type can be null to just check for the given clipboard format.

func addTypedData(fmt: ValueFormat, type: #null typeinfo, data: const [..] u8)

func Clipboard.addTypedValue [src]

Add whatever value with a given type.

func addTypedValue(value: *void, type: typeinfo)

func Clipboard.getImage [src]

Get image from clipboard.

func getImage()->Pixel.Image

func Clipboard.getString [src]

Get utf8 string from clipboard.

func getString()->Core.String

func Clipboard.getTypedData [src]

Get data of the given format and type type can be null to just check for the given clipboard format.

func getTypedData(fmt: ValueFormat, type: #null typeinfo)->Core.Array'(u8)

func Clipboard.getTypedValue [src]

Get whatever value with a given type.

func getTypedValue(value: *void, type: typeinfo)->bool

func Clipboard.hasFormat [src]

Returns true if the clipboard contains the given format.

func hasFormat(fmt: ValueFormat)->bool

func Clipboard.hasImage [src]

Returns true if the clipbboard contains an image.

func hasImage()->bool

func Clipboard.hasString [src]

Returns true if the clipboard contains a string.

func hasString()->bool

func Clipboard.hasTypedData [src]

Returns true if the clipboard contains the given format of the given type.

func hasTypedData(fmt: ValueFormat, type: typeinfo)->bool

type can be null to just check for the given clipboard format.

func Clipboard.hasTypedValue [src]

Get whatever value with a given type.

func hasTypedValue(type: typeinfo)->bool

func Clipboard.registerFormat [src]

Register a new format.

func registerFormat(name: string)->Clipboard.ValueFormat throw

struct Gui.ColorPicker [src]

using wnd Wnd
hue f32
sat f32
lum f32
a f32
r f32
g f32
b f32
mode ColorPickerMode
sigChanged SigArray'(func(*ColorPicker))

Functions

change Change one component, HSL or alpha.
create
getColor Returns the selected color.
setColor Set the base color, and repaint.
setMode Set the color picker box mode.

func IWnd.computeXY [src]

func computeXY(me)

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func IWnd.onPostPaintEvent [src]

func onPostPaintEvent(me, evt: *PaintEvent)

func ColorPicker.change [src]

Change one component, HSL or alpha.

func change(me, h, s, l, a: f32 = -1)

func ColorPicker.create [src]

func create(parent: *Wnd, position: Math.Rectangle = {}, id: WndId = null)->*ColorPicker

func ColorPicker.getColor [src]

Returns the selected color.

func getColor(me)->Pixel.Color

func ColorPicker.setColor [src]

Set the base color, and repaint.

func setColor(me, col: Color)

func ColorPicker.setMode [src]

Set the color picker box mode.

func setMode(me, mode: ColorPickerMode)

struct Gui.ColorPickerCtrl [src]

using frameWnd FrameWnd
sigChanged SigArray'(func(*ColorPickerCtrl))
oldColor Pixel.Color
color Pixel.Color
pickerFlags ColorPickerFlags
oldColorDone bool
mode ColorPickerViewMode
staticRes *Wnd
pickBox *ColorPicker
pickBar *ColorPicker
pickAlpha *ColorPicker
editA *EditBox
editR *EditBox
editG *EditBox
editB *EditBox
editH *EditBox
radioH *RadioButton
radioL *RadioButton
radioS *RadioButton
radioR *RadioButton
radioG *RadioButton
radioB *RadioButton

Functions

create
createWithPalette Creates a color picker with a palette on the top.
getColor Returns the selected color.
setColor Set the selected color.
setColorKeepAlpha Set the selected color but does not change alpha.
setMode Change the display mode.

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func ColorPickerCtrl.create [src]

func create(parent: *Wnd, position: Math.Rectangle, flags = ColorPickerFlags.All, id: WndId = null)->*ColorPickerCtrl

func ColorPickerCtrl.createWithPalette [src]

Creates a color picker with a palette on the top.

func createWithPalette(parent: *Wnd, position: Math.Rectangle, pal: Array'Color, flags = ColorPickerFlags.All, id: WndId = null)->*ColorPickerCtrl

pal should contain the palette colors. Maximum is 9 colors. If less colors are provided, then default colors will be added instead (so if you keep pal empty, all defaults colors will be added).

func ColorPickerCtrl.getColor [src]

Returns the selected color.

func getColor(me)->Pixel.Color

func ColorPickerCtrl.setColor [src]

Set the selected color.

func setColor(me, color: Color)

func ColorPickerCtrl.setColorKeepAlpha [src]

Set the selected color but does not change alpha.

func setColorKeepAlpha(me, color: Color)

func ColorPickerCtrl.setMode [src]

Change the display mode.

func setMode(me, mode: ColorPickerViewMode)

enum Gui.ColorPickerFlags [src]

Zero
Alpha
All

enum Gui.ColorPickerMode [src]

Enumeration of different color picker display modes.

SaturationLightness
HueSaturation
HueLightness
GreenBlue
RedBlue
RedGreen
HueVert
HueHorz
LightnessVert
LightnessHorz
SaturationVert
SaturationHorz
AlphaHorz
AlphaVert
RedHorz
RedVert
GreenHorz
GreenVert
BlueHorz
BlueVert

Defines how color components are mapped to the 2D picker area or 1D sliders.

enum Gui.ColorPickerViewMode [src]

SaturationLightness
HueSaturation
HueLightness
GreenBlue
RedBlue
RedGreen

struct Gui.ComboBox [src]

using wnd Wnd
kind ComboBoxKind
minWidthPopup f32
maxHeightPopup f32
sigChanged SigArray'(func(*ComboBox, u32))
editBox *EditBox
isHot bool
popup *PopupListCtrl
selectedIdx u32
maxIconSize s32
aniBk BlendColor
aniBorder BlendColor
aniText BlendColor

Functions

addItem Add a new item.
addSeparator Add a separator.
clear Remove all items.
create
getSelectedItem Returns the selected item.
selectItem Set the selected item index.

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func IWnd.onResizeEvent [src]

func onResizeEvent(me, evt: *ResizeEvent)

func ComboBox.addItem [src]

Add a new item.

func addItem(me, name: #null string, id: WndId = null, icon: Icon = {}, userData0: *void = null, userData1: *void = null)->*ComboBoxItem

func ComboBox.addSeparator [src]

Add a separator.

func addSeparator(me)

func ComboBox.clear [src]

Remove all items.

func clear(me)

func ComboBox.create [src]

func create(parent: *Wnd, position: Math.Rectangle = {}, id: WndId = null, kind = ComboBoxKind.Select)->*ComboBox

func ComboBox.getSelectedItem [src]

Returns the selected item.

func getSelectedItem(me)->*ComboBoxItem

func ComboBox.selectItem [src]

Set the selected item index.

func selectItem(me, idx: u32)

struct Gui.ComboBoxItem [src]

using base Item
isSeparator bool

enum Gui.ComboBoxKind [src]

Select
Edit
CheckBox

struct Gui.ComboCtrl [src]

using frameWnd FrameWnd
labelSize f32
comboSize f32
label *Label
combo *ComboBox

Functions

create

func IWnd.onResizeEvent [src]

func onResizeEvent(me, evt: *ResizeEvent)

func ComboCtrl.create [src]

func create(parent: *Wnd, name: string, position: Math.Rectangle = {}, id: WndId = null)->*ComboCtrl

struct Gui.CommandEvent [src]

using base Event
id WndId
source *Wnd

struct Gui.CommandStateEvent [src]

using base Event
kind CommandStateEvent.Kind
id WndId
source *Wnd
icon Icon
name Core.String
longName Core.String
shortcut Core.String
toolTip Core.String
setFlags CommandStateEvent.SetFlags
renderingHint CommandStateEvent.RenderingHint
disabled bool
checked bool
hidden bool

struct Gui.CreateEvent [src]

using base Event

struct Gui.Cursor [src]

using native NativeCursor

Functions

apply
clear
destroy Destroy the cursor.
from
isValid Returns true if the cursor is defined.
wait Force the wait cursor.

func Cursor.apply [src]

func apply(cursor: Cursor)

func Cursor.clear [src]

func clear(me)

func Cursor.destroy [src]

Destroy the cursor.

func destroy(me)

func Cursor.from [src]

func from(shape: CursorShape)->Cursor

func Cursor.isValid [src]

Returns true if the cursor is defined.

func isValid(me)->bool

func Cursor.wait [src]

Force the wait cursor.

func wait()

enum Gui.CursorShape [src]

Arrow
SizeWE
SizeNS
SizeNWSE
SizeNESW
SizeAll
Cross
Help
Hand
IBeam
No
Wait

struct Gui.DestroyEvent [src]

using base Event

struct Gui.Dialog [src]

using wnd Wnd
wndBottom *StackLayoutCtrl
buttons Core.Array'(*PushButton)
sigPressedButton func(*Dialog, WndId)->bool
fromSurface *Surface

Functions

addButton Add a button.
createDialog Creates a simple dialog box.
createSurface Creates an associated surface.
doModal Display dialog as modal, and returns the user selected window id.
getView Returns the view where stuff can be put.
validateId

func IWnd.onKeyEvent [src]

func onKeyEvent(me, evt: *KeyEvent)

func IWnd.onSysCommandEvent [src]

func onSysCommandEvent(me, evt: *SysCommandEvent)

func Dialog.addButton [src]

Add a button.

func addButton(me, str: string, id: WndId, isDefault: bool = false)->*PushButton

func Dialog.createDialog [src]

Creates a simple dialog box.

func createDialog(from: *Surface, width = 512, height = 300, title: string = null, flags = SurfaceFlags.Zero)->*Dialog

func Dialog.createSurface [src]

Creates an associated surface.

func createSurface(me, from: *Surface, x, y: s32, width = 512, height = 300, flags = SurfaceFlags.Zero)->*Surface

func Dialog.doModal [src]

Display dialog as modal, and returns the user selected window id.

func doModal(me)->string

func Dialog.getView [src]

Returns the view where stuff can be put.

func getView(me)->*Wnd

func Dialog.validateId [src]

func validateId(me, btnId: WndId)

enum Gui.DockStyle [src]

Automatic placement and size of the window in the parent client rectangle.

None
Top Stack to the top, keeping the vertical size.
Left Stack to the left, keeping the horizontal size.
Right Stack to the right, keeping the horizontal size.
Bottom Stack to the bottom, keeping the vertical size.
Center Fill the remaining parent rect.
CenterKeepSizeVert Fill the remaining parent rect horizontally, but keep the vertical size.

func Gui.DwmExtendFrameIntoClientArea [src]

func DwmExtendFrameIntoClientArea(hWnd: HWND, pMarInset: *MARGINS)

struct Gui.EditBox [src]

using wnd Wnd Base window interface.
icon Icon Optional icon shown on the left.
text Core.String Current UTF‑8 text content.
unit Core.String Suffix unit (e.g. "kg").
form EditBoxForm Visual form of the EditBox.
editBoxFlags EditBoxFlags Active behaviour flags.
inputMode EditBoxInputMode Current input mode.
maxLength s32 Maximum number of runes (0 = unlimited).
rightMargin f32 Extra right margin inside the client rectangle.
sigChanged SigArray'(func(*EditBox)) Emitted when the text changes.
sigLoseFocus SigArray'(func(*EditBox)) Emitted when the EditBox loses focus.
sigEnterPressed SigArray'(func(*EditBox)) Emitted when Enter is pressed.
sigEscapePressed SigArray'(func(*EditBox)) Emitted when Escape is pressed.
sigCheckContent func(*EditBox)->EditBoxCheckResult Optional custom validator.

Functions

create Factory method that creates a new EditBox instance.
deleteSelection Deletes the selected text.
getText Returns the current text as a String.
isValid Returns true when the current content is valid.
restoreText Restores the text captured on focus gain.
selectAll Selects the whole content.
setForm Sets the visual form of the EditBox.
setInputF64 Configures the EditBox to accept 64‑bit floating‑point numbers.
setInputS64 Configures the EditBox to accept signed 64‑bit integers.
setInputU64 Configures the EditBox to accept unsigned 64‑bit integers.
setInputX64 Configures the EditBox to accept hexadecimal unsigned 64‑bit integers.
setNote Defines the placeholder (note) text.
setSelection Sets the current selection.
setText Assigns the EditBox content and emits change notifications.
setTextSilent Assigns the EditBox content without emitting change notifications.

func IWnd.onFocusEvent [src]

Handles gaining and losing keyboard focus.

func onFocusEvent(me, evt: *FocusEvent)

func IWnd.onKeyEvent [src]

Handles keyboard input (navigation, edition, clipboard shortcuts, etc.).

func onKeyEvent(me, evt: *KeyEvent)

func IWnd.onMouseEvent [src]

Processes mouse interaction with the EditBox (clicks, drags, hover, wheel).

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

Renders the EditBox, including background, border, text, selection and caret.

func onPaintEvent(me, evt: *PaintEvent)

func IWnd.onTimerEvent [src]

Blinking caret timer handler.

func onTimerEvent(me, evt: *TimerEvent)

func EditBox.create [src]

Factory method that creates a new EditBox instance.

func create(parent: *Wnd, content: #null string, position: Math.Rectangle = {}, id: WndId = null)->*EditBox

func EditBox.deleteSelection [src]

Deletes the selected text.

func deleteSelection(me)

func EditBox.getText [src]

Returns the current text as a String.

func getText(me)->string

func EditBox.isValid [src]

Returns true when the current content is valid.

func isValid(me)->bool

func EditBox.restoreText [src]

Restores the text captured on focus gain.

func restoreText(me)

func EditBox.selectAll [src]

Selects the whole content.

func selectAll(me)

func EditBox.setForm [src]

Sets the visual form of the EditBox.

func setForm(me, form: EditBoxForm)

func EditBox.setInputF64 [src]

Configures the EditBox to accept 64‑bit floating‑point numbers.

func setInputF64(me, min = -Swag.F64.Max, max = Swag.F64.Max)

func EditBox.setInputS64 [src]

Configures the EditBox to accept signed 64‑bit integers.

func setInputS64(me, min = Swag.S64.Min, max = Swag.S64.Max)

func EditBox.setInputU64 [src]

Configures the EditBox to accept unsigned 64‑bit integers.

func setInputU64(me, min = 0'u64, max = Swag.U64.Max)

func EditBox.setInputX64 [src]

Configures the EditBox to accept hexadecimal unsigned 64‑bit integers.

func setInputX64(me, min = 0'u64, max = Swag.U64.Max)

func EditBox.setNote [src]

Defines the placeholder (note) text.

func setNote(me, note: string)

func EditBox.setSelection [src]

Sets the current selection.

func setSelection(me, start, end: u64)

func EditBox.setText [src]

Assigns the EditBox content and emits change notifications.

func setText(me, str: #null string)

func EditBox.setTextSilent [src]

Assigns the EditBox content without emitting change notifications.

func setTextSilent(me, str: string)

enum Gui.EditBoxCheckResult [src]

Possible outcomes when validating the EditBox content.

Incomplete Text is incomplete (e.g. "-" or "0x").
Valid Content is valid.
InvalidDismiss Invalid but silently dismissed.
InvalidShow Invalid and must be visually highlighted.

enum Gui.EditBoxFlags [src]

Optional behaviour modifiers for the EditBox.

Zero No flags.
AutoLoseFocus Automatically lose focus after Enter or Escape.
ReadOnly Content cannot be edited.
RightAlign Text is right‑aligned.
ClearButton Show a clear ("x") button when content is not empty.

enum Gui.EditBoxForm [src]

Specifies the visual geometry of the EditBox.

Square Square corners and standard border.
Round Rounded corners.
Flat Flat borderless style.
Transparent No background, transparent style.

enum Gui.EditBoxInputMode [src]

Defines the type of input that the EditBox should accept and validate.

String Free‑form UTF‑8 text.
S64 Signed 64‑bit integer.
U64 Unsigned 64‑bit integer.
F64 64‑bit floating‑point number.
X64 Unsigned 64‑bit hexadecimal.

struct Gui.EditCtrl [src]

using frameWnd FrameWnd
labelSize f32
editSize f32 0 to fit to parent size.
label *Label
edit *EditBox

Functions

create Create the popup list, but: not display it.

func IWnd.onResizeEvent [src]

func onResizeEvent(me, evt: *ResizeEvent)

func EditCtrl.create [src]

Create the popup list, but: not display it.

func create(parent: *Wnd, name: string, text: string, position: Math.Rectangle = {}, id: WndId = null, flags: EditBoxFlags = Zero)->*EditCtrl

struct Gui.EditDlg [src]

using dialog Dialog
label *Label
edit *EditBox
richEdit *RichEditCtrl

Functions

createMultiLine Creates the message box.
createSingleLine Creates the message box.
getText Get the text.
setMessage Associate a message above the editbox.
setText Set the text.

func EditDlg.createMultiLine [src]

Creates the message box.

func createMultiLine(from: *Surface, heightEdit = 150)->*EditDlg

func EditDlg.createSingleLine [src]

Creates the message box.

func createSingleLine(from: *Surface)->*EditDlg

func EditDlg.getText [src]

Get the text.

func getText(me)->Core.String

func EditDlg.setMessage [src]

Associate a message above the editbox.

func setMessage(me, message: string, height: s32 = 40)

func EditDlg.setText [src]

Set the text.

func setText(me, text: string)

struct Gui.EmbInfoCtrl [src]

using frameWnd FrameWnd
label *Label
iconBtn *IconButton
ctrlFlags EmbInfoCtrlFlags
sigOnClose SigArray'(func(*EmbInfoCtrl))
timer *Timer
kind EmbInfoCtrlKind

Functions

create Create the popup list, but do not display it.
setColors

func IWnd.onDestroyEvent [src]

func onDestroyEvent(me, evt: *DestroyEvent)

func IWnd.onNotifyEvent [src]

func onNotifyEvent(me, evt: *NotifyEvent)

func IWnd.onTimerEvent [src]

func onTimerEvent(me, evt: *TimerEvent)

func EmbInfoCtrl.create [src]

Create the popup list, but do not display it.

func create(parent: *Wnd, name: string, kind: EmbInfoCtrlKind, flags = EmbInfoCtrlFlags.Top, height = 40)->*EmbInfoCtrl

func EmbInfoCtrl.setColors [src]

func setColors(me)

enum Gui.EmbInfoCtrlFlags [src]

Zero
Top
Bottom
AutoHide

enum Gui.EmbInfoCtrlKind [src]

Critical
Information
Message

struct Gui.Event [src]

type const *Swag.TypeInfo
target *Wnd
accepted bool

Functions

create

func Event.create [src]

func(T) create()->*T

struct Gui.FileDlg [src]

using dialog Dialog
treeCtrl *ListCtrl
treePathStr Core.Array'(Core.String)
listCtrl *ListCtrl
comboPath *ComboBox
comboPathStr Core.Array'(Core.String)
editFile *EditBox
comboType *ComboBox
dlgOptions FileDlgOptions
curFolder Core.String
curList Core.Array'(Core.File.FileInfo)

Functions

create Creates the message box.
getSelectedName Get the first selection.
getSelectedNames Get all selections.

func IWnd.onDestroyEvent [src]

func onDestroyEvent(me, evt: *DestroyEvent)

func FileDlg.create [src]

Creates the message box.

func create(from: *Surface, opt: FileDlgOptions = {})->*FileDlg

func FileDlg.getSelectedName [src]

Get the first selection.

func getSelectedName(me)->Core.String

func FileDlg.getSelectedNames [src]

Get all selections.

func getSelectedNames(me)->Core.Array'(Core.String)

enum Gui.FileDlgMode [src]

CreateFile
SelectOneFile
SelectMultiFiles
SelectFolder

struct Gui.FileDlgOptions [src]

title string
btnOkName string
openFolder string
editName string
drivePane bool
mode FileDlgMode
filters Core.Array'({name:string,extensions:string})
shortcuts Core.Array'({type:Core.Env.SpecialDirectory,name:string})
state *FileDlgState

struct Gui.FileDlgState [src]

position Core.Math.Rectangle
curFolder Core.String
folderHistory Core.Array'(Core.String)
columnWidthName s32
columnWidthModified s32

struct Gui.FocusEvent [src]

using base Event
kind FocusEvent.Kind
other *Wnd
canChangeFocus bool

enum Gui.FocusStategy [src]

None
MousePressed

struct Gui.FrameEvent [src]

using base Event
firstFrame bool

struct Gui.FrameWnd [src]

using wnd Wnd
view *Wnd
frameForm FrameWndForm
frameFlags FrameWndFlags
anchor FrameWndAnchor
anchorPos f32
usedColorBk Pixel.Color

Functions

createView
setFrameFlags Set the frame wnd flags.
setFrameForm Set the frame wnd form.
setView

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func IWnd.onPostPaintEvent [src]

func onPostPaintEvent(me, evt: *PaintEvent)

func IWnd.onPrePaintEvent [src]

func onPrePaintEvent(me, evt: *PaintEvent)

func IWnd.onResizeEvent [src]

func onResizeEvent(me, evt: *ResizeEvent)

func FrameWnd.createView [src]

func(T) createView(me, hook: HookEvent = null)->*T

func FrameWnd.setFrameFlags [src]

Set the frame wnd flags.

func setFrameFlags(me, add, remove = FrameWndFlags.Zero)

func FrameWnd.setFrameForm [src]

Set the frame wnd form.

func setFrameForm(me, form: FrameWndForm)

func FrameWnd.setView [src]

func setView(me, what: *Wnd)

enum Gui.FrameWndAnchor [src]

None
Left
Top
Right
Bottom

enum Gui.FrameWndFlags [src]

Zero
Borders
FocusBorder
SmallShadow

enum Gui.FrameWndForm [src]

Transparent
Square
Round

struct Gui.GridLayoutCtrl [src]

using wnd Wnd
gridLayoutFlags GridLayoutCtrlFlags
numColumns s32
numRows s32
spacingHorz f32
spacingVert f32
layout Core.Array'(*Wnd)
colSizes Core.Array'(f32)
rowSizes Core.Array'(f32)

Functions

computeLayout Recompute layout of all childs.
create Create a layout control.
setColRowChild Set the wnd associated with the given col and row.
setColSize Set size, in pixel, of a given column.
setRowSize Set size, in pixel, of a given row.

func IWnd.onResizeEvent [src]

func onResizeEvent(me, evt: *ResizeEvent)

func GridLayoutCtrl.computeLayout [src]

Recompute layout of all childs.

func computeLayout(me)

func GridLayoutCtrl.create [src]

Create a layout control.

func create(parent: *Wnd, numColumns, numRows: s32, position: Math.Rectangle = {})->*GridLayoutCtrl

func GridLayoutCtrl.setColRowChild [src]

Set the wnd associated with the given col and row.

func setColRowChild(me, child: *Wnd, col, row: s32, spanH, spanV: s32 = 1)

Window can cover multiple columns and rows.

func GridLayoutCtrl.setColSize [src]

Set size, in pixel, of a given column.

func setColSize(me, col: s32, size: f32)

func GridLayoutCtrl.setRowSize [src]

Set size, in pixel, of a given row.

func setRowSize(me, row: s32, size: f32)

enum Gui.GridLayoutCtrlFlags [src]

Zero
AdaptSizeToContent
AdaptColWidth
AdaptRowHeight

struct Gui.Header [src]

using wnd Wnd
form HeaderForm
headerFlags HeaderFlags
marginItems f32
sigLayoutChanged func(*Header)
sigClicked func(*Header, u32)
hotIdx u32
hotSeparator bool
moving bool
clicked bool
correctMoving f32
sortColumn u32
sortMark s32

Functions

addItem Add a new view.
create
getItem Returns the given item, by index.
getItemByCol Returns the given item, by column.
getItemPosition Get an item position by index.
getItemPositionByCol Get an item position by column.
getItemWidth Get an item width by index.
getItemWidthByCol Get an item width by column.
getTotalItemsWidth Get the header total width.
setItemWidth Set an item width by index.
setItemWidthByCol Set an item width by column.

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func IWnd.paintItem [src]

func paintItem(me, bc: PaintContext, item: *HeaderItem, idx: u32, x: f32)

func Header.addItem [src]

Add a new view.

func addItem(me, tabName: string, width = 100'f32, icon: Icon = {})->*HeaderItem

func Header.create [src]

func create(parent: *Wnd, position: Math.Rectangle = {}, id: WndId = null)->*Header

func Header.getItem [src]

Returns the given item, by index.

func getItem(me, idx: u32)->*HeaderItem

func Header.getItemByCol [src]

Returns the given item, by column.

func getItemByCol(me, column: u32)->*HeaderItem

func Header.getItemPosition [src]

Get an item position by index.

func getItemPosition(me, idx: u32)->f32

func Header.getItemPositionByCol [src]

Get an item position by column.

func getItemPositionByCol(me, column: u32)->f32

func Header.getItemWidth [src]

Get an item width by index.

func getItemWidth(me, idx: u32)->f32

func Header.getItemWidthByCol [src]

Get an item width by column.

func getItemWidthByCol(me, column: u32)->f32

func Header.getTotalItemsWidth [src]

Get the header total width.

func getTotalItemsWidth(me)->f32

func Header.setItemWidth [src]

Set an item width by index.

func setItemWidth(me, idx: u32, width: f32)

func Header.setItemWidthByCol [src]

Set an item width by column.

func setItemWidthByCol(me, column: u32, width: f32)

enum Gui.HeaderFlags [src]

Zero
Clickable

enum Gui.HeaderForm [src]

Transparent
Flat
Round

struct Gui.HeaderItem [src]

name Pixel.RichString
icon Icon
width f32
minWidth f32
maxWidth f32
sizeable bool
clickable bool
iconMargin bool
column u32

interface Gui.IActionUI [src]

accept func(*IActionUI, ActionContext)->bool
update func(*IActionUI, ActionContext, *CommandStateEvent)->bool
execute func(*IActionUI, ActionContext)->bool

interface Gui.IEvent [src]

interface Gui.IPropertyNotify [src]

To notify a struct about properties changes.

isItemVisible func(*IPropertyNotify, *Properties, *PropertiesItem)->bool
isItemEnabled func(*IPropertyNotify, *Properties, *PropertiesItem)->bool
fillPopupMenu func(*IPropertyNotify, *Properties, *PropertiesItem, *MenuCtrl)

interface Gui.IPropertyValue [src]

To specialize the edition of a given struct.

construct func(*IPropertyValue, *Properties, Swag.TypeValue, [*] u8, *PropertiesItem)->*PropertiesItem

interface Gui.IRichEditLexer [src]

setup func(*IRichEditLexer, *RichEditCtrl)
setupTheme func(*IRichEditLexer, *RichEditCtrl)
insertRune func(*IRichEditLexer, *RichEditCtrl, rune)->bool
compute func(*IRichEditLexer, *RichEditLine, *RichEditLine, *RichEditLine)

interface Gui.IWnd [src]

onEvent func(*IWnd, IEvent)
onHookEvent func(*IWnd, IEvent)
onCreateEvent func(*IWnd, *CreateEvent)
onDestroyEvent func(*IWnd, *DestroyEvent)
onStateEvent func(*IWnd, *StateEvent)
onResizeEvent func(*IWnd, *ResizeEvent)
onPrePaintEvent func(*IWnd, *PaintEvent)
onPaintEvent func(*IWnd, *PaintEvent)
onPostPaintEvent func(*IWnd, *PaintEvent)
onKeyEvent func(*IWnd, *KeyEvent)
onMouseEvent func(*IWnd, *MouseEvent)
onSysCommandEvent func(*IWnd, *SysCommandEvent)
onSysUserEvent func(*IWnd, *SysUserEvent)
onThemeEvent func(*IWnd, *ThemeEvent)
onTimerEvent func(*IWnd, *TimerEvent)
onFocusEvent func(*IWnd, *FocusEvent)
onCommandEvent func(*IWnd, *CommandEvent)
onComputeStateEvent func(*IWnd, *CommandStateEvent)
onApplyStateEvent func(*IWnd, *CommandStateEvent)
onFrameEvent func(*IWnd, *FrameEvent)
onSerializeStateEvent func(*IWnd, *SerializeStateEvent)
onNotifyEvent func(*IWnd, *NotifyEvent)

struct Gui.Icon [src]

imageList *ImageList
index s32
sizeX f32
sizeY f32
color Pixel.Color

Functions

clear Set icon to invalid.
from Initialize the icon from an image list.
isValid
paint Paint icon at the given position.
set Initialize the icon from an image list.

func Icon.clear [src]

Set icon to invalid.

func clear(me)

func Icon.from [src]

Initialize the icon from an image list.

func from(imageList: *ImageList, index: s32, sizeX, sizeY: f32 = 0)->Icon

func Icon.isValid [src]

func isValid(const me)->bool

func Icon.paint [src]

Paint icon at the given position.

func paint(const me, painter: *Painter, x, y: f32, color: Color = Argb.White)

func Icon.set [src]

Initialize the icon from an image list.

func set(me, imageList: *ImageList, index: s32, sizeX, sizeY: f32 = 0)

struct Gui.IconBar [src]

using wnd Wnd
iconBarFlags IconBarFlags
iconSize f32
iconPadding f32
sigUpdateState SigArray'(func(*CommandStateEvent))
sigCheckChanged SigArray'(func(*IconButton))
sigPressed SigArray'(func(*IconButton))

Functions

addCheckableItem Add a new checkable button.
addCheckableToggleItem Add a new checkable button.
addItem Add a new button.
computeLayout
create
getButton Returns the button with the given id.
setIconBarFlags Change bar flags.

func IWnd.onComputeStateEvent [src]

func onComputeStateEvent(me, evt: *CommandStateEvent)

func IconBar.addCheckableItem [src]

Add a new checkable button.

func addCheckableItem(me, icon: Icon, btnId: WndId = null)->*IconButton

func IconBar.addCheckableToggleItem [src]

Add a new checkable button.

func addCheckableToggleItem(me, icon: Icon, btnId: WndId = null)->*IconButton

func IconBar.addItem [src]

Add a new button.

func addItem(me, icon: Icon, btnId: WndId = null, iconBtnFlags = IconButtonFlags.Zero)->*IconButton

func IconBar.computeLayout [src]

func computeLayout(me)

func IconBar.create [src]

func create(parent: *Wnd, iconSize: f32, position: Math.Rectangle = {}, id: WndId = null)->*IconBar

func IconBar.getButton [src]

Returns the button with the given id.

func getButton(me, btnId: string)->*IconButton

func IconBar.setIconBarFlags [src]

Change bar flags.

func setIconBarFlags(me, add, remove = IconBarFlags.Zero)

enum Gui.IconBarFlags [src]

Zero
Vertical

struct Gui.IconButton [src]

using button Button
form IconButtonForm
iconBtnFlags IconButtonFlags
checkedForm IconButtonCheckedForm
arrowPos IconButtonArrowPos
textPos IconButtonTextPos
iconColor Pixel.Color
textColor Pixel.Color
sigHidePopup SigArray'(func(*IconButton))
sigShowPopup SigArray'(func(*IconButton))
sigCheckChanged SigArray'(func(*IconButton))
sigPaintIcon func(*IconButton, *PaintContext, Core.Math.Rectangle, PaintItemFlags)
aniBk BlendColor
isChecked bool
popup *Wnd

Functions

create
createAnchorPopup Creates a popup window linked to the button position.
setCheck Set the check state of the button (if the button is checkable).
setForm Set the button form.

func IWnd.hidePopup [src]

func hidePopup(me)

func IWnd.onApplyStateEvent [src]

func onApplyStateEvent(me, evt: *CommandStateEvent)

func IWnd.onDestroyEvent [src]

func onDestroyEvent(me, evt: *DestroyEvent)

func IWnd.onHookEvent [src]

func onHookEvent(me, evt: IEvent)

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func IconButton.create [src]

func create(parent: *Wnd, icon: Icon, position: Math.Rectangle = {}, id: WndId = null)->*IconButton

func IconButton.createAnchorPopup [src]

Creates a popup window linked to the button position.

func createAnchorPopup(me, w, h: f32)->*FrameWnd

func IconButton.setCheck [src]

Set the check state of the button (if the button is checkable).

func setCheck(me, checked: bool)

func IconButton.setForm [src]

Set the button form.

func setForm(me, form: IconButtonForm)

enum Gui.IconButtonArrowPos [src]

None
Left
Top
Right
RightUp
RightDown
Bottom

enum Gui.IconButtonCheckedForm [src]

None
Bottom
Top
Left
Right
Full

enum Gui.IconButtonFlags [src]

Zero
Checkable
CheckableToggle
Popup
Center
HideName

enum Gui.IconButtonForm [src]

Square
Round
RoundSquare

enum Gui.IconButtonTextPos [src]

Left
Top
Right
Bottom

struct Gui.ImageList [src]

texture Pixel.Texture
totalFrames s32
frameSizeX s32
frameSizeY s32

Functions

countX
countY
set Initialize image list.

func ImageList.countX [src]

func countX(me)->s32

func ImageList.countY [src]

func countY(me)->s32

func ImageList.set [src]

Initialize image list.

func set(me, texture: Texture, fsx, fsy: s32 = 0, cpt: s32 = 0)

struct Gui.ImageRect [src]

using wnd Wnd
movie Movie
textureFrame Pixel.Texture

Functions

clear
create
setFile Load and set movie.
setImage(me, const &ImageList) Associate image.
setImage(me, const &Image) Associate image.
setImage(me, const &Texture) Associate image.
setMovie Set movie as an image list.

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func ImageRect.clear [src]

func clear(me)

func ImageRect.create [src]

func create(parent: *Wnd, position: Math.Rectangle = {}, id: WndId = null)->*ImageRect

func ImageRect.setFile [src]

Load and set movie.

func setFile(me, fileName: string) throw

func ImageRect.setImage [src]

Associate image.

func setImage(me, image: ImageList) func setImage(me, image: Texture) func setImage(me, image: Image)

func ImageRect.setMovie [src]

Set movie as an image list.

func setMovie(me, image: ImageList)

struct Gui.InvalidateEvent [src]

using base Event

struct Gui.Item [src]

name Pixel.RichString
icon Icon
id WndId
userData0 *void
userData1 *void

enum Gui.ItemFlags [src]

Zero
NoSeparator
NoFocus
Section
Category
Expanded

struct Gui.KeyEvent [src]

using base Event
kind KeyEvent.Kind
modifiers Core.Input.KeyModifiers
key Core.Input.Key
char rune

struct Gui.KeyShortcut [src]

mdf Core.Input.KeyModifiers
key Core.Input.Key
id WndId
target *Wnd

struct Gui.Label [src]

using wnd Wnd
sigUrlClicked SigArray'(func(*Label, string))
icon Icon
iconColor Pixel.Color
textColor Pixel.Color
labelFlags LabelFlags
horzAlignmentIcon Pixel.StringHorzAlignment
vertAlignmentIcon Pixel.StringVertAlignment
horzAlignmentText Pixel.StringHorzAlignment
vertAlignmentText Pixel.StringVertAlignment
paddingText Core.Math.Vector4
paddingIcon Core.Math.Vector4
hotChunk *Pixel.RichChunk

Functions

autoHeight Recompute widget height.
create
getText Get the text.
setText Change the text.

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func Label.autoHeight [src]

Recompute widget height.

func autoHeight(me)

The widget must have the flag AutoHeight.

func Label.create [src]

func create(parent: *Wnd, name: #null string, position: Math.Rectangle = {}, id: WndId = null, flags: LabelFlags = .Zero)->*Label

func Label.getText [src]

Get the text.

func getText(me)->string

func Label.setText [src]

Change the text.

func setText(me, text: #null string)

enum Gui.LabelFlags [src]

Zero
WordWrap
LightText
AutoHeight
DontAdaptSingleLineHeight

struct Gui.ListCtrl [src]

using frameWnd FrameWnd
horizontalExtent f32
lineHeight f32
indentWidth f32
iconSize f32
iconMarginFirstCol bool
listFlags ListFlags
selectionMode ListSelectionMode
leftTextMargin f32
sigSelChanged SigArray'(func(*ListCtrl))
sigCheckChanged SigArray'(func(*ListCtrl))
sigRightClick SigArray'(func(*ListCtrl, Core.Math.Point))
sigLeftDoubleClick SigArray'(func(*ListCtrl, Core.Math.Point))
sigExpand SigArray'(func(*ListCtrl, *ListLine))
sigCollapse SigArray'(func(*ListCtrl, *ListLine))
sigKeyPressed SigArray'(func(*ListCtrl, *KeyEvent))
sigVirtualFill func(*ListCtrl, *ListLine, u32)
sigSort func(*ListLine, *ListLine, u32, bool)->s32
toFreeLines Core.ArrayPtr'(ListLine)
lines Core.Array'(*ListLine)
idxLineToIdxList Core.HashTable'(u32, u32)
selModel SelModel
checkModel SelModel
focusIndex u32
hotIndex u32
scrollWnd *ScrollWnd
listView *ListView
header *Header
virtualCount u32
isVirtual bool

Functions

addColumn Add one column in a multi columns list.
clear Clear all lines.
collapse Collapse the given line.
collapseAll Collapse all lines.
computeLayout Compute global layout, once all lines have been added.
createLine(me, *ListLine) Add one new line.
createLine(me, string, const &Icon, *ListLine) Add one line, and set first column.
createMultiColumns
createSimple
ensureVisibleLine Set the corresponding line visible.
expand Expand the given line.
getCheckedLines Get all the checked lines.
getFirstVisibleLineIndex Returns the first visible line index.
getFocusLine Get the line with the keyboard focus.
getLastVisibleLineIndex Returns the last visible line index.
getLine Get a line by index.
getLineCount Returns the number of lines in the list.
getLineHeight Get the height of one line.
getSelectedLine Returns a selected line Mostly for singlesel mode.
getSelectedLines Get all the selected lines.
isLineSelected Returns.
isSelectedLine Returns true if the line at the given index is selected.
selectLine Select of unselect the given line.
selectLines Select a range of lines.
setColumnWidth Set the column width.
setFocus Set focus to the list.
setVirtualCount Set the number of lines in a virtual list.
sort(me) Sort list as before.
sort(me, u32, bool, bool) Sort the list by a given column If persistent is true, then the sorted column will be displayed in the header (if it exists).
toggleExpand Collapse the given line.
unselectAll Unselect all lines.

func ListCtrl.addColumn [src]

Add one column in a multi columns list.

func addColumn(me, name: string, width: f32 = 100, icon: Icon = {})

func ListCtrl.clear [src]

Clear all lines.

func clear(me)

func ListCtrl.collapse [src]

Collapse the given line.

func collapse(me, line: *ListLine)

func ListCtrl.collapseAll [src]

Collapse all lines.

func collapseAll(me)

func ListCtrl.computeLayout [src]

Compute global layout, once all lines have been added.

func computeLayout(me)

func ListCtrl.createLine [src]

Add one new line.

func createLine(me, parentLine: #null *ListLine)->*ListLine

Add one line, and set first column.

func createLine(me, name: string, icon: Icon = {}, parentLine: *ListLine = null)->*ListLine

func ListCtrl.createMultiColumns [src]

func createMultiColumns(parent: *Wnd, position: Math.Rectangle = {}, id: WndId = null)->*ListCtrl

func ListCtrl.createSimple [src]

func createSimple(parent: *Wnd, position: Math.Rectangle = {}, id: WndId = null)->*ListCtrl

func ListCtrl.ensureVisibleLine [src]

Set the corresponding line visible.

func ensureVisibleLine(me, idx: u32)

func ListCtrl.expand [src]

Expand the given line.

func expand(me, line: *ListLine)

func ListCtrl.getCheckedLines [src]

Get all the checked lines.

func getCheckedLines(const me)->Core.Array'(*ListLine)

func ListCtrl.getFirstVisibleLineIndex [src]

Returns the first visible line index.

func getFirstVisibleLineIndex(me)->u32

func ListCtrl.getFocusLine [src]

Get the line with the keyboard focus.

func getFocusLine(const me)->*ListLine

func ListCtrl.getLastVisibleLineIndex [src]

Returns the last visible line index.

func getLastVisibleLineIndex(me)->u32

func ListCtrl.getLine [src]

Get a line by index.

func getLine(me, idx: u32)->*ListLine

func ListCtrl.getLineCount [src]

Returns the number of lines in the list.

func getLineCount(me)->u32

func ListCtrl.getLineHeight [src]

Get the height of one line.

func getLineHeight(me)->f32

func ListCtrl.getSelectedLine [src]

Returns a selected line Mostly for singlesel mode.

func getSelectedLine(const me)->*ListLine

func ListCtrl.getSelectedLines [src]

Get all the selected lines.

func getSelectedLines(const me)->Core.Array'(*ListLine)

func ListCtrl.isLineSelected [src]

Returns.

func isLineSelected(me, idx: u32)->bool

func ListCtrl.isSelectedLine [src]

Returns true if the line at the given index is selected.

func isSelectedLine(const me, idx: u32)->bool

func ListCtrl.selectLine [src]

Select of unselect the given line.

func selectLine(me, idx: u32, select: bool = true)

func ListCtrl.selectLines [src]

Select a range of lines.

func selectLines(me, start, end: u32, select: bool = true)

func ListCtrl.setColumnWidth [src]

Set the column width.

func setColumnWidth(me, idx: u32, width: f32)

func ListCtrl.setFocus [src]

Set focus to the list.

func setFocus(me)

func ListCtrl.setVirtualCount [src]

Set the number of lines in a virtual list.

func setVirtualCount(me, count: u32)

func ListCtrl.sort [src]

Sort the list by a given column If persistent is true, then the sorted column will be displayed in the header (if it exists).

func sort(me, column: u32, descentOrder, persistent = false)

Sort list as before.

func sort(me)

func ListCtrl.toggleExpand [src]

Collapse the given line.

func toggleExpand(me, line: *ListLine)

func ListCtrl.unselectAll [src]

Unselect all lines.

func unselectAll(me)

enum Gui.ListFlags [src]

Zero
HideSelection
AlternateLines
HorzLines
VertLines
ForceMarginExpandMark Force one margin even if no expand mark.
NoMouseEmptySel Click does not clear selection if not on an item.
HotTrack

struct Gui.ListItem [src]

sortKey Core.String
colorBk Pixel.Color
colorFg Pixel.Color
column u32
horzAlign Pixel.StringHorzAlignment

struct Gui.ListLine [src]

colorBk Pixel.Color
colorFg Pixel.Color
userData0 *void
userData1 *void
userData2 *void
userData3 *void
leftTextMargin f32
forceExpandMark bool
canCheck bool
separator bool
iconMargin bool
lines Core.ArrayPtr'(ListLine)
parent *ListLine
index u32
level u32
expanded bool

Functions

canExpand
getItem Get an item by index.
isParentOf
setItem Initialize a given column item.

func ListLine.canExpand [src]

func canExpand(me)->bool

func ListLine.getItem [src]

Get an item by index.

func getItem(me, column: u32)->*ListItem

func ListLine.isParentOf [src]

func isParentOf(me, other: *ListLine)->bool

func ListLine.setItem [src]

Initialize a given column item.

func setItem(me, column: u32, name: string, icon: Icon = {})->*ListItem

enum Gui.ListSelectionMode [src]

None
Single
Multi

struct Gui.ListView [src]

using wnd Wnd
list *ListCtrl
discardMouseRelease bool

func IWnd.onKeyEvent [src]

func onKeyEvent(me, evt: *KeyEvent)

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func IWnd.onResizeEvent [src]

func onResizeEvent(me, evt: *ResizeEvent)

struct Gui.MenuCtrl [src]

using frameWnd FrameWnd
onValidateResult func(*MenuCtrl, WndId)
onComputeItem func(*MenuCtrl, *PopupMenuItem)
menuCtrlFlags MenuCtrlFlags
paddingSel f32
hotIdx u32
selectedIdx u32
bar bool
endModal bool
endModalResult WndId
ownerMenu *MenuCtrl
subVisible *MenuCtrl
timer *Timer
dirtyLayout bool
paintByFrame bool

Functions

addGroup Add a list of items followed by a separator.
addItem(me, WndId) Add a new item.
addItem(me, string, WndId, const &Icon, string, bool, bool) Add a new item.
addItems Add a list of items.
addPopup(me, *MenuCtrl, WndId) Add a new popup item.
addPopup(me, string, *MenuCtrl, const &Icon, WndId) Add a new popup item.
addSeparator Add a separator.
computeLayoutPopup
createBar
createPopup
doModal Make the popup menu modal Will return the selected id.
updateState

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func IWnd.onTimerEvent [src]

func onTimerEvent(me, evt: *TimerEvent)

func MenuCtrl.addGroup [src]

Add a list of items followed by a separator.

func addGroup(me, ids: const [..] WndId)

func MenuCtrl.addItem [src]

Add a new item.

func addItem(me, id: WndId) func addItem(me, name: #null string, id: WndId, icon: Icon = {}, rightName: string = null, disabled = false, checked = false)

func MenuCtrl.addItems [src]

Add a list of items.

func addItems(me, ids: const [..] WndId)

func MenuCtrl.addPopup [src]

Add a new popup item.

func addPopup(me, popup: *MenuCtrl, id: WndId) func addPopup(me, name: #null string, popup: *MenuCtrl, icon: Icon = {}, id: WndId = null)

func MenuCtrl.addSeparator [src]

Add a separator.

func addSeparator(me)

func MenuCtrl.computeLayoutPopup [src]

func computeLayoutPopup(me)

func MenuCtrl.createBar [src]

func createBar(parent: *Wnd, pos: Math.Rectangle = {}, id: WndId = null, owner: *Wnd = null)->*MenuCtrl

func MenuCtrl.createPopup [src]

func createPopup(parent: *Wnd, id: WndId = null, owner: *Wnd = null)->*MenuCtrl

func MenuCtrl.doModal [src]

Make the popup menu modal Will return the selected id.

func doModal(me, surfacePos: Math.Point, pos = PopupPos.TopLeft, autoDestroy: bool = false)->WndId

func MenuCtrl.updateState [src]

func updateState(me)

enum Gui.MenuCtrlFlags [src]

Zero
NoKeyShortcuts

struct Gui.MessageDlg [src]

using dialog Dialog
labelIcon *Label
label *Label
extension *Wnd

Functions

confirm Message box to confirm something.
create Creates the message box.
doModal Display the box, centered, and returns the id of the pressed button.
error Message box to show the current raised error.
ok Message box with a ok.
okCancel Message box with a ok and cancel button.
setExtension Add a bottom extended window.
setIcon Set big icon.
setIconColor Set big icon color (icon must has been set before).
yesNo Message box with a yes and no button.
yesNoCancel Message box with a yes and no button.

func MessageDlg.confirm [src]

Message box to confirm something.

func confirm(from: *Surface, message: string, question: string = null, defaultId = Dialog.BtnNo, options: MessageDlgOptions = {})->WndId

func MessageDlg.create [src]

Creates the message box.

func create(from: *Surface, message: string, options: MessageDlgOptions)->*MessageDlg

func MessageDlg.doModal [src]

Display the box, centered, and returns the id of the pressed button.

func doModal(me, from: *Surface)->string

func MessageDlg.error [src]

Message box to show the current raised error.

func error(from: *Surface, message: string = null, options: MessageDlgOptions = {})

@err must still contain the raised error.

func MessageDlg.ok [src]

Message box with a ok.

func ok(from: *Surface, message: string, options: MessageDlgOptions = {})

func MessageDlg.okCancel [src]

Message box with a ok and cancel button.

func okCancel(from: *Surface, message: string, defaultId = Dialog.BtnCancel, options: MessageDlgOptions = {})->WndId

func MessageDlg.setExtension [src]

Add a bottom extended window.

func setExtension(me, wndExtension: *Wnd)

func MessageDlg.setIcon [src]

Set big icon.

func setIcon(me, icon: Icon, color: Color = Argb.Zero)

func MessageDlg.setIconColor [src]

Set big icon color (icon must has been set before).

func setIconColor(me, color: Color)

func MessageDlg.yesNo [src]

Message box with a yes and no button.

func yesNo(from: *Surface, message: string, title: string = null, defaultId = Dialog.BtnNo, options: MessageDlgOptions = {})->WndId

func MessageDlg.yesNoCancel [src]

Message box with a yes and no button.

func yesNoCancel(from: *Surface, message: string, defaultId = Dialog.BtnCancel, options: MessageDlgOptions = {})->WndId

struct Gui.MessageDlgOptions [src]

icon Icon
iconColor Pixel.Color
horzAlignmentText Pixel.StringHorzAlignment
vertAlignmentText Pixel.StringVertAlignment
sigCreate func(*MessageDlg)

struct Gui.MouseEvent [src]

using base Event
kind MouseEvent.Kind
button Core.Input.MouseButton
surfacePos Core.Math.Point
move Core.Math.Point
modifiers Core.Input.KeyModifiers

struct Gui.MoveEvent [src]

using base Event
oldPos Core.Math.Point

struct Gui.Movie [src]

enableCache bool
mustLoop bool
inPause bool
playFreq f32
sigFrameChanged SigArray'(func(*Movie))
numFrames s32
frameIndex s32
frame Pixel.Image
source MovieSource
imgList ImageList
gif Pixel.Gif.Decoder
bytes Core.Array'(u8)
cacheFrames Core.Array'(Pixel.Image)
currentTime f32
dirtyFrame bool

Functions

clear
isValid Returns true if the movie has valid content.
pause Set/Reset pause state.
set(me, const &ImageList) Associate an image list.
set(me, string) Associate a filename.
setFrameIndex Set the current video frame.
update Update timing and change frames.

func Movie.clear [src]

func clear(me)

func Movie.isValid [src]

Returns true if the movie has valid content.

func isValid(me)->bool

func Movie.pause [src]

Set/Reset pause state.

func pause(me, state: bool)

func Movie.set [src]

Associate an image list.

func set(me, imageList: ImageList)

Associate a filename.

func set(me, fileName: string) throw

func Movie.setFrameIndex [src]

Set the current video frame.

func setFrameIndex(me, idx: s32)

func Movie.update [src]

Update timing and change frames.

func update(me, dt: f32)->bool

enum Gui.MovieSource [src]

None
SpriteSheet
Gif

struct Gui.NativeCursor [src]

cursor Win32.HCURSOR

struct Gui.NativeSurface [src]

hWnd Win32.HWND
lastDeadChar Win32.WPARAM
topMost bool

struct Gui.NotifyEvent [src]

using base Event
ntfyKind NotifyEvent.Kind
from *Wnd

struct Gui.PaintContext [src]

painter *Pixel.Painter
renderer *Pixel.RenderOgl
isDisabled bool

struct Gui.PaintEvent [src]

using base Event
kind PaintEvent.Kind
bc *PaintContext

struct Gui.PaintImage [src]

Functions

draw(me, func(*void, *Application, *Painter)) Draw to an image by calling the func.
draw(s32, s32, func(*void, *Application, *Painter)) One shot paint to image.
init First init the PaintImage instance.

Special Functions

opDrop

func PaintImage.draw [src]

Draw to an image by calling the func.

func draw(me, call: func||(*Application, *Painter))->Pixel.Image

One shot paint to image.

func draw(w, h: s32, call: func||(*Application, *Painter))->Pixel.Image

func PaintImage.init [src]

First init the PaintImage instance.

func init(me, w, h: s32)

func PaintImage.opDrop [src]

func opDrop(me)

enum Gui.PaintItemFlags [src]

Zero
Checked
Pressed
Hot
Focus
Disabled

struct Gui.PalettePicker [src]

using wnd Wnd
selectedColor Pixel.Color
pal Core.Array'(Pixel.Color)
palPos Core.Array'(Core.Math.Rectangle)
boxSize s32
boxMargin s32
sigChanged SigArray'(func(*PalettePicker))
hotIdx s32

Functions

addColor Add a color.
addHueColors Add a range of changing hue.
addLumColors Add a range of changing luminance.
addSatColors Add a range of changing saturation.
create

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func PalettePicker.addColor [src]

Add a color.

func addColor(me, c: Color)

func PalettePicker.addHueColors [src]

Add a range of changing hue.

func addHueColors(me, numColors: s32, sat, lum: f32)

func PalettePicker.addLumColors [src]

Add a range of changing luminance.

func addLumColors(me, numColors: s32, base: Color)

func PalettePicker.addSatColors [src]

Add a range of changing saturation.

func addSatColors(me, numColors: s32, base: Color, lum: f32 = 0.5)

func PalettePicker.create [src]

func create(parent: *Wnd, position: Math.Rectangle = {}, id: WndId = null)->*PalettePicker

struct Gui.PopupListCtrl [src]

using frameWnd FrameWnd
heightItem f32
heightSeparator f32
minWidthPopup f32
maxHeightPopup f32
simFitX bool
simFitY bool
sigSelected func(*PopupListCtrl, u32)
selectedIdx u32
scrollWnd *ScrollWnd
maxIconSize s32

Functions

addItem Add a new item in the list.
addSeparator Add a separator.
create Create the popup list, but: not display it.
show Show popup.

func PopupListCtrl.addItem [src]

Add a new item in the list.

func addItem(me, name: string, id: WndId = null, icon: Icon = {}, userData0: *void = null, userData1: *void = null)

func PopupListCtrl.addSeparator [src]

Add a separator.

func addSeparator(me)

func PopupListCtrl.create [src]

Create the popup list, but: not display it.

func create(owner: *Wnd)->*PopupListCtrl

func PopupListCtrl.show [src]

Show popup.

func show(me, x, y: f32, width: f32 = 10)

struct Gui.PopupListCtrlItem [src]

using base Item
isSeparator bool

struct Gui.PopupListView [src]

using wnd Wnd
list *PopupListCtrl
hotIdx u32

func IWnd.onFocusEvent [src]

func onFocusEvent(me, evt: *FocusEvent)

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

struct Gui.PopupMenuItem [src]

rightName Pixel.RichString
popup *MenuCtrl
pos f32
size f32
rg CommandStateEvent.RenderingHint
separator bool
disabled bool
checked bool
hidden bool

enum Gui.PopupPos [src]

TopLeft
AnchorTopCenter
AnchorBottomCenter

struct Gui.ProgressBar [src]

using wnd Wnd
prgBarFlags ProgressBarFlags
progression f32

Functions

create
setProgression Set the progression in [0..1] range.

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func ProgressBar.create [src]

func create(parent: *Wnd, position: Math.Rectangle = {}, id: WndId = null)->*ProgressBar

func ProgressBar.setProgression [src]

Set the progression in [0..1] range.

func setProgression(me, prg: f32)

enum Gui.ProgressBarFlags [src]

Zero
Infinite

struct Gui.Properties [src]

using frameWnd FrameWnd
kind PropertiesKind
sizeEditValue s32
gridLineHeight f32
gridLineMargin s32
gridColumnSize s32
gridMarginColumn s32
listNameMarginBefore s32
listNameMarginAfter s32
listDescMarginAfter s32
sigChanged SigArray'(func(*Properties, *PropertiesItem))
leftMargin s32
rightMargin s32
fontSection Pixel.FontFamily
fontCategory Pixel.FontFamily
fontName Pixel.FontFamily
scrollWnd *ScrollWnd
edView *PropertiesView
sections Core.Array'({item:*PropertiesItem,lvl:s32})
hotItem *PropertiesItem
selItem *PropertiesItem
currentSectionIndex u32
stringFilter Core.String
cursorSet bool
resizingColumn bool
aniBar BlendColor
editPopup *Wnd

Functions

addStruct Add a new struct to display.
canChangeItem Returns true if the given item can be changed.
create Creates a new Properties instance.
hasChanged To be called when a value has changed.
refresh Refresh all displayed values.
setColumnSize Set the grid mode column size.
setCurrentSection Only display a given section.
setStringFilter Show hidden content depending on the input filter.
updateItemState Update the state of the given item.
updateStates Update the show/hide state of all content.

attr Properties.Category [src]

Start a new category.

Usage: all
attr Category(name: string)

attr Properties.Description [src]

Add a description.

Usage: all
attr Description(desc: string)

attr Properties.EditSize [src]

The width of the edition widget.

Usage: all
attr EditSize(size: s32)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

attr Properties.KeepAlpha [src]

Color edition, keep the original alpha value.

Usage: all

attr Properties.MinMax [src]

Value edition with an editbox, min and max values.

Usage: all
attr MinMax(min, max: s64)

attr Properties.Name [src]

Change the field display name.

Usage: all
attr Name(name: string)

attr Properties.Opaque [src]

Color edition, force an opaque color.

Usage: all
attr Opaque

attr Properties.RecalcLayout [src]

If the value changed, need to recompute the properties layout.

Usage: all

attr Properties.SliderMinMax [src]

Float edition, edit width a slider instead of an editbox.

Usage: all
attr SliderMinMax(min, max: f32)

attr Properties.Unit [src]

Value edition with an editbox, show a unit string.

Usage: all
attr Unit(value: string)

func Properties.addStruct [src]

Add a new struct to display.

func addStruct(me, val: any, section: string = null)

func Properties.canChangeItem [src]

Returns true if the given item can be changed.

func canChangeItem(item: *PropertiesItem)->bool

func Properties.create [src]

Creates a new Properties instance.

func create(parent: *Wnd, position: Math.Rectangle = {}, kind = PropertiesKind.List, id: WndId = null)->*Properties

func Properties.hasChanged [src]

To be called when a value has changed.

func hasChanged(me, item: *PropertiesItem)

func Properties.refresh [src]

Refresh all displayed values.

func refresh(me)

func Properties.setColumnSize [src]

Set the grid mode column size.

func setColumnSize(me, size: s32)

func Properties.setCurrentSection [src]

Only display a given section.

func setCurrentSection(me, sectionIndex: u32)

If sectionIndex is too big, all sections will be displayed.

func Properties.setStringFilter [src]

Show hidden content depending on the input filter.

func setStringFilter(me, filter: string)

func Properties.updateItemState [src]

Update the state of the given item.

func updateItemState(me, item: *PropertiesItem)

func Properties.updateStates [src]

Update the show/hide state of all content.

func updateStates(me)

struct Gui.PropertiesCtrl [src]

using frameWnd FrameWnd
splitter *SplitterCtrl
list *ListCtrl
tab *Tab
prop *Properties
propFlags PropertiesCtrlFlags

Functions

addStruct Add a new struct to display.
create Creates a new Properties instance.

func PropertiesCtrl.addStruct [src]

Add a new struct to display.

func addStruct(me, val: any, category: string = null)

func PropertiesCtrl.create [src]

Creates a new Properties instance.

func create(parent: *Wnd, position: Math.Rectangle = {}, kind = PropertiesKind.List, flags = PropertiesCtrlFlags.SectionPane, id: WndId = null)->*PropertiesCtrl

enum Gui.PropertiesCtrlFlags [src]

Zero
FindBar Add a find bar at the top.
SectionPane Display all sections in a pane on the left.
SectionFilter Display a section filter bar.

struct Gui.PropertiesItem [src]

filter Core.String
line *Wnd
data *u8
type const *Swag.TypeInfo
typeValue Swag.TypeValue
parent *PropertiesItem
flags ItemFlags
userData0 *void
userData1 *void
label *Label
description Core.String
labelDesc *Label
editBox *EditBox
checkBox *CheckButton
comboBox *ComboBox
sliderBox *SliderCtrl
sigResize SigArray'(func(*PropertiesItem))
sigRefresh SigArray'(func(*PropertiesItem))
ntfyItf IPropertyNotify
aniFocusBk BlendColor
aniFocusBorder BlendColor
level u32
numChilds u32
section u32
extendFocus f32

enum Gui.PropertiesKind [src]

List This is a flat list.
Grid This is a more compact property grid.

struct Gui.PropertiesView [src]

struct Gui.PushButton [src]

using button Button
form PushButtonForm
aniBk BlendColor
aniBorder BlendColor
aniText BlendColor

Functions

create

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func PushButton.create [src]

func create(parent: *Wnd, name: string, position: Math.Rectangle = {}, id: WndId = null)->*PushButton

enum Gui.PushButtonForm [src]

Normal
Default
Flat
Strong

struct Gui.QuitEvent [src]

using base Event
quitCode s32

struct Gui.RadioButton [src]

using button Button
checked bool
radioButtonFlags RadioButtonFlags
sigChanged SigArray'(func(*RadioButton))

Functions

create
setChecked Set the checked state.

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func RadioButton.create [src]

func create(parent: *Wnd, name: string, position: Math.Rectangle = {}, id: WndId = null)->*RadioButton

func RadioButton.setChecked [src]

Set the checked state.

func setChecked(me, checked: bool)

enum Gui.RadioButtonFlags [src]

Zero
RightAlign

struct Gui.ResizeEvent [src]

using base Event
oldSize Core.Math.Point

enum Gui.RichEditCommand [src]

None
CursorLeft
CursorRight
CursorUp
CursorDown
CursorStartLine
CursorEndLine
CursorStartFile
CursorEndFile
CursorWordLeft
CursorWordRight
CursorPageUp
CursorPageDown
ScrollLineUp
ScrollLineDown
DeleteLeft
DeleteRight
DeleteLine
EditTabulation
EditBackTabulation
DeleteWordLeft
DeleteWordRight
ToggleOverwrite
ClipboardCopy
ClipboardPaste
ClipboardCut
Undo
Redo
SelectRuneLeft
SelectRuneRight
SelectRuneUp
SelectRuneDown
SelectRectLeft
SelectRectRight
SelectRectUp
SelectRectDown
SelectStartLine
SelectEndLine
SelectStartFile
SelectEndFile
SelectAllFile
SelectWordLeft
SelectWordRight
SelectPageUp
SelectPageDown

struct Gui.RichEditCtrl [src]

using frameWnd FrameWnd
richEdFlags RichEditFlags
lineSpacing f32
overwriteMode bool
tabSize s32
marginLeft f32
marginRight f32
lexer IRichEditLexer
form RichEditForm
sigIsReadOnly SigArray'(func(*bool))
sigChanged SigArray'(func(*RichEditCtrl))
sigModified SigArray'(func(*RichEditCtrl))
bkColorModel Core.String
styles [256] RichEditRuneStyle
stylesSelect [2] RichEditRuneStyle
cursorPos RichEditCursor
selBeg RichEditCursor
lines Core.ArrayPtr'(RichEditLine)
freeLines Core.ArrayPtr'(RichEditLine)
scrollWnd *ScrollWnd
edView *RichEditView
selRectangle Core.Math.Rectangle
hasSelRect bool
modified bool
recomputeScroll bool
dirtyFirstLineView bool
forceCaretVisible bool
forceCaretVisibleCenter bool
undoMgr Core.ArrayPtr'(RichEditUndo)
toUndo Core.ArrayPtr'(RichEditUndo)
mapping Core.Array'(RichEditMapping)
currentUndo u64
undoCounter u64
modifiedUndoMarker u64
serialUndo u64
countVisibleLines u64
firstVisibleLineView u64
lastVisibleLineView u64
clipFormat Clipboard.ValueFormat
cursorPosUndo RichEditCursor
selBegUndo RichEditCursor

Functions

addMapping
addText Append a text with a given style.
canRedo
canUndo
charPressed Simulate a keyboard character pressed.
checkSelection
clear Clear content.
clearMapping
clearSelection
clearUndo
copyToClipboard
create
deleteBegLine Delete a given text at the start of each selected line.
deleteLeft
deleteLine
deleteRight
deleteSelection
deleteWordLeft
deleteWordRight
ensureCaretIsVisible
ensureCursorIsVisible
evaluateSize Evaluate the rendering size.
executeCommand Execute a command.
getBegSelection
getCaretPos
getCursorDisplayPos
getCursorPosFromPoint
getEndSelection
getMappingCommand
getRune Get the rune at the given cursor pos.
getRuneSize
getSelectedText Get the selected text.
getTabOffset
getText Get the full text.
getTextAndStyles Get the full text with the associated styles per character.
getXExtent
insertBegLine Insert text at the start of each selected line.
insertRune Insert a rune.
insertText(me, string) Insert a text with a given style.
insertText(me, string, const &Array'(u8)) Insert a text with a style per character.
isReadOnly Returns true if the rich edit is read only.
isSelectionEmpty
keyPressed Simulate a keyboard pressed.
lexAll Lex the full text.
moveCursorDown
moveCursorEndFile
moveCursorEndLine
moveCursorLeft
moveCursorPageDown
moveCursorPageUp
moveCursorRight
moveCursorStartFile
moveCursorStartLine
moveCursorUp
moveCursorWordLeft
moveCursorWordRight
pasteFromClipboard
popUndo
pushUndo
redo
scrollLineDown
scrollLineUp
selectAll
selectWord
setCursorPos
setDefaultMapping
setFocus
setForm Set form.
setLexer Associate a lexer.
setRectangularSelection
setRichEdFlags Set richedit flags.
setSelection
setText Set the text content.
undo

func RichEditCtrl.addMapping [src]

func addMapping(me, key: Input.Key, mdf: Input.KeyModifiers, cmd: RichEditCommand)

func RichEditCtrl.addText [src]

Append a text with a given style.

func addText(me, text: string, txtStyle: RichEditStyleRef = 0)

func RichEditCtrl.canRedo [src]

func canRedo(me)->bool

func RichEditCtrl.canUndo [src]

func canUndo(me)->bool

func RichEditCtrl.charPressed [src]

Simulate a keyboard character pressed.

func charPressed(me, key: Input.Key, ch: rune, mdf: Input.KeyModifiers)

func RichEditCtrl.checkSelection [src]

func checkSelection(me)

func RichEditCtrl.clear [src]

Clear content.

func clear(me)

func RichEditCtrl.clearMapping [src]

func clearMapping(me)

func RichEditCtrl.clearSelection [src]

func clearSelection(me)

func RichEditCtrl.clearUndo [src]

func clearUndo(me)

func RichEditCtrl.copyToClipboard [src]

func copyToClipboard(me)

func RichEditCtrl.create [src]

func create(parent: *Wnd, position: Math.Rectangle = {}, id: WndId = null)->*RichEditCtrl

func RichEditCtrl.deleteBegLine [src]

Delete a given text at the start of each selected line.

func deleteBegLine(me, txt: string, lastLine: bool)

func RichEditCtrl.deleteLeft [src]

func deleteLeft(me)

func RichEditCtrl.deleteLine [src]

func deleteLine(me)

func RichEditCtrl.deleteRight [src]

func deleteRight(me)

func RichEditCtrl.deleteSelection [src]

func deleteSelection(me)

func RichEditCtrl.deleteWordLeft [src]

func deleteWordLeft(me)

func RichEditCtrl.deleteWordRight [src]

func deleteWordRight(me)

func RichEditCtrl.ensureCaretIsVisible [src]

func ensureCaretIsVisible(me, center = false)

func RichEditCtrl.ensureCursorIsVisible [src]

func ensureCursorIsVisible(me, cp: RichEditCursor, center: bool)

func RichEditCtrl.evaluateSize [src]

Evaluate the rendering size.

func evaluateSize(me)->{w:f32,h:f32}

func RichEditCtrl.executeCommand [src]

Execute a command.

func executeCommand(me, cmd: RichEditCommand)

func RichEditCtrl.getBegSelection [src]

func getBegSelection(me)->RichEditCursor

func RichEditCtrl.getCaretPos [src]

func getCaretPos(me, cp: RichEditCursor)->Core.Math.Rectangle

func RichEditCtrl.getCursorDisplayPos [src]

func getCursorDisplayPos(me, cp: RichEditCursor)->Core.Math.Point

func RichEditCtrl.getCursorPosFromPoint [src]

func getCursorPosFromPoint(me, pt: Math.Point)->RichEditCursor

func RichEditCtrl.getEndSelection [src]

func getEndSelection(me)->RichEditCursor

func RichEditCtrl.getMappingCommand [src]

func getMappingCommand(me, key: Input.Key, mdf: Input.KeyModifiers)->RichEditCommand

func RichEditCtrl.getRune [src]

Get the rune at the given cursor pos.

func getRune(me, cp: RichEditCursor)->{char:rune,style:RichEditStyleRef}

func RichEditCtrl.getRuneSize [src]

func getRuneSize(me, line: *RichEditLine, i: u64, x: f32)->Core.Math.Point

func RichEditCtrl.getSelectedText [src]

Get the selected text.

func getSelectedText(me)->Core.String

func RichEditCtrl.getTabOffset [src]

func getTabOffset(me, x: s32, numBlanks: *s32 = null)->s32

func RichEditCtrl.getText [src]

Get the full text.

func getText(me)->Core.String

func RichEditCtrl.getTextAndStyles [src]

Get the full text with the associated styles per character.

func getTextAndStyles(me)->{text:Core.Array'(rune),styles:Core.Array'(u8)}

func RichEditCtrl.getXExtent [src]

func getXExtent(me)->Core.Math.Point

func RichEditCtrl.insertBegLine [src]

Insert text at the start of each selected line.

func insertBegLine(me, txt: string)

func RichEditCtrl.insertRune [src]

Insert a rune.

func insertRune(me, ch: rune)

func RichEditCtrl.insertText [src]

Insert a text with a given style.

func insertText(me, text: string)

Insert a text with a style per character.

func insertText(me, text: string, txtStyles: Array'u8)

func RichEditCtrl.isReadOnly [src]

Returns true if the rich edit is read only.

func isReadOnly(me)->bool

func RichEditCtrl.isSelectionEmpty [src]

func isSelectionEmpty(me)->bool

func RichEditCtrl.keyPressed [src]

Simulate a keyboard pressed.

func keyPressed(me, key: Input.Key, mdf: Input.KeyModifiers)

func RichEditCtrl.lexAll [src]

Lex the full text.

func lexAll(me)

func RichEditCtrl.moveCursorDown [src]

func moveCursorDown(me, cp: *RichEditCursor)->bool

func RichEditCtrl.moveCursorEndFile [src]

func moveCursorEndFile(me, cp: *RichEditCursor)

func RichEditCtrl.moveCursorEndLine [src]

func moveCursorEndLine(me, cp: *RichEditCursor)

func RichEditCtrl.moveCursorLeft [src]

func moveCursorLeft(me, cp: *RichEditCursor)->bool

func RichEditCtrl.moveCursorPageDown [src]

func moveCursorPageDown(me, cp: *RichEditCursor)

func RichEditCtrl.moveCursorPageUp [src]

func moveCursorPageUp(me, cp: *RichEditCursor)

func RichEditCtrl.moveCursorRight [src]

func moveCursorRight(me, cp: *RichEditCursor)->bool

func RichEditCtrl.moveCursorStartFile [src]

func moveCursorStartFile(me, cp: *RichEditCursor)

func RichEditCtrl.moveCursorStartLine [src]

func moveCursorStartLine(me, cp: *RichEditCursor)

func RichEditCtrl.moveCursorUp [src]

func moveCursorUp(me, cp: *RichEditCursor)->bool

func RichEditCtrl.moveCursorWordLeft [src]

func moveCursorWordLeft(me, cp: *RichEditCursor)

func RichEditCtrl.moveCursorWordRight [src]

func moveCursorWordRight(me, cp: *RichEditCursor, withSpace: bool)

func RichEditCtrl.pasteFromClipboard [src]

func pasteFromClipboard(me)

func RichEditCtrl.popUndo [src]

func popUndo(me)

func RichEditCtrl.pushUndo [src]

func pushUndo(me)

func RichEditCtrl.redo [src]

func redo(me)

func RichEditCtrl.scrollLineDown [src]

func scrollLineDown(me)

func RichEditCtrl.scrollLineUp [src]

func scrollLineUp(me)

func RichEditCtrl.selectAll [src]

func selectAll(me)

func RichEditCtrl.selectWord [src]

func selectWord(me)

func RichEditCtrl.setCursorPos [src]

func setCursorPos(me, cp: RichEditCursor)

func RichEditCtrl.setDefaultMapping [src]

func setDefaultMapping(me)

func RichEditCtrl.setFocus [src]

func setFocus(me)

func RichEditCtrl.setForm [src]

Set form.

func setForm(me, form: RichEditForm)

func RichEditCtrl.setLexer [src]

Associate a lexer.

func setLexer(me, lex: IRichEditLexer)

func RichEditCtrl.setRectangularSelection [src]

func setRectangularSelection(me, selRect: bool)

func RichEditCtrl.setRichEdFlags [src]

Set richedit flags.

func setRichEdFlags(me, flags: RichEditFlags)

func RichEditCtrl.setSelection [src]

func setSelection(me, start, end: RichEditCursor)

func RichEditCtrl.setText [src]

Set the text content.

func setText(me, text: string)

func RichEditCtrl.undo [src]

func undo(me)

struct Gui.RichEditCursor [src]

lineIndex u64
charPosInLine u64

enum Gui.RichEditFlags [src]

Zero
ReadOnly
ShowFocusSel
CurLineBorder
DrawBlanks
TabToSpaces
WordWrap
AutoLoseFocus

enum Gui.RichEditForm [src]

RichEditCtrl
Edit

struct Gui.RichEditLexerSwag [src]

mapStyles [256] RichEditStyleRef
mapWords Core.HashTable'(string, s32)

func IRichEditLexer.compute [src]

func compute(me, linePrev: *RichEditLine, line: *RichEditLine, lineNext: *RichEditLine)

func IRichEditLexer.insertRune [src]

func insertRune(me, ed: *RichEditCtrl, ch: rune)->bool

func IRichEditLexer.setup [src]

func setup(me, ed: *RichEditCtrl)

func IRichEditLexer.setupTheme [src]

func setupTheme(me, ed: *RichEditCtrl)

struct Gui.RichEditLine [src]

struct Gui.RichEditMapping [src]

key Core.Input.Key
modifiers Core.Input.KeyModifiers
command RichEditCommand

struct Gui.RichEditRuneStyle [src]

colBk Pixel.Color
colFg Pixel.Color
fontMode Pixel.FontFamilyStyle
underline Pixel.UnderlineStyle

struct Gui.RichEditUndo [src]

type RichEditUndoType
concatChars bool
selBeg RichEditCursor
cursorPos RichEditCursor
runes Core.Array'(rune)
styles Core.Array'(u8)
serial u64
hasSelRect bool
begSelectionBefore RichEditCursor
endSelectionBefore RichEditCursor
begSelectionAfter RichEditCursor
endSelectionAfter RichEditCursor

enum Gui.RichEditUndoType [src]

Delete
Insert
Selection
Show
Hide

struct Gui.RichEditView [src]

struct Gui.ScrollWnd [src]

using frameWnd FrameWnd
scrollIncrementV f32
scrollIncrementH f32
scrollSize Core.Math.Point
scrollWndFlags ScrollWndFlags
sigScrollPosChanged SigArray'(func(*ScrollWnd, Core.Math.Point, Core.Math.Point))
sigScrollSizeChanged SigArray'(func(*ScrollWnd, Core.Math.Point, Core.Math.Point))
oldMouseCapture *Wnd
scrollSmoothPos Core.Math.Point
scrollRequestPos Core.Math.Point
smoothScroll bool
showBarV bool
needV bool
posBoxV f32
sizeBoxV f32
isHotV bool
isHotBarV bool
isPressedV bool
showBarH bool
needH bool
posBoxH f32
sizeBoxH f32
isHotH bool
isHotBarH bool
isPressedH bool
isMoving bool
isGrabbing bool
correcMoving f32
offsetClientV f32
offsetClientH f32
paddingZ f32
paddingW f32
aniBkBarV BlendColor
aniBkBarH BlendColor
aniBoxV BlendColor
aniBoxH BlendColor
grabbingPos Core.Math.Point

Functions

getClientScrollRect
getScrollPos Get the current scroll position.
setScrollPos(me, const &Point) Set the current scroll position.
setScrollPos(me, f32, f32)
setScrollSize Set the scroll size (window virtual size).

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func IWnd.onResizeEvent [src]

func onResizeEvent(me, evt: *ResizeEvent)

func ScrollWnd.getClientScrollRect [src]

func getClientScrollRect(me)->Core.Math.Rectangle

func ScrollWnd.getScrollPos [src]

Get the current scroll position.

func getScrollPos(me)->Core.Math.Point

func ScrollWnd.setScrollPos [src]

Set the current scroll position.

func setScrollPos(me, pt: Math.Point) func setScrollPos(me, x, y: f32)

func ScrollWnd.setScrollSize [src]

Set the scroll size (window virtual size).

func setScrollSize(me, x, y: f32)

enum Gui.ScrollWndFlags [src]

Zero
SmallBar
ForceHorizontal
ForceVertical
TransparentBar

struct Gui.SelModel [src]

selection Core.Array'({start:u32,end:u32})

Functions

getSelectedRangeIndex
isEmpty
isSelected
select(me, u32, bool) Select the given index.
select(me, u32, u32, bool) Select a given range.
unselectAll Unselect all.

Special Functions

opVisit

func SelModel.getSelectedRangeIndex [src]

func getSelectedRangeIndex(const me, idx: u32)->u32

func SelModel.isEmpty [src]

func isEmpty(const me)->bool

func SelModel.isSelected [src]

func isSelected(const me, idx: u32)->bool

func SelModel.opVisit [src]

#[Swag.Macro] func(ptr: bool, back: bool) opVisit(const me, stmt: #code void)

func SelModel.select [src]

Select a given range.

func select(me, start, end: u32, select: bool)

Select the given index.

func select(me, idx: u32, select: bool)

func SelModel.unselectAll [src]

Unselect all.

func unselectAll(me)

struct Gui.SerializeStateEvent [src]

using base Event
ser *Core.Serialization.Serializer

struct Gui.SigArray [src]

struct SigArray(T)
arr Core.Array'(SigArray.T)
disabled s32

Functions

call Call all registered lambdas.
disable Disable the calls.
enable Enable the calls.
isEmpty Returns true if the array is empty.

Special Functions

opAssign

func SigArray.call [src]

Call all registered lambdas.

func call(me, params: ...)

func SigArray.disable [src]

Disable the calls.

func disable(me)

func SigArray.enable [src]

Enable the calls.

func enable(me)

func SigArray.isEmpty [src]

Returns true if the array is empty.

func isEmpty(const me)->bool

func SigArray.opAssign [src]

func(op: string) opAssign(me, fn: T)

enum Gui.SizingBorder [src]

Zero
Left
Top
Right
Bottom

struct Gui.Slider [src]

using wnd Wnd
value1 f32
value2 f32
min f32
max f32
steps f32
sliderFlags SliderFlags
sigStartChange SigArray'(func(*Slider))
sigChanged SigArray'(func(*Slider))
sigEndChange SigArray'(func(*Slider))
isMoving bool
isPressed1 bool
isPressed2 bool
isHot1 bool
isHot2 bool
hasValue1 bool
hasValue2 bool
correcMoving f32
aniMark1 BlendColor
aniMark2 BlendColor
aniStep1 BlendColor
aniStep2 BlendColor

Functions

create
getValue
getValueLeft
getValueRight
setMinMax Set the min, max and steps values.
setRangeValues Set left and right values, for a range.
setValue
setValueLeft Set the left value (in case of a range).
setValueNoChange
setValueRight Set the right value (in case of a range).

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func Slider.create [src]

func create(parent: *Wnd, position: Math.Rectangle = {}, id: WndId = null, range = false, vertical = false)->*Slider

func Slider.getValue [src]

func getValue(const me)->f32

func Slider.getValueLeft [src]

func getValueLeft(const me)->f32

func Slider.getValueRight [src]

func getValueRight(const me)->f32

func Slider.setMinMax [src]

Set the min, max and steps values.

func setMinMax(me, min, max: f32, steps: f32 = 0)

func Slider.setRangeValues [src]

Set left and right values, for a range.

func setRangeValues(me, left, right: f32)

func Slider.setValue [src]

func setValue(me, f: f32)

func Slider.setValueLeft [src]

Set the left value (in case of a range).

func setValueLeft(me, f: f32)

func Slider.setValueNoChange [src]

func setValueNoChange(me, f: f32)

func Slider.setValueRight [src]

Set the right value (in case of a range).

func setValueRight(me, f: f32)

struct Gui.SliderCtrl [src]

using frameWnd FrameWnd
labelSize f32
editSize f32
sigChanged SigArray'(func(*SliderCtrl))
label *Label
slider *Slider
edit *EditBox

Functions

create Create the popup list, but: not display it.
getValue Get the slider current value.
setMinMaxF32 Set a f32 range.
setMinMaxS64 Set a f64 range.
setMinMaxU64 Set a u64 range.
setValue Set the slider current value.
setValueNoChange Set the slider current value.

func IWnd.onResizeEvent [src]

func onResizeEvent(me, evt: *ResizeEvent)

func SliderCtrl.create [src]

Create the popup list, but: not display it.

func create(parent: *Wnd, name: #null string, position: Math.Rectangle = {}, id: WndId = null)->*SliderCtrl

func SliderCtrl.getValue [src]

Get the slider current value.

func getValue(me)->f32

func SliderCtrl.setMinMaxF32 [src]

Set a f32 range.

func setMinMaxF32(me, min, max: f32)

func SliderCtrl.setMinMaxS64 [src]

Set a f64 range.

func setMinMaxS64(me, min, max: s64)

func SliderCtrl.setMinMaxU64 [src]

Set a u64 range.

func setMinMaxU64(me, min, max: u64)

func SliderCtrl.setValue [src]

Set the slider current value.

func setValue(me, value: f32)

func SliderCtrl.setValueNoChange [src]

Set the slider current value.

func setValueNoChange(me, value: f32)

enum Gui.SliderFlags [src]

Zero
Range
HilightBar
Vertical
Integer
ShowSteps Display steps if defined.

struct Gui.SplitterCtrl [src]

using frameWnd FrameWnd
splitterFlags SplitterFlags
titleSize f32
correctMoving f32
hotIdx u32
moving bool
numVisiblePanes s32

Functions

addPane Add a new pane.
create Creates a new SplitterCtrl instance.
isPaneVisible Returns true if the given pane is visible.
isVertical
setPaneSize Set the pane size (size of the first view).
showPane Show or hide a given pane.

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPostPaintEvent [src]

func onPostPaintEvent(me, evt: *PaintEvent)

func IWnd.onResizeEvent [src]

func onResizeEvent(me, evt: *ResizeEvent)

func SplitterCtrl.addPane [src]

Add a new pane.

func addPane(me, pane: *Wnd, paneSize: f32 = 100, title = false)->*SplitterItem

func SplitterCtrl.create [src]

Creates a new SplitterCtrl instance.

func create(parent: *Wnd, position: Math.Rectangle = {}, vertical = false, id: WndId = null)->*SplitterCtrl

func SplitterCtrl.isPaneVisible [src]

Returns true if the given pane is visible.

func isPaneVisible(me, idx: u32)->bool

func SplitterCtrl.isVertical [src]

func isVertical(me)->bool

func SplitterCtrl.setPaneSize [src]

Set the pane size (size of the first view).

func setPaneSize(me, idx: u32, newSize: f32)

func SplitterCtrl.showPane [src]

Show or hide a given pane.

func showPane(me, idx: u32, show: bool)

enum Gui.SplitterFlags [src]

Zero
Vertical
HideBars

struct Gui.SplitterItem [src]

view *Wnd
size f32
minSize f32
maxSize f32
label *Label
tryPreserveSize bool
visible bool
aniBar BlendColor

struct Gui.StackLayoutCtrl [src]

using wnd Wnd
layoutKind StackLayoutKind
spacing f32
fitToContent bool

Functions

computeLayout Recompute layout of all childs.
create Create a layout control.

func IWnd.onResizeEvent [src]

func onResizeEvent(me, evt: *ResizeEvent)

func StackLayoutCtrl.computeLayout [src]

Recompute layout of all childs.

func computeLayout(me)

func StackLayoutCtrl.create [src]

Create a layout control.

func create(parent: *Wnd, kind: StackLayoutKind = .Top, position: Math.Rectangle = {})->*StackLayoutCtrl

enum Gui.StackLayoutKind [src]

Top From top to bottom.
Bottom From bottom to top.
Left From left to right.
Right From right to left.
HorzCenter Center horizontally.
HorzCenterVertCenter
VertCenter Center vertically.
HorzFit From left to right; fit the available room.
VertFit From top to bottom; fit the available room.

struct Gui.StateEvent [src]

using base Event
kind StateEvent.Kind

struct Gui.Surface [src]

using native NativeSurface
app *Application
wnd *SurfaceWnd
painter Pixel.Painter
rt Pixel.RenderTarget
userData *void
surfaceID Core.String
rc Pixel.RenderingContext
minSize Core.Math.Point
maxSize Core.Math.Point
flags SurfaceFlags
dirtyRect Core.Math.Rectangle
colorDisabled Pixel.Color
isDirty bool
isHidden bool
isDisabled bool
isMinimized bool
using state SurfaceState

Functions

applyNativeSurfaceFlags
bringToTop Bring the surface at the top of the Z order.
center Center this surface relative to from.
constaintPositionToScreen Constraint a window position to be inside the closest monitor.
create Creates the surface.
destroy Destroy the surface.
disable Enable the surface.
enable Enable the surface.
getView Returns inside view.
hide Hide the surface.
invalidate Invalidate the full surface to be painted.
invalidateRect Invalidate one part of the surface to be painted.
isTopMost
paint Main surface paint function.
screenToSurface Transform a point in screen space relative to the surface.
sendCustomMessage Send a custom message to the surface application with name surfaceID.
setIcon Set the surface icon.
setPosition Set the surface position.
setSurfaceFlags Change flag surfaces.
setTitle Set the surface title.
setTopMost Set the window as a topmost window (above all non topmost).
setView
show Show the surface.
showMaximized Show the surface as maximized.
showMinimized Show the surface as minimized.
showNormal Show the surface in its default state.
surfaceToScreen Transform a point relative to the surface in screen space.

func Surface.applyNativeSurfaceFlags [src]

func applyNativeSurfaceFlags(me)

func Surface.bringToTop [src]

Bring the surface at the top of the Z order.

func bringToTop(me)

func Surface.center [src]

Center this surface relative to from.

func center(me, from: *Surface)

func Surface.constaintPositionToScreen [src]

Constraint a window position to be inside the closest monitor.

func constaintPositionToScreen(me, topLeft, bottomRight = true, margin = 0'f32)

func Surface.create [src]

Creates the surface.

func create(surface: *Surface, x, y, width, height: s32, flags: SurfaceFlags, mainSurface: *Surface) throw

func Surface.destroy [src]

Destroy the surface.

func destroy(me)

func Surface.disable [src]

Enable the surface.

func disable(me)

func Surface.enable [src]

Enable the surface.

func enable(me)

func Surface.getView [src]

Returns inside view.

func getView(me)->*Wnd

func Surface.hide [src]

Hide the surface.

func hide(me)

func Surface.invalidate [src]

Invalidate the full surface to be painted.

func invalidate(me)

func Surface.invalidateRect [src]

Invalidate one part of the surface to be painted.

func invalidateRect(me, rect: Math.Rectangle)

func Surface.isTopMost [src]

func isTopMost(me)->bool

func Surface.paint [src]

Main surface paint function.

func paint(me)

func Surface.screenToSurface [src]

Transform a point in screen space relative to the surface.

func screenToSurface(me, pt: *Math.Point)

func Surface.sendCustomMessage [src]

Send a custom message to the surface application with name surfaceID.

func sendCustomMessage(surfaceID: string, id: u32, param: u64)->bool

func Surface.setIcon [src]

Set the surface icon.

func setIcon(me, icon: Icon)

func Surface.setPosition [src]

Set the surface position.

func setPosition(me, pos: Math.Rectangle)

func Surface.setSurfaceFlags [src]

Change flag surfaces.

func setSurfaceFlags(me, add, remove = SurfaceFlags.Zero)

func Surface.setTitle [src]

Set the surface title.

func setTitle(me, name: #null string)

func Surface.setTopMost [src]

Set the window as a topmost window (above all non topmost).

func setTopMost(me)

func Surface.setView [src]

func setView(me, view: *Wnd)

func Surface.show [src]

Show the surface.

func show(me)

func Surface.showMaximized [src]

Show the surface as maximized.

func showMaximized(me)

func Surface.showMinimized [src]

Show the surface as minimized.

func showMinimized(me)

func Surface.showNormal [src]

Show the surface in its default state.

func showNormal(me)

func Surface.surfaceToScreen [src]

Transform a point relative to the surface in screen space.

func surfaceToScreen(me, pt: *Math.Point)

enum Gui.SurfaceFlags [src]

Zero
BigCaption
SmallCaption
MinimizeBtn
MaximizeBtn
CloseBtn
Border
Sizeable
Secondary
TopMost
NoShadow
OverlappedWindow

struct Gui.SurfaceState [src]

position Core.Math.Rectangle
positionNotMaximized Core.Math.Rectangle
isMaximized bool

struct Gui.SurfaceWnd [src]

using base FrameWnd
icon Icon
minimizeBtn *IconButton
maximizeBtn *IconButton
closeBtn *IconButton
movingSurface bool
sizingBorder SizingBorder

struct Gui.SysCommandEvent [src]

using base Event
kind SysCommandEvent.Kind

struct Gui.SysUserEvent [src]

using base Event
userMsg u64
param0 u64
param1 u64

struct Gui.Tab [src]

using wnd Wnd
barForm TabBarForm
viewForm TabViewForm
barLayout TabBarLayout
sigSelChanged SigArray'(func(*Tab))
buttonPopup *IconButton
views Core.ArrayPtr'(TabItem)
popup *PopupListCtrl
selectedIdx u32
firstVisibleIdx u32
hotIdx u32
barHeight f32
mostRightPos f32

Functions

addItem Add a new view.
clear Remove all items.
create
getSelectedItem Returns the current selected item, or null.
select Select one tab at the given index.
setForm Set the tab form.

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func IWnd.onResizeEvent [src]

func onResizeEvent(me, evt: *ResizeEvent)

func IWnd.paintItem [src]

func paintItem(me, painter: *Painter, v: *TabItem, idx: u32)

func Tab.addItem [src]

Add a new view.

func addItem(me, tabName: string, icon: Icon = {}, view: *Wnd = null)->*TabItem

func Tab.clear [src]

Remove all items.

func clear(me)

func Tab.create [src]

func create(parent: *Wnd, position: Math.Rectangle = {}, id: WndId = null)->*Tab

func Tab.getSelectedItem [src]

Returns the current selected item, or null.

func getSelectedItem(me)->*TabItem

func Tab.select [src]

Select one tab at the given index.

func select(me, idx: u32)

func Tab.setForm [src]

Set the tab form.

func setForm(me, tabForm: TabForm)

enum Gui.TabBarForm [src]

Transparent
Flat
FlatRound
Round

enum Gui.TabBarLayout [src]

Divide
Fixed
Auto

enum Gui.TabForm [src]

Flat
Round
Button
PushButton

struct Gui.TabItem [src]

pos f32
width f32
view *Wnd
aniImg BlendColor
aniBorder BlendColor
aniText BlendColor

enum Gui.TabItemForm [src]

Transparent
Flat
Round
Button
PushButton

enum Gui.TabViewForm [src]

None
Flat
Round

struct Gui.Theme [src]

intialized bool
res ThemeResources
rects ThemeImageRects
metrics ThemeMetrics
colors ThemeColors

Functions

createDefaultFont Create a default font with the given size.
createDefaultFontFS Create a default font (fixed size) with the given size.
createDefaultFontfamily Create a default font family with the given size.
drawIconText
drawSubRect(me, *Painter, const &Rectangle, *ThemeImageRect, const &Color, bool, InterpolationMode)
drawSubRect(*Painter, const &Texture, const &Rectangle, *ThemeImageRect, const &Color, bool, InterpolationMode)
getIcon24
getIcon64
setTextColors

func Theme.createDefaultFont [src]

Create a default font with the given size.

func createDefaultFont(me, size: u32, style = FontFamilyStyle.Regular)->*Pixel.Font

func Theme.createDefaultFontFS [src]

Create a default font (fixed size) with the given size.

func createDefaultFontFS(me, size: u32, style = FontFamilyStyle.Regular)->*Pixel.Font

func Theme.createDefaultFontfamily [src]

Create a default font family with the given size.

func createDefaultFontfamily(me, size: u32)->Pixel.FontFamily

func Theme.drawIconText [src]

func drawIconText(painter: *Painter, position: Math.Rectangle, icon: Icon, name: *RichString, stringFormat: RichStringFormat, iconMargin = 4'f32)

func Theme.drawSubRect [src]

func drawSubRect(me, painter: *Painter, dstRect: Math.Rectangle, subRect: *ThemeImageRect, color: Color, center = true, interpol = InterpolationMode.Linear) func drawSubRect(painter: *Painter, texture: Texture, dstRect: Math.Rectangle, subRect: *ThemeImageRect, color: Color, center = true, interpol = InterpolationMode.Linear)

func Theme.getIcon24 [src]

func getIcon24(me, idx: ThemeIcons24, size = 24'f32)->Icon

func Theme.getIcon64 [src]

func getIcon64(me, idx: ThemeIcons64, size = 64'f32)->Icon

func Theme.setTextColors [src]

func setTextColors(me, fmt: *RichStringFormat, mainColor: Color)

struct Gui.ThemeColors [src]

richColor1 Pixel.Color
richColor2 Pixel.Color
richColor3 Pixel.Color
surfaceDisabled Pixel.Color
bk Pixel.Color
border Pixel.Color
text Pixel.Color
hilight Pixel.Color
hilightLight Pixel.Color
hilightDark Pixel.Color
hilightLightContrast Pixel.Color
disabled Pixel.Color
transparent Pixel.Color
lighterSmall Pixel.Color
lighterMedium Pixel.Color
lighterBig Pixel.Color
lighterVeryBig Pixel.Color
wnd_Bk Pixel.Color
wnd_CaptionBk Pixel.Color
wnd_CaptionBkNotActived Pixel.Color
wnd_CaptionText Pixel.Color
wnd_CaptionNotActivatedText Pixel.Color
wnd_BtnCloseBk Pixel.Color
wnd_BtnCloseHotBk Pixel.Color
wnd_BtnCloseHotIcon Pixel.Color
wnd_BtnClosePressedIcon Pixel.Color
wnd_Shadow Pixel.Color
view_Bk Pixel.Color
dlg_Bk Pixel.Color
dlg_BtnBarBk Pixel.Color
btnPush_StrongText Pixel.Color
btnPush_StrongBorder Pixel.Color
btnPush_StrongBk Pixel.Color
btnPush_Text Pixel.Color
btnPush_Border Pixel.Color
btnPush_Bk Pixel.Color
btnPush_PressedText Pixel.Color
btnPush_PressedBorder Pixel.Color
btnPush_PressedBk Pixel.Color
btnPush_HotText Pixel.Color
btnPush_HotBorder Pixel.Color
btnPush_HotBk Pixel.Color
btnPush_DisabledText Pixel.Color
btnPush_DisabledBorder Pixel.Color
btnPush_DisabledBk Pixel.Color
btnPushFlat_DisabledText Pixel.Color
btnPushFlat_DisabledBorder Pixel.Color
btnPushFlat_DisabledBk Pixel.Color
btnPushFlat_Text Pixel.Color
btnPushFlat_Border Pixel.Color
btnPushFlat_Bk Pixel.Color
btnPushFlat_PressedText Pixel.Color
btnPushFlat_PressedBorder Pixel.Color
btnPushFlat_PressedBk Pixel.Color
btnPushFlat_HotText Pixel.Color
btnPushFlat_HotBorder Pixel.Color
btnPushFlat_HotBk Pixel.Color
btnPushDefault_DisabledText Pixel.Color
btnPushDefault_DisabledBorder Pixel.Color
btnPushDefault_DisabledBk Pixel.Color
btnPushDefault_Text Pixel.Color
btnPushDefault_Border Pixel.Color
btnPushDefault_Bk Pixel.Color
btnPushDefault_PressedText Pixel.Color
btnPushDefault_PressedBorder Pixel.Color
btnPushDefault_PressedBk Pixel.Color
btnPushDefault_HotText Pixel.Color
btnPushDefault_HotBorder Pixel.Color
btnPushDefault_HotBk Pixel.Color
btnIcon_Icon Pixel.Color
btnIcon_Text Pixel.Color
btnIcon_Bk Pixel.Color
btnIcon_DisabledIcon Pixel.Color
btnIcon_DisabledText Pixel.Color
btnIcon_DisabledBk Pixel.Color
btnIcon_PressedIcon Pixel.Color
btnIcon_PressedText Pixel.Color
btnIcon_PressedBk Pixel.Color
btnIcon_HotIcon Pixel.Color
btnIcon_HotText Pixel.Color
btnIcon_HotBk Pixel.Color
btnIcon_CheckedDisabledIcon Pixel.Color
btnIcon_CheckedDisabledText Pixel.Color
btnIcon_CheckedPressedIcon Pixel.Color
btnIcon_CheckedPressedText Pixel.Color
btnIcon_CheckedHotIcon Pixel.Color
btnIcon_CheckedHotText Pixel.Color
btnIcon_CheckedIcon Pixel.Color
btnIcon_CheckedText Pixel.Color
btnIcon_CheckedDisabledBk Pixel.Color
btnIcon_CheckedPressedBk Pixel.Color
btnIcon_CheckedHotBk Pixel.Color
btnIcon_CheckedBk Pixel.Color
btnIcon_CheckedMark Pixel.Color
btnIcon_CheckedPressedMark Pixel.Color
btnIcon_CheckedHotMark Pixel.Color
btnIcon_CheckedDisabledMark Pixel.Color
label_Text Pixel.Color
label_TextLight Pixel.Color
label_Text1 Pixel.Color
label_Text2 Pixel.Color
label_Text3 Pixel.Color
label_DisabledText Pixel.Color
label_Icon Pixel.Color
label_DisabledIcon Pixel.Color
btnCheck_Text Pixel.Color
btnCheck_Border Pixel.Color
btnCheck_Mark Pixel.Color
btnCheck_Bk Pixel.Color
btnCheck_PressedText Pixel.Color
btnCheck_PressedBorder Pixel.Color
btnCheck_PressedMark Pixel.Color
btnCheck_PressedBk Pixel.Color
btnCheck_HotText Pixel.Color
btnCheck_HotBorder Pixel.Color
btnCheck_HotMark Pixel.Color
btnCheck_HotBk Pixel.Color
btnCheck_DisabledText Pixel.Color
btnCheck_DisabledBorder Pixel.Color
btnCheck_DisabledMark Pixel.Color
btnCheck_DisabledBk Pixel.Color
btnCheck_CheckedText Pixel.Color
btnCheck_CheckedBk Pixel.Color
btnCheck_CheckedBorder Pixel.Color
btnCheck_CheckedMark Pixel.Color
toolTip_Bk Pixel.Color
toolTip_Border Pixel.Color
toolTip_Text Pixel.Color
url_Text Pixel.Color
url_HotText Pixel.Color
edit_Border Pixel.Color
edit_FocusBorder Pixel.Color
edit_HotBorder Pixel.Color
edit_DisabledBorder Pixel.Color
edit_Bk Pixel.Color
edit_DisabledBk Pixel.Color
edit_ErrorBk Pixel.Color
edit_HotBk Pixel.Color
edit_FocusBk Pixel.Color
edit_Note Pixel.Color
edit_Text Pixel.Color
edit_TextUnit Pixel.Color
edit_DisabledText Pixel.Color
edit_SelectedBk Pixel.Color
edit_ErrorBorder Pixel.Color
richEdit_Bk Pixel.Color
richEdit_TextSpecial Pixel.Color
richEdit_Text Pixel.Color
richEdit_SelText Pixel.Color
richEdit_SelTextNoFocus Pixel.Color
richEdit_SelBk Pixel.Color
richEdit_SelBkNoFocus Pixel.Color
richEdit_Caret Pixel.Color
richEdit_CurLineBorder Pixel.Color
btnToggle_DisabledBorder Pixel.Color
btnToggle_DisabledMark Pixel.Color
btnToggle_DisabledBk Pixel.Color
btnToggle_OffBorder Pixel.Color
btnToggle_OffMark Pixel.Color
btnToggle_OffBk Pixel.Color
btnToggle_OffHotBorder Pixel.Color
btnToggle_OffHotMark Pixel.Color
btnToggle_OffHotBk Pixel.Color
btnToggle_OffPressedBorder Pixel.Color
btnToggle_OffPressedMark Pixel.Color
btnToggle_OffPressedBk Pixel.Color
btnToggle_OnBorder Pixel.Color
btnToggle_OnMark Pixel.Color
btnToggle_OnBk Pixel.Color
btnToggle_OnHotBorder Pixel.Color
btnToggle_OnHotMark Pixel.Color
btnToggle_OnHotBk Pixel.Color
btnToggle_OnPressedBorder Pixel.Color
btnToggle_OnPressedMark Pixel.Color
btnToggle_OnPressedBk Pixel.Color
slider_BkLeft Pixel.Color
slider_BkMiddle Pixel.Color
slider_BkRight Pixel.Color
slider_HilightBk Pixel.Color
slider_Mark Pixel.Color
slider_HotMark Pixel.Color
slider_PressedMark Pixel.Color
slider_DisabledMark Pixel.Color
slider_DisabledBk Pixel.Color
slider_StepBk Pixel.Color
slider_HilightStepBk Pixel.Color
slider_HotStepBk Pixel.Color
circular_Bk Pixel.Color
circular_DisabledBk Pixel.Color
circular_Circle Pixel.Color
circular_DisabledCircle Pixel.Color
circular_Mark Pixel.Color
circular_HotMark Pixel.Color
circular_PressedMark Pixel.Color
circular_DisabledMark Pixel.Color
circular_Step Pixel.Color
circular_DisabledStep Pixel.Color
circular_RangeArc Pixel.Color
tabItem_DisabledText Pixel.Color
tabItem_SelectedText Pixel.Color
tabItem_HotText Pixel.Color
tabItem_Text Pixel.Color
tabItem_FlatSelected Pixel.Color
tabItem_FlatHot Pixel.Color
tabItem_RoundSelected Pixel.Color
tabItem_RoundHot Pixel.Color
tabItem_ButtonSelected Pixel.Color
tabItem_ButtonHot Pixel.Color
tabItem_PushButtonSelected Pixel.Color
tabItem_PushButtonSelectedText Pixel.Color
tabItem_PushButtonSelectedBorder Pixel.Color
tabItem_PushButtonHot Pixel.Color
tabItem_PushButtonHotText Pixel.Color
tabItem_PushButtonHotBorder Pixel.Color
tabItem_PushButtonText Pixel.Color
tabItem_PushButtonBk Pixel.Color
tabItem_PushButtonBorder Pixel.Color
tabBar_FlatBk Pixel.Color
tabBar_RoundBk Pixel.Color
tabView_FlatBk Pixel.Color
tabView_RoundBk Pixel.Color
menuPopup_Bk Pixel.Color
menuPopup_Border Pixel.Color
menuPopup_Shadow Pixel.Color
menuPopup_Separator Pixel.Color
menuBar_Bk Pixel.Color
menuBar_Border Pixel.Color
menuBar_SelectedBk Pixel.Color
menuBar_SelectedText Pixel.Color
popupItem_Text Pixel.Color
popupItem_RightText Pixel.Color
popupItem_DisabledText Pixel.Color
popupItem_HotText Pixel.Color
popupItem_HotRightText Pixel.Color
popupItem_HotBk Pixel.Color
scrollBar_Bk Pixel.Color
scrollBar_HotBk Pixel.Color
scrollBar_DisabledBk Pixel.Color
scrollBar_Box Pixel.Color
scrollBar_HotBox Pixel.Color
scrollBar_PressedBox Pixel.Color
comboBox_Border Pixel.Color
comboBox_HotBorder Pixel.Color
comboBox_DisabledBorder Pixel.Color
comboBox_SelectedBorder Pixel.Color
comboBox_Bk Pixel.Color
comboBox_HotBk Pixel.Color
comboBox_DisabledBk Pixel.Color
comboBox_SelectedBk Pixel.Color
comboBox_Text Pixel.Color
comboBox_HotText Pixel.Color
comboBox_DisabledText Pixel.Color
comboBox_SelectedText Pixel.Color
comboBoxItem_Text Pixel.Color
comboBoxItem_HotBk Pixel.Color
comboBoxItem_HotText Pixel.Color
comboBoxItem_CheckMark Pixel.Color
comboBoxItem_HotCheckMark Pixel.Color
popupList_Separator Pixel.Color
popupList_HotBk Pixel.Color
popupList_Text Pixel.Color
popupList_HotText Pixel.Color
popupList_CheckMark Pixel.Color
popupList_HotCheckMark Pixel.Color
frameWnd_SmallShadow Pixel.Color
frameWnd_Border Pixel.Color
frameWnd_PopupBorder Pixel.Color
frameWnd_FocusBorder Pixel.Color
frameWnd_DisabledBorder Pixel.Color
frameWnd_Bk Pixel.Color
frameWnd_DisabledBk Pixel.Color
frameWnd_FocusBk Pixel.Color
listItem_FocusSelectedBk Pixel.Color
listItem_FocusSelectedText Pixel.Color
listItem_SelectedBk Pixel.Color
listItem_SelectedText Pixel.Color
listItem_HotBk Pixel.Color
listItem_DisabledText Pixel.Color
listItem_Text Pixel.Color
listItem_Separator Pixel.Color
listItem_AlternateBk Pixel.Color
listItem_Line Pixel.Color
headerItem_DisabledText Pixel.Color
headerItem_HotText Pixel.Color
headerItem_HotBk Pixel.Color
headerItem_ClickedBk Pixel.Color
headerItem_Text Pixel.Color
headerItem_Separator Pixel.Color
header_Bk Pixel.Color
splitView_TitleBk Pixel.Color
splitView_Bar Pixel.Color
splitView_BarHot Pixel.Color
progressBar_DisabledBorder Pixel.Color
progressBar_DisabledBk Pixel.Color
progressBar_DisabledMark Pixel.Color
progressBar_Border Pixel.Color
progressBar_Bk Pixel.Color
progressBar_Mark Pixel.Color
palPicker_Border Pixel.Color
palPicker_HotBorder Pixel.Color
colorPicker_Border Pixel.Color
colorPicker_BackAlpha Pixel.Color
colorPicker_Mark Pixel.Color
imageRect_Fg Pixel.Color
embInfo_CriticalBk Pixel.Color
embInfo_CriticalText Pixel.Color
embInfo_InformationBk Pixel.Color
embInfo_InformationText Pixel.Color
embInfo_MessageBk Pixel.Color
embInfo_MessageText Pixel.Color
prop_FocusBk Pixel.Color
prop_FocusBorder Pixel.Color
prop_HotBk Pixel.Color
prop_HotBorder Pixel.Color
prop_GridBorder Pixel.Color
prop_GridColumn Pixel.Color
prop_SectionBk Pixel.Color
prop_CategBk Pixel.Color
prop_Bk1 Pixel.Color

Functions

setDark
setLight

func ThemeColors.setDark [src]

func setDark(me)

func ThemeColors.setLight [src]

func setLight(me)

struct Gui.ThemeEvent [src]

using base Event
style *ThemeStyle
parent *ThemeStyle

enum Gui.ThemeIcons24 [src]

WndMinimize
WndMaximize
WndClose
Search
RightPopupArrow
BottomPopupArrow
SortArrowDown
SortArrowUp
SortArrowRight
Picker
Play
Pause
Stop
SendToBack
SendBackward
BringForward
BringToFront
Plus
More
Undo
Redo
Copy
Paste
Cut
Expanded
Collapsed
RemoveAll
Remove
Options
About
ZoomIn
ZoomOut
Save
SaveAs
Export
Download
OpenFile
Update
Duplicate
Quit
Link
Sort
Edit
Filter
Minimize

enum Gui.ThemeIcons64 [src]

Question
Warning
Critical
Information
HourGlass

struct Gui.ThemeImageRect [src]

rect Core.Math.Rectangle
corner f32
keepBordersRatio bool

struct Gui.ThemeImageRects [src]

surfaceWnd_Shadow ThemeImageRect
wnd_Border ThemeImageRect
wnd_CaptionBk ThemeImageRect
wnd_CaptionSmall ThemeImageRect
dlg_BtnBar ThemeImageRect
btnPush_Normal ThemeImageRect
btnPush_NormalBorder ThemeImageRect
btnPush_Hot ThemeImageRect
btnPush_HotBorder ThemeImageRect
btnPush_Pressed ThemeImageRect
btnPush_PressedBorder ThemeImageRect
btnPush_Disabled ThemeImageRect
btnPush_DisabledBorder ThemeImageRect
btnIcon_SquareBk ThemeImageRect
btnIcon_RoundBk ThemeImageRect
btnIcon_RoundSquareBk ThemeImageRect
btnIcon_CheckedBottom ThemeImageRect
btnIcon_CheckedTop ThemeImageRect
btnIcon_CheckedLeft ThemeImageRect
btnIcon_CheckedRight ThemeImageRect
btnIcon_CheckedSquare ThemeImageRect
btnIcon_CheckedRound ThemeImageRect
btnIcon_CheckedRoundSquare ThemeImageRect
btnIcon_ArrowDown ThemeImageRect
btnIcon_ArrowLeft ThemeImageRect
btnIcon_ArrowUp ThemeImageRect
btnIcon_ArrowRight ThemeImageRect
btnCheck_Normal ThemeImageRect
btnCheck_NormalBorder ThemeImageRect
btnCheck_Undefined ThemeImageRect
btnCheck_UndefinedBorder ThemeImageRect
btnCheck_UndefinedMark ThemeImageRect
btnCheck_Checked ThemeImageRect
btnCheck_CheckedBorder ThemeImageRect
btnCheck_CheckedMark ThemeImageRect
btnRadio_NormalBorder ThemeImageRect
btnRadio_Normal ThemeImageRect
btnRadio_CheckedBorder ThemeImageRect
btnRadio_Checked ThemeImageRect
btnRadio_CheckedMark ThemeImageRect
edit_SquareBk ThemeImageRect
edit_SquareBorder ThemeImageRect
edit_RoundBk ThemeImageRect
edit_RoundBorder ThemeImageRect
edit_FlatBk ThemeImageRect
edit_FlatBorder ThemeImageRect
btnToggle_Bk ThemeImageRect
btnToggle_Border ThemeImageRect
btnToggle_Mark ThemeImageRect
slider_BkLeft ThemeImageRect
slider_BkMiddle ThemeImageRect
slider_BkRight ThemeImageRect
slider_BkLeftVert ThemeImageRect
slider_BkMiddleVert ThemeImageRect
slider_BkRightVert ThemeImageRect
slider_Mark ThemeImageRect
slider_Step ThemeImageRect
circular_Mark ThemeImageRect
tabItem_FlatSelected ThemeImageRect
tabItem_RoundSelected ThemeImageRect
tabItem_RoundHot ThemeImageRect
tabItem_ButtonSelected ThemeImageRect
tabItem_ButtonHot ThemeImageRect
tabItem_PushButtonSelected ThemeImageRect
tabItem_PushButtonHot ThemeImageRect
tabItem_PushButtonBk ThemeImageRect
tabItem_PushButtonBorder ThemeImageRect
tabBar_FlatBk ThemeImageRect
tabBar_FlatRoundBk ThemeImageRect
tabBar_RoundBk ThemeImageRect
tabView_FlatBk ThemeImageRect
tabView_RoundBk ThemeImageRect
menuPopup_Shadow ThemeImageRect
menuPopup_Bk ThemeImageRect
menuPopup_Border ThemeImageRect
menuPopup_HotBk ThemeImageRect
menuBar_Bk ThemeImageRect
menuBar_Border ThemeImageRect
menuBar_SelectedBk ThemeImageRect
menuItem_CheckedMark ThemeImageRect
scrollBar_BkV ThemeImageRect
scrollBar_BkH ThemeImageRect
scrollBar_BoxV ThemeImageRect
scrollBar_BoxH ThemeImageRect
scrollBar_Corner ThemeImageRect
frameWnd_SmallShadow ThemeImageRect
frameWnd_SquareBk ThemeImageRect
frameWnd_SquareBorder ThemeImageRect
frameWnd_RoundBk ThemeImageRect
frameWnd_RoundBorder ThemeImageRect
frameWnd_AnchorTop ThemeImageRect
frameWnd_AnchorTopBk ThemeImageRect
frameWnd_AnchorBottom ThemeImageRect
frameWnd_AnchorBottomBk ThemeImageRect
frameWnd_AnchorRight ThemeImageRect
frameWnd_AnchorRightBk ThemeImageRect
frameWnd_AnchorLeft ThemeImageRect
frameWnd_AnchorLeftBk ThemeImageRect
header_FlatBk ThemeImageRect
header_RoundBk ThemeImageRect
selectionBox_Bk ThemeImageRect
splitView_HorzBarBk ThemeImageRect
splitView_HorzBarHotBk ThemeImageRect
splitView_VertBarBk ThemeImageRect
splitView_VertBarHotBk ThemeImageRect
progressBar_Bk ThemeImageRect
progressBar_Border ThemeImageRect
progressBar_Mark ThemeImageRect
colorPicker_RoundPick ThemeImageRect
colorPicker_SquarePick ThemeImageRect
colorPicker_Bk ThemeImageRect
colorPicker_Border ThemeImageRect

struct Gui.ThemeMetrics [src]

defaultFontSize u32
defaultFixedFontSize u32
surfaceWnd_ShadowSize f32
wnd_BorderSize f32
wnd_BigCaptionCY f32
wnd_SmallCaptionCY f32
wnd_CaptionMarginTitle f32
tabBar_FlatHeight f32
tabBar_RoundHeight f32
tabBar_ButtonHeight f32
btnPush_Padding f32
btnPush_Width f32
btnPush_Height f32
iconText_Margin f32
btnCheck_Size f32
btnCheck_Padding f32
dialog_Padding f32
dialog_BtnPadding f32
editBox_SquarePadding Core.Math.Vector4
editBox_RoundPadding Core.Math.Vector4
editBox_FlatPadding Core.Math.Vector4
editBox_Width f32
editBox_Height f32
editBox_UnitMargin f32
btnToggle_Width f32
btnToggle_Height f32
slider_Width f32
slider_Height f32
slider_BoxSize f32
slider_StepSize f32
circular_Size f32
circular_MarkerSize f32
menuPopup_Padding f32
menuPopup_SpaceLines f32
menuPopup_ShadowSize f32
menuPopup_IconMargin f32
menuPopup_IconTextMargin f32
menuPopup_SeparatorHeight f32
menuBar_Height f32
menuBar_SpaceBetween f32
iconBar_ButtonsPadding f32
scrollBar_NormalSize f32
scrollBar_SmallSize f32
scrollBar_BoxPadding f32
scrollBar_BoxMinSize f32
comboBox_Width f32
comboBox_Height f32
comboBox_RightMargin f32
comboBox_Padding f32
comboBox_IconTextMargin f32
popupList_Padding f32
popupList_IconTextMargin f32
popupList_SeparatorPadding f32
btnIcon_WidthArrow f32
btnIcon_HeightArrow f32
btnIcon_Padding f32
btnIcon_MarginArrow f32
btnIcon_SpacingIcon f32
btnIcon_SpacingArrowH f32
btnIcon_SpacingArrowV f32
btnIcon_SpacingTextH f32
btnIcon_SpacingTextV f32
frameWnd_SquarePadding f32
frameWnd_RoundPadding f32
frameWnd_FlatPadding f32
frameWnd_SmallShadowSize Core.Math.Vector4
frameWnd_AnchorWidth f32
frameWnd_AnchorHeight f32
frameWnd_AnchorOverlap f32
frameWnd_AnchorRoundBorderMargin f32
frameWnd_AnchorSquareBorderMargin f32
list_Padding f32
list_ExpandSize f32
header_Height f32
header_Padding Core.Math.Vector4
header_Separator f32
splitView_BarSize f32
progressBar_Height f32
progressBar_ClipOffset f32
progressBar_SpeedInf f32
colorPicker_RoundPick f32
colorPicker_SquarePick f32
label_Height f32
richEdit_Padding f32
toolTip_Padding f32

struct Gui.ThemeResources [src]

imgWidgets Pixel.Texture
icons24 *ImageList
icons64 *ImageList
spin *ImageList
defaultTypeFaceR *Pixel.TypeFace
defaultTypeFaceB *Pixel.TypeFace
defaultTypeFaceI *Pixel.TypeFace
defaultTypeFaceBI *Pixel.TypeFace
defaultFsTypeFaceR *Pixel.TypeFace
defaultFsTypeFaceB *Pixel.TypeFace
defaultFsTypeFaceI *Pixel.TypeFace
defaultFsTypeFaceBI *Pixel.TypeFace
fontDefault Pixel.FontFamily
fontDefaultFs Pixel.FontFamily

struct Gui.ThemeStyle [src]

refr *ThemeStyleRef
dirty bool
styleSheetMetrics Core.String
styleSheetColors Core.String
font Pixel.FontFamily

Functions

addStyleSheetColors
addStyleSheetMetrics
clearFont
clearStyleSheetColors
create Create a specific style based on the parent.
getFont
setFont(me, *Font, FontFamilyStyle)
setFont(me, const &FontFamily)
setStyleSheetColors
setStyleSheetMetrics

Special Functions

opDrop

func ThemeStyle.addStyleSheetColors [src]

func addStyleSheetColors(me, str: string)

func ThemeStyle.addStyleSheetMetrics [src]

func addStyleSheetMetrics(me, str: string)

func ThemeStyle.clearFont [src]

func clearFont(me)

func ThemeStyle.clearStyleSheetColors [src]

func clearStyleSheetColors(me)

func ThemeStyle.create [src]

Create a specific style based on the parent.

func create(me, parent: *ThemeStyle)

func ThemeStyle.getFont [src]

func getFont(const me)->Pixel.FontFamily

func ThemeStyle.opDrop [src]

func opDrop(me)

func ThemeStyle.setFont [src]

func setFont(me, fnt: FontFamily) func setFont(me, fnt: *Font, style: FontFamilyStyle)

func ThemeStyle.setStyleSheetColors [src]

func setStyleSheetColors(me, str: string)

func ThemeStyle.setStyleSheetMetrics [src]

func setStyleSheetMetrics(me, str: string)

struct Gui.ThemeStyleRef [src]

theme *Theme
count u32

struct Gui.Timer [src]

timeMs s32
target *Wnd
stopwatch Core.Time.Stopwatch
toDelete bool

Functions

restart

func Timer.restart [src]

func restart(me)

struct Gui.TimerEvent [src]

using base Event
timer *Timer

struct Gui.ToggleButton [src]

using button Button
isToggled bool
sigChanged func(*ToggleButton)
aniBk BlendColor
aniBorder BlendColor
aniMark BlendColor

Functions

create

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func ToggleButton.create [src]

func create(parent: *Wnd, position: Math.Rectangle = {}, id: WndId = null)->*ToggleButton

namespace Gui.ToolTip

Functions

hide Hide the current tooltip, if visible.
show Show a tooltip.

func ToolTip.hide [src]

Hide the current tooltip, if visible.

func hide()

func ToolTip.show [src]

Show a tooltip.

func show(owner: *Wnd, surfacePos: Math.Point, str: string, delay: Time.Duration = 500'ms)

struct Gui.Wnd [src]

itf IWnd
type const *Swag.TypeInfo
surface *Surface
style ThemeStyle
wndFlags WndFlags
userData *void
position Core.Math.Rectangle
minSize Core.Math.Point
maxSize Core.Math.Point
scrollPos Core.Math.Point
invalidatePadding Core.Math.Vector4
parent *Wnd
owner *Wnd
childs Core.Array'(*Wnd)
name Pixel.RichString
id WndId
cursor Cursor
toolTip Core.String
keyShortcuts Core.Array'(KeyShortcut)
actions Core.Array'(IActionUI)
margin Core.Math.Vector4
padding Core.Math.Vector4
dockStyle DockStyle
anchorStyle AnchorStyle
focusStrategy FocusStategy
backgroundStyle BackgroundStyle
isAllocated bool
isPendingDestroy bool
createEventDone bool
hookOnEvent HookEvent Will be called before processing the event of the window.
hookOnChildEvent HookEvent Will be called before processing whatever event of a child window.

Functions

addTimer Register a new timer for the given target.
applyLayout(me) Apply the current layout (childs constraints).
applyLayout(me, const &Point)
bringToFront Force the window to be the first painted (before all siblings).
bringToTop Force the window to be the last painted (on top of siblings).
captureMouse
computeStyle
create(*Wnd, WndId, HookEvent)
create(*Wnd, const &Rectangle, WndId, HookEvent)
create(*Wnd, string, const &Rectangle, WndId, HookEvent)
destroy Destroy the window.
destroyNow Destroy the window.
disable Disable the window.
enable Enable/Disable the window.
fitPosInParent Be sure rect is fully inside the parent rectangle (if possible).
getApp
getChildById Retrieve the child with the given id.
getClientRect Returns the client area.
getClientRectPadding Returns the client area, with padding applied.
getFocus Get the window with the keyboard focus.
getFont
getKeyShortcut Get the id associated with a shortcut. null if none.
getKeyShortcutNameFor Get the name associated with a given id shortcut.
getMouseCapture
getOwner Get the owner of the window.
getParentById Retrieve the parent with the given id.
getRectIn Get the wnd position relative to a given parent.
getSurfaceRect Get the wnd position in the surface.
getTheme
getThemeColors
getThemeMetrics
getThemeRects
getTiming
getTopView
getTopWnd
getWndAt Get the child window at the given coordinate Coordinate is expressed in the parent system.
hasFocus Returns true if the window has the keyboard focus.
hide Hide the window.
invalidate Force the window to be repainted.
invalidateRect Force o local position to be repainted.
isDisabled Returns true if window, or one of its parent, is disabled.
isEnabled Returns true if window, and all its parents, are enabled.
isEnabledState Returns true if the window has the enabled state.
isHidden Returns true if window, or one of its parent, is hidden.
isOwnerOf Returns true if child is in the owner/child hieararchy of me.
isParentOf Returns true if child is in the child hieararchy of me.
isVisible Returns true if window and all its parents are visible.
isVisibleState Returns true if the window has the visible state.
localToSurface(me, const &Point) Convert a local coordinate to a surface coordinate.
localToSurface(me, const &Rectangle) Convert a local coordinate to a surface coordinate.
move Move the wnd.
notifyEvent Send a notification event.
ownerNotifyEvent Send a notification event.
paint
postCommandEvent
postEvent
postInvalidateEvent
postQuitEvent
postResizeEvent
processEvent
registerAction Register one new action.
registerKeyShortcut Register a keyboard shortcut.
releaseMouse
resize Resize the wnd.
screenToSurface Convert a screen coordinate to a surface coordinate (relative to my surface).
sendCommandEvent Send the command event with the given id to the window.
sendComputeCommandStateEvent Send the command state event with the given id to the window.
sendCreateEvent
sendEvent
sendResizeEvent
sendStateEvent
serializeState
setAllMargins(me, const &Vector4)
setAllMargins(me, f32)
setAllPaddings(me, const &Vector4)
setAllPaddings(me, f32)
setFocus Set the keyboard focus.
setMargin Set margin for childs If a value is Swag.F32.Inf, then it won't be changed.
setPadding Set padding for childs If a value is Swag.F32.Inf, then it won't be changed.
setParent Set window parent.
setPosition(me, const &Rectangle, bool) Move and size the wnd.
setPosition(me, f32, f32, f32, f32, bool) Move and size the wnd.
show Show the window.
surfaceToLocal Convert a surface coordinate to a local coordinate (relative to me).
updateCommandState Main function to update command state of various windows/widgets.

func IWnd.onApplyStateEvent [src]

func onApplyStateEvent(me, evt: *CommandStateEvent)

func IWnd.onCommandEvent [src]

func onCommandEvent(me, evt: *CommandEvent)

func IWnd.onComputeStateEvent [src]

func onComputeStateEvent(me, evt: *CommandStateEvent)

func IWnd.onCreateEvent [src]

func onCreateEvent(me, evt: *CreateEvent)

func IWnd.onDestroyEvent [src]

func onDestroyEvent(me, evt: *DestroyEvent)

func IWnd.onEvent [src]

func onEvent(me, evt: IEvent)

func IWnd.onFocusEvent [src]

func onFocusEvent(me, evt: *FocusEvent)

func IWnd.onFrameEvent [src]

func onFrameEvent(me, evt: *FrameEvent)

func IWnd.onHookEvent [src]

func onHookEvent(me, evt: IEvent)

func IWnd.onKeyEvent [src]

func onKeyEvent(me, evt: *KeyEvent)

func IWnd.onMouseEvent [src]

func onMouseEvent(me, evt: *MouseEvent)

func IWnd.onNotifyEvent [src]

func onNotifyEvent(me, evt: *NotifyEvent)

func IWnd.onPaintEvent [src]

func onPaintEvent(me, evt: *PaintEvent)

func IWnd.onPostPaintEvent [src]

func onPostPaintEvent(me, evt: *PaintEvent)

func IWnd.onPrePaintEvent [src]

func onPrePaintEvent(me, evt: *PaintEvent)

func IWnd.onResizeEvent [src]

func onResizeEvent(me, evt: *ResizeEvent)

func IWnd.onSerializeStateEvent [src]

func onSerializeStateEvent(me, evt: *SerializeStateEvent)

func IWnd.onStateEvent [src]

func onStateEvent(me, evt: *StateEvent)

func IWnd.onSysCommandEvent [src]

func onSysCommandEvent(me, evt: *SysCommandEvent)

func IWnd.onSysUserEvent [src]

func onSysUserEvent(me, evt: *SysUserEvent)

func IWnd.onThemeEvent [src]

func onThemeEvent(me, evt: *ThemeEvent)

func IWnd.onTimerEvent [src]

func onTimerEvent(me, evt: *TimerEvent)

func Wnd.addTimer [src]

Register a new timer for the given target.

func addTimer(me, time: Time.Duration)->*Timer

func Wnd.applyLayout [src]

Apply the current layout (childs constraints).

func applyLayout(me) func applyLayout(me, oldSize: Math.Point)

func Wnd.bringToFront [src]

Force the window to be the first painted (before all siblings).

func bringToFront(me)

func Wnd.bringToTop [src]

Force the window to be the last painted (on top of siblings).

func bringToTop(me)

func Wnd.captureMouse [src]

func captureMouse(me)

func Wnd.computeStyle [src]

func computeStyle(me)

func Wnd.create [src]

func(T) create(parent: *Wnd = null, id: WndId = null, hook: HookEvent = null)->*T func(T) create(parent: #null *Wnd, position: Math.Rectangle, id: WndId = null, hook: HookEvent = null)->*T func(T) create(parent: #null *Wnd, name: #null string, position: Math.Rectangle, id: WndId = null, hook: HookEvent = null)->*T

func Wnd.destroy [src]

Destroy the window.

func destroy(me)

func Wnd.destroyNow [src]

Destroy the window.

func destroyNow(me)

func Wnd.disable [src]

Disable the window.

func disable(me)

func Wnd.enable [src]

Enable/Disable the window.

func enable(me, state = true)

func Wnd.fitPosInParent [src]

Be sure rect is fully inside the parent rectangle (if possible).

func fitPosInParent(me, marginW, marginH: f32 = 0, simX, simY = false)

func Wnd.getApp [src]

func getApp(me)->*Application

func Wnd.getChildById [src]

Retrieve the child with the given id.

func getChildById(me, childId: string)->*Wnd

func Wnd.getClientRect [src]

Returns the client area.

func getClientRect(const me)->Core.Math.Rectangle

func Wnd.getClientRectPadding [src]

Returns the client area, with padding applied.

func getClientRectPadding(const me)->Core.Math.Rectangle

func Wnd.getFocus [src]

Get the window with the keyboard focus.

func getFocus(me)->*Wnd

func Wnd.getFont [src]

func getFont(me)->Pixel.FontFamily

func Wnd.getKeyShortcut [src]

Get the id associated with a shortcut. null if none.

func getKeyShortcut(me, mdf: Input.KeyModifiers, key: Input.Key)->WndId

func Wnd.getKeyShortcutNameFor [src]

Get the name associated with a given id shortcut.

func getKeyShortcutNameFor(me, wndId: WndId)->Core.String

func Wnd.getMouseCapture [src]

func getMouseCapture(me)->*Wnd

func Wnd.getOwner [src]

Get the owner of the window.

func getOwner(me)->*Wnd

func Wnd.getParentById [src]

Retrieve the parent with the given id.

func getParentById(me, parentId: string)->*Wnd

func Wnd.getRectIn [src]

Get the wnd position relative to a given parent.

func getRectIn(const me, wnd: *Wnd)->Core.Math.Rectangle

func Wnd.getSurfaceRect [src]

Get the wnd position in the surface.

func getSurfaceRect(const me)->Core.Math.Rectangle

func Wnd.getTheme [src]

func getTheme(me)->*Theme

func Wnd.getThemeColors [src]

func getThemeColors(me)->*ThemeColors

func Wnd.getThemeMetrics [src]

func getThemeMetrics(me)->*ThemeMetrics

func Wnd.getThemeRects [src]

func getThemeRects(me)->*ThemeImageRects

func Wnd.getTiming [src]

func getTiming(me)->*Core.Time.FrameTiming

func Wnd.getTopView [src]

func getTopView(me)->*Wnd

func Wnd.getTopWnd [src]

func getTopWnd(me)->*SurfaceWnd

func Wnd.getWndAt [src]

Get the child window at the given coordinate Coordinate is expressed in the parent system.

func getWndAt(me, x, y: f32, getDisabled, getHidden = false)->*Wnd

func Wnd.hasFocus [src]

Returns true if the window has the keyboard focus.

func hasFocus(me)->bool

func Wnd.hide [src]

Hide the window.

func hide(me)

func Wnd.invalidate [src]

Force the window to be repainted.

func invalidate(me)

func Wnd.invalidateRect [src]

Force o local position to be repainted.

func invalidateRect(me, rect: Math.Rectangle)

func Wnd.isDisabled [src]

Returns true if window, or one of its parent, is disabled.

func isDisabled(me)->bool

func Wnd.isEnabled [src]

Returns true if window, and all its parents, are enabled.

func isEnabled(me, onlyMe = false)->bool

func Wnd.isEnabledState [src]

Returns true if the window has the enabled state.

func isEnabledState(me)->bool

Will return true even if one of the parent is hidden.

func Wnd.isHidden [src]

Returns true if window, or one of its parent, is hidden.

func isHidden(me)->bool

func Wnd.isOwnerOf [src]

Returns true if child is in the owner/child hieararchy of me.

func isOwnerOf(me, child: *Wnd)->bool

func Wnd.isParentOf [src]

Returns true if child is in the child hieararchy of me.

func isParentOf(me, child: *Wnd)->bool

func Wnd.isVisible [src]

Returns true if window and all its parents are visible.

func isVisible(me, onlyMe = false)->bool

func Wnd.isVisibleState [src]

Returns true if the window has the visible state.

func isVisibleState(me)->bool

Will return true even if one of the parent is hidden.

func Wnd.localToSurface [src]

Convert a local coordinate to a surface coordinate.

func localToSurface(const me, pos: Math.Point)->Core.Math.Point func localToSurface(const me, pos: Math.Rectangle)->Core.Math.Rectangle

func Wnd.move [src]

Move the wnd.

func move(me, x, y: f32)

func Wnd.notifyEvent [src]

Send a notification event.

func notifyEvent(me, kind: NotifyEvent.Kind)

func Wnd.ownerNotifyEvent [src]

Send a notification event.

func ownerNotifyEvent(me, kind: NotifyEvent.Kind)

func Wnd.paint [src]

func paint(me, bc: *PaintContext)

func Wnd.postCommandEvent [src]

func postCommandEvent(me, cmdId: WndId)

func Wnd.postEvent [src]

func postEvent(me, evt: IEvent)

func Wnd.postInvalidateEvent [src]

func postInvalidateEvent(me)

func Wnd.postQuitEvent [src]

func postQuitEvent(me)

func Wnd.postResizeEvent [src]

func postResizeEvent(me)

func Wnd.processEvent [src]

func processEvent(me, evt: IEvent)

func Wnd.registerAction [src]

Register one new action.

func(T) registerAction(me)

func Wnd.registerKeyShortcut [src]

Register a keyboard shortcut.

func registerKeyShortcut(me, mdf: Input.KeyModifiers, key: Input.Key, wndId: WndId)

func Wnd.releaseMouse [src]

func releaseMouse(me)

func Wnd.resize [src]

Resize the wnd.

func resize(me, width, height: f32, computeLayout = true)

func Wnd.screenToSurface [src]

Convert a screen coordinate to a surface coordinate (relative to my surface).

func screenToSurface(const me, pos: Math.Point)->Core.Math.Point

func Wnd.sendCommandEvent [src]

Send the command event with the given id to the window.

func sendCommandEvent(me, cmdId: WndId)

The command will be updated first, and if it is not disabled, it will be sent.

func Wnd.sendComputeCommandStateEvent [src]

Send the command state event with the given id to the window.

func sendComputeCommandStateEvent(me, cmdId: WndId)->CommandStateEvent

Returns the updated command state.

func Wnd.sendCreateEvent [src]

func sendCreateEvent(me)

func Wnd.sendEvent [src]

func sendEvent(me, evt: IEvent)

func Wnd.sendResizeEvent [src]

func sendResizeEvent(me)

func Wnd.sendStateEvent [src]

func sendStateEvent(me, kind: StateEvent.Kind)

func Wnd.serializeState [src]

func serializeState(me, ser: *Serialization.Serializer) throw

func Wnd.setAllMargins [src]

func setAllMargins(me, value: f32) func setAllMargins(me, value: Math.Vector4)

func Wnd.setAllPaddings [src]

func setAllPaddings(me, value: f32) func setAllPaddings(me, value: Math.Vector4)

func Wnd.setFocus [src]

Set the keyboard focus.

func setFocus(me)

func Wnd.setMargin [src]

Set margin for childs If a value is Swag.F32.Inf, then it won't be changed.

func setMargin(me, left, top, right, bottom: f32 = Swag.F32.Inf)

func Wnd.setPadding [src]

Set padding for childs If a value is Swag.F32.Inf, then it won't be changed.

func setPadding(me, left, top, right, bottom: f32 = Swag.F32.Inf)

func Wnd.setParent [src]

Set window parent.

func setParent(me, who: *Wnd)

func Wnd.setPosition [src]

Move and size the wnd.

func setPosition(me, rect: Math.Rectangle, computeLayout = true) func setPosition(me, x, y, w, h: f32, computeLayout = true)

func Wnd.show [src]

Show the window.

func show(me, b = true)

func Wnd.surfaceToLocal [src]

Convert a surface coordinate to a local coordinate (relative to me).

func surfaceToLocal(const me, pos: Math.Point)->Core.Math.Point

func Wnd.updateCommandState [src]

Main function to update command state of various windows/widgets.

func updateCommandState(me)

This will update the state of this window, and all of its childs

enum Gui.WndFlags [src]

Zero
NoScroll
ClipChildren
Disabled
Hidden
PreChildsPaint
PostChildsPaint
TopMost

struct Gui.WrapLayoutCtrl [src]

using wnd Wnd
spacing f32
wrapWidth f32
wrapHeight f32
resultHeight f32

Functions

computeLayout Recompute layout of all childs.
create Create a layout control.

func IWnd.onResizeEvent [src]

func onResizeEvent(me, evt: *ResizeEvent)

func WrapLayoutCtrl.computeLayout [src]

Recompute layout of all childs.

func computeLayout(me)

func WrapLayoutCtrl.create [src]

Create a layout control.

func create(parent: *Wnd, position: Math.Rectangle = {})->*WrapLayoutCtrl

func Gui.newCmdId [src]

#[Swag.Macro] func newCmdId(val: string)
Generated on 12-10-2025 with swag 0.45.0