|
Drag[en]gine Script Module DragonScript 1.35
|
Action scroll. More...
Classes | |
| class | ActionScrollDownRight |
| Action scroll down/right action. More... | |
| class | ActionScrollPageDownRight |
| class | ActionScrollPageUpLeft |
| class | ActionScrollUpLeft |
| Action scroll up/left action. More... | |
| class | DragKnobMouseListener |
Public Member Functions | |
| void | createContent () |
| void | dispose () |
| void | enableDirectionButtons () |
| void | focusDirectional (int direction) |
| Point | getFocusMouseLocation () |
| RectArea | getHelperPositions () |
| bool | getHideIfEmpty () |
| Hide scroll bar if range is empty. | |
| int | getKnobSize () |
| RangeModel | getModel () |
| bool | getReverseWheel () |
| Reverse wheel direction. | |
| ActionScroll | new (Orientation orientation) |
| ActionScroll | new (Orientation orientation, RangeModel model) |
| Create scroll bar widget with model. | |
| ActionScroll | new (ScrollBar scrollBar) |
| ActionScroll | new (ScrollBar scrollBar, bool isWheelAction) |
| void | onAction (ActionEvent event) |
| Run action. | |
| void | onButtonPress (MouseEvent event) |
| void | onButtonRelease (MouseEvent event) |
| void | onDesignerChanged () |
| Designer changed. | |
| void | onGuiThemeChanged () |
| void | onResize (WidgetEvent event) |
| Size changed. | |
| void | rangeChanged (RangeModel rangeModel) |
| void | removeAllWidgets () |
| Remove all widgets. | |
| void | setHideIfEmpty (bool hideIfEmpty) |
| Set if scroll bar is hidden if range is empty. | |
| void | setModel (RangeModel rangeModel) |
| void | setOrientation (Orientation orientation) |
| void | setReverseWheel (bool reverseWheel) |
| Set reverse wheel direction. | |
| void | updateKnobWidget () |
| void | valueChanged (RangeModel rangeModel) |
| Public Member Functions inherited from Dragengine.Gui.Events.DefaultActionListener | |
| DefaultActionListener | new () |
| Create default action listener. | |
Protected Member Functions | |
| WidgetDesigner | getDesignerFromTheme () |
| Get designer from gui theme. | |
| bool | increaseValue () |
Protected Attributes | |
| bool | pIsWheelAction |
| ScrollBar | pScrollBar |
Action scroll.
| void Dragengine.Gui.ScrollBar.ActionScroll.createContent | ( | ) |
Create content widgets.
Referenced by enableDirectionButtons().
| void Dragengine.Gui.ScrollBar.ActionScroll.dispose | ( | ) |
Dispose of widget.
Referenced by increaseValue().
| void Dragengine.Gui.ScrollBar.ActionScroll.enableDirectionButtons | ( | ) |
Enable direction buttons depending on the model value.
References Dragengine.Gui.Widget.addMouseListener(), Dragengine.Gui.Widget.addStateChangeListener(), Dragengine.Gui.Container.addWidget(), createContent(), enableDirectionButtons(), Dragengine.Gui.Widget.getBorderSize(), Dragengine.Gui.Container.getContainerHeight(), Dragengine.Gui.Container.getContainerWidth(), Dragengine.Gui.Widget.getDesigner(), Dragengine.Gui.Widget.getHeight(), getHelperPositions(), Dragengine.Gui.Widget.getWidth(), new(), removeAllWidgets(), Dragengine.Gui.Widget.setBackgroundCanvasCreator(), Dragengine.Gui.Widget.setCanFocus(), Dragengine.Gui.Widget.setCanFocusDirectional(), Dragengine.Gui.Container.setEnabled(), Dragengine.Gui.Container.setLayout(), Dragengine.Gui.Widget.setMinimumSize(), Dragengine.Gui.Widget.setPadding(), Dragengine.Gui.Widget.setProtectPadding(), Dragengine.Gui.Widget.setSize(), Dragengine.Gui.Widget.setVisible(), Dragengine.Gui.Widget.setX(), Dragengine.Gui.Widget.setY(), and updateKnobWidget().
Referenced by enableDirectionButtons().
| void Dragengine.Gui.ScrollBar.ActionScroll.focusDirectional | ( | int | direction | ) |
References onButtonRelease(), and Dragengine.Gui.Widget.releaseMouse().
|
protected |
Get designer from gui theme.
Modified to ensure a DefaultScrollBarDesigner is used if super.getDesignerFromTheme() returns null.
| Point Dragengine.Gui.ScrollBar.ActionScroll.getFocusMouseLocation | ( | ) |
References Dragengine.Gui.Widget.getPosition().
| RectArea Dragengine.Gui.ScrollBar.ActionScroll.getHelperPositions | ( | ) |
Helper positions. If not present yet they are calculated.
Referenced by enableDirectionButtons(), and valueChanged().
| bool Dragengine.Gui.ScrollBar.ActionScroll.getHideIfEmpty | ( | ) |
Hide scroll bar if range is empty.
| int Dragengine.Gui.ScrollBar.ActionScroll.getKnobSize | ( | ) |
Size of the drag knob.
References getModel(), new(), onAction(), and pScrollBar.
Referenced by onButtonPress().
| RangeModel Dragengine.Gui.ScrollBar.ActionScroll.getModel | ( | ) |
Range model.
References new(), and pScrollBar.
Referenced by getKnobSize(), Dragengine.Gui.ScrollBar.ActionScroll.ActionScrollPageUpLeft.onAction(), onGuiThemeChanged(), and setModel().
| bool Dragengine.Gui.ScrollBar.ActionScroll.getReverseWheel | ( | ) |
Reverse wheel direction.
If false wheeling up decreases the range model. If true increases the range model.
References new(), and pScrollBar.
Referenced by new(), and Dragengine.Gui.ScrollBar.ActionScroll.DragKnobMouseListener.onMouseMove().
|
protected |
Reimplemented in Dragengine.Gui.ScrollBar.ActionScroll.ActionScrollDownRight, and Dragengine.Gui.ScrollBar.ActionScroll.ActionScrollUpLeft.
References dispose().
Referenced by new(), Dragengine.Gui.ScrollBar.ActionScroll.ActionScrollPageUpLeft.onAction(), and Dragengine.Gui.ScrollBar.ActionScroll.DragKnobMouseListener.onMouseMove().
| ActionScroll Dragengine.Gui.ScrollBar.ActionScroll.new | ( | Orientation | orientation | ) |
Create scroll bar widget.
References new().
| ActionScroll Dragengine.Gui.ScrollBar.ActionScroll.new | ( | Orientation | orientation, |
| RangeModel | model ) |
Create scroll bar widget with model.
References getReverseWheel(), increaseValue(), pIsWheelAction, and pScrollBar.
| ActionScroll Dragengine.Gui.ScrollBar.ActionScroll.new | ( | ScrollBar | scrollBar | ) |
Reimplemented in Dragengine.Gui.ScrollBar.ActionScroll.ActionScrollDownRight, and Dragengine.Gui.ScrollBar.ActionScroll.ActionScrollUpLeft.
Referenced by enableDirectionButtons(), getKnobSize(), getModel(), getReverseWheel(), and new().
| ActionScroll Dragengine.Gui.ScrollBar.ActionScroll.new | ( | ScrollBar | scrollBar, |
| bool | isWheelAction ) |
Reimplemented in Dragengine.Gui.ScrollBar.ActionScroll.ActionScrollDownRight, and Dragengine.Gui.ScrollBar.ActionScroll.ActionScrollUpLeft.
| void Dragengine.Gui.ScrollBar.ActionScroll.onAction | ( | ActionEvent | event | ) |
Run action.
Reimplemented from Dragengine.Gui.Events.DefaultActionListener.
Referenced by getKnobSize(), and setModel().
| void Dragengine.Gui.ScrollBar.ActionScroll.onButtonPress | ( | MouseEvent | event | ) |
Mouse button has been pressed.
References getKnobSize(), and pScrollBar.
Referenced by setReverseWheel().
| void Dragengine.Gui.ScrollBar.ActionScroll.onButtonRelease | ( | MouseEvent | event | ) |
Mouse button has been released.
Referenced by focusDirectional().
| void Dragengine.Gui.ScrollBar.ActionScroll.onDesignerChanged | ( | ) |
Designer changed.
References Dragengine.Gui.Widget.getPosition(), Dragengine.Gui.Widget.getX(), and pScrollBar.
| void Dragengine.Gui.ScrollBar.ActionScroll.onGuiThemeChanged | ( | ) |
Notification that the gui theme changed.
References getModel(), and pScrollBar.
| void Dragengine.Gui.ScrollBar.ActionScroll.onResize | ( | WidgetEvent | event | ) |
Size changed.
References Dragengine.Gui.Widget.getPosition(), and Dragengine.Gui.Widget.getY().
| void Dragengine.Gui.ScrollBar.ActionScroll.rangeChanged | ( | RangeModel | rangeModel | ) |
Send if the outer range properties like minimum value, maximum value or page size has changed.
| void Dragengine.Gui.ScrollBar.ActionScroll.removeAllWidgets | ( | ) |
Remove all widgets.
Referenced by enableDirectionButtons().
| void Dragengine.Gui.ScrollBar.ActionScroll.setHideIfEmpty | ( | bool | hideIfEmpty | ) |
Set if scroll bar is hidden if range is empty.
References pScrollBar.
| void Dragengine.Gui.ScrollBar.ActionScroll.setModel | ( | RangeModel | rangeModel | ) |
Set range model.
References getModel(), onAction(), and pScrollBar.
| void Dragengine.Gui.ScrollBar.ActionScroll.setOrientation | ( | Orientation | orientation | ) |
Set oriantation of the scrollbar.
References pScrollBar.
| void Dragengine.Gui.ScrollBar.ActionScroll.setReverseWheel | ( | bool | reverseWheel | ) |
Set reverse wheel direction.
If false wheeling up decreases the range model. If true increases the range model.
References onButtonPress().
| void Dragengine.Gui.ScrollBar.ActionScroll.updateKnobWidget | ( | ) |
Update knob widget geometry.
Referenced by enableDirectionButtons().
| void Dragengine.Gui.ScrollBar.ActionScroll.valueChanged | ( | RangeModel | rangeModel | ) |
Send if the value has changed.
References getHelperPositions(), and pScrollBar.
|
protected |
|
protected |
Referenced by getKnobSize(), getModel(), getReverseWheel(), Dragengine.Gui.ScrollBar.ActionScroll.ActionScrollDownRight.increaseValue(), Dragengine.Gui.ScrollBar.ActionScroll.ActionScrollDownRight.new(), new(), onButtonPress(), onDesignerChanged(), onGuiThemeChanged(), setHideIfEmpty(), setModel(), setOrientation(), and valueChanged().