Drag[en]gine Script Module DragonScript
1.23
|
Default implementation of Decoration rendering nothing and reporting no hits. More...
Public Member Functions | |
Decoration.Area | 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 (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... | |
void | updateCanvas () |
Update canvas. More... | |
Public Member Functions inherited from Dragengine.Gui.Decorations.Decoration | |
void | setButtonState (Button button, bool hover, bool pressed) |
Set button state. More... | |
Default implementation of Decoration rendering nothing and reporting no hits.
Decoration.Area Dragengine.Gui.Decorations.DefaultDecoration.areaHitBy | ( | Point | position | ) |
Test which part of the decoration is hit if any.
The default implementation reports no hits at all.
Implements Dragengine.Gui.Decorations.Decoration.
Reimplemented in Dragengine.Gui.Decorations.SimpleDecoration, Dragengine.Gui.Decorations.CornerDecoration, and Dragengine.Gui.Decorations.CanvasCreatorDecoration.
Color Dragengine.Gui.Decorations.DefaultDecoration.getActiveTitleColor | ( | ) |
Color of active window title.
Font Dragengine.Gui.Decorations.DefaultDecoration.getActiveTitleFont | ( | ) |
Font for active window title.
BorderSize Dragengine.Gui.Decorations.DefaultDecoration.getBorderSize | ( | ) |
Border size.
Default implementation returns 0-size.
Implements Dragengine.Gui.Decorations.Decoration.
Reimplemented in Dragengine.Gui.Decorations.SimpleDecoration, Dragengine.Gui.Decorations.CornerDecoration, and Dragengine.Gui.Decorations.CanvasCreatorDecoration.
bool Dragengine.Gui.Decorations.DefaultDecoration.getButtonCloseHover | ( | ) |
Close button hover state.
bool Dragengine.Gui.Decorations.DefaultDecoration.getButtonClosePressed | ( | ) |
Close button pressed state.
bool Dragengine.Gui.Decorations.DefaultDecoration.getButtonMaximizeHover | ( | ) |
Maximize button hover state.
bool Dragengine.Gui.Decorations.DefaultDecoration.getButtonMaximizePressed | ( | ) |
Maximize button pressed state.
bool Dragengine.Gui.Decorations.DefaultDecoration.getButtonMinimizeHover | ( | ) |
Minimize button hover state.
bool Dragengine.Gui.Decorations.DefaultDecoration.getButtonMinimizePressed | ( | ) |
Minimize button pressed state.
Canvas Dragengine.Gui.Decorations.DefaultDecoration.getCanvas | ( | ) |
Canvas to render this border.
Implements Dragengine.Gui.Decorations.Decoration.
CanvasView Dragengine.Gui.Decorations.DefaultDecoration.getCanvasView | ( | ) |
Canvas to render this border.
Color Dragengine.Gui.Decorations.DefaultDecoration.getInactiveTitleColor | ( | ) |
Color of the inactive window title.
Font Dragengine.Gui.Decorations.DefaultDecoration.getInactiveTitleFont | ( | ) |
Font for inactive window title.
Color Dragengine.Gui.Decorations.DefaultDecoration.getTitleColor | ( | ) |
Title color matching state.
If window is deactivate and deactivate title color is null the activated title color is used.
Font Dragengine.Gui.Decorations.DefaultDecoration.getTitleFont | ( | ) |
Title font matching state.
If window is deactivate and deactivate font is null the activated font is used.
Window Dragengine.Gui.Decorations.DefaultDecoration.getWindow | ( | ) |
Window the decoration is assigned to or null if there is none.
Implements Dragengine.Gui.Decorations.Decoration.
DefaultDecoration Dragengine.Gui.Decorations.DefaultDecoration.new | ( | ) |
Create decoration.
Reimplemented in Dragengine.Gui.Decorations.SimpleDecoration, Dragengine.Gui.Decorations.CornerDecoration, and Dragengine.Gui.Decorations.CanvasCreatorDecoration.
void Dragengine.Gui.Decorations.DefaultDecoration.onButtonStateChanged | ( | ) |
One or more button states changed.
Reimplemented in Dragengine.Gui.Decorations.CanvasCreatorDecoration.
void Dragengine.Gui.Decorations.DefaultDecoration.onWindowChanged | ( | ) |
Window changed.
void Dragengine.Gui.Decorations.DefaultDecoration.onWindowParametersChanged | ( | ) |
Window parameters changed.
Implements Dragengine.Gui.Decorations.Decoration.
void Dragengine.Gui.Decorations.DefaultDecoration.resizeCanvas | ( | ) |
Resize canvas to fit widget.
Does nothing if no window is set.
Implements Dragengine.Gui.Decorations.Decoration.
void Dragengine.Gui.Decorations.DefaultDecoration.setActiveTitleColor | ( | Color | color | ) |
Set color of the active window title.
void Dragengine.Gui.Decorations.DefaultDecoration.setActiveTitleFont | ( | Font | font | ) |
Set font for active window title.
void Dragengine.Gui.Decorations.DefaultDecoration.setButtonState | ( | Decoration.Button | button, |
bool | hover, | ||
bool | pressed | ||
) |
Set button state.
button | One from BUTTON_* |
hover | Mouse hovers over button. |
pressed | Button is pressed down. |
void Dragengine.Gui.Decorations.DefaultDecoration.setInactiveTitleColor | ( | Color | color | ) |
Set color of the inactive window title.
void Dragengine.Gui.Decorations.DefaultDecoration.setInactiveTitleFont | ( | Font | font | ) |
Set font for inactive window title.
void Dragengine.Gui.Decorations.DefaultDecoration.setWindow | ( | Window | window | ) |
Set window the decoration is assigned to or null if there is none.
Implements Dragengine.Gui.Decorations.Decoration.
void Dragengine.Gui.Decorations.DefaultDecoration.updateCanvas | ( | ) |
Update canvas.
Overwrite to create canvas content.
Reimplemented in Dragengine.Gui.Decorations.SimpleDecoration, Dragengine.Gui.Decorations.CornerDecoration, and Dragengine.Gui.Decorations.CanvasCreatorDecoration.