API ReferenceSandbox.UI

MousePanelEventclass

Mouse related `Sandbox.UI.PanelEvent`.

object→PanelEvent→MousePanelEvent
Namespace
Sandbox.UI
Assembly
Sandbox.Engine
Declaration
public class Sandbox.UI.MousePanelEvent : Sandbox.UI.PanelEvent

Constructors1

Showing 1 constructors

public MousePanelEvent(string event_name, Sandbox.UI.Panel active, string button)PUBLICCONSTRUCTOR

ParameterTypeDescription
event_namestring—
activePanel—
buttonstring—

Properties6

Showing 6 properties

public int Sandbox.UI.MousePanelEvent.ClickCount { get; set; }PUBLICGETSET

Click count supplied by the input source for this mouse-down event. Defaults to one.

Returns:int—

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

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

Returns:bool—

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

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

Returns:bool—

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

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

Returns:bool—

On this page