API ReferenceSandbox.UI

ButtonEventclass

Keyboard (and mouse) key press `Sandbox.UI.PanelEvent`.

objectButtonEvent
Namespace
Sandbox.UI
Assembly
Sandbox.Engine
Declaration
public class Sandbox.UI.ButtonEvent

Constructors1

Showing 1 constructors

Methods2

Showing 2 methods

protected virtual bool PrintMembers(System.Text.StringBuilder builder)PROTECTEDVIRTUAL

ParameterTypeDescription
builderStringBuilder
Returns:bool

Properties9

Showing 9 properties

public string Sandbox.UI.ButtonEvent.Button { get; set; }PUBLICGETSET

The button that triggered the event.

Returns:string

protected virtual System.Type Sandbox.UI.ButtonEvent.EqualityContract { get; set; }PROTECTEDVIRTUALGETSET

Returns:Type

public bool Sandbox.UI.ButtonEvent.HasAlt { get; set; }PUBLICGETSET

Whether `Alt` key was being held down at the time of the event.

Returns:bool

public bool Sandbox.UI.ButtonEvent.HasCtrl { get; set; }PUBLICGETSET

Whether `Control` key was being held down at the time of the event.

Returns:bool

public bool Sandbox.UI.ButtonEvent.HasShift { get; set; }PUBLICGETSET

Whether `Shift` key was being held down at the time of the event.

Returns:bool

public bool Sandbox.UI.ButtonEvent.Pressed { get; set; }PUBLICGETSET

Whether the button was pressed in, or release.

Returns:bool

public bool Sandbox.UI.ButtonEvent.StopPropagation { get; set; }PUBLICGETSET

Set to to prevent the event from propagating to the parent panel.

Returns:bool

public int Sandbox.UI.ButtonEvent.VirtualKey { get; set; }PUBLICGETSET

Returns:int

On this page