|
Drag[en]gine Script Module DragonScript 1.35
|
Styled text definition style. More...
Classes | |
| enum | Align |
| Text alignment. More... | |
Public Member Functions | |
| Align | getAlignment () |
| Align. | |
| Color | getBackgroundColor () |
| Background color. | |
| int | getCharacterSpacing () |
| Spacing between characters in pixels. | |
| int | getFirstLineIndent () |
| Indention of the first line in pixels. | |
| Font | getFont () |
| Font. | |
| int | getLineSpacing () |
| Spacing between lines in pixels. | |
| RectArea | getMargins () |
| Margins in pixels. | |
| String | getName () |
| Name of style. | |
| Color | getTextBorderColor () |
| Text border color. | |
| float | getTextBorderThickness () |
| Text border thickness in percentage of the font size or null. | |
| Color | getTextColor () |
| Text color. | |
| float | getTextDilation () |
| Text dilation in percentage of the font size. | |
| STDStyle | new (STDStyle style) |
| Create copy of style. | |
| STDStyle | new (String name) |
| Create style. | |
| STDStyle | new (String name, DefaultLabelDesigner.LabelStateDesign design) |
| Create style using parameters from label designer state design. | |
| STDStyle | new (String name, DefaultWidgetDesigner.StateDesign design) |
| Create style using parameters from widget designer state design. | |
| STDStyle | new (String name, STDStyle style) |
| Create copy of style with different name. | |
| void | setAlignment (Align alignment) |
| Set alignment. | |
| void | setBackgroundColor (Color color) |
| Set background color. | |
| void | setCharacterSpacing (int spacing) |
| Set spacing between characters in pixels. | |
| void | setFirstLineIndent (int indent) |
| Set indention of the first line in pixels. | |
| void | setFont (Font font) |
| Set font. | |
| void | setLineSpacing (int spacing) |
| Set spacing between lines in pixels. | |
| void | setMargins (RectArea margins) |
| Set margins in pixels. | |
| void | setTextBorderColor (Color color) |
| Set text border color. | |
| void | setTextBorderThickness (float thickness) |
| Set text border thickness in percentage of the font size or null. | |
| void | setTextColor (Color color) |
| Set text color. | |
| void | setTextDilation (float dilation) |
| Set text dilation in percentage of the font size. | |
Public Attributes | |
| Align | pAlignment |
| int | pFirstLineIndent |
| Font | pFont |
| RectArea | pMargins |
| String | pName |
| float | pTextBorderThickness |
| Color | pTextColor |
Styled text definition style.
Defines a style for nodes in a styled text definition. The left and right margins are relative to the left and right page margins of the parent styled text definition object. The top margin is relative to the previous node lower position augmented by the previous node bottom margin. Hence the starting position of a node is the lower boundary of the previous node plus a gap equal to the sum of the previous nodes style bottom margin and this styles top margin.
| Align Dragengine.Utils.StyledText.Definition.STDStyle.getAlignment | ( | ) |
Referenced by setCharacterSpacing().
| Color Dragengine.Utils.StyledText.Definition.STDStyle.getBackgroundColor | ( | ) |
Background color.
Referenced by setCharacterSpacing().
| int Dragengine.Utils.StyledText.Definition.STDStyle.getCharacterSpacing | ( | ) |
Spacing between characters in pixels.
Referenced by setCharacterSpacing().
| int Dragengine.Utils.StyledText.Definition.STDStyle.getFirstLineIndent | ( | ) |
Indention of the first line in pixels.
References getName(), and pName.
Referenced by setCharacterSpacing().
| Font Dragengine.Utils.StyledText.Definition.STDStyle.getFont | ( | ) |
| int Dragengine.Utils.StyledText.Definition.STDStyle.getLineSpacing | ( | ) |
Spacing between lines in pixels.
References getFont(), and pFont.
Referenced by setCharacterSpacing().
| RectArea Dragengine.Utils.StyledText.Definition.STDStyle.getMargins | ( | ) |
| String Dragengine.Utils.StyledText.Definition.STDStyle.getName | ( | ) |
Name of style.
Referenced by getFirstLineIndent().
| Color Dragengine.Utils.StyledText.Definition.STDStyle.getTextBorderColor | ( | ) |
| float Dragengine.Utils.StyledText.Definition.STDStyle.getTextBorderThickness | ( | ) |
Text border thickness in percentage of the font size or null.
A good starting value for balanced border size is 0.075 (7.5%) to 0.1 (10%).
References pFont, and pTextColor.
Referenced by setCharacterSpacing().
| Color Dragengine.Utils.StyledText.Definition.STDStyle.getTextColor | ( | ) |
Text color.
Referenced by setCharacterSpacing().
| float Dragengine.Utils.StyledText.Definition.STDStyle.getTextDilation | ( | ) |
Text dilation in percentage of the font size.
References pTextBorderThickness.
Referenced by setCharacterSpacing().
Create copy of style.
References Dragengine.Gui.Color.black, pMargins, and pTextColor.
| STDStyle Dragengine.Utils.StyledText.Definition.STDStyle.new | ( | String | name | ) |
Create style.
References Dragengine.Utils.StyledText.Definition.STDStyle.Align.left, new(), pAlignment, and pName.
Referenced by new().
| STDStyle Dragengine.Utils.StyledText.Definition.STDStyle.new | ( | String | name, |
| DefaultLabelDesigner.LabelStateDesign | design ) |
Create style using parameters from label designer state design.
Allows to derive a style from a designer obtained from a widget.
Uses the parameters "padding", "font", "textColor" and "alignment".
| STDStyle Dragengine.Utils.StyledText.Definition.STDStyle.new | ( | String | name, |
| DefaultWidgetDesigner.StateDesign | design ) |
Create style using parameters from widget designer state design.
Allows to derive a style from a designer obtained from a widget.
Uses the parameters "padding", "font" and "textColor".
References pFirstLineIndent, pMargins, and pTextBorderThickness.
Create copy of style with different name.
References pAlignment, pFont, pName, and pTextColor.
| void Dragengine.Utils.StyledText.Definition.STDStyle.setAlignment | ( | Align | alignment | ) |
Set alignment.
Referenced by setCharacterSpacing().
| void Dragengine.Utils.StyledText.Definition.STDStyle.setBackgroundColor | ( | Color | color | ) |
| void Dragengine.Utils.StyledText.Definition.STDStyle.setCharacterSpacing | ( | int | spacing | ) |
Set spacing between characters in pixels.
References getAlignment(), getBackgroundColor(), getCharacterSpacing(), getFirstLineIndent(), getLineSpacing(), getMargins(), getTextBorderColor(), getTextBorderThickness(), getTextColor(), getTextDilation(), pAlignment, pFirstLineIndent, pFont, pMargins, pTextBorderThickness, pTextColor, setAlignment(), setBackgroundColor(), setCharacterSpacing(), setFirstLineIndent(), setLineSpacing(), setMargins(), setTextBorderColor(), setTextBorderThickness(), setTextColor(), and setTextDilation().
Referenced by setCharacterSpacing().
| void Dragengine.Utils.StyledText.Definition.STDStyle.setFirstLineIndent | ( | int | indent | ) |
Set indention of the first line in pixels.
Referenced by setCharacterSpacing().
| void Dragengine.Utils.StyledText.Definition.STDStyle.setFont | ( | Font | font | ) |
Set font.
Referenced by setLineSpacing().
| void Dragengine.Utils.StyledText.Definition.STDStyle.setLineSpacing | ( | int | spacing | ) |
| void Dragengine.Utils.StyledText.Definition.STDStyle.setMargins | ( | RectArea | margins | ) |
Set margins in pixels.
Referenced by setCharacterSpacing().
| void Dragengine.Utils.StyledText.Definition.STDStyle.setTextBorderColor | ( | Color | color | ) |
| void Dragengine.Utils.StyledText.Definition.STDStyle.setTextBorderThickness | ( | float | thickness | ) |
Set text border thickness in percentage of the font size or null.
A good starting value for balanced border size is 0.075 (7.5%) to 0.1 (10%).
Referenced by setCharacterSpacing().
| void Dragengine.Utils.StyledText.Definition.STDStyle.setTextColor | ( | Color | color | ) |
| void Dragengine.Utils.StyledText.Definition.STDStyle.setTextDilation | ( | float | dilation | ) |
| Align Dragengine.Utils.StyledText.Definition.STDStyle.pAlignment |
Referenced by getTextBorderColor(), new(), new(), setCharacterSpacing(), and setTextBorderColor().
| int Dragengine.Utils.StyledText.Definition.STDStyle.pFirstLineIndent |
Referenced by new(), and setCharacterSpacing().
| Font Dragengine.Utils.StyledText.Definition.STDStyle.pFont |
Referenced by getLineSpacing(), getTextBorderThickness(), new(), and setCharacterSpacing().
| RectArea Dragengine.Utils.StyledText.Definition.STDStyle.pMargins |
Referenced by getMargins(), new(), new(), setBackgroundColor(), and setCharacterSpacing().
| String Dragengine.Utils.StyledText.Definition.STDStyle.pName |
Referenced by getFirstLineIndent(), getFont(), new(), new(), and setTextColor().
| float Dragengine.Utils.StyledText.Definition.STDStyle.pTextBorderThickness |
Referenced by getTextDilation(), new(), and setCharacterSpacing().
| Color Dragengine.Utils.StyledText.Definition.STDStyle.pTextColor |
Referenced by getTextBorderThickness(), new(), new(), and setCharacterSpacing().