Drag[en]gine Script Module DragonScript  1.21
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. More...
 
Canvas createCanvas (Point size)
 Create canvas for a specific widget size. More...
 
Color getColorFill ()
 Fill color. More...
 
Color getColorLine ()
 Line color or null to use fill color. More...
 
float getThickness ()
 Line thickness. More...
 
RectangleCanvasCreator new ()
 Create canvas creator. More...
 
RectangleCanvasCreator new (Color colorFill)
 Create canvas creator. More...
 
RectangleCanvasCreator new (Color colorFill, Color colorLine)
 Create canvas creator. More...
 
RectangleCanvasCreator new (RectangleCanvasCreator creator)
 Create copy of canvas creator. More...
 
void setColorFill (Color color)
 Set fill color. More...
 
void setColorLine (Color color)
 Set line color or null to use fill color. More...
 
void setParameter (String name, Object value)
 Set parameter. More...
 
void setThickness (float thickness)
 Set line thickness. More...
 
- Public Member Functions inherited from Dragengine.Gui.CanvasCreators.DefaultCanvasCreator
DefaultCanvasCreator new (DefaultCanvasCreator creator)
 Create copy of canvas creator. More...
 

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.

◆ createCanvas()

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

Create canvas for a specific widget size.

Reimplemented from Dragengine.Gui.CanvasCreators.DefaultCanvasCreator.

◆ getColorFill()

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

Fill color.

◆ getColorLine()

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

Line color or null to use fill color.

◆ getThickness()

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

Line thickness.

◆ new() [1/4]

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

Create canvas creator.

Reimplemented from Dragengine.Gui.CanvasCreators.DefaultCanvasCreator.

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

◆ new() [4/4]

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

Create copy of canvas creator.

◆ setColorFill()

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

Set fill color.

◆ setColorLine()

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

Set line color or null to use fill color.

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

◆ setThickness()

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

Set line thickness.


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