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

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

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

Public Member Functions

Decoration.Area 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 Dragengine.Gui.Decorations.DefaultDecoration
Color getActiveTitleColor ()
 Color of active window title. More...
 
Font getActiveTitleFont ()
 Font for active window title. 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...
 
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...
 
- Public Member Functions inherited from Dragengine.Gui.Decorations.Decoration
void setButtonState (Button button, bool hover, bool pressed)
 Set button state. More...
 

Public Attributes

int pButtonGap
 
CanvasImage pCanvasButtonClose
 
CanvasImage pCanvasButtonMaximize
 
CanvasImage pCanvasButtonMinimize
 
CanvasCreator pCreatorActive
 
CanvasCreator pCreatorInactive
 
BorderSize pDecorationSize
 
Image pImageButtonCloseHover
 
Image pImageButtonCloseNormal
 
Image pImageButtonClosePressed
 
Image pImageButtonMaximizeHover
 
Image pImageButtonMaximizeNormal
 
Image pImageButtonMaximizePressed
 
Image pImageButtonMinimizeHover
 
Image pImageButtonMinimizeNormal
 
Image pImageButtonMinimizePressed
 

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()

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

Test which part of the decoration is hit if any.

Reimplemented from Dragengine.Gui.Decorations.DefaultDecoration.

◆ createBorderCanvas()

void Dragengine.Gui.Decorations.CanvasCreatorDecoration.createBorderCanvas ( CanvasView  decoCanvas,
Window  window 
)
protected

Create border canvas.

◆ createButtonCanvas()

void Dragengine.Gui.Decorations.CanvasCreatorDecoration.createButtonCanvas ( CanvasView  decoCanvas,
Window  window 
)
protected

Create button canvas.

◆ createTitleCanvas()

void Dragengine.Gui.Decorations.CanvasCreatorDecoration.createTitleCanvas ( CanvasView  decoCanvas,
Window  window 
)
protected

Create title canvas.

◆ getBorderSize()

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

Border size.

Reimplemented from Dragengine.Gui.Decorations.DefaultDecoration.

◆ getCreatorActive()

CanvasCreator Dragengine.Gui.Decorations.CanvasCreatorDecoration.getCreatorActive ( )

Canvas creator for active window.

◆ getCreatorInactive()

CanvasCreator Dragengine.Gui.Decorations.CanvasCreatorDecoration.getCreatorInactive ( )

Canvas creator for inactive window.

◆ getDecorationSize()

BorderSize Dragengine.Gui.Decorations.CanvasCreatorDecoration.getDecorationSize ( )

Decoration border size.

◆ getImageButtonCloseHover()

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonCloseHover ( )

Image for close button in hover state.

◆ getImageButtonCloseNormal()

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonCloseNormal ( )

Image for close button in normal state.

◆ getImageButtonClosePressed()

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonClosePressed ( )

Image for close button in pressed state.

◆ getImageButtonMaximizeHover()

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonMaximizeHover ( )

Image for maximize button in hover state.

◆ getImageButtonMaximizeNormal()

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonMaximizeNormal ( )

Image for maximize button in normal state.

◆ getImageButtonMaximizePressed()

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonMaximizePressed ( )

Image for maximize button in pressed state.

◆ getImageButtonMinimizeHover()

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonMinimizeHover ( )

Image for minimize button in hover state.

◆ getImageButtonMinimizeNormal()

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonMinimizeNormal ( )

Image for minimize button in normal state.

◆ getImageButtonMinimizePressed()

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonMinimizePressed ( )

Image for minimize button in pressed state.

◆ new()

CanvasCreatorDecoration Dragengine.Gui.Decorations.CanvasCreatorDecoration.new ( )

Create decoration.

Reimplemented from Dragengine.Gui.Decorations.DefaultDecoration.

◆ onButtonStateChanged()

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

One or more button states changed.

Reimplemented from Dragengine.Gui.Decorations.DefaultDecoration.

◆ setCreatorActive()

void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setCreatorActive ( CanvasCreator  creator)

Set canvas creator for active window.

◆ setCreatorInactive()

void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setCreatorInactive ( CanvasCreator  creator)

Set canvas creator for inactive window.

◆ setDecorationSize()

void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setDecorationSize ( BorderSize  size)

Set decoration border size.

◆ setImageButtonCloseHover()

void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonCloseHover ( Image  image)

Set image for close button in hover state.

◆ setImageButtonCloseNormal()

void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonCloseNormal ( Image  image)

Set image for close button in normal state.

◆ setImageButtonClosePressed()

void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonClosePressed ( Image  image)

Set image for close button in pressed state.

◆ setImageButtonMaximizeHover()

void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonMaximizeHover ( Image  image)

Set image for maximize button in hover state.

◆ setImageButtonMaximizeNormal()

void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonMaximizeNormal ( Image  image)

Set image for maximize button in normal state.

◆ setImageButtonMaximizePressed()

void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonMaximizePressed ( Image  image)

Set image for maximize button in pressed state.

◆ setImageButtonMinimizeHover()

void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonMinimizeHover ( Image  image)

Set image for minimize button in hover state.

◆ setImageButtonMinimizeNormal()

void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonMinimizeNormal ( Image  image)

Set image for minimize button in normal state.

◆ setImageButtonMinimizePressed()

void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonMinimizePressed ( Image  image)

Set image for minimize button in pressed state.

◆ updateCanvas()

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

Update canvas.

Reimplemented from Dragengine.Gui.Decorations.DefaultDecoration.

◆ updateCanvasButtons()

void Dragengine.Gui.Decorations.CanvasCreatorDecoration.updateCanvasButtons ( )
protected

Update canvas buttons.

Member Data Documentation

◆ pButtonGap

int Dragengine.Gui.Decorations.CanvasCreatorDecoration.pButtonGap

◆ pCanvasButtonClose

CanvasImage Dragengine.Gui.Decorations.CanvasCreatorDecoration.pCanvasButtonClose

◆ pCanvasButtonMaximize

CanvasImage Dragengine.Gui.Decorations.CanvasCreatorDecoration.pCanvasButtonMaximize

◆ pCanvasButtonMinimize

CanvasImage Dragengine.Gui.Decorations.CanvasCreatorDecoration.pCanvasButtonMinimize

◆ pCreatorActive

CanvasCreator Dragengine.Gui.Decorations.CanvasCreatorDecoration.pCreatorActive

◆ pCreatorInactive

CanvasCreator Dragengine.Gui.Decorations.CanvasCreatorDecoration.pCreatorInactive

◆ pDecorationSize

BorderSize Dragengine.Gui.Decorations.CanvasCreatorDecoration.pDecorationSize

◆ pImageButtonCloseHover

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonCloseHover

◆ pImageButtonCloseNormal

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonCloseNormal

◆ pImageButtonClosePressed

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonClosePressed

◆ pImageButtonMaximizeHover

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonMaximizeHover

◆ pImageButtonMaximizeNormal

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonMaximizeNormal

◆ pImageButtonMaximizePressed

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonMaximizePressed

◆ pImageButtonMinimizeHover

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonMinimizeHover

◆ pImageButtonMinimizeNormal

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonMinimizeNormal

◆ pImageButtonMinimizePressed

Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonMinimizePressed

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