Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Gui.CanvasCreators.RectangleCanvasCreator Class Reference

Canvas creator creating a canvas with a paint only simple rectangle fill and line color. More...

Inheritance diagram for Dragengine.Gui.CanvasCreators.RectangleCanvasCreator:
Dragengine.Gui.CanvasCreators.DefaultCanvasCreator Dragengine.Gui.CanvasCreators.CanvasCreator

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.

Detailed Description

Canvas creator creating a canvas with a paint only simple rectangle fill and line color.

Member Function Documentation

◆ copyCanvasCreator()

CanvasCreator Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.copyCanvasCreator ( )

Create copy of canvas creator.

Reimplemented from Dragengine.Gui.CanvasCreators.DefaultCanvasCreator.

References getThickness().

Referenced by createCanvas().

◆ createCanvas()

Canvas Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.createCanvas ( Point size)

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().

◆ getColorFill()

Color Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.getColorFill ( )

Fill color.

Referenced by getThickness().

◆ getColorLine()

Color Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.getColorLine ( )

Line color or null to use fill color.

Referenced by setThickness().

◆ getThickness()

float Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.getThickness ( )

Line thickness.

References getColorFill().

Referenced by copyCanvasCreator().

◆ new() [1/4]

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().

◆ new() [2/4]

RectangleCanvasCreator Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.new ( Color colorFill)

Create canvas creator.

◆ new() [3/4]

RectangleCanvasCreator Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.new ( Color colorFill,
Color colorLine )

Create canvas creator.

References new(), and setColorFill().

◆ new() [4/4]

RectangleCanvasCreator Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.new ( RectangleCanvasCreator creator)

Create copy of canvas creator.

References new(), setColorFill(), and setColorLine().

◆ setColorFill()

void Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.setColorFill ( Color color)

Set fill color.

References new().

Referenced by createCanvas(), new(), new(), and setThickness().

◆ setColorLine()

void Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.setColorLine ( Color color)

Set line color or null to use fill color.

Referenced by createCanvas(), new(), and setParameter().

◆ 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().

◆ setThickness()

void Dragengine.Gui.CanvasCreators.RectangleCanvasCreator.setThickness ( float thickness)

Set line thickness.

References getColorLine(), new(), and setColorFill().

Referenced by createCanvas().


The documentation for this class was generated from the following file: