Skip to main content

Interface IControl

Represents a display control in the user interface.

Assembly: MicroLayout.dll
View Source
Declaration
public interface IControl

Properties

Parent

Gets of sets the Control's Paretn, if it has one. If the Control is unparented (i.e. Parent is null) then it is directly on the DisplayScreen

View Source
Declaration
IControl? Parent { get; set; }

Left

Gets or sets the left coordinate of the display control.

View Source
Declaration
int Left { get; set; }

Top

Gets or sets the top coordinate of the display control.

View Source
Declaration
int Top { get; set; }

IsVisible

Gets or sets whether the control is visible.

View Source
Declaration
bool IsVisible { get; set; }

Width

Gets or sets the width of the display control.

View Source
Declaration
int Width { get; set; }

Height

Gets or sets the height of the display control.

View Source
Declaration
int Height { get; set; }

IsInvalid

Gets a value indicating whether the display control is currently invalid and needs to be refreshed.

View Source
Declaration
bool IsInvalid { get; }

Methods

Refresh(MicroGraphics)

Refreshes the display control using the specified Meadow.Foundation.Graphics.MicroGraphics object.

View Source
Declaration
void Refresh(MicroGraphics graphics)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.MicroGraphics object to use for refreshing the display control.

Invalidate()

Marks the display control as invalid and in need of refreshing.

View Source
Declaration
void Invalidate()

Contains(int, int)

Checks if the specified coordinates are contained within the display control's area.

View Source
Declaration
bool Contains(int x, int y)
Returns

System.Boolean: true if the coordinates are contained within the display control's area; otherwise, false.

Parameters
TypeNameDescription
System.Int32xThe x-coordinate to check.
System.Int32yThe y-coordinate to check.