Drag[en]gine Script Module DragonScript  1.23
Dragengine.Gui.Decorations.DefaultDecoration Class Reference

Default implementation of Decoration rendering nothing and reporting no hits. More...

Inheritance diagram for Dragengine.Gui.Decorations.DefaultDecoration:
Dragengine.Gui.Decorations.Decoration Dragengine.Gui.Decorations.CanvasCreatorDecoration Dragengine.Gui.Decorations.CornerDecoration Dragengine.Gui.Decorations.SimpleDecoration

Public Member Functions

Decoration.Area areaHitBy (Point position)
 Test which part of the decoration is hit if any. More...
 
Color getActiveTitleColor ()
 Color of active window title. More...
 
Font getActiveTitleFont ()
 Font for active window title. More...
 
BorderSize getBorderSize ()
 Border size. More...
 
bool getButtonCloseHover ()
 Close button hover state. More...
 
bool getButtonClosePressed ()
 Close button pressed state. More...
 
bool getButtonMaximizeHover ()
 Maximize button hover state. More...
 
bool getButtonMaximizePressed ()
 Maximize button pressed state. More...
 
bool getButtonMinimizeHover ()
 Minimize button hover state. More...
 
bool getButtonMinimizePressed ()
 Minimize button pressed state. More...
 
Canvas getCanvas ()
 Canvas to render this border. More...
 
CanvasView getCanvasView ()
 Canvas to render this border. More...
 
Color getInactiveTitleColor ()
 Color of the inactive window title. More...
 
Font getInactiveTitleFont ()
 Font for inactive window title. More...
 
Color getTitleColor ()
 Title color matching state. More...
 
Font getTitleFont ()
 Title font matching state. More...
 
Window getWindow ()
 Window the decoration is assigned to or null if there is none. More...
 
DefaultDecoration new ()
 Create decoration. More...
 
void onButtonStateChanged ()
 One or more button states changed. More...
 
void onWindowChanged ()
 Window changed. More...
 
void onWindowParametersChanged ()
 Window parameters changed. More...
 
void resizeCanvas ()
 Resize canvas to fit widget. More...
 
void setActiveTitleColor (Color color)
 Set color of the active window title. More...
 
void setActiveTitleFont (Font font)
 Set font for active window title. More...
 
void setButtonState (Decoration.Button button, bool hover, bool pressed)
 Set button state. More...
 
void setInactiveTitleColor (Color color)
 Set color of the inactive window title. More...
 
void setInactiveTitleFont (Font font)
 Set font for inactive window title. More...
 
void setWindow (Window window)
 Set window the decoration is assigned to or null if there is none. More...
 
void updateCanvas ()
 Update canvas. More...
 
- Public Member Functions inherited from Dragengine.Gui.Decorations.Decoration
void setButtonState (Button button, bool hover, bool pressed)
 Set button state. More...
 

Detailed Description

Default implementation of Decoration rendering nothing and reporting no hits.

Member Function Documentation

◆ areaHitBy()

Decoration.Area Dragengine.Gui.Decorations.DefaultDecoration.areaHitBy ( Point  position)

Test which part of the decoration is hit if any.

The default implementation reports no hits at all.

Implements Dragengine.Gui.Decorations.Decoration.

Reimplemented in Dragengine.Gui.Decorations.SimpleDecoration, Dragengine.Gui.Decorations.CornerDecoration, and Dragengine.Gui.Decorations.CanvasCreatorDecoration.

◆ getActiveTitleColor()

Color Dragengine.Gui.Decorations.DefaultDecoration.getActiveTitleColor ( )

Color of active window title.

◆ getActiveTitleFont()

Font Dragengine.Gui.Decorations.DefaultDecoration.getActiveTitleFont ( )

Font for active window title.

◆ getBorderSize()

BorderSize Dragengine.Gui.Decorations.DefaultDecoration.getBorderSize ( )

◆ getButtonCloseHover()

bool Dragengine.Gui.Decorations.DefaultDecoration.getButtonCloseHover ( )

Close button hover state.

◆ getButtonClosePressed()

bool Dragengine.Gui.Decorations.DefaultDecoration.getButtonClosePressed ( )

Close button pressed state.

◆ getButtonMaximizeHover()

bool Dragengine.Gui.Decorations.DefaultDecoration.getButtonMaximizeHover ( )

Maximize button hover state.

◆ getButtonMaximizePressed()

bool Dragengine.Gui.Decorations.DefaultDecoration.getButtonMaximizePressed ( )

Maximize button pressed state.

◆ getButtonMinimizeHover()

bool Dragengine.Gui.Decorations.DefaultDecoration.getButtonMinimizeHover ( )

Minimize button hover state.

◆ getButtonMinimizePressed()

bool Dragengine.Gui.Decorations.DefaultDecoration.getButtonMinimizePressed ( )

Minimize button pressed state.

◆ getCanvas()

Canvas Dragengine.Gui.Decorations.DefaultDecoration.getCanvas ( )

Canvas to render this border.

Implements Dragengine.Gui.Decorations.Decoration.

◆ getCanvasView()

CanvasView Dragengine.Gui.Decorations.DefaultDecoration.getCanvasView ( )

Canvas to render this border.

◆ getInactiveTitleColor()

Color Dragengine.Gui.Decorations.DefaultDecoration.getInactiveTitleColor ( )

Color of the inactive window title.

◆ getInactiveTitleFont()

Font Dragengine.Gui.Decorations.DefaultDecoration.getInactiveTitleFont ( )

Font for inactive window title.

◆ getTitleColor()

Color Dragengine.Gui.Decorations.DefaultDecoration.getTitleColor ( )

Title color matching state.

If window is deactivate and deactivate title color is null the activated title color is used.

◆ getTitleFont()

Font Dragengine.Gui.Decorations.DefaultDecoration.getTitleFont ( )

Title font matching state.

If window is deactivate and deactivate font is null the activated font is used.

◆ getWindow()

Window Dragengine.Gui.Decorations.DefaultDecoration.getWindow ( )

Window the decoration is assigned to or null if there is none.

Implements Dragengine.Gui.Decorations.Decoration.

◆ new()

◆ onButtonStateChanged()

void Dragengine.Gui.Decorations.DefaultDecoration.onButtonStateChanged ( )

One or more button states changed.

Reimplemented in Dragengine.Gui.Decorations.CanvasCreatorDecoration.

◆ onWindowChanged()

void Dragengine.Gui.Decorations.DefaultDecoration.onWindowChanged ( )

Window changed.

◆ onWindowParametersChanged()

void Dragengine.Gui.Decorations.DefaultDecoration.onWindowParametersChanged ( )

Window parameters changed.

Implements Dragengine.Gui.Decorations.Decoration.

◆ resizeCanvas()

void Dragengine.Gui.Decorations.DefaultDecoration.resizeCanvas ( )

Resize canvas to fit widget.

Does nothing if no window is set.

Implements Dragengine.Gui.Decorations.Decoration.

◆ setActiveTitleColor()

void Dragengine.Gui.Decorations.DefaultDecoration.setActiveTitleColor ( Color  color)

Set color of the active window title.

◆ setActiveTitleFont()

void Dragengine.Gui.Decorations.DefaultDecoration.setActiveTitleFont ( Font  font)

Set font for active window title.

◆ setButtonState()

void Dragengine.Gui.Decorations.DefaultDecoration.setButtonState ( Decoration.Button  button,
bool  hover,
bool  pressed 
)

Set button state.

Parameters
buttonOne from BUTTON_*
hoverMouse hovers over button.
pressedButton is pressed down.

◆ setInactiveTitleColor()

void Dragengine.Gui.Decorations.DefaultDecoration.setInactiveTitleColor ( Color  color)

Set color of the inactive window title.

◆ setInactiveTitleFont()

void Dragengine.Gui.Decorations.DefaultDecoration.setInactiveTitleFont ( Font  font)

Set font for inactive window title.

◆ setWindow()

void Dragengine.Gui.Decorations.DefaultDecoration.setWindow ( Window  window)

Set window the decoration is assigned to or null if there is none.

Implements Dragengine.Gui.Decorations.Decoration.

◆ updateCanvas()

void Dragengine.Gui.Decorations.DefaultDecoration.updateCanvas ( )

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