Drag[en]gine Script Module DragonScript  1.21
Dragengine.Gui.Borders.TwoColorBorder Class Reference
Inheritance diagram for Dragengine.Gui.Borders.TwoColorBorder:
Dragengine.Gui.Borders.DefaultBorder Dragengine.Gui.Borders.Border Dragengine.Gui.Borders.BevelBorder Dragengine.Gui.Borders.EtchedBorder Dragengine.Gui.Borders.TitledTwoColorBorder Dragengine.Gui.Borders.TitledEtchedBorder

Public Member Functions

Color getColorHighlight ()
 
Color getColorHilight ()
 
Color getColorShadow ()
 
bool getRaised ()
 
TwoColorBorder new ()
 
TwoColorBorder new (bool raised)
 
TwoColorBorder new (bool raised, Color colorHighlight, Color colorShadow)
 
TwoColorBorder new (Color colorHighlight, Color colorShadow)
 
void setColorHighlight (Color color)
 
void setColorHilight (Color color)
 
void setColorShadow (Color color)
 
void setRaised (bool raised)
 
- Public Member Functions inherited from Dragengine.Gui.Borders.DefaultBorder
BorderSize getBorderSize ()
 
Canvas getCanvas ()
 
CanvasView getCanvasView ()
 
Widget getWidget ()
 
void layoutContainer ()
 
void onGuiThemeChanged ()
 
void onWidgetChanged ()
 
void onWidgetParametersChanged ()
 
void resizeCanvas (Point widgetSize)
 
void setWidget (Widget widget)
 
void updateCanvas ()
 

Additional Inherited Members

- Public Attributes inherited from Dragengine.Gui.Borders.DefaultBorder
CanvasView pCanvas
 
Widget pWidget
 

Detailed Description

Base class for borders drawn using a highlight and a shadow color which can be raised or lowered.

Member Function Documentation

◆ getColorHighlight()

Color Dragengine.Gui.Borders.TwoColorBorder.getColorHighlight ( )

Retrieves the highlight color. If null the widget gui theme highlight color is returned.

◆ getColorHilight()

Color Dragengine.Gui.Borders.TwoColorBorder.getColorHilight ( )

◆ getColorShadow()

Color Dragengine.Gui.Borders.TwoColorBorder.getColorShadow ( )

Retrieves the shadow color. If null the widget gui theme shadow color is returned.

◆ getRaised()

bool Dragengine.Gui.Borders.TwoColorBorder.getRaised ( )

Determines if the border is raised or lowered.

◆ new() [1/4]

◆ new() [2/4]

TwoColorBorder Dragengine.Gui.Borders.TwoColorBorder.new ( bool  raised)

Creates a new etched border.

Reimplemented in Dragengine.Gui.Borders.EtchedBorder, and Dragengine.Gui.Borders.BevelBorder.

◆ new() [3/4]

TwoColorBorder Dragengine.Gui.Borders.TwoColorBorder.new ( bool  raised,
Color  colorHighlight,
Color  colorShadow 
)

Creates a new etched border with the given colors.

Reimplemented in Dragengine.Gui.Borders.EtchedBorder, and Dragengine.Gui.Borders.BevelBorder.

◆ new() [4/4]

TwoColorBorder Dragengine.Gui.Borders.TwoColorBorder.new ( Color  colorHighlight,
Color  colorShadow 
)

Creates a new raised etched border with the given colors.

Reimplemented in Dragengine.Gui.Borders.EtchedBorder, and Dragengine.Gui.Borders.BevelBorder.

◆ setColorHighlight()

void Dragengine.Gui.Borders.TwoColorBorder.setColorHighlight ( Color  color)

Sets the highlight color or null to not draw.

◆ setColorHilight()

void Dragengine.Gui.Borders.TwoColorBorder.setColorHilight ( Color  color)

◆ setColorShadow()

void Dragengine.Gui.Borders.TwoColorBorder.setColorShadow ( Color  color)

Sets the shadow color or null to not draw.

◆ setRaised()

void Dragengine.Gui.Borders.TwoColorBorder.setRaised ( bool  raised)

Sets if the border is raised or lowered.


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