-
Notifications
You must be signed in to change notification settings - Fork 0
CheckBox
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.CheckBox |
| Namespace | Electron2D |
| Kind | class |
| Category | UI and Text |
Provides a toggle button with a check indicator and text.
public class Electron2D.CheckBox : Electron2D.ButtonProfile: Electron2D 0.1.0 2D
Status: Supported / Parity verified
Out of profile: no
Godot reference: CheckBox
Toggle text button with check indicator, inherited button signals and default toggle behavior.
CheckBox is a Electron2D.Button with Electron2D.BaseButton.ToggleMode
enabled by default. It emits the inherited button signals.
This type is not synchronized. Create and mutate check boxes on the main scene thread.
This type is available since Electron2D 0.1.0 Preview.
Electron2D.BaseButton.ButtonPressedElectron2D.Button
| Member | Kind | Summary |
|---|---|---|
Electron2D.CheckBox() |
Constructor | Initializes a new instance of the Electron2D.CheckBox class. |
_Draw() |
Method | Draws the checkbox indicator and text. |
_GetMinimumSize() |
Method | Gets the minimum size requested by this check box. |
Kind: Constructor
public Electron2D.CheckBox()Initializes a new instance of the Electron2D.CheckBox class.
The new check box enables Electron2D.BaseButton.ToggleMode so user
activation changes Electron2D.BaseButton.ButtonPressed.
This constructor is not synchronized. Call it from the main scene thread.
This constructor is available since Electron2D 0.1.0 Preview.
Electron2D.CheckBox
Kind: Method
public System.Void _Draw()()Draws the checkbox indicator and text.
The preview visual style uses rectangle primitives. Theme style boxes and icons can be layered later without changing the public API.
This callback is invoked on the main scene thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.Button._Draw
Kind: Method
public Electron2D.Vector2 _GetMinimumSize()()Gets the minimum size requested by this check box.
The indicator reserves 24 pixels on the horizontal axis.
The inherited text minimum size plus space for the check indicator.
This callback is invoked on the main scene thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.Button._GetMinimumSize
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.