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

Bevelled border around a window with subtle 3D effect and caption. More...

Inheritance diagram for SimpleDecoration:
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...
 
SimpleDecoration 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...
 
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...
 
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 onGuiThemeChanged ()
 Gui theme of the window changed. More...
 
void onWindowChanged ()
 Window changed. More...
 
void onWindowParametersChanged ()
 Window parameters changed. More...
 
void resizeCanvas ()
 Resize canvas to fit widget. More...
 
void setButtonState (int button, bool hover, bool pressed)
 Set button state. 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

Bevelled border around a window with subtle 3D effect and caption.

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: