A helper node for displaying scrollable elements such as lists.
    public class ScrollContainer : Container

A ScrollContainer node meant to contain a Control child. ScrollContainers will automatically create a scrollbar child (HScrollBar, VScrollBar, or both) when needed and will only draw the Control within the ScrollContainer area. Scrollbars will automatically be drawn at the right (for vertical) or bottom (for horizontal) and will enable dragging to move the viewable Control (and its children) within the ScrollContainer. Scrollbars will also automatically resize the grabber based on the Control.RectMinSize of the Control relative to the ScrollContainer. Works great with a Panel control. You can set EXPAND on the children’s size flags, so they will upscale to the ScrollContainer’s size if it’s larger (scroll is invisible for the chosen dimension).

Inheritance Chain

Constructors

    public ScrollContainer()

Signals

    "scroll_ended" ()

Emitted when scrolling stops.

    "scroll_started" ()

Emitted when scrolling is started.

Properties

    public int ScrollDeadzone { get; set; }

    public int ScrollHorizontal { get; set; }

The current horizontal scroll value.

    public bool ScrollHorizontalEnabled { get; set; }

If true, enables horizontal scrolling.

    public int ScrollVertical { get; set; }

The current vertical scroll value.

    public bool ScrollVerticalEnabled { get; set; }

If true, enables vertical scrolling.

Methods

    [Obsolete("GetDeadzone is deprecated. Use the ScrollDeadzone property instead.")]
    public int GetDeadzone()

Getter for ScrollDeadzone

    [Obsolete("GetHScroll is deprecated. Use the ScrollHorizontal property instead.")]
    public int GetHScroll()

Getter for ScrollHorizontal

    public HScrollBar GetHScrollbar()

    [Obsolete("GetVScroll is deprecated. Use the ScrollVertical property instead.")]
    public int GetVScroll()

Getter for ScrollVertical

    public VScrollBar GetVScrollbar()

    [Obsolete("IsHScrollEnabled is deprecated. Use the ScrollHorizontalEnabled property instead.")]
    public bool IsHScrollEnabled()

Getter for ScrollHorizontalEnabled

    [Obsolete("IsVScrollEnabled is deprecated. Use the ScrollVerticalEnabled property instead.")]
    public bool IsVScrollEnabled()

Getter for ScrollVerticalEnabled

    [Obsolete("SetDeadzone is deprecated. Use the ScrollDeadzone property instead.")]
    public void SetDeadzone(int deadzone)

Setter for ScrollDeadzone

    [Obsolete("SetEnableHScroll is deprecated. Use the ScrollHorizontalEnabled property instead.")]
    public void SetEnableHScroll(bool enable)

Setter for ScrollHorizontalEnabled

    [Obsolete("SetEnableVScroll is deprecated. Use the ScrollVerticalEnabled property instead.")]
    public void SetEnableVScroll(bool enable)

Setter for ScrollVerticalEnabled

    [Obsolete("SetHScroll is deprecated. Use the ScrollHorizontal property instead.")]
    public void SetHScroll(int value)

Setter for ScrollHorizontal

    [Obsolete("SetVScroll is deprecated. Use the ScrollVertical property instead.")]
    public void SetVScroll(int value)

Setter for ScrollVertical

Tags: