Drag[en]gine Script Module DragonScript
1.23
|
Window decoration created using a canvas creators. More...
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... | |
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... | |
Window decoration created using a canvas creators.
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.
|
protected |
Create border canvas.
|
protected |
Create button canvas.
|
protected |
Create title canvas.
BorderSize Dragengine.Gui.Decorations.CanvasCreatorDecoration.getBorderSize | ( | ) |
Border size.
Reimplemented from Dragengine.Gui.Decorations.DefaultDecoration.
CanvasCreator Dragengine.Gui.Decorations.CanvasCreatorDecoration.getCreatorActive | ( | ) |
Canvas creator for active window.
CanvasCreator Dragengine.Gui.Decorations.CanvasCreatorDecoration.getCreatorInactive | ( | ) |
Canvas creator for inactive window.
BorderSize Dragengine.Gui.Decorations.CanvasCreatorDecoration.getDecorationSize | ( | ) |
Decoration border size.
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonCloseHover | ( | ) |
Image for close button in hover state.
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonCloseNormal | ( | ) |
Image for close button in normal state.
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonClosePressed | ( | ) |
Image for close button in pressed state.
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonMaximizeHover | ( | ) |
Image for maximize button in hover state.
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonMaximizeNormal | ( | ) |
Image for maximize button in normal state.
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonMaximizePressed | ( | ) |
Image for maximize button in pressed state.
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonMinimizeHover | ( | ) |
Image for minimize button in hover state.
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonMinimizeNormal | ( | ) |
Image for minimize button in normal state.
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.getImageButtonMinimizePressed | ( | ) |
Image for minimize button in pressed state.
CanvasCreatorDecoration Dragengine.Gui.Decorations.CanvasCreatorDecoration.new | ( | ) |
Create decoration.
Reimplemented from Dragengine.Gui.Decorations.DefaultDecoration.
void Dragengine.Gui.Decorations.CanvasCreatorDecoration.onButtonStateChanged | ( | ) |
One or more button states changed.
Reimplemented from Dragengine.Gui.Decorations.DefaultDecoration.
void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setCreatorActive | ( | CanvasCreator | creator | ) |
Set canvas creator for active window.
void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setCreatorInactive | ( | CanvasCreator | creator | ) |
Set canvas creator for inactive window.
void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setDecorationSize | ( | BorderSize | size | ) |
Set decoration border size.
void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonCloseHover | ( | Image | image | ) |
Set image for close button in hover state.
void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonCloseNormal | ( | Image | image | ) |
Set image for close button in normal state.
void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonClosePressed | ( | Image | image | ) |
Set image for close button in pressed state.
void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonMaximizeHover | ( | Image | image | ) |
Set image for maximize button in hover state.
void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonMaximizeNormal | ( | Image | image | ) |
Set image for maximize button in normal state.
void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonMaximizePressed | ( | Image | image | ) |
Set image for maximize button in pressed state.
void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonMinimizeHover | ( | Image | image | ) |
Set image for minimize button in hover state.
void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonMinimizeNormal | ( | Image | image | ) |
Set image for minimize button in normal state.
void Dragengine.Gui.Decorations.CanvasCreatorDecoration.setImageButtonMinimizePressed | ( | Image | image | ) |
Set image for minimize button in pressed state.
void Dragengine.Gui.Decorations.CanvasCreatorDecoration.updateCanvas | ( | ) |
Update canvas.
Reimplemented from Dragengine.Gui.Decorations.DefaultDecoration.
|
protected |
Update canvas buttons.
int Dragengine.Gui.Decorations.CanvasCreatorDecoration.pButtonGap |
CanvasImage Dragengine.Gui.Decorations.CanvasCreatorDecoration.pCanvasButtonClose |
CanvasImage Dragengine.Gui.Decorations.CanvasCreatorDecoration.pCanvasButtonMaximize |
CanvasImage Dragengine.Gui.Decorations.CanvasCreatorDecoration.pCanvasButtonMinimize |
CanvasCreator Dragengine.Gui.Decorations.CanvasCreatorDecoration.pCreatorActive |
CanvasCreator Dragengine.Gui.Decorations.CanvasCreatorDecoration.pCreatorInactive |
BorderSize Dragengine.Gui.Decorations.CanvasCreatorDecoration.pDecorationSize |
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonCloseHover |
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonCloseNormal |
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonClosePressed |
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonMaximizeHover |
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonMaximizeNormal |
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonMaximizePressed |
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonMinimizeHover |
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonMinimizeNormal |
Image Dragengine.Gui.Decorations.CanvasCreatorDecoration.pImageButtonMinimizePressed |