Skip to content

IScreenSurface Interface

A screen object that has mouse input, surface, and render information.

C#
public interface IScreenSurface : IScreenObject, IPositionable, IComponentHost

The name of the default renderer for this object.

C#
string DefaultRendererName { get; }

When true, this object will set IsFocused to true when the mouse is clicked.

C#
bool FocusOnMouseClick { get; set; }

The height of the surface in pixels.

C#
int HeightPixels { get; }

When true, this object will move to the front of its parent object when the mouse is clicked.

C#
bool MoveToFrontOnMouseClick { get; set; }

The renderer used to draw this surface.

C#
IRenderer? Renderer { get; }

The surface.

C#
ICellSurface Surface { get; }

Treats the SadRogue.Primitives.IPositionable.Position of the object as if it is pixels and not cells.

C#
bool UsePixelPositioning { get; set; }

The width of the surface in pixels.

C#
int WidthPixels { get; }

The pixel area on the screen this surface occupies.

C#
Rectangle AbsoluteArea { get; }

Font used with rendering.

C#
IFont Font { get; set; }

The size of the Font cells applied to the object when rendering.

C#
Point FontSize { get; set; }

When true, forces the Renderer to refresh the backing texture with the latest state of the object.

C#
bool ForceRendererRefresh { get; set; }

Indicates the surface has changed and needs to be rendered.

C#
bool IsDirty { get; set; }

A tint used in rendering.

C#
Color Tint { get; set; }

Raised when a mouse button is clicked on this object.

C#
event EventHandler<MouseScreenObjectState> MouseButtonClicked

EventHandler<MouseScreenObjectState>

Raised when the mouse enters this object.

C#
event EventHandler<MouseScreenObjectState> MouseEnter

EventHandler<MouseScreenObjectState>

Raised when the mouse exits this object.

C#
event EventHandler<MouseScreenObjectState> MouseExit

EventHandler<MouseScreenObjectState>

Raised when the mouse moves around the this object.

C#
event EventHandler<MouseScreenObjectState> MouseMove

EventHandler<MouseScreenObjectState>