Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign Class Reference

Design for a particular widget state. More...

Inheritance diagram for Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign:
Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign

Public Member Functions

void apply (Widget widget)
 Apply state design to widget.
DefaultWidgetDesigner.StateDesign copyDesign ()
 Create copy of state.
Image getImage ()
 Image.
ColorMatrix getImageColorTransform ()
 Image color transform or null.
void merge (DefaultWidgetDesigner.StateDesign state)
 Merge states.
ImageStateDesign new ()
 Create state design.
ImageStateDesign new (ImageStateDesign stateDesign)
 Create copy of state design.
void setImage (Image image)
 Set image.
void setImageColorTransform (ColorMatrix colorMatrix)
 Set image color transform or null.
void setParameter (String name, Object value)
 Set parameter.
Public Member Functions inherited from Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign
BorderFactory getBorderFactory ()
 Border factory or null.
CanvasCreator getCanvasCreator ()
 Canvas creator or null.
Font getFont ()
 Font or null.
Point getMinimumSize ()
 Minimum widget size or null.
MousePointerFactory getMousePointerFactory ()
 Mouse pointer factory or null.
BorderSize getPadding ()
 Padding or null.
Color getTextBorderColor ()
 Text border color or null.
Float getTextBorderThickness ()
 Text border thickness in percentage of the font size or null.
Color getTextColor ()
 Text color or null.
Float getTextDilation ()
 Text dilation in percentage of the font size or null.
void merge (StateDesign state)
 Merge states.
StateDesign new (StateDesign stateDesign)
 Create copy of state design.
void setBorderFactory (BorderFactory borderFactory)
 Set border factory or null.
void setCanvasCreator (CanvasCreator creator)
 Set canvas creator or null.
void setFont (Font font)
 Set font or null.
void setMinimumSize (Point size)
 Set minimum widget size or null.
void setMousePointerFactory (MousePointerFactory factory)
 Mouse pointer factory or null.
void setPadding (BorderSize padding)
 Set padding or null.
void setTextBorderColor (Color color)
 Set text border color or null.
void setTextBorderThickness (Float thickness)
 Set text border thickness in percentage of the font size or null.
void setTextColor (Color color)
 Set text color or null.
void setTextDilation (Float dilation)
 Set text dilation in percentage of the font size or null.

Public Attributes

Image pImage
ColorMatrix pImageColorTransform
Public Attributes inherited from Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign
BorderFactory pBorderFactory
CanvasCreator pCanvasCreator
Font pFont
Point pMinimumSize
MousePointerFactory pMousePointerFactory
BorderSize pPadding
Float pTextBorderThickness
Color pTextColor

Detailed Description

Design for a particular widget state.

Member Function Documentation

◆ apply()

void Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign.apply ( Widget widget)

Apply state design to widget.

This is typically called on a merged design to find the first defined parameters.

Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.

References setParameter().

◆ copyDesign()

DefaultWidgetDesigner.StateDesign Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign.copyDesign ( )

Create copy of state.

Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.

References setParameter().

◆ getImage()

Image Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign.getImage ( )

Image.

Version
1.23

References pImageColorTransform, and setImageColorTransform().

Referenced by setImage().

◆ getImageColorTransform()

ColorMatrix Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign.getImageColorTransform ( )

Image color transform or null.

Referenced by setImageColorTransform().

◆ merge()

void Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign.merge ( DefaultWidgetDesigner.StateDesign state)

Merge states.

Updates state with parameters of this state if defined. Used to find the first defined parameter for a series of states acting as fallback for each other.

References setImage(), and setImageColorTransform().

◆ new() [1/2]

ImageStateDesign Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign.new ( )

Create state design.

Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.

References new().

Referenced by new(), and new().

◆ new() [2/2]

ImageStateDesign Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign.new ( ImageStateDesign stateDesign)

Create copy of state design.

References new(), pImage, and pImageColorTransform.

◆ setImage()

void Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign.setImage ( Image image)

Set image.

Version
1.23

References getImage(), pImage, and setImage().

Referenced by merge(), and setImage().

◆ setImageColorTransform()

void Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign.setImageColorTransform ( ColorMatrix colorMatrix)

Set image color transform or null.

References getImageColorTransform(), and pImageColorTransform.

Referenced by getImage(), and merge().

◆ setParameter()

void Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign.setParameter ( String name,
Object value )

Set parameter.

Supported parameters:

name value Setter
imageColorTransform ColorMatrix setImageColorTransform
image Image setImage

Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.

Referenced by apply(), and copyDesign().

Member Data Documentation

◆ pImage

Image Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign.pImage

Referenced by new(), and setImage().

◆ pImageColorTransform

ColorMatrix Dragengine.Gui.Designers.DefaultImageDesigner.ImageStateDesign.pImageColorTransform

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