Drag[en]gine Script Module DragonScript  1.21
Dragengine.Gui.Borders.TitledTwoColorBorder Class Reference

Base class for titled borders. More...

Inheritance diagram for Dragengine.Gui.Borders.TitledTwoColorBorder:
Dragengine.Gui.Borders.TwoColorBorder Dragengine.Gui.Borders.DefaultBorder Dragengine.Gui.Borders.Border Dragengine.Gui.Borders.TitledEtchedBorder

Public Member Functions

Font getFont ()
 Font or widget font if not set. More...
 
Color getFontColor ()
 
String getText ()
 Text or widget title if not set. More...
 
Color getTextColor ()
 Text color or widget text color if not set. More...
 
Point getTextSize ()
 Text size. More...
 
TitledTwoColorBorder new ()
 Create titled two color border. More...
 
TitledTwoColorBorder new (String text)
 
void setFont (Font font)
 Set font or null to use widget font. More...
 
void setText (String text)
 Set text. More...
 
void setTextColor (Color color)
 Set text color or null to use widget text color. More...
 
- Public Member Functions inherited from Dragengine.Gui.Borders.TwoColorBorder
Color getColorHighlight ()
 
Color getColorHilight ()
 
Color getColorShadow ()
 
bool getRaised ()
 
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 ()
 

Public Attributes

Font pFont
 
String pText
 
Color pTextColor
 
- Public Attributes inherited from Dragengine.Gui.Borders.DefaultBorder
CanvasView pCanvas
 
Widget pWidget
 

Detailed Description

Base class for titled borders.

Drawn using a highlight and a shadow color which can be raised or lowered.

Member Function Documentation

◆ getFont()

Font Dragengine.Gui.Borders.TitledTwoColorBorder.getFont ( )

Font or widget font if not set.

◆ getFontColor()

Color Dragengine.Gui.Borders.TitledTwoColorBorder.getFontColor ( )

◆ getText()

String Dragengine.Gui.Borders.TitledTwoColorBorder.getText ( )

Text or widget title if not set.

◆ getTextColor()

Color Dragengine.Gui.Borders.TitledTwoColorBorder.getTextColor ( )

Text color or widget text color if not set.

Version
1.13

◆ getTextSize()

Point Dragengine.Gui.Borders.TitledTwoColorBorder.getTextSize ( )

Text size.

◆ new() [1/2]

TitledTwoColorBorder Dragengine.Gui.Borders.TitledTwoColorBorder.new ( )

Create titled two color border.

Reimplemented from Dragengine.Gui.Borders.TwoColorBorder.

Reimplemented in Dragengine.Gui.Borders.TitledEtchedBorder.

◆ new() [2/2]

TitledTwoColorBorder Dragengine.Gui.Borders.TitledTwoColorBorder.new ( String  text)

◆ setFont()

void Dragengine.Gui.Borders.TitledTwoColorBorder.setFont ( Font  font)

Set font or null to use widget font.

Version
1.13

◆ setText()

void Dragengine.Gui.Borders.TitledTwoColorBorder.setText ( String  text)

Set text.

◆ setTextColor()

void Dragengine.Gui.Borders.TitledTwoColorBorder.setTextColor ( Color  color)

Set text color or null to use widget text color.

Version
1.13

Member Data Documentation

◆ pFont

Font Dragengine.Gui.Borders.TitledTwoColorBorder.pFont

◆ pText

String Dragengine.Gui.Borders.TitledTwoColorBorder.pText

◆ pTextColor

Color Dragengine.Gui.Borders.TitledTwoColorBorder.pTextColor

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