Drag[en]gine Script Module DragonScript
1.23
|
Default implementation of WidgetDesigner for Button. More...
Public Member Functions | |
WidgetDesigner | copyDesigner () |
Create copy of designer. More... | |
StateDesign | getDesignPressed () |
Design for pressed state. More... | |
DefaultButtonDesigner | new () |
Create new button designer. More... | |
DefaultButtonDesigner | new (DefaultButtonDesigner designer) |
Create copy of widget designer. More... | |
void | setParameter (String name, Object value) |
Set parameter. 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... | |
Public Attributes | |
StateDesign | pDesignPressed |
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.
WidgetDesigner Dragengine.Gui.Designers.DefaultButtonDesigner.copyDesigner | ( | ) |
Create copy of designer.
Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.
Reimplemented in Dragengine.Gui.Designers.DefaultOptionBoxDesigner, and Dragengine.Gui.Designers.DefaultCheckBoxDesigner.
StateDesign Dragengine.Gui.Designers.DefaultButtonDesigner.getDesignPressed | ( | ) |
Design for pressed state.
|
protected |
Get state for parameter name selector component or null if not found.
Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.
DefaultButtonDesigner Dragengine.Gui.Designers.DefaultButtonDesigner.new | ( | ) |
Create new button designer.
Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.
Reimplemented in Dragengine.Gui.Designers.DefaultOptionBoxDesigner, and Dragengine.Gui.Designers.DefaultCheckBoxDesigner.
DefaultButtonDesigner Dragengine.Gui.Designers.DefaultButtonDesigner.new | ( | DefaultButtonDesigner | designer | ) |
Create copy of widget designer.
|
protected |
Set design for pressed state.
void Dragengine.Gui.Designers.DefaultButtonDesigner.setParameter | ( | String | name, |
Object | value | ||
) |
Set parameter.
See DefaultWidgetDesigner.setParameter for supported parameters.
Additional supported states:
name | value |
---|---|
pressed | Widget is in pressed state |
Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.
Reimplemented in Dragengine.Gui.Designers.DefaultOptionBoxDesigner, and Dragengine.Gui.Designers.DefaultCheckBoxDesigner.
|
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.
StateDesign Dragengine.Gui.Designers.DefaultButtonDesigner.pDesignPressed |