Drag[en]gine Script Module DragonScript
1.23
|
Design for a particular widget state. More...
Public Member Functions | |
void | apply (Widget widget) |
Apply state design to widget. \deprected Use apply(Widget,DefaultVideoDesigner) More... | |
void | apply (Widget widget, DefaultVideoDesigner designer) |
Apply state design to widget. More... | |
DefaultWidgetDesigner.StateDesign | copyDesign () |
Create copy of state. More... | |
Video | getVideo () |
Video. More... | |
ColorMatrix | getVideoColorTransform () |
Video color transform or null. More... | |
void | merge (DefaultWidgetDesigner.StateDesign state) |
Merge states. More... | |
VideoStateDesign | new () |
Create state design. More... | |
VideoStateDesign | new (VideoStateDesign stateDesign) |
Create copy of state design. More... | |
void | setParameter (String name, Object value) |
Set parameter. More... | |
void | setVideo (Video video) |
Set Video. More... | |
void | setVideoColorTransform (ColorMatrix colorMatrix) |
Set video color transform or null. More... | |
Public Member Functions inherited from Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign | |
BorderFactory | getBorderFactory () |
Border factory or null. More... | |
CanvasCreator | getCanvasCreator () |
Canvas creator or null. More... | |
Font | getFont () |
Font or null. More... | |
Point | getMinimumSize () |
Minimum widget size or null. More... | |
MousePointerFactory | getMousePointerFactory () |
Mouse pointer factory or null. More... | |
BorderSize | getPadding () |
Padding or null. More... | |
Color | getTextColor () |
Text color or null. More... | |
void | merge (StateDesign state) |
Merge states. More... | |
StateDesign | new (StateDesign stateDesign) |
Create copy of state design. More... | |
void | setBorderFactory (BorderFactory borderFactory) |
Set border factory or null. More... | |
void | setCanvasCreator (CanvasCreator creator) |
Set canvas creator or null. More... | |
void | setFont (Font font) |
Set font or null. More... | |
void | setMinimumSize (Point size) |
Set minimum widget size or null. More... | |
void | setMousePointerFactory (MousePointerFactory factory) |
Mouse pointer factory or null. More... | |
void | setPadding (BorderSize padding) |
Set padding or null. More... | |
void | setTextColor (Color color) |
Set text color or null. More... | |
Public Attributes | |
Video | pVideo |
ColorMatrix | pVideoColorTransform |
Design for a particular widget state.
void Dragengine.Gui.Designers.DefaultVideoDesigner.VideoStateDesign.apply | ( | Widget | widget | ) |
Apply state design to widget. \deprected Use apply(Widget,DefaultVideoDesigner)
This is typically called on a merged design to find the first defined parameters.
Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.
void Dragengine.Gui.Designers.DefaultVideoDesigner.VideoStateDesign.apply | ( | Widget | widget, |
DefaultVideoDesigner | designer | ||
) |
Apply state design to widget.
This is typically called on a merged design to find the first defined parameters.
DefaultWidgetDesigner.StateDesign Dragengine.Gui.Designers.DefaultVideoDesigner.VideoStateDesign.copyDesign | ( | ) |
Create copy of state.
Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.
Video Dragengine.Gui.Designers.DefaultVideoDesigner.VideoStateDesign.getVideo | ( | ) |
ColorMatrix Dragengine.Gui.Designers.DefaultVideoDesigner.VideoStateDesign.getVideoColorTransform | ( | ) |
Video color transform or null.
void Dragengine.Gui.Designers.DefaultVideoDesigner.VideoStateDesign.merge | ( | DefaultWidgetDesigner.StateDesign | state | ) |
Merge states.
Updates state with parameters of this state if defined. Used to find the first defined parameter for a series of states acting as fallback for each other.
VideoStateDesign Dragengine.Gui.Designers.DefaultVideoDesigner.VideoStateDesign.new | ( | ) |
Create state design.
Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.
VideoStateDesign Dragengine.Gui.Designers.DefaultVideoDesigner.VideoStateDesign.new | ( | VideoStateDesign | stateDesign | ) |
Create copy of state design.
void Dragengine.Gui.Designers.DefaultVideoDesigner.VideoStateDesign.setParameter | ( | String | name, |
Object | value | ||
) |
Set parameter.
Supported parameters:
name | value | Setter |
---|---|---|
videoColorTransform | ColorMatrix | setVideoColorTransform |
video | Video | setVideo |
Reimplemented from Dragengine.Gui.Designers.DefaultWidgetDesigner.StateDesign.
void Dragengine.Gui.Designers.DefaultVideoDesigner.VideoStateDesign.setVideo | ( | Video | video | ) |
Set Video.
void Dragengine.Gui.Designers.DefaultVideoDesigner.VideoStateDesign.setVideoColorTransform | ( | ColorMatrix | colorMatrix | ) |
Set video color transform or null.
Video Dragengine.Gui.Designers.DefaultVideoDesigner.VideoStateDesign.pVideo |
ColorMatrix Dragengine.Gui.Designers.DefaultVideoDesigner.VideoStateDesign.pVideoColorTransform |