Drag[en]gine Script Module DragonScript
1.21
|
Design for a particular widget state. More...
Public Member Functions | |
void | apply (Widget widget) |
Apply state design to widget. More... | |
StateDesign | copyDesign () |
Create copy of state. More... | |
BorderFactory | getBorderFactory () |
Border factory or null. More... | |
CanvasCreator | getCanvasCreator () |
Canvas creator or null. More... | |
Font | getFont () |
Font or null. More... | |
Point | getMinimumSize () |
Minimum widget size or null. More... | |
MousePointerFactory | getMousePointerFactory () |
Mouse pointer factory or null. More... | |
BorderSize | getPadding () |
Padding or null. More... | |
Color | getTextColor () |
Text color or null. More... | |
void | merge (StateDesign state) |
Merge states. More... | |
StateDesign | new () |
Create state design. More... | |
StateDesign | new (StateDesign stateDesign) |
Create copy of state design. More... | |
void | setBorderFactory (BorderFactory borderFactory) |
Set border factory or null. More... | |
void | setCanvasCreator (CanvasCreator creator) |
Set canvas creator or null. More... | |
void | setFont (Font font) |
Set font or null. More... | |
void | setMinimumSize (Point size) |
Set minimum widget size or null. More... | |
void | setMousePointerFactory (MousePointerFactory factory) |
Mouse pointer factory or null. More... | |
void | setPadding (BorderSize padding) |
Set padding or null. More... | |
void | setParameter (String name, Object value) |
Set parameter. More... | |
void | setTextColor (Color color) |
Set text color or null. More... | |
Design for a particular widget state.
void Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.apply | ( | Widget | widget | ) |
Apply state design to widget.
This is typically called on a merged design to find the first defined parameters.
Reimplemented in Dragengine.Gui.Designers.DefaultVideoDesigner.VideoStateDesign, Dragengine.Gui.Designers.DefaultSliderDesigner.SliderStateDesign, Dragengine.Gui.Designers.DefaultProgressBarDesigner.ProgressBarStateDesign, Dragengine.Gui.Designers.DefaultOptionBoxDesigner.OptionBoxStateDesign, Dragengine.Gui.Designers.DefaultMenuItemToggleDesigner.MenuItemToggleStateDesign, Dragengine.Gui.Designers.DefaultMenuItemSubMenuDesigner.MenuItemSubMenuStateDesign, Dragengine.Gui.Designers.DefaultLabelDesigner.LabelStateDesign, Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign, and Dragengine.Gui.Designers.DefaultCheckBoxDesigner.CheckBoxStateDesign.
StateDesign Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.copyDesign | ( | ) |
Create copy of state.
Reimplemented in Dragengine.Gui.Designers.DefaultVideoDesigner.VideoStateDesign, Dragengine.Gui.Designers.DefaultSliderDesigner.SliderStateDesign, Dragengine.Gui.Designers.DefaultProgressBarDesigner.ProgressBarStateDesign, Dragengine.Gui.Designers.DefaultOptionBoxDesigner.OptionBoxStateDesign, Dragengine.Gui.Designers.DefaultMenuItemToggleDesigner.MenuItemToggleStateDesign, Dragengine.Gui.Designers.DefaultMenuItemSubMenuDesigner.MenuItemSubMenuStateDesign, Dragengine.Gui.Designers.DefaultLabelDesigner.LabelStateDesign, Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign, and Dragengine.Gui.Designers.DefaultCheckBoxDesigner.CheckBoxStateDesign.
BorderFactory Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.getBorderFactory | ( | ) |
Border factory or null.
CanvasCreator Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.getCanvasCreator | ( | ) |
Canvas creator or null.
Point Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.getMinimumSize | ( | ) |
Minimum widget size or null.
MousePointerFactory Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.getMousePointerFactory | ( | ) |
Mouse pointer factory or null.
BorderSize Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.getPadding | ( | ) |
Padding or null.
Color Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.getTextColor | ( | ) |
Text color or null.
void Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.merge | ( | StateDesign | state | ) |
Merge states.
Updates state with parameters of this state if defined. Used to find the first defined parameter for a series of states acting as fallback for each other.
StateDesign Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.new | ( | ) |
Create state design.
Reimplemented in Dragengine.Gui.Designers.DefaultVideoDesigner.VideoStateDesign, Dragengine.Gui.Designers.DefaultSliderDesigner.SliderStateDesign, Dragengine.Gui.Designers.DefaultProgressBarDesigner.ProgressBarStateDesign, Dragengine.Gui.Designers.DefaultOptionBoxDesigner.OptionBoxStateDesign, Dragengine.Gui.Designers.DefaultMenuItemToggleDesigner.MenuItemToggleStateDesign, Dragengine.Gui.Designers.DefaultMenuItemSubMenuDesigner.MenuItemSubMenuStateDesign, Dragengine.Gui.Designers.DefaultLabelDesigner.LabelStateDesign, Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign, and Dragengine.Gui.Designers.DefaultCheckBoxDesigner.CheckBoxStateDesign.
StateDesign Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.new | ( | StateDesign | stateDesign | ) |
Create copy of state design.
void Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.setBorderFactory | ( | BorderFactory | borderFactory | ) |
Set border factory or null.
void Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.setCanvasCreator | ( | CanvasCreator | creator | ) |
Set canvas creator or null.
void Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.setFont | ( | Font | font | ) |
Set font or null.
void Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.setMinimumSize | ( | Point | size | ) |
Set minimum widget size or null.
void Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.setMousePointerFactory | ( | MousePointerFactory | factory | ) |
Mouse pointer factory or null.
void Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.setPadding | ( | BorderSize | padding | ) |
Set padding or null.
void Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.setParameter | ( | String | name, |
Object | value | ||
) |
Set parameter.
Supported parameters:
| name | value | Setter | | canvas | CanvasCreator | setCanvasCreator | | border | BorderFactory | setBorderFactory | | font | Font | setFont | | textColor | Color | setTextColor | | padding | BorderSize | setPadding | | minimumSize | Point | setMinimumSize | | mousePointer | MousePointerFactory | setMousePointerFactory |
Reimplemented in Dragengine.Gui.Designers.DefaultVideoDesigner.VideoStateDesign, Dragengine.Gui.Designers.DefaultSliderDesigner.SliderStateDesign, Dragengine.Gui.Designers.DefaultProgressBarDesigner.ProgressBarStateDesign, Dragengine.Gui.Designers.DefaultOptionBoxDesigner.OptionBoxStateDesign, Dragengine.Gui.Designers.DefaultMenuItemToggleDesigner.MenuItemToggleStateDesign, Dragengine.Gui.Designers.DefaultMenuItemSubMenuDesigner.MenuItemSubMenuStateDesign, Dragengine.Gui.Designers.DefaultLabelDesigner.LabelStateDesign, Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign, and Dragengine.Gui.Designers.DefaultCheckBoxDesigner.CheckBoxStateDesign.
void Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.setTextColor | ( | Color | color | ) |
Set text color or null.