Class Control
Abstract base class for all control views
public abstract class Control : ICloneable
- Inheritance
-
Control
- Implements
- Derived
- Inherited Members
- Extension Methods
Fields
DXControl
The OmegaGUI.Render control used for actual rendering
protected Control? DXControl
Field Value
EffectiveLocation
The actual location of the control on the dialog factoring in AlignHorizontal and AlignVertical
protected Point EffectiveLocation
Field Value
EffectiveSize
The actual size of the control on the dialog factoring in scaling due to Scale
protected Size EffectiveSize
Field Value
IsEnabled
protected bool IsEnabled
Field Value
IsVisible
protected bool IsVisible
Field Value
Properties
AlignHorizontal
How to handle the X values of Location and Size
public HorizontalMode AlignHorizontal { get; set; }
Property Value
AlignVertical
How to handle the Y values of Location and Size
public VerticalMode AlignVertical { get; set; }
Property Value
ControlModel
[Browsable(false)]
public Control? ControlModel { get; }
Property Value
Default
Is this the default control on the dialog? - no auto-update
public bool Default { get; set; }
Property Value
DrawBox
The effective area on the window were this control is rendered
[Browsable(false)]
public Rectangle DrawBox { get; }
Property Value
Enabled
Is this control currently active?
public bool Enabled { get; set; }
Property Value
Location
The location of the control on the dialog
public Point Location { get; set; }
Property Value
Name
Unique name for identifying this control
public string? Name { get; set; }
Property Value
OnMouseEnter
A Lua script to execute when the mouse enters the area of the control
[FileType("Lua")]
public string? OnMouseEnter { get; set; }
Property Value
OnMouseExit
A Lua script to execute when the mouse leaves the area of the control
[FileType("Lua")]
public string? OnMouseExit { get; set; }
Property Value
Size
The size of the control on the dialog
public Size Size { get; set; }
Property Value
Visible
Is this control currently visible?
public bool Visible { get; set; }
Property Value
Methods
Clone()
Creates a shallow copy of this control. You need to call OmegaGUI.Model.Control.Generate() on it before it can be used for rendering.
public Control Clone()
Returns
- Control
The cloned control
NeedsUpdate()
protected void NeedsUpdate()
SetupMouseEvents()
protected void SetupMouseEvents()
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.