Drag[en]gine Script Module DragonScript
1.23
|
Canvas creator creating a combined canvas. More...
Public Member Functions | |
CanvasCreator | copyCanvasCreator () |
Create copy of canvas creator. More... | |
Canvas | createCanvas (Point size) |
Create canvas for a specific widget size. More... | |
CanvasCreator | getInnerCanvas () |
Inner canvas creator or null. More... | |
CanvasCreator | getOuterCanvas () |
Outer canvas creator or null. More... | |
BorderSize | getPadding () |
Padding of inner canvas creator. More... | |
CombinedCanvasCreator | new () |
Create canvas creator. More... | |
CombinedCanvasCreator | new (CombinedCanvasCreator creator) |
Create copy of canvas creator. More... | |
void | setInnerCanvas (CanvasCreator creator) |
Set inner canvas creator or null. More... | |
void | setOuterCanvas (CanvasCreator creator) |
Set outer canvas creator or null. More... | |
void | setPadding (BorderSize padding) |
Set padding of inner canvas creator. More... | |
void | setParameter (String name, Object value) |
Set parameter. More... | |
Public Member Functions inherited from Dragengine.Gui.CanvasCreators.DefaultCanvasCreator | |
DefaultCanvasCreator | new (DefaultCanvasCreator creator) |
Create copy of canvas creator. More... | |
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.
Create canvas for a specific widget size.
Reimplemented from Dragengine.Gui.CanvasCreators.DefaultCanvasCreator.
CanvasCreator Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.getInnerCanvas | ( | ) |
Inner canvas creator or null.
CanvasCreator Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.getOuterCanvas | ( | ) |
Outer canvas creator or null.
BorderSize Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.getPadding | ( | ) |
Padding of inner canvas creator.
CombinedCanvasCreator Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.new | ( | ) |
Create canvas creator.
Reimplemented from Dragengine.Gui.CanvasCreators.DefaultCanvasCreator.
CombinedCanvasCreator Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.new | ( | CombinedCanvasCreator | creator | ) |
Create copy of canvas creator.
void Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.setInnerCanvas | ( | CanvasCreator | creator | ) |
Set inner canvas creator or null.
void Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.setOuterCanvas | ( | CanvasCreator | creator | ) |
Set outer canvas creator or null.
void Dragengine.Gui.CanvasCreators.CombinedCanvasCreator.setPadding | ( | BorderSize | padding | ) |
Set padding of inner canvas creator.
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.