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

Window decoration created using a canvas creators. More...

Inheritance diagram for CanvasCreatorDecoration:
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...
 
CanvasCreator getCreatorActive ()
 Canvas creator for active window. More...
 
CanvasCreator getCreatorInactive ()
 Canvas creator for inactive window. More...
 
BorderSize getDecorationSize ()
 Decoration border size. More...
 
Image getImageButtonCloseHover ()
 Image for close button in hover state. More...
 
Image getImageButtonCloseNormal ()
 Image for close button in normal state. More...
 
Image getImageButtonClosePressed ()
 Image for close button in pressed state. More...
 
Image getImageButtonMaximizeHover ()
 Image for maximize button in hover state. More...
 
Image getImageButtonMaximizeNormal ()
 Image for maximize button in normal state. More...
 
Image getImageButtonMaximizePressed ()
 Image for maximize button in pressed state. More...
 
Image getImageButtonMinimizeHover ()
 Image for minimize button in hover state. More...
 
Image getImageButtonMinimizeNormal ()
 Image for minimize button in normal state. More...
 
Image getImageButtonMinimizePressed ()
 Image for minimize button in pressed state. More...
 
CanvasCreatorDecoration new ()
 Create decoration. More...
 
void onButtonStateChanged ()
 One or more button states changed. More...
 
void setCreatorActive (CanvasCreator creator)
 Set canvas creator for active window. More...
 
void setCreatorInactive (CanvasCreator creator)
 Set canvas creator for inactive window. More...
 
void setDecorationSize (BorderSize size)
 Set decoration border size. More...
 
void setImageButtonCloseHover (Image image)
 Set image for close button in hover state. More...
 
void setImageButtonCloseNormal (Image image)
 Set image for close button in normal state. More...
 
void setImageButtonClosePressed (Image image)
 Set image for close button in pressed state. More...
 
void setImageButtonMaximizeHover (Image image)
 Set image for maximize button in hover state. More...
 
void setImageButtonMaximizeNormal (Image image)
 Set image for maximize button in normal state. More...
 
void setImageButtonMaximizePressed (Image image)
 Set image for maximize button in pressed state. More...
 
void setImageButtonMinimizeHover (Image image)
 Set image for minimize button in hover state. More...
 
void setImageButtonMinimizeNormal (Image image)
 Set image for minimize button in normal state. More...
 
void setImageButtonMinimizePressed (Image image)
 Set image for minimize button in pressed state. More...
 
void updateCanvas ()
 Update canvas. More...
 
- 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...
 

Protected Member Functions

void createBorderCanvas (CanvasView decoCanvas, Window window)
 Create border canvas. More...
 
void createButtonCanvas (CanvasView decoCanvas, Window window)
 Create button canvas. More...
 
void createTitleCanvas (CanvasView decoCanvas, Window window)
 Create title canvas. More...
 
void updateCanvasButtons ()
 Update canvas buttons. More...
 

Detailed Description

Window decoration created using a canvas creators.

Member Function Documentation

§ areaHitBy()

int areaHitBy ( Point  position)

Test which part of the decoration is hit if any.

Implements Decoration.

§ createBorderCanvas()

void createBorderCanvas ( CanvasView  decoCanvas,
Window  window 
)
protected

Create border canvas.

§ createButtonCanvas()

void createButtonCanvas ( CanvasView  decoCanvas,
Window  window 
)
protected

Create button canvas.

§ createTitleCanvas()

void createTitleCanvas ( CanvasView  decoCanvas,
Window  window 
)
protected

Create title canvas.

§ getBorderSize()

BorderSize getBorderSize ( )

Border size.

Implements Decoration.

§ getCreatorActive()

CanvasCreator getCreatorActive ( )

Canvas creator for active window.

§ getCreatorInactive()

CanvasCreator getCreatorInactive ( )

Canvas creator for inactive window.

§ getDecorationSize()

BorderSize getDecorationSize ( )

Decoration border size.

§ getImageButtonCloseHover()

Image getImageButtonCloseHover ( )

Image for close button in hover state.

§ getImageButtonCloseNormal()

Image getImageButtonCloseNormal ( )

Image for close button in normal state.

§ getImageButtonClosePressed()

Image getImageButtonClosePressed ( )

Image for close button in pressed state.

§ getImageButtonMaximizeHover()

Image getImageButtonMaximizeHover ( )

Image for maximize button in hover state.

§ getImageButtonMaximizeNormal()

Image getImageButtonMaximizeNormal ( )

Image for maximize button in normal state.

§ getImageButtonMaximizePressed()

Image getImageButtonMaximizePressed ( )

Image for maximize button in pressed state.

§ getImageButtonMinimizeHover()

Image getImageButtonMinimizeHover ( )

Image for minimize button in hover state.

§ getImageButtonMinimizeNormal()

Image getImageButtonMinimizeNormal ( )

Image for minimize button in normal state.

§ getImageButtonMinimizePressed()

Image getImageButtonMinimizePressed ( )

Image for minimize button in pressed state.

§ new()

Create decoration.

§ onButtonStateChanged()

void onButtonStateChanged ( )

One or more button states changed.

§ setCreatorActive()

void setCreatorActive ( CanvasCreator  creator)

Set canvas creator for active window.

§ setCreatorInactive()

void setCreatorInactive ( CanvasCreator  creator)

Set canvas creator for inactive window.

§ setDecorationSize()

void setDecorationSize ( BorderSize  size)

Set decoration border size.

§ setImageButtonCloseHover()

void setImageButtonCloseHover ( Image  image)

Set image for close button in hover state.

§ setImageButtonCloseNormal()

void setImageButtonCloseNormal ( Image  image)

Set image for close button in normal state.

§ setImageButtonClosePressed()

void setImageButtonClosePressed ( Image  image)

Set image for close button in pressed state.

§ setImageButtonMaximizeHover()

void setImageButtonMaximizeHover ( Image  image)

Set image for maximize button in hover state.

§ setImageButtonMaximizeNormal()

void setImageButtonMaximizeNormal ( Image  image)

Set image for maximize button in normal state.

§ setImageButtonMaximizePressed()

void setImageButtonMaximizePressed ( Image  image)

Set image for maximize button in pressed state.

§ setImageButtonMinimizeHover()

void setImageButtonMinimizeHover ( Image  image)

Set image for minimize button in hover state.

§ setImageButtonMinimizeNormal()

void setImageButtonMinimizeNormal ( Image  image)

Set image for minimize button in normal state.

§ setImageButtonMinimizePressed()

void setImageButtonMinimizePressed ( Image  image)

Set image for minimize button in pressed state.

§ updateCanvas()

void updateCanvas ( )

Update canvas.

§ updateCanvasButtons()

void updateCanvasButtons ( )
protected

Update canvas buttons.


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