Class ControlBase.ControlMouseState
Mouse state based on a specific control.
Inherited Members
Namespace: SadConsole.UI.Controls
Assembly: SadConsole.dll
Syntax
public class ControlBase.ControlMouseState
Constructors
ControlMouseState(ControlBase, MouseScreenObjectState)
Creates an instance of the mouse control state class and infers the MousePosition from the control and state.
Declaration
public ControlMouseState(ControlBase control, MouseScreenObjectState originalMouseState)
Parameters
| Type | Name | Description |
|---|---|---|
| ControlBase | control | The control. |
| MouseScreenObjectState | originalMouseState | The original mouse state sent to the control. |
ControlMouseState(ControlBase, Point, MouseScreenObjectState)
Creates an instance of the mouse control state class.
Declaration
public ControlMouseState(ControlBase control, Point mousePosition, MouseScreenObjectState originalMouseState)
Parameters
| Type | Name | Description |
|---|---|---|
| ControlBase | control | The control. |
| Point | mousePosition | The position of the mouse relative to the control. |
| MouseScreenObjectState | originalMouseState | The original mouse state sent to the control. |
Properties
Control
The control this mouse state is associated with.
Declaration
public ControlBase Control { get; set; }
Property Value
| Type | Description |
|---|---|
| ControlBase |
IsMouseOver
Declaration
public bool IsMouseOver { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MousePosition
The relative position of the mouse to the control.
Declaration
public Point MousePosition { get; set; }
Property Value
| Type | Description |
|---|---|
| Point |
OriginalMouseState
The original mouse state used to generate the event.
Declaration
public MouseScreenObjectState OriginalMouseState { get; set; }
Property Value
| Type | Description |
|---|---|
| MouseScreenObjectState |