Drag[en]gine Script Module DragonScript Script API  1.0
CornerDecoration Class Reference

Render a thin line border with a bulky corner at the top-left side. More...

Inheritance diagram for CornerDecoration:
DefaultDecoration Decoration

Public Member Functions

int areaHitBy (Point position)
 Test which part of the decoration is hit if any. More...
 
BorderSize getBorderSize ()
 Border size. More...
 
CornerDecoration new ()
 Create decoration. More...
 
void updateCanvas ()
 
- Public Member Functions inherited from DefaultDecoration
int 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 (int 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...
 

Detailed Description

Render a thin line border with a bulky corner at the top-left side.

Note
This is only a demo class and not part of the final package.
Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

◆ areaHitBy()

int areaHitBy ( Point  position)

Test which part of the decoration is hit if any.

Implements Decoration.

◆ getBorderSize()

BorderSize getBorderSize ( )

Border size.

Implements Decoration.

◆ new()

Create decoration.

◆ updateCanvas()

void updateCanvas ( )

Update canvas.


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