-
Notifications
You must be signed in to change notification settings - Fork 0
FocusMode
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.FocusMode |
| Namespace | Electron2D |
| Kind | enum |
| Category | UI and Text |
Identifies how a Electron2D.Control can receive keyboard, gamepad or
mouse focus.
public enum Electron2D.FocusMode : System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattableProfile: Electron2D 0.1.0 2D
Status: Supported / Parity verified
Out of profile: no
Godot reference: Control.FocusMode
Focus mode values for disabled, click-only and direct/all focus in the UI input baseline.
Focus is owned by the root Electron2D.Viewport that contains the control.
Only one control can be focused in that viewport at a time.
This enumeration controls whether Electron2D.Control.GrabFocus can focus
a control and whether mouse press events focus the control before
Electron2D.Control._GuiInput(Electron2D.InputEvent) is called.
Enumeration values are immutable and may be read from any thread.
This enum is available since Electron2D 0.1.0 Preview.
Electron2D.Control.FocusModeElectron2D.Control.GrabFocus
| Member | Kind | Summary |
|---|---|---|
All |
Enum value | The control can receive focus from direct focus calls and pointer input. |
Click |
Enum value | The control can receive focus from mouse or touch presses. |
None |
Enum value | The control cannot receive focus. |
Kind: Enum value
public const Electron2D.FocusMode AllThe control can receive focus from direct focus calls and pointer input.
Keyboard/gamepad focus navigation is introduced by later UI tasks, but
this mode already allows direct Electron2D.Control.GrabFocus calls
and click focus in the input dispatch baseline.
Enumeration values are immutable and may be read from any thread.
This field is available since Electron2D 0.1.0 Preview.
Kind: Enum value
public const Electron2D.FocusMode ClickThe control can receive focus from mouse or touch presses.
This mode is intended for controls that should become focused when clicked but should not be selected by keyboard navigation in the preview baseline.
Enumeration values are immutable and may be read from any thread.
This field is available since Electron2D 0.1.0 Preview.
Kind: Enum value
public const Electron2D.FocusMode NoneThe control cannot receive focus.
Electron2D.Control.GrabFocus ignores controls in this mode, and
mouse presses do not focus them.
Enumeration values are immutable and may be read from any thread.
This field is available since Electron2D 0.1.0 Preview.
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.