Class ScrollBar
- Namespace
- Forma
- Assembly
- Forma.dll
Scrolls a numeric range through step buttons, page regions, thumb dragging, or inertial drag-node input.
public class ScrollBar : Range, IAddChild<Control>, IAddChild, INotifyPropertyChanged, IDisposable
- Inheritance
-
ScrollBar
- Implements
- Derived
- Inherited Members
Constructors
ScrollBar(Orientation)
public ScrollBar(Orientation orientation)
Parameters
orientationOrientation
Properties
AccessibilityActions
public override AccessibilityActions AccessibilityActions { get; }
Property Value
AccessibilityRole
public override AccessibilityRole AccessibilityRole { get; }
Property Value
CustomStep
public float CustomStep { get; set; }
Property Value
DragNodeEnabled
public bool DragNodeEnabled { get; set; }
Property Value
DragNodeSpeed
public Vector2 DragNodeSpeed { get; }
Property Value
- Vector2
IsDecrementHighlighted
public bool IsDecrementHighlighted { get; }
Property Value
IsDragNodeDecelerating
public bool IsDragNodeDecelerating { get; }
Property Value
IsDragNodeTouching
public bool IsDragNodeTouching { get; }
Property Value
IsDraggingGrabber
public bool IsDraggingGrabber { get; }
Property Value
IsIncrementHighlighted
public bool IsIncrementHighlighted { get; }
Property Value
IsRangeHighlighted
public bool IsRangeHighlighted { get; }
Property Value
IsSmoothScrolling
public bool IsSmoothScrolling { get; }
Property Value
Orientation
public Orientation Orientation { get; }
Property Value
SmoothScrollEnabled
public bool SmoothScrollEnabled { get; set; }
Property Value
TargetScroll
public float TargetScroll { get; }
Property Value
Methods
BeginDragNodeScroll(bool)
public void BeginDragNodeScroll(bool touchscreenAvailable = true)
Parameters
touchscreenAvailablebool
DragNodeScrollBy(Vector2)
public void DragNodeScrollBy(Vector2 relativeMotion)
Parameters
relativeMotionVector2
EndDragNodeScroll()
public void EndDragNodeScroll()
GetCustomStep()
public float GetCustomStep()
Returns
GetDecrementButtonRectangle()
public Rectangle GetDecrementButtonRectangle()
Returns
- Rectangle
GetDragNode()
public string GetDragNode()
Returns
GetGrabberRectangle()
public Rectangle GetGrabberRectangle()
Returns
- Rectangle
GetIncrementButtonRectangle()
public Rectangle GetIncrementButtonRectangle()
Returns
- Rectangle
GetMinimumSize()
public override Vector2 GetMinimumSize()
Returns
- Vector2
IsDragNodeEnabled()
public bool IsDragNodeEnabled()
Returns
IsSmoothScrollEnabled()
public bool IsSmoothScrollEnabled()
Returns
OnContextChanged(UIContext, UIContext)
Called when this control enters, exits, or moves between retained UI contexts.
protected override void OnContextChanged(UIContext previous, UIContext current)
Parameters
SetCustomStep(float)
public void SetCustomStep(float customStep)
Parameters
customStepfloat
SetDragNode(string)
public void SetDragNode(string path)
Parameters
pathstring
SetDragNodeEnabled(bool)
public void SetDragNodeEnabled(bool enabled)
Parameters
enabledbool
SetSmoothScrollEnabled(bool)
public void SetSmoothScrollEnabled(bool enabled)
Parameters
enabledbool
Events
Scrolling
Raised when user-driven scrolling changes the effective value, matching Godot's scrolling signal.
public event EventHandler Scrolling