Skip to main content

Class DisplayScreen

An abstraction of a physical screen

Assembly: MicroLayout.dll
View Source
Declaration
public class DisplayScreen : IControl

Implements:
Meadow.Foundation.Graphics.MicroLayout.IControl

Properties

TouchScreen

Gets the Touchscreen associated with the display screen

View Source
Declaration
public ITouchScreen? TouchScreen { get; }

Controls

Gets the collection of controls on the display screen.

View Source
Declaration
public ControlsCollection Controls { get; }

Width

Gets the width of the display screen.

View Source
Declaration
public int Width { get; set; }

Height

Gets the height of the display screen.

View Source
Declaration
public int Height { get; set; }

IsInvalid

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

View Source
Declaration
public bool IsInvalid { get; }

BackgroundColor

Gets or sets the background color of the display screen.

View Source
Declaration
public Color BackgroundColor { get; set; }

Left

Gets or sets the left coordinate of the display control.

View Source
Declaration
public int Left { get; set; }

Top

Gets or sets the top coordinate of the display control.

View Source
Declaration
public int Top { get; set; }

IsVisible

Gets or sets whether the control is visible.

View Source
Declaration
public bool IsVisible { get; set; }

Parent

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

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

Methods

Invalidate()

Invalidates the entire screen, causing all controls to redraw

View Source
Declaration
public void Invalidate()

BeginUpdate()

Begins an update process for the display screen, indicating that no drawing should take place until EndUpdate is called

View Source
Declaration
public void BeginUpdate()

EndUpdate()

End an update process for the display screen, indicating that drawing should resume and invalidating the DisplayScreen

View Source
Declaration
public void EndUpdate()

Refresh(MicroGraphics)

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

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

Implements