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

Default implementation of WidgetDesigner for Button. More...

Inheritance diagram for Dragengine.Gui.Designers.DefaultButtonDesigner:
Dragengine.Gui.Designers.DefaultWidgetDesigner Dragengine.Gui.Designers.WidgetDesigner Dragengine.Gui.Designers.DefaultCheckBoxDesigner Dragengine.Gui.Designers.DefaultOptionBoxDesigner

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

Detailed Description

Default implementation of WidgetDesigner for Button.

Member Function Documentation

◆ copyDesigner()

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

◆ getDesignPressed()

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

Design for pressed state.

◆ getNamedStateDesign()

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

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

Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.

◆ new() [1/2]

DefaultButtonDesigner Dragengine.Gui.Designers.DefaultButtonDesigner.new ( )

◆ new() [2/2]

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

Create copy of widget designer.

◆ setDesignPressed()

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

Set design for pressed state.

◆ setParameter()

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.

◆ widgetStateFindDesign()

StateDesign Dragengine.Gui.Designers.DefaultButtonDesigner.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.

Member Data Documentation

◆ pDesignPressed

StateDesign Dragengine.Gui.Designers.DefaultButtonDesigner.pDesignPressed

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