|
Drag[en]gine Script Module DragonScript 1.35
|
Canvas creator creating a combined canvas. More...
Public Member Functions | |
| CanvasCreator | copyCanvasCreator () |
| Create copy of canvas creator. | |
| Canvas | createCanvas (Point size) |
| Create canvas for a specific widget size. | |
| CanvasCreator | getInnerCanvas () |
| Inner canvas creator or null. | |
| CanvasCreator | getOuterCanvas () |
| Outer canvas creator or null. | |
| BorderSize | getPadding () |
| Padding of inner canvas creator. | |
| CombinedCanvasCreator | new () |
| Create canvas creator. | |
| CombinedCanvasCreator | new (CombinedCanvasCreator creator) |
| Create copy of canvas creator. | |
| void | setInnerCanvas (CanvasCreator creator) |
| Set inner canvas creator or null. | |
| void | setOuterCanvas (CanvasCreator creator) |
| Set outer canvas creator or null. | |
| void | setPadding (BorderSize padding) |
| Set padding of inner canvas creator. | |
| void | setParameter (String name, Object value) |
| Set parameter. | |
| Public Member Functions inherited from Dragengine.Gui.CanvasCreators.DefaultCanvasCreator | |
| DefaultCanvasCreator | new (DefaultCanvasCreator creator) |
| Create copy of canvas creator. | |
Canvas creator creating a combined canvas.
Combining canvas creators allows to create complex nested canvas out of existing canvas creators. The combined canvas creator creates a CanvasView canvas with up to two child canvas. An outer and inner canvas creator can be defined. The outer canvas creator can be null. The inner canvas creator size is shrinked by a padding value. Using a null outer canvas creator allows to create padding around an inner canvas creator. If not null the padding allows to nest the inner canvas creator.
| CanvasCreator Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.copyCanvasCreator | ( | ) |
Create copy of canvas creator.
Reimplemented from Dragengine.Gui.CanvasCreators.DefaultCanvasCreator.
References setPadding().
Referenced by createCanvas(), getOuterCanvas(), and new().
Create canvas for a specific widget size.
Reimplemented from Dragengine.Gui.CanvasCreators.DefaultCanvasCreator.
References copyCanvasCreator(), createCanvas(), new(), setInnerCanvas(), setOuterCanvas(), setPadding(), and setParameter().
Referenced by createCanvas().
| CanvasCreator Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.getInnerCanvas | ( | ) |
Inner canvas creator or null.
Referenced by setPadding().
| CanvasCreator Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.getOuterCanvas | ( | ) |
| BorderSize Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.getPadding | ( | ) |
Padding of inner canvas creator.
Referenced by setParameter().
| CombinedCanvasCreator Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.new | ( | ) |
Create canvas creator.
Reimplemented from Dragengine.Gui.CanvasCreators.DefaultCanvasCreator.
References new().
Referenced by createCanvas(), new(), and new().
| CombinedCanvasCreator Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.new | ( | CombinedCanvasCreator | creator | ) |
Create copy of canvas creator.
References copyCanvasCreator(), and new().
| void Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.setInnerCanvas | ( | CanvasCreator | creator | ) |
Set inner canvas creator or null.
References getOuterCanvas().
Referenced by createCanvas(), and setPadding().
| void Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.setOuterCanvas | ( | CanvasCreator | creator | ) |
Set outer canvas creator or null.
Referenced by createCanvas(), and setPadding().
| void Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.setPadding | ( | BorderSize | padding | ) |
Set padding of inner canvas creator.
References getInnerCanvas(), setInnerCanvas(), and setOuterCanvas().
Referenced by copyCanvasCreator(), and createCanvas().
| void Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.setParameter | ( | String | name, |
| Object | value ) |
Set parameter.
Supported parameters: | name | value | Setter | | outerCanvas | CanvasCreator | setOuterCanvas | | innerCanvas | CanvasCreator | setInnerCanvas | | padding | BorderSize | setPadding |
Reimplemented from Dragengine.Gui.CanvasCreators.DefaultCanvasCreator.
References getPadding().
Referenced by createCanvas().