|
Drag[en]gine Script Module DragonScript 1.35
|
Canvas creator creating a canvas with a paint only simple rectangle fill and line color. More...
Public Member Functions | |
| CanvasCreator | copyCanvasCreator () |
| Create copy of canvas creator. | |
| Canvas | createCanvas (Point size) |
| Create canvas for a specific widget size. | |
| Color | getColorFill () |
| Fill color. | |
| Color | getColorLine () |
| Line color or null to use fill color. | |
| float | getThickness () |
| Line thickness. | |
| RectangleCanvasCreator | new () |
| Create canvas creator. | |
| RectangleCanvasCreator | new (Color colorFill) |
| Create canvas creator. | |
| RectangleCanvasCreator | new (Color colorFill, Color colorLine) |
| Create canvas creator. | |
| RectangleCanvasCreator | new (RectangleCanvasCreator creator) |
| Create copy of canvas creator. | |
| void | setColorFill (Color color) |
| Set fill color. | |
| void | setColorLine (Color color) |
| Set line color or null to use fill color. | |
| void | setParameter (String name, Object value) |
| Set parameter. | |
| void | setThickness (float thickness) |
| Set line thickness. | |
| Public Member Functions inherited from Dragengine.Gui.CanvasCreators.DefaultCanvasCreator | |
| DefaultCanvasCreator | new (DefaultCanvasCreator creator) |
| Create copy of canvas creator. | |
Canvas creator creating a canvas with a paint only simple rectangle fill and line color.
| CanvasCreator Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.copyCanvasCreator | ( | ) |
Create copy of canvas creator.
Reimplemented from Dragengine.Gui.CanvasCreators.DefaultCanvasCreator.
References getThickness().
Referenced by createCanvas().
Create canvas for a specific widget size.
Reimplemented from Dragengine.Gui.CanvasCreators.DefaultCanvasCreator.
References copyCanvasCreator(), createCanvas(), new(), setColorFill(), setColorLine(), setParameter(), and setThickness().
Referenced by createCanvas().
| Color Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.getColorFill | ( | ) |
Fill color.
Referenced by getThickness().
| Color Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.getColorLine | ( | ) |
Line color or null to use fill color.
Referenced by setThickness().
| float Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.getThickness | ( | ) |
| RectangleCanvasCreator Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.new | ( | ) |
Create canvas creator.
Reimplemented from Dragengine.Gui.CanvasCreators.DefaultCanvasCreator.
References new().
Referenced by createCanvas(), new(), new(), new(), setColorFill(), and setThickness().
| RectangleCanvasCreator Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.new | ( | Color | colorFill | ) |
Create canvas creator.
| RectangleCanvasCreator Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.new | ( | Color | colorFill, |
| Color | colorLine ) |
Create canvas creator.
References new(), and setColorFill().
| RectangleCanvasCreator Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.new | ( | RectangleCanvasCreator | creator | ) |
Create copy of canvas creator.
References new(), setColorFill(), and setColorLine().
| void Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.setColorFill | ( | Color | color | ) |
| void Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.setColorLine | ( | Color | color | ) |
Set line color or null to use fill color.
Referenced by createCanvas(), new(), and setParameter().
| void Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.setParameter | ( | String | name, |
| Object | value ) |
Set parameter.
Supported parameters: | name | value | Setter | | colorFill | Color | setColorFill | | colorLine | Color | setColorLine | | thickness | float | setThickness |
Reimplemented from Dragengine.Gui.CanvasCreators.DefaultCanvasCreator.
References setColorLine().
Referenced by createCanvas().
| void Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.setThickness | ( | float | thickness | ) |
Set line thickness.
References getColorLine(), new(), and setColorFill().
Referenced by createCanvas().