Skip to content

API UI and Text

Eduard Gushchin edited this page Jun 22, 2026 · 8 revisions

Home | API by Category | Complete API Index | API Compatibility

UI controls, labels, fonts and text alignment values.

This category currently contains 39 public types.

Type Kind Summary
BaseButton class Provides shared input, focus and signal behavior for button controls.
BaseButton.ActionModeEnum enum Identifies when a button emits its activation signal.
BoxContainer class Arranges direct child controls in a single horizontal or vertical line.
BoxContainerAlignmentMode enum Describes how a Electron2D.BoxContainer positions children when free space remains.
Button class Provides a text button control.
CenterContainer class Places direct child controls around the center of this container.
CheckBox class Provides a toggle button with a check indicator and text.
Container class Provides the base control for nodes that arrange direct child controls.
Control class Provides the Electron2D base node for 2D user interface controls.
FocusMode enum Identifies how a Electron2D.Control can receive keyboard, gamepad or mouse focus.
Font class Provides the Electron2D base resource for text layout and drawing.
GridContainer class Arranges direct child controls into rows and columns.
GrowDirection enum Describes which side of a Electron2D.Control moves when the control must grow to satisfy its minimum size.
HBoxContainer class Arranges direct child controls horizontally.
HorizontalAlignment enum Defines horizontal text alignment values used by Electron2D text drawing APIs.
Label class Provides the Electron2D control for drawing a single line of plain text.
LineEdit class Provides a single-line text editing control.
MarginContainer class Places direct child controls inside theme-defined margins.
MouseFilter enum Identifies how a Electron2D.Control receives and consumes mouse input.
NinePatchRect class Provides a texture-backed UI rectangle with nine-patch margins.
NinePatchRect.AxisStretchModeEnum enum Identifies how the center segment of a nine-patch axis is expanded.
Panel class Provides a rectangular UI control used as a simple visual panel.
ProgressBar class Provides a read-only visual progress indicator.
Range class Provides a numeric value with minimum, maximum, step and ratio state.
ScrollContainer class Clips and scrolls direct child controls inside a viewport-sized rectangle.
ScrollHintMode enum Describes which scroll hint edges a Electron2D.ScrollContainer may expose.
ScrollMode enum Describes how a Electron2D.ScrollContainer exposes scrolling on one axis.
SizeFlags enum Describes how a Electron2D.Control uses space allocated by a parent Electron2D.Container.
Slider class Provides an editable horizontal slider control.
StyleBox class Provides the base resource for drawing themed UI boxes.
StyleBoxFlat class Provides a rectangle style box with a fill color and optional borders.
TextureButton class Provides a button that draws textures for its visual states.
TextureButton.StretchModeEnum enum Identifies how a texture button scales its selected texture.
TextureRect class Provides a control that draws a texture inside its rectangle.
TextureRect.ExpandModeEnum enum Identifies how texture size contributes to minimum size.
TextureRect.StretchModeEnum enum Identifies how a texture is drawn inside the control rectangle.
Theme class Provides a reusable resource for styling UI controls.
VBoxContainer class Arranges direct child controls vertically.
VerticalAlignment enum Identifies the vertical alignment used by controls that draw text.

Clone this wiki locally