Velaptor.UI.IControl
Velaptor
Velaptor.UI
IControl Interface
A user interface object that can be updated and rendered to the screen.
public interface IControl :
Velaptor.IUpdatable,
Velaptor.IDrawable,
Velaptor.Content.IContentLoadable,
Velaptor.UI.ISizable
Derived
↳ ControlBase
Implements IUpdatable, IDrawable, IContentLoadable, ISizable
Properties
Bottom
Gets or sets the position of the bottom of the control.
int Bottom { get; set; }
Property Value
Enabled
Gets or sets a value indicating whether or not the control is enabled.
bool Enabled { get; set; }
Property Value
IsMouseOver
Gets a value indicating whether or not the mouse is hovering over the button.
bool IsMouseOver { get; }
Property Value
Left
Gets or sets the position of the left side of the control.
int Left { get; set; }
Property Value
Name
Gets or sets the name of the control.
string Name { get; set; }
Property Value
Position
Gets or sets the position of the IControl on the screen.
System.Drawing.Point Position { get; set; }
Property Value
Right
Gets or sets the position of the right side of the control.
int Right { get; set; }
Property Value
Top
Gets or sets the position of the top of the control.
int Top { get; set; }
Property Value
Visible
Gets or sets a value indicating whether or not the control is visible.
bool Visible { get; set; }
Property Value
Events
IControl.Click Event
Occurs when the button has been clicked.
event EventHandler<EventArgs>? Click;
Event Type
System.EventHandler<System.EventArgs>
IControl.KeyDown Event
Occurs when a keyboard key is pressed into the down position.
event EventHandler<KeyEventArgs>? KeyDown;
Event Type
System.EventHandler<KeyEventArgs>
IControl.KeyUp Event
Occurs when a keyboard key is released into the up position.
event EventHandler<KeyEventArgs>? KeyUp;
Event Type
System.EventHandler<KeyEventArgs>
IControl.MouseDown Event
Occurs when the left mouse button is in the down position over the button.
event EventHandler<EventArgs>? MouseDown;
Event Type
System.EventHandler<System.EventArgs>
IControl.MouseMove Event
Occurs when the mouse moves over the button.
event EventHandler<MouseMoveEventArgs>? MouseMove;
Event Type
System.EventHandler<MouseMoveEventArgs>
IControl.MouseUp Event
Occurs when the left mouse button is in the up position over the button
after the mouse has been in the down position.
event EventHandler<EventArgs>? MouseUp;