API ReferenceSandbox.UI
public class Sandbox.UI.ButtonEvent
Keyboard (and mouse) key press `Sandbox.UI.PanelEvent`.
Constructors
Showing 1 constructors
protected ButtonEvent(Sandbox.UI.ButtonEvent original)
No results match this filter.
Methods
Showing 2 methods
public virtual Sandbox.UI.ButtonEvent <Clone>$()
protected virtual bool PrintMembers(System.Text.StringBuilder builder)
No results match this filter.
Properties
Showing 9 properties
public string Sandbox.UI.ButtonEvent.Button { get; set; }
The button that triggered the event.
protected virtual System.Type Sandbox.UI.ButtonEvent.EqualityContract { get; set; }
public bool Sandbox.UI.ButtonEvent.HasAlt { get; set; }
Whether `Alt` key was being held down at the time of the event.
public bool Sandbox.UI.ButtonEvent.HasCtrl { get; set; }
Whether `Control` key was being held down at the time of the event.
public bool Sandbox.UI.ButtonEvent.HasShift { get; set; }
Whether `Shift` key was being held down at the time of the event.
public Sandbox.KeyboardModifiers Sandbox.UI.ButtonEvent.KeyboardModifiers { get; set; }
The keyboard modifier keys that were held down at the moment the event triggered.
public bool Sandbox.UI.ButtonEvent.Pressed { get; set; }
Whether the button was pressed in, or release.
public bool Sandbox.UI.ButtonEvent.StopPropagation { get; set; }
Set to to prevent the event from propagating to the parent panel.
public int Sandbox.UI.ButtonEvent.VirtualKey { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.UI |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.UI.ButtonEvent |