-
Notifications
You must be signed in to change notification settings - Fork 0
ScrollMode
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.ScrollMode |
| Namespace | Electron2D |
| Kind | enum |
| Category | UI and Text |
Describes how a Electron2D.ScrollContainer exposes scrolling on one axis.
public enum Electron2D.ScrollMode : System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattableProfile: Electron2D 0.1.0 2D
Status: Supported / Parity verified
Out of profile: no
Godot reference: ScrollContainer.ScrollMode
Axis scroll policy values for disabled, auto and scrollbar presentation modes.
The 0.1.0 Preview runtime uses these values for scroll offset policy. Visual scrollbar controls are outside this container task.
This enum is available since Electron2D 0.1.0 Preview.
Electron2D.ScrollContainer.HorizontalScrollModeElectron2D.ScrollContainer.VerticalScrollMode
| Member | Kind | Summary |
|---|---|---|
Auto |
Enum value | Allows scrolling when content is larger than the container. |
Disabled |
Enum value | Disables scrolling on the axis. |
MaximizeFirst |
Enum value | Prefers maximizing the content area before showing scroll affordances. |
Reserve |
Enum value | Reserves room for future visual scrollbar presentation. |
ShowAlways |
Enum value | Keeps the axis available even when content currently fits. |
ShowNever |
Enum value | Keeps the axis hidden while preserving programmatic policy state. |
Kind: Enum value
public const Electron2D.ScrollMode AutoAllows scrolling when content is larger than the container.
This is the default mode for both scroll axes.
This enum value is available since Electron2D 0.1.0 Preview.
Kind: Enum value
public const Electron2D.ScrollMode DisabledDisables scrolling on the axis.
The scroll offset is clamped to zero while this mode is active.
This enum value is available since Electron2D 0.1.0 Preview.
Kind: Enum value
public const Electron2D.ScrollMode MaximizeFirstPrefers maximizing the content area before showing scroll affordances.
This value is preserved for API compatibility with future visual scrollbars.
This enum value is available since Electron2D 0.1.0 Preview.
Kind: Enum value
public const Electron2D.ScrollMode ReserveReserves room for future visual scrollbar presentation.
The preview implementation keeps layout stable without creating scrollbar nodes.
This enum value is available since Electron2D 0.1.0 Preview.
Kind: Enum value
public const Electron2D.ScrollMode ShowAlwaysKeeps the axis available even when content currently fits.
Visual scrollbar presentation is not part of the 0.1.0 Preview baseline.
This enum value is available since Electron2D 0.1.0 Preview.
Kind: Enum value
public const Electron2D.ScrollMode ShowNeverKeeps the axis hidden while preserving programmatic policy state.
This mode does not create a public scrollbar control.
This enum value is available since Electron2D 0.1.0 Preview.
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.