Drag[en]gine Script Module DragonScript
1.23
|
Default implementation of WidgetDesigner for Button children. More...
Public Member Functions | |
WidgetDesigner | copyDesigner () |
Create copy of designer. More... | |
StateDesign | getDesignPressed () |
Design for pressed state. More... | |
Button | getParentButton (Widget widget) |
Find parent button instance or null if absent. More... | |
DefaultButtonWidgetDesigner | new () |
Create new list box element designer. More... | |
DefaultButtonWidgetDesigner | new (DefaultButtonWidgetDesigner designer) |
Create copy of widget designer. More... | |
Public Member Functions inherited from Dragengine.Gui.Designers.DefaultWidgetDesigner | |
void | designWidget (Widget widget) |
Design widget. More... | |
StateDesign | getDesignDisabled () |
Design for disabled state. More... | |
StateDesign | getDesignFocused () |
Design for focused state. More... | |
StateDesign | getDesignFocusedHover () |
Design for focused hover state. More... | |
StateDesign | getDesignHover () |
Design for hover state. More... | |
StateDesign | getDesignNormal () |
Design for normal state. More... | |
Widget | getStateTrackWidget (Widget widget) |
Find state track widget. More... | |
DefaultWidgetDesigner | new (DefaultWidgetDesigner designer) |
Create copy of widget designer. More... | |
void | setParameter (String name, Object value) |
Set parameter. More... | |
Protected Member Functions | |
StateDesign | getNamedStateDesign (String stateName) |
Get state for parameter name selector component or null if not found. More... | |
void | setDesignPressed (StateDesign design) |
Set design for pressed state. More... | |
StateDesign | widgetStateFindDesign (Widget widget) |
Get design to apply to widget. More... | |
Protected Member Functions inherited from Dragengine.Gui.Designers.DefaultWidgetDesigner | |
void | setDesignDisabled (StateDesign design) |
Set design for disabled state. More... | |
void | setDesignFocused (StateDesign design) |
Set design for focused state. More... | |
void | setDesignFocusedHover (StateDesign design) |
Set design for focused hover state. More... | |
void | setDesignHover (StateDesign design) |
Set design for hover state. More... | |
void | setDesignNormal (StateDesign design) |
Set design for normal state. More... | |
Default implementation of WidgetDesigner for Button children.
Supports tracking the states of parent button. Overwrites designWidget() to apply the state designs matching the button state instead of the label state itself.
WidgetDesigner Dragengine.Gui.Designers.DefaultButtonWidgetDesigner.copyDesigner | ( | ) |
Create copy of designer.
Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.
StateDesign Dragengine.Gui.Designers.DefaultButtonWidgetDesigner.getDesignPressed | ( | ) |
Design for pressed state.
|
protected |
Get state for parameter name selector component or null if not found.
Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.
Find parent button instance or null if absent.
DefaultButtonWidgetDesigner Dragengine.Gui.Designers.DefaultButtonWidgetDesigner.new | ( | ) |
Create new list box element designer.
Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.
DefaultButtonWidgetDesigner Dragengine.Gui.Designers.DefaultButtonWidgetDesigner.new | ( | DefaultButtonWidgetDesigner | designer | ) |
Create copy of widget designer.
|
protected |
Set design for pressed state.
|
protected |
Get design to apply to widget.
Determines the state of the widget and the appropriate state design to use. The returned state design can be a set state design or a merge of multiple state designs using a fallback logic.
Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.