Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Gui.ScrollBar.ActionScroll Class Reference

Action scroll. More...

Inheritance diagram for Dragengine.Gui.ScrollBar.ActionScroll:
Dragengine.Gui.Events.DefaultActionListener Dragengine.Gui.Events.ActionListener Dragengine.Gui.ScrollBar.ActionScroll.ActionScrollDownRight Dragengine.Gui.ScrollBar.ActionScroll.ActionScrollUpLeft

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

Detailed Description

Action scroll.

Version
1.9

Member Function Documentation

◆ createContent()

void Dragengine.Gui.ScrollBar.ActionScroll.createContent ( )

Create content widgets.

Referenced by enableDirectionButtons().

◆ dispose()

void Dragengine.Gui.ScrollBar.ActionScroll.dispose ( )

Dispose of widget.

Referenced by increaseValue().

◆ enableDirectionButtons()

◆ focusDirectional()

void Dragengine.Gui.ScrollBar.ActionScroll.focusDirectional ( int direction)

◆ getDesignerFromTheme()

WidgetDesigner Dragengine.Gui.ScrollBar.ActionScroll.getDesignerFromTheme ( )
protected

Get designer from gui theme.

Modified to ensure a DefaultScrollBarDesigner is used if super.getDesignerFromTheme() returns null.

◆ getFocusMouseLocation()

Point Dragengine.Gui.ScrollBar.ActionScroll.getFocusMouseLocation ( )

◆ getHelperPositions()

RectArea Dragengine.Gui.ScrollBar.ActionScroll.getHelperPositions ( )

Helper positions. If not present yet they are calculated.

Referenced by enableDirectionButtons(), and valueChanged().

◆ getHideIfEmpty()

bool Dragengine.Gui.ScrollBar.ActionScroll.getHideIfEmpty ( )

Hide scroll bar if range is empty.

◆ getKnobSize()

int Dragengine.Gui.ScrollBar.ActionScroll.getKnobSize ( )

Size of the drag knob.

References getModel(), new(), onAction(), and pScrollBar.

Referenced by onButtonPress().

◆ getModel()

RangeModel Dragengine.Gui.ScrollBar.ActionScroll.getModel ( )

◆ getReverseWheel()

bool Dragengine.Gui.ScrollBar.ActionScroll.getReverseWheel ( )

Reverse wheel direction.

Version
1.9

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

◆ increaseValue()

◆ new() [1/4]

ActionScroll Dragengine.Gui.ScrollBar.ActionScroll.new ( Orientation orientation)

Create scroll bar widget.

References new().

◆ new() [2/4]

ActionScroll Dragengine.Gui.ScrollBar.ActionScroll.new ( Orientation orientation,
RangeModel model )

Create scroll bar widget with model.

References getReverseWheel(), increaseValue(), pIsWheelAction, and pScrollBar.

◆ new() [3/4]

◆ new() [4/4]

ActionScroll Dragengine.Gui.ScrollBar.ActionScroll.new ( ScrollBar scrollBar,
bool isWheelAction )

◆ onAction()

void Dragengine.Gui.ScrollBar.ActionScroll.onAction ( ActionEvent event)

Run action.

Reimplemented from Dragengine.Gui.Events.DefaultActionListener.

Referenced by getKnobSize(), and setModel().

◆ onButtonPress()

void Dragengine.Gui.ScrollBar.ActionScroll.onButtonPress ( MouseEvent event)

Mouse button has been pressed.

References getKnobSize(), and pScrollBar.

Referenced by setReverseWheel().

◆ onButtonRelease()

void Dragengine.Gui.ScrollBar.ActionScroll.onButtonRelease ( MouseEvent event)

Mouse button has been released.

Referenced by focusDirectional().

◆ onDesignerChanged()

void Dragengine.Gui.ScrollBar.ActionScroll.onDesignerChanged ( )

◆ onGuiThemeChanged()

void Dragengine.Gui.ScrollBar.ActionScroll.onGuiThemeChanged ( )

Notification that the gui theme changed.

References getModel(), and pScrollBar.

◆ onResize()

void Dragengine.Gui.ScrollBar.ActionScroll.onResize ( WidgetEvent event)

◆ rangeChanged()

void Dragengine.Gui.ScrollBar.ActionScroll.rangeChanged ( RangeModel rangeModel)

Send if the outer range properties like minimum value, maximum value or page size has changed.

◆ removeAllWidgets()

void Dragengine.Gui.ScrollBar.ActionScroll.removeAllWidgets ( )

Remove all widgets.

Referenced by enableDirectionButtons().

◆ setHideIfEmpty()

void Dragengine.Gui.ScrollBar.ActionScroll.setHideIfEmpty ( bool hideIfEmpty)

Set if scroll bar is hidden if range is empty.

References pScrollBar.

◆ setModel()

void Dragengine.Gui.ScrollBar.ActionScroll.setModel ( RangeModel rangeModel)

Set range model.

References getModel(), onAction(), and pScrollBar.

◆ setOrientation()

void Dragengine.Gui.ScrollBar.ActionScroll.setOrientation ( Orientation orientation)

Set oriantation of the scrollbar.

References pScrollBar.

◆ setReverseWheel()

void Dragengine.Gui.ScrollBar.ActionScroll.setReverseWheel ( bool reverseWheel)

Set reverse wheel direction.

Version
1.9

If false wheeling up decreases the range model. If true increases the range model.

References onButtonPress().

◆ updateKnobWidget()

void Dragengine.Gui.ScrollBar.ActionScroll.updateKnobWidget ( )

Update knob widget geometry.

Referenced by enableDirectionButtons().

◆ valueChanged()

void Dragengine.Gui.ScrollBar.ActionScroll.valueChanged ( RangeModel rangeModel)

Send if the value has changed.

References getHelperPositions(), and pScrollBar.

Member Data Documentation

◆ pIsWheelAction

◆ pScrollBar


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