ScrollContainer

A helper node for displaying scrollable elements (e.g. lists).

A ScrollContainer node with a Control child and scrollbar child (HScrollbar, VScrollBar, or both) 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 minimum_size of the Control relative to the ScrollContainer. Works great with a Panel control. You can set EXPAND on children size flags, so they will upscale to ScrollContainer size if ScrollContainer size is bigger (scroll is invisible for chosen dimension).

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

_guiInput
void _guiInput(InputEvent arg0)
_scrollMoved
void _scrollMoved(double arg0)
_updateScrollbarPosition
void _updateScrollbarPosition()
getDeadzone
long getDeadzone()
getHScroll
long getHScroll()
getHScrollbar
HScrollBar getHScrollbar()
getVScroll
long getVScroll()
getVScrollbar
VScrollBar getVScrollbar()
isHScrollEnabled
bool isHScrollEnabled()
isVScrollEnabled
bool isVScrollEnabled()
opAssign
ScrollContainer opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(ScrollContainer other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
setDeadzone
void setDeadzone(long deadzone)
setEnableHScroll
void setEnableHScroll(bool enable)
setEnableVScroll
void setEnableVScroll(bool enable)
setHScroll
void setHScroll(long value)
setVScroll
void setVScroll(long value)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

scrollDeadzone
long scrollDeadzone [@property getter]
long scrollDeadzone [@property setter]
scrollHorizontal
long scrollHorizontal [@property getter]
long scrollHorizontal [@property setter]

The current horizontal scroll value.

scrollHorizontalEnabled
bool scrollHorizontalEnabled [@property getter]
bool scrollHorizontalEnabled [@property setter]

If true, enables horizontal scrolling.

scrollVertical
long scrollVertical [@property getter]
long scrollVertical [@property setter]

The current vertical scroll value.

scrollVerticalEnabled
bool scrollVerticalEnabled [@property getter]
bool scrollVerticalEnabled [@property setter]

If true, enables vertical scrolling.

Static functions

_new
ScrollContainer _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta