Widget list holder.
Base class for all widgets.
Base class for widgets which have children.
WidgetGroup with default drawing of children (just draw all children)
standard mouse cursor types
focus movement options
Visibility (see Android View Visibility)
use in mixin to set this object property with name propName with value of variable value if variable name matches propName
use in mixin to set this object properties with names from parameter list with value of variable value if variable name matches propName
use in mixin for method override to set this object properties with names from parameter list with value of variable value if variable name matches propName
interface - slot for onAction
interface - slot for onCheckChanged
interface - slot for onClick
Interface slot for OnDoubleClick
interface - slot for onFocusChanged
interface - slot for keyToAction
interface - slot for onKey
interface - slot for onMouse
mixin this to widget class to support tooltips based on widget's action label
Helper to handle animation progress
helper for locating items in list, tree, table or other controls by typing their name
Synopsis:
import dlangui.widgets.widget; // access attributes as properties auto w = new Widget("id1"); w.backgroundColor = 0xFFFF00; w.layoutWidth = FILL_PARENT; w.layoutHeight = FILL_PARENT; w.padding(Rect(10,10,10,10)); // same, but using chained method call auto w = new Widget("id1").backgroundColor(0xFFFF00).layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT).padding(Rect(10,10,10,10));
Boost License 1.0
Vadim Lopatin, 2014
This module contains declaration of Widget class - base class for all widgets.
Widgets are styleable. Use styleId property to set style to use from current Theme.
When any of styleable attributes is being overriden, widget's own copy of style is being created to hold modified attributes (defaults to parent style).
Two phase layout model (like in Android UI) is used - measure() call is followed by layout() is used to measure and layout widget and its children.abstract
Method onDraw will be called to draw widget on some surface. Widget.onDraw() draws widget background (if any).