- _idstring _id; 
- _posRect _pos; 
- current widget position, set by layout() 
- _visibilityVisibility _visibility; 
- widget visibility: either Visible, Invisible, Gone 
- _styleIdstring _styleId; 
- style id to lookup style in theme 
- _ownStyleStyle _ownStyle; 
- own copy of style - to override some of style properties, null of no properties overriden 
- _stateuint _state; 
- widget state (set of flags from State enum) 
- _measuredWidthint _measuredWidth; 
- width measured by measure() 
- _measuredHeightint _measuredHeight; 
- height measured by measure() 
- _needLayoutbool _needLayout; 
- _needDrawbool _needDraw; 
- _parentWidget _parent; 
- _windowWindow _window; 
- window (to be used for top level widgets only!) 
- _trackHoverbool _trackHover; 
- does widget need to track mouse Hover 
- trackHoverbool trackHover [@property getter] 
- mouse movement processing flag (when true, widget will change Hover state while mouse is moving) 
- trackHoverbool trackHover [@property setter] 
- set new trackHover flag value (when true, widget will change Hover state while mouse is moving) 
- getCursorTypeuint getCursorType(int x, int y) 
- returns mouse cursor type for widget 
- instanceCountint instanceCount [@property getter] 
- for debug purposes - number of created widget objects, not yet destroyed 
- ~this~this() 
- Undocumented in source. 
- styleconst(Style) style [@property getter] 
- accessor to style - by lookup in theme by styleId (if style id is not set, theme base style will be used). 
- styleuint style [@property setter] 
- accessor to style - by lookup in theme by styleId (if style id is not set, theme base style will be used). 
- stateStyleconst(Style) stateStyle [@property getter] 
- returns style for current widget state 
- ownStyleStyle ownStyle [@property getter] 
- enforces widget's own style - allows override some of style properties 
- onThemeChangedvoid onThemeChanged() 
- handle theme change: e.g. reload some themed resources 
- idstring id [@property getter] 
- returns widget id, null if not set 
- idstring id [@property setter] 
- compareIdbool compareId(string id) 
- compare widget id with specified value, returs true if matches 
- stateuint state [@property getter] 
- widget state (set of flags from State enum) 
- handleFocusChangevoid handleFocusChange(bool focused, bool receivedFocusFromKeyboard) 
- override to handle focus changes 
- handleCheckChangevoid handleCheckChange(bool checked) 
- override to handle check changes 
- stateuint state [@property setter] 
- set new widget state (set of flags from State enum) 
- setStateuint setState [@property setter] 
- add state flags (set of flags from State enum) 
- resetStateuint resetState [@property setter] 
- remove state flags (set of flags from State enum) 
- styleIdstring styleId [@property getter] 
- returns widget style id, null if not set 
- styleIdstring styleId [@property setter] 
- marginsRect margins [@property getter] 
- get margins (between widget bounds and its background) 
- marginsRect margins [@property setter] 
- set margins for widget - override one from style 
- marginsint margins [@property setter] 
- set margins for widget with the same value for left, top, right, bottom - override one from style 
- FOCUS_RECT_PADDINGenum FOCUS_RECT_PADDING; 
- Undocumented in source. 
- paddingRect padding [@property getter] 
- get padding (between background bounds and content of widget) 
- paddingRect padding [@property setter] 
- set padding for widget - override one from style 
- paddingint padding [@property setter] 
- set padding for widget to the same value for left, top, right, bottom - override one from style 
- backgroundColoruint backgroundColor [@property getter] 
- backgroundColoruint backgroundColor [@property setter] 
- set background color for widget - override one from style 
- backgroundColorstring backgroundColor [@property setter] 
- set background color for widget - from string like "#5599CC" or "white" 
- backgroundImageIdstring backgroundImageId [@property getter] 
- backgroundImageIdstring backgroundImageId [@property setter] 
- focusRectColorsconst(uint[]) focusRectColors [@property getter] 
- returns colors to draw focus rectangle (one for solid, two for vertical gradient) or null if no focus rect should be drawn for style 
- _backgroundDrawableDrawableRef _backgroundDrawable; 
- Undocumented in source. 
- backgroundDrawableDrawableRef backgroundDrawable [@property getter] 
- backgroundDrawableDrawableRef backgroundDrawable [@property setter] 
- alphauint alpha [@property getter] 
- widget drawing alpha value (0=opaque .. 255=transparent) 
- alphauint alpha [@property setter] 
- set widget drawing alpha value (0=opaque .. 255=transparent) 
- textColoruint textColor [@property getter] 
- get text color (ARGB 32 bit value) 
- textColoruint textColor [@property setter] 
- set text color (ARGB 32 bit value) 
- textColorstring textColor [@property setter] 
- set text color for widget - from string like "#5599CC" or "white" 
- textFlagsuint textFlags [@property getter] 
- get text flags (bit set of TextFlag enum values) 
- textFlagsuint textFlags [@property setter] 
- set text flags (bit set of TextFlag enum values) 
- fontFacestring fontFace [@property getter] 
- fontFacestring fontFace [@property setter] 
- set font face for widget - override one from style 
- fontItalicbool fontItalic [@property getter] 
- returns font style (italic/normal) 
- fontItalicbool fontItalic [@property setter] 
- set font style (italic/normal) for widget - override one from style 
- fontWeightushort fontWeight [@property getter] 
- fontWeightint fontWeight [@property setter] 
- set font weight for widget - override one from style 
- fontSizeint fontSize [@property getter] 
- returns font size in pixels 
- fontSizeint fontSize [@property setter] 
- set font size for widget - override one from style 
- fontFamilyFontFamily fontFamily [@property getter] 
- fontFamilyFontFamily fontFamily [@property setter] 
- set font family for widget - override one from style 
- alignmentubyte alignment [@property getter] 
- returns alignment (combined vertical and horizontal) 
- alignmentubyte alignment [@property setter] 
- sets alignment (combined vertical and horizontal) 
- valignAlign valign [@property getter] 
- returns horizontal alignment 
- halignAlign halign [@property getter] 
- returns vertical alignment 
- fontFontRef font [@property getter] 
- returns font set for widget using style or set manually 
- textdstring text [@property getter] 
- returns widget content text (override to support this) 
- textdstring text [@property setter] 
- sets widget content text (override to support this) 
- textUIString text [@property setter] 
- sets widget content text (override to support this) 
- handleFontChangedvoid handleFontChanged() 
- override to handle font changes 
- needLayoutbool needLayout [@property getter] 
- returns true if layout is required for widget and its children 
- needDrawbool needDraw [@property getter] 
- returns true if redraw is required for widget and its children 
- animatingbool animating [@property getter] 
- returns true is widget is being animated - need to call animate() and redraw 
- animatevoid animate(long interval) 
- animates window; interval is time left from previous draw, in hnsecs (1/10000000 of second) 
- measuredWidth measuredWidth [@property getter] 
- returns measured width (calculated during measure() call) 
- measuredHeight measuredHeight [@property getter] 
- returns measured height (calculated during measure() call) 
- widthint width [@property getter] 
- returns current width of widget in pixels 
- heightint height [@property getter] 
- returns current height of widget in pixels 
- topint top [@property getter] 
- returns widget rectangle top position 
- leftint left [@property getter] 
- returns widget rectangle left position 
- posRect pos [@property getter] 
- minWidthint minWidth [@property getter] 
- returns min width constraint 
- maxWidthint maxWidth [@property getter] 
- returns max width constraint (SIZE_UNSPECIFIED if no constraint set) 
- minHeightint minHeight [@property getter] 
- returns min height constraint 
- maxHeightint maxHeight [@property getter] 
- returns max height constraint (SIZE_UNSPECIFIED if no constraint set) 
- maxWidthint maxWidth [@property setter] 
- set max width constraint (SIZE_UNSPECIFIED for no constraint) 
- minWidthint minWidth [@property setter] 
- set max width constraint (0 for no constraint) 
- maxHeightint maxHeight [@property setter] 
- set max height constraint (SIZE_UNSPECIFIED for no constraint) 
- minHeightint minHeight [@property setter] 
- set max height constraint (0 for no constraint) 
- layoutWidthint layoutWidth [@property getter] 
- returns layout width options (WRAP_CONTENT, FILL_PARENT, some constant value or percent but only for one widget in layout) 
- layoutHeightint layoutHeight [@property getter] 
- returns layout height options (WRAP_CONTENT, FILL_PARENT, some constant value or percent but only for one widget in layout) 
- layoutWeightint layoutWeight [@property getter] 
- returns layout weight (while resizing to fill parent, widget will be resized proportionally to this value) 
- layoutWidthint layoutWidth [@property setter] 
- sets layout width options (WRAP_CONTENT, FILL_PARENT, or some constant value) 
- layoutHeightint layoutHeight [@property setter] 
- sets layout height options (WRAP_CONTENT, FILL_PARENT, or some constant value) 
- layoutWeightint layoutWeight [@property setter] 
- sets layout weight (while resizing to fill parent, widget will be resized proportionally to this value) 
- fillParentWidget fillParent() 
- sets layoutWidth=FILL_PARENT and layoutHeight=FILL_PARENT 
- fillHorizontalWidget fillHorizontal() 
- sets layoutWidth=FILL_PARENT 
- fillVerticalWidget fillVertical() 
- sets layoutHeight=FILL_PARENT 
- visibilityVisibility visibility [@property getter] 
- returns widget visibility (Visible, Invisible, Gone) 
- visibilityVisibility visibility [@property setter] 
- sets widget visibility (Visible, Invisible, Gone) 
- isPointInsidebool isPointInside(int x, int y) 
- returns true if point is inside of this widget 
- isPointInsidebool isPointInside(Point pt) 
- enabledbool enabled [@property getter] 
- return true if state has State.Enabled flag set 
- enabledbool enabled [@property setter] 
- _clickablebool _clickable; 
- Undocumented in source. 
- clickablebool clickable [@property getter] 
- when true, user can click this control, and get onClick listeners called 
- clickablebool clickable [@property setter] 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- canClickbool canClick [@property getter] 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- _checkablebool _checkable; 
- Undocumented in source. 
- checkablebool checkable [@property getter] 
- when true, control supports Checked state 
- checkablebool checkable [@property setter] 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- canCheckbool canCheck [@property getter] 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- _checkedbool _checked; 
- Undocumented in source. 
- checkedbool checked [@property getter] 
- checkedbool checked [@property setter] 
- _focusablebool _focusable; 
- Undocumented in source. 
- focusablebool focusable [@property getter] 
- whether widget can be focused 
- focusablebool focusable [@property setter] 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- focusedbool focused [@property getter] 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- wantsKeyTrackingbool wantsKeyTracking [@property getter] 
- override and return true to track key events even when not focused 
- _actionAction _action; 
- Undocumented in source. 
- actionconst(Action) action [@property getter] 
- actionAction action [@property setter] 
- actionAction action [@property setter] 
- updateActionStatebool updateActionState(Action a, bool force, bool allowDefault) 
- ask for update state of some action (unles force=true, checks window flag actionsUpdateRequested), returns true if action state is changed 
- updateActionStatevoid updateActionState(bool force) 
- call to update state for action (if action is assigned for widget) 
- handleActionStateChangedvoid handleActionStateChanged() 
- called when state of action assigned on widget is changed 
- updateStateFromActionvoid updateStateFromAction(Action a) 
- apply enabled, visibile and checked state for this widget from action's state 
- requestActionsUpdatevoid requestActionsUpdate(bool immediateUpdate) 
- set action update request flag, will be cleared after redraw 
- _tooltipTextUIString _tooltipText; 
- Undocumented in source. 
- tooltipTextdstring tooltipText [@property getter] 
- tooltip text - when not empty, widget will show tooltips automatically; for advanced tooltips - override hasTooltip and createTooltip 
- tooltipTextdstring tooltipText [@property setter] 
- tooltip text - when not empty, widget will show tooltips automatically; for advanced tooltips - override hasTooltip and createTooltip 
- tooltipTextUIString tooltipText [@property setter] 
- tooltip text - when not empty, widget will show tooltips automatically; for advanced tooltips - override hasTooltip and createTooltip 
- hasTooltipbool hasTooltip [@property getter] 
- returns true if widget has tooltip to show 
- createTooltipWidget createTooltip(int mouseX, int mouseY, uint alignment, int x, int y) 
- will be called from window once tooltip request timer expired; if null is returned, popup will not be shown; you can change alignment and position of popup here 
- scheduleTooltipvoid scheduleTooltip(long delay, uint alignment, int x, int y) 
- _focusGroupbool _focusGroup; 
- Undocumented in source. 
- focusGroupbool focusGroup [@property getter] 
- When focus group is set for some parent widget, focus from one of containing widgets can be moved using keyboard only to one of other widgets containing in it and cannot bypass bounds of focusGroup. 
- focusGroupbool focusGroup [@property setter] 
- set focus group flag for container widget 
- focusGroupFocusedbool focusGroupFocused [@property getter] 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- setWindowFocusedFlagbool setWindowFocusedFlag(bool flg) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- focusGroupFocusedbool focusGroupFocused [@property setter] 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- focusGroupWidgetWidget focusGroupWidget() 
- find nearest parent of this widget with focusGroup flag, returns topmost parent if no focusGroup flag set to any of parents. 
- _tabOrderushort _tabOrder; 
- Undocumented in source. 
- tabOrderushort tabOrder [@property getter] 
- tab order - hint for focus movement using Tab/Shift+Tab 
- tabOrderushort tabOrder [@property setter] 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- handleMoveFocusUsingKeysbool handleMoveFocusUsingKeys(KeyEvent event) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- visiblebool visible [@property getter] 
- returns true if this widget and all its parents are visible 
- canFocusbool canFocus [@property getter] 
- returns true if widget is focusable and visible and enabled 
- setFocusWidget setFocus(FocusReason reason) 
- sets focus to this widget or suitable focusable child, returns previously focused widget 
- findFocusableChildWidget findFocusableChild(bool defaultOnly) 
- searches children for first focusable item, returns null if not found 
- hideSoftKeyboardvoid hideSoftKeyboard() 
- showSoftKeyboardvoid showSoftKeyboard() 
- Shows system virtual keyabord where applicable 
- _acceleratorMapActionMap _acceleratorMap; 
- Undocumented in source. 
- acceleratorMapActionMap acceleratorMap [@property getter] 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- handleActionbool handleAction(Action a) 
- override to handle specific actions 
- handleActionStateRequestbool handleActionStateRequest(Action a) 
- override to handle specific actions state (e.g. change enabled state for supported actions) 
- dispatchActionbool dispatchAction(Action a) 
- handleClickbool handleClick() 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- handleDoubleClickbool handleDoubleClick() 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- cancelLayoutvoid cancelLayout() 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- setTimerulong setTimer(long intervalMillis) 
- set new timer to call onTimer() after specified interval (for recurred notifications, return true from onTimer) 
- cancelTimervoid cancelTimer(ulong timerId) 
- cancel timer - pass value returned from setTimer() as timerId parameter 
- onTimerbool onTimer(ulong id) 
- handle timer; return true to repeat timer event after next interval, false cancel timer 
- findKeyActionAction findKeyAction(uint keyCode, uint flags) 
- onKeyEventbool onKeyEvent(KeyEvent event) 
- process key event, return true if event is processed. 
- onEventbool onEvent(CustomEvent event) 
- executeInUiThreadvoid executeInUiThread(void delegate() runnable) 
- execute delegate later in UI thread if this widget will be still available (can be used to modify UI from background thread, or just to postpone execution of action) 
- onMouseEventbool onMouseEvent(MouseEvent event) 
- process mouse event; return true if event is processed by widget. 
- clickSignal!OnClickHandler click; 
- on click event listener (bool delegate(Widget)) 
- doubleClickSignal!OnDoubleClickHandler doubleClick; 
- On double click event listener (bool delegate(Widget)) 
- checkChangeSignal!OnCheckHandler checkChange; 
- checked state change event listener (bool delegate(Widget, bool)) 
- focusChangeSignal!OnFocusHandler focusChange; 
- focus state change event listener (bool delegate(Widget, bool)) 
- keyEventSignal!OnKeyHandler keyEvent; 
- key event listener (bool delegate(Widget, KeyEvent)) - return true if event is processed by handler 
- keyToActionListener!OnKeyActionHandler keyToAction; 
- action by key lookup handler 
- onActionSignal!OnActionHandler onAction; 
- mouseEventSignal!OnMouseHandler mouseEvent; 
- mouse event listener (bool delegate(Widget, MouseEvent)) - return true if event is processed by handler 
- addOnClickListenerWidget addOnClickListener(bool delegate(Widget) listener) 
- helper function to add onCheckChangeListener in method chain 
- addOnCheckChangeListenerWidget addOnCheckChangeListener(bool delegate(Widget, bool) listener) 
- helper function to add onCheckChangeListener in method chain 
- addOnFocusChangeListenerWidget addOnFocusChangeListener(bool delegate(Widget, bool) listener) 
- helper function to add onFocusChangeListener in method chain 
- requestLayoutvoid requestLayout() 
- request relayout of widget and its children 
- invalidatevoid invalidate() 
- measuredContentvoid measuredContent(int parentWidth, int parentHeight, int contentWidth, int contentHeight) 
- helper function for implement measure() when widget's content dimensions are known 
- measurevoid measure(int parentWidth, int parentHeight) 
- Measure widget according to desired width and height constraints. (Step 1 of two phase layout). 
- layoutvoid layout(Rect rc) 
- Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout). 
- drawFocusRectvoid drawFocusRect(DrawBuf buf, Rect rc) 
- draws focus rectangle, if enabled in styles 
- onDrawvoid onDraw(DrawBuf buf) 
- Draw widget at its position to buffer 
- applyMarginsvoid applyMargins(Rect rc) 
- Helper function: applies margins to rectangle 
- applyPaddingvoid applyPadding(Rect rc) 
- Helper function: applies padding to rectangle 
- applyAlignvoid applyAlign(Rect rc, Point sz, Align ha, Align va) 
- Applies alignment for content of size sz - set rectangle rc to aligned value of content inside of initial value of rc. 
- applyAlignvoid applyAlign(Rect rc, Point sz) 
- Applies alignment for content of size sz - set rectangle rc to aligned value of content inside of initial value of rc. 
- onMenuItemActionbool onMenuItemAction(Action action) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- _popupMenuMenuItem _popupMenu; 
- Undocumented in source. 
- popupMenuMenuItem popupMenu [@property getter] 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- popupMenuMenuItem popupMenu [@property setter] 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- canShowPopupMenubool canShowPopupMenu(int x, int y) 
- returns true if widget can show popup menu (e.g. by mouse right click at point x,y) 
- showPopupMenuvoid showPopupMenu(int x, int y) 
- shows popup menu at (x,y) 
- isActionEnabledbool isActionEnabled(Action action) 
- override to change popup menu items state 
- childCountint childCount [@property getter] 
- returns number of children of this widget 
- childinout(Widget) child(int index) 
- addChildWidget addChild(Widget item) 
- adds child, returns added item 
- addChildrenWidget addChildren(Widget[] items) 
- adds child, returns added item 
- insertChildWidget insertChild(Widget item, int index) 
- inserts child at given index, returns inserted item 
- removeChildWidget removeChild(int index) 
- removes child, returns removed item 
- removeChildWidget removeChild(string id) 
- removes child by ID, returns removed item 
- removeChildWidget removeChild(Widget child) 
- removes child, returns removed item 
- childIndexint childIndex(Widget item) 
- returns index of widget in child list, -1 if passed widget is not a child of this widget 
- isChildbool isChild(Widget item, bool deepSearch) 
- returns true if item is child of this widget (when deepSearch == true - returns true if item is this widget or one of children inside children tree). 
- childByIdT childById(string id, bool deepSearch) 
- find child of specified type T by id, returns null if not found or cannot be converted to type T 
- parentWidget parent [@property getter] 
- returns parent widget, null for top level widget 
- parentWidget parent [@property setter] 
- windowWindow window [@property getter] 
- returns window (if widget or its parent is attached to window) 
- windowWindow window [@property setter] 
- sets window (to be used for top level widget from Window implementation). TODO: hide it from API? 
- removeAllChildrenvoid removeAllChildren(bool destroyObj) 
- Undocumented in source. Be warned that the author may not have intended to support it. 
- setStringPropertybool setStringProperty(string name, string value) 
- set string property value, for ML loaders 
- setDstringPropertybool setDstringProperty(string name, dstring value) 
- set string property value, for ML loaders 
- setUistringPropertybool setUistringProperty(string name, UIString value) 
- set string property value, for ML loaders 
- setStringListValueListPropertybool setStringListValueListProperty(string propName, StringListValue[] values) 
- StringListValue list values 
- setUIStringListPropertybool setUIStringListProperty(string propName, UIString[] values) 
- setBoolPropertybool setBoolProperty(string name, bool value) 
- set string property value, for ML loaders 
- setDoublePropertybool setDoubleProperty(string name, double value) 
- set double property value, for ML loaders 
- setIntPropertybool setIntProperty(string name, int value) 
- set int property value, for ML loaders 
- setRectPropertybool setRectProperty(string name, Rect value) 
- set Rect property value, for ML loaders