Class Control
This interface implements new manditory additions which aren't present in Instance
Inheritance
System.Object
Control
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Inferno.Desktop.dll
Syntax
public abstract class Control
Constructors
|
Improve this Doc
View Source
Control(Nullable<Vector2>, String, Font, Nullable<Color>, Nullable<Color>, Nullable<Color>, Int32, Sprite, Int32, Int32, Boolean)
Declaration
protected Control(Vector2? position = default(Vector2? ), string text = "", Font textFont = null, Color? foreColor = default(Color? ), Color? backColor = default(Color? ), Color? borderColor = default(Color? ), int borderWidth = 1, Sprite background = null, int width = 0, int height = 0, bool highlightOnHover = false)
Parameters
Type |
Name |
Description |
System.Nullable<Vector2> |
position |
|
System.String |
text |
|
Font |
textFont |
|
System.Nullable<Color> |
foreColor |
|
System.Nullable<Color> |
backColor |
|
System.Nullable<Color> |
borderColor |
|
System.Int32 |
borderWidth |
|
Sprite |
background |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
System.Boolean |
highlightOnHover |
|
Fields
|
Improve this Doc
View Source
BackColor
Declaration
Field Value
|
Improve this Doc
View Source
Background
The background applied to the control
Declaration
Field Value
|
Improve this Doc
View Source
BorderColor
Declaration
Field Value
|
Improve this Doc
View Source
BorderWidth
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ForeColor
Declaration
Field Value
|
Improve this Doc
View Source
Height
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
HighlightOnHover
Declaration
public bool HighlightOnHover
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
OnTextChanged
Declaration
public EventHandler<Control.TextChangedEventArgs> OnTextChanged
Field Value
|
Improve this Doc
View Source
Position
Declaration
Field Value
|
Improve this Doc
View Source
State
Declaration
public ControlState State
Field Value
|
Improve this Doc
View Source
TabIndex
The tab index (-1 = not indexed)
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
TextFont
Declaration
Field Value
|
Improve this Doc
View Source
UIOffset
The coordinate offset for mouse input
Declaration
Field Value
|
Improve this Doc
View Source
Width
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Properties
|
Improve this Doc
View Source
Bounds
Declaration
public Rectangle Bounds { get; }
Property Value
|
Improve this Doc
View Source
Text
The text to be drawn at the center of the Control
Declaration
public string Text { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
Draw(Renderer)
Declaration
public virtual void Draw(Renderer renderer)
Parameters
|
Improve this Doc
View Source
Update()
Declaration
public virtual void Update()
Events
|
Improve this Doc
View Source
ControlClicked
Declaration
public event Control.ControlClickedEvent ControlClicked
Event Type
|
Improve this Doc
View Source
ControlHovered
Declaration
public event Control.ControlHoveredEvent ControlHovered
Event Type