|
Drag[en]gine Script Module DragonScript 1.35
|
Design for a particular widget state. More...
Public Member Functions | |
| void | apply (Widget widget) |
| Apply state design to widget. | |
| DefaultWidgetDesigner.StateDesign | copyDesign () |
| Create copy of state. | |
| Integer | getAlignment () |
| Align.or null. | |
| void | merge (DefaultWidgetDesigner.StateDesign state) |
| Merge states. | |
| LabelStateDesign | new () |
| Create state design. | |
| LabelStateDesign | new (LabelStateDesign stateDesign) |
| Create copy of state design. | |
| void | setAlignment (Integer alignment) |
| Set alignment or null. | |
| void | setAlignmentFromString (String string) |
| Set alignment from string or null. | |
| Public Member Functions inherited from Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign | |
| BorderFactory | getBorderFactory () |
| Border factory or null. | |
| CanvasCreator | getCanvasCreator () |
| Canvas creator or null. | |
| Font | getFont () |
| Font or null. | |
| Point | getMinimumSize () |
| Minimum widget size or null. | |
| MousePointerFactory | getMousePointerFactory () |
| Mouse pointer factory or null. | |
| BorderSize | getPadding () |
| Padding or null. | |
| Color | getTextBorderColor () |
| Text border color or null. | |
| Float | getTextBorderThickness () |
| Text border thickness in percentage of the font size or null. | |
| Color | getTextColor () |
| Text color or null. | |
| Float | getTextDilation () |
| Text dilation in percentage of the font size or null. | |
| void | merge (StateDesign state) |
| Merge states. | |
| StateDesign | new (StateDesign stateDesign) |
| Create copy of state design. | |
| void | setBorderFactory (BorderFactory borderFactory) |
| Set border factory or null. | |
| void | setCanvasCreator (CanvasCreator creator) |
| Set canvas creator or null. | |
| void | setFont (Font font) |
| Set font or null. | |
| void | setMinimumSize (Point size) |
| Set minimum widget size or null. | |
| void | setMousePointerFactory (MousePointerFactory factory) |
| Mouse pointer factory or null. | |
| void | setPadding (BorderSize padding) |
| Set padding or null. | |
| void | setParameter (String name, Object value) |
| Set parameter. | |
| void | setTextBorderColor (Color color) |
| Set text border color or null. | |
| void | setTextBorderThickness (Float thickness) |
| Set text border thickness in percentage of the font size or null. | |
| void | setTextColor (Color color) |
| Set text color or null. | |
| void | setTextDilation (Float dilation) |
| Set text dilation in percentage of the font size or null. | |
Public Attributes | |
| Integer | pAlignment |
| Public Attributes inherited from Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign | |
| BorderFactory | pBorderFactory |
| CanvasCreator | pCanvasCreator |
| Font | pFont |
| Point | pMinimumSize |
| MousePointerFactory | pMousePointerFactory |
| BorderSize | pPadding |
| Float | pTextBorderThickness |
| Color | pTextColor |
Design for a particular widget state.
| void Dragengine.Gui.Designers.DefaultLabelDesigner.LabelStateDesign.apply | ( | Widget | widget | ) |
Apply state design to widget.
This is typically called on a merged design to find the first defined parameters.
Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.
| DefaultWidgetDesigner.StateDesign Dragengine.Gui.Designers.DefaultLabelDesigner.LabelStateDesign.copyDesign | ( | ) |
Create copy of state.
Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.
References pAlignment, and setAlignmentFromString().
| Integer Dragengine.Gui.Designers.DefaultLabelDesigner.LabelStateDesign.getAlignment | ( | ) |
Align.or null.
Referenced by setAlignment().
| void Dragengine.Gui.Designers.DefaultLabelDesigner.LabelStateDesign.merge | ( | DefaultWidgetDesigner.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.
| LabelStateDesign Dragengine.Gui.Designers.DefaultLabelDesigner.LabelStateDesign.new | ( | ) |
Create state design.
Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.
References new().
| LabelStateDesign Dragengine.Gui.Designers.DefaultLabelDesigner.LabelStateDesign.new | ( | LabelStateDesign | stateDesign | ) |
Create copy of state design.
References new(), and pAlignment.
| void Dragengine.Gui.Designers.DefaultLabelDesigner.LabelStateDesign.setAlignment | ( | Integer | alignment | ) |
Set alignment or null.
References getAlignment(), pAlignment, and setAlignment().
Referenced by setAlignment().
| void Dragengine.Gui.Designers.DefaultLabelDesigner.LabelStateDesign.setAlignmentFromString | ( | String | string | ) |
Set alignment from string or null.
The input from the guitheme definition is a string composing of a comma separated list of identifiers. Allowed are up to two identifiers one from the vertical alignment group and one from the horizontal alignment group. These are the supported identifiers of the horizontal alignment group: "left", "center" and "right". These are the supported identifiers of the vertical alignment group: "top", "middle" and "bottom".
Referenced by copyDesign().
| Integer Dragengine.Gui.Designers.DefaultLabelDesigner.LabelStateDesign.pAlignment |
Referenced by copyDesign(), new(), and setAlignment().