-
Notifications
You must be signed in to change notification settings - Fork 0
MouseFilter
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.MouseFilter |
| Namespace | Electron2D |
| Kind | enum |
| Category | UI and Text |
Identifies how a Electron2D.Control receives and consumes mouse input.
public enum Electron2D.MouseFilter : System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattableProfile: Electron2D 0.1.0 2D
Status: Supported / Parity verified
Out of profile: no
Godot reference: Control.MouseFilter
Mouse filter values for stop, pass and ignore GUI input routing.
The value is read by the root Electron2D.Viewport while it routes
Electron2D.InputEventMouse events to controls.
A control can receive Electron2D.Control._GuiInput(Electron2D.InputEvent), pass the
event to its parent control, stop further GUI input, or be ignored for mouse
hit-testing.
Enumeration values are immutable and may be read from any thread.
This enum is available since Electron2D 0.1.0 Preview.
Electron2D.Control.MouseFilterElectron2D.Control._GuiInput(Electron2D.InputEvent)
| Member | Kind | Summary |
|---|---|---|
Ignore |
Enum value | The control is skipped by mouse GUI input hit-testing. |
Pass |
Enum value | The control receives mouse GUI input and lets unhandled events bubble. |
Stop |
Enum value | The control receives mouse GUI input and stops propagation afterward. |
Kind: Enum value
public const Electron2D.MouseFilter IgnoreThe control is skipped by mouse GUI input hit-testing.
Descendant controls can still receive input when their own hit-test and filter settings allow it.
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.MouseFilter PassThe control receives mouse GUI input and lets unhandled events bubble.
If the callback does not accept the event, the viewport continues the
GUI input path with the parent Electron2D.Control when one exists.
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.MouseFilter StopThe control receives mouse GUI input and stops propagation afterward.
If Electron2D.Control._GuiInput(Electron2D.InputEvent) does not call
Electron2D.Control.AcceptEvent, the viewport marks the event handled
after the callback returns.
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.