Class DisplayScreen
An abstraction of a physical screen
Assembly: MicroLayout.dll
View Source
public class DisplayScreen : IControl
Implements:
Meadow.Foundation.Graphics.MicroLayout.IControl
Properties
TouchScreen
Gets the Touchscreen associated with the display screen
View Source
public ITouchScreen? TouchScreen { get; }
Controls
Gets the collection of controls on the display screen.
View Source
public ControlsCollection Controls { get; }
Width
Gets the width of the display screen.
View Source
public int Width { get; set; }
Height
Gets the height of the display screen.
View Source
public int Height { get; set; }
IsInvalid
Gets a value indicating whether the display control is currently invalid and needs to be refreshed.
View Source
public bool IsInvalid { get; }
BackgroundColor
Gets or sets the background color of the display screen.
View Source
public Color BackgroundColor { get; set; }
Left
Gets or sets the left coordinate of the display control.
View Source
public int Left { get; set; }
Top
Gets or sets the top coordinate of the display control.
View Source
public int Top { get; set; }
IsVisible
Gets or sets whether the control is visible.
View Source
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
public IControl? Parent { get; set; }
Methods
Invalidate()
Invalidates the entire screen, causing all controls to redraw
View Source
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
public void BeginUpdate()
EndUpdate()
End an update process for the display screen, indicating that drawing should resume and invalidating the DisplayScreen
View Source
public void EndUpdate()
Refresh(MicroGraphics)
Refreshes the display control using the specified Meadow.Foundation.Graphics.MicroGraphics object.
View Source
public void Refresh(MicroGraphics graphics)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Foundation.Graphics.MicroGraphics object to use for refreshing the display control. |