Drag[en]gine Script Module DragonScript  1.23
Dragengine.Gui.Designers.DefaultButtonWidgetDesigner Class Reference

Default implementation of WidgetDesigner for Button children. More...

Inheritance diagram for Dragengine.Gui.Designers.DefaultButtonWidgetDesigner:
Dragengine.Gui.Designers.DefaultWidgetDesigner Dragengine.Gui.Designers.WidgetDesigner

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...
 

Detailed Description

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.

Member Function Documentation

◆ copyDesigner()

WidgetDesigner Dragengine.Gui.Designers.DefaultButtonWidgetDesigner.copyDesigner ( )

Create copy of designer.

Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.

◆ getDesignPressed()

StateDesign Dragengine.Gui.Designers.DefaultButtonWidgetDesigner.getDesignPressed ( )

Design for pressed state.

◆ getNamedStateDesign()

StateDesign Dragengine.Gui.Designers.DefaultButtonWidgetDesigner.getNamedStateDesign ( String  stateName)
protected

Get state for parameter name selector component or null if not found.

Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.

◆ getParentButton()

Button Dragengine.Gui.Designers.DefaultButtonWidgetDesigner.getParentButton ( Widget  widget)

Find parent button instance or null if absent.

◆ new() [1/2]

DefaultButtonWidgetDesigner Dragengine.Gui.Designers.DefaultButtonWidgetDesigner.new ( )

Create new list box element designer.

Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.

◆ new() [2/2]

DefaultButtonWidgetDesigner Dragengine.Gui.Designers.DefaultButtonWidgetDesigner.new ( DefaultButtonWidgetDesigner  designer)

Create copy of widget designer.

◆ setDesignPressed()

void Dragengine.Gui.Designers.DefaultButtonWidgetDesigner.setDesignPressed ( StateDesign  design)
protected

Set design for pressed state.

◆ widgetStateFindDesign()

StateDesign Dragengine.Gui.Designers.DefaultButtonWidgetDesigner.widgetStateFindDesign ( Widget  widget)
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.


The documentation for this class was generated from the following file: