show title?
set title to show
set title to show
get title value
widget id
current widget position, set by layout()
widget visibility: either Visible, Invisible, Gone
style id to lookup style in theme
own copy of style - to override some of style properties, null of no properties overriden
widget state (set of flags from State enum)
width measured by measure()
height measured by measure()
true to force layout
true to force redraw
parent widget
window (to be used for top level widgets only!)
does widget need to track mouse Hover
mouse movement processing flag (when true, widget will change Hover state while mouse is moving)
set new trackHover flag value (when true, widget will change Hover state while mouse is moving)
returns mouse cursor type for widget
for debug purposes - number of created widget objects, not yet destroyed
accessor to style - by lookup in theme by styleId (if style id is not set, theme base style will be used).
accessor to style - by lookup in theme by styleId (if style id is not set, theme base style will be used).
returns style for current widget state
enforces widget's own style - allows override some of style properties
handle theme change: e.g. reload some themed resources
returns widget id, null if not set
set widget id
compare widget id with specified value, returs true if matches
widget state (set of flags from State enum)
override to handle focus changes
override to handle check changes
set new widget state (set of flags from State enum)
add state flags (set of flags from State enum)
remove state flags (set of flags from State enum)
returns widget style id, null if not set
set widget style id
get margins (between widget bounds and its background)
set margins for widget - override one from style
set margins for widget with the same value for left, top, right, bottom - override one from style
get padding (between background bounds and content of widget)
set padding for widget - override one from style
set padding for widget to the same value for left, top, right, bottom - override one from style
returns background color
set background color for widget - override one from style
set background color for widget - from string like "#5599CC" or "white"
background image id
background image id
returns colors to draw focus rectangle (one for solid, two for vertical gradient) or null if no focus rect should be drawn for style
background drawable
background drawable
widget drawing alpha value (0=opaque .. 255=transparent)
set widget drawing alpha value (0=opaque .. 255=transparent)
get text color (ARGB 32 bit value)
set text color (ARGB 32 bit value)
set text color for widget - from string like "#5599CC" or "white"
get text flags (bit set of TextFlag enum values)
set text flags (bit set of TextFlag enum values)
returns font face
set font face for widget - override one from style
returns font style (italic/normal)
set font style (italic/normal) for widget - override one from style
returns font weight
set font weight for widget - override one from style
returns font size in pixels
set font size for widget - override one from style
returns font family
set font family for widget - override one from style
returns alignment (combined vertical and horizontal)
sets alignment (combined vertical and horizontal)
returns horizontal alignment
returns vertical alignment
returns font set for widget using style or set manually
returns widget content text (override to support this)
sets widget content text (override to support this)
sets widget content text (override to support this)
override to handle font changes
returns true if layout is required for widget and its children
returns true if redraw is required for widget and its children
returns true is widget is being animated - need to call animate() and redraw
animates window; interval is time left from previous draw, in hnsecs (1/10000000 of second)
returns measured width (calculated during measure() call)
returns measured height (calculated during measure() call)
returns current width of widget in pixels
returns current height of widget in pixels
returns widget rectangle top position
returns widget rectangle left position
returns widget rectangle
returns min width constraint
returns max width constraint (SIZE_UNSPECIFIED if no constraint set)
returns min height constraint
returns max height constraint (SIZE_UNSPECIFIED if no constraint set)
set max width constraint (SIZE_UNSPECIFIED for no constraint)
set max width constraint (0 for no constraint)
set max height constraint (SIZE_UNSPECIFIED for no constraint)
set max height constraint (0 for no constraint)
returns layout width options (WRAP_CONTENT, FILL_PARENT, some constant value or percent but only for one widget in layout)
returns layout height options (WRAP_CONTENT, FILL_PARENT, some constant value or percent but only for one widget in layout)
returns layout weight (while resizing to fill parent, widget will be resized proportionally to this value)
sets layout width options (WRAP_CONTENT, FILL_PARENT, or some constant value)
sets layout height options (WRAP_CONTENT, FILL_PARENT, or some constant value)
sets layout weight (while resizing to fill parent, widget will be resized proportionally to this value)
sets layoutWidth=FILL_PARENT and layoutHeight=FILL_PARENT
sets layoutWidth=FILL_PARENT
sets layoutHeight=FILL_PARENT
returns widget visibility (Visible, Invisible, Gone)
sets widget visibility (Visible, Invisible, Gone)
returns true if point is inside of this widget
return true if state has State.Enabled flag set
change enabled state
when true, user can click this control, and get onClick listeners called
when true, control supports Checked state
get checked state
set checked state
whether widget can be focused
override and return true to track key events even when not focused
action to emit on click
action to emit on click
action to emit on click
ask for update state of some action (unles force=true, checks window flag actionsUpdateRequested), returns true if action state is changed
call to update state for action (if action is assigned for widget)
called when state of action assigned on widget is changed
apply enabled, visibile and checked state for this widget from action's state
set action update request flag, will be cleared after redraw
tooltip text - when not empty, widget will show tooltips automatically; for advanced tooltips - override hasTooltip and createTooltip
tooltip text - when not empty, widget will show tooltips automatically; for advanced tooltips - override hasTooltip and createTooltip
tooltip text - when not empty, widget will show tooltips automatically; for advanced tooltips - override hasTooltip and createTooltip
returns true if widget has tooltip to show
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
schedule tooltip
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.
set focus group flag for container widget
find nearest parent of this widget with focusGroup flag, returns topmost parent if no focusGroup flag set to any of parents.
tab order - hint for focus movement using Tab/Shift+Tab
returns true if this widget and all its parents are visible
returns true if widget is focusable and visible and enabled
sets focus to this widget or suitable focusable child, returns previously focused widget
searches children for first focusable item, returns null if not found
override to handle specific actions
override to handle specific actions state (e.g. change enabled state for supported actions)
call to dispatch action
set new timer to call onTimer() after specified interval (for recurred notifications, return true from onTimer)
cancel timer - pass value returned from setTimer() as timerId parameter
handle timer; return true to repeat timer event after next interval, false cancel timer
map key to action
process key event, return true if event is processed.
handle custom event
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)
process mouse event; return true if event is processed by widget.
on click event listener (bool delegate(Widget))
checked state change event listener (bool delegate(Widget, bool))
focus state change event listener (bool delegate(Widget, bool))
key event listener (bool delegate(Widget, KeyEvent)) - return true if event is processed by handler
action by key lookup handler
action handlers
mouse event listener (bool delegate(Widget, MouseEvent)) - return true if event is processed by handler
helper function to add onCheckChangeListener in method chain
helper function to add onCheckChangeListener in method chain
helper function to add onFocusChangeListener in method chain
request relayout of widget and its children
request redraw
helper function for implement measure() when widget's content dimensions are known
Measure widget according to desired width and height constraints. (Step 1 of two phase layout).
Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout).
draws focus rectangle, if enabled in styles
Draw widget at its position to buffer
Helper function: applies margins to rectangle
Helper function: applies padding to rectangle
Applies alignment for content of size sz - set rectangle rc to aligned value of content inside of initial value of rc.
Applies alignment for content of size sz - set rectangle rc to aligned value of content inside of initial value of rc.
returns true if widget can show popup menu (e.g. by mouse right click at point x,y)
shows popup menu at (x,y)
override to change popup menu items state
returns number of children of this widget
returns child by index
adds child, returns added item
adds child, returns added item
inserts child at given index, returns inserted item
removes child, returns removed item
removes child by ID, returns removed item
removes child, returns removed item
returns index of widget in child list, -1 if passed widget is not a child of this widget
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).
find child of specified type T by id, returns null if not found or cannot be converted to type T
returns parent widget, null for top level widget
sets parent for widget
returns window (if widget or its parent is attached to window)
sets window (to be used for top level widget from Window implementation). TODO: hide it from API?
set string property value, for ML loaders
set string property value, for ML loaders
set string property value, for ML loaders
StringListValue list values
UIString list values
set string property value, for ML loaders
set double property value, for ML loaders
set int property value, for ML loaders
set Rect property value, for ML loaders