IScreenSurface Interface
Definition
Section titled “Definition”A screen object that has mouse input, surface, and render information.
public interface IScreenSurface : IScreenObject, IPositionable, IComponentHostProperties
Section titled “Properties”DefaultRendererName
Section titled “DefaultRendererName”The name of the default renderer for this object.
string DefaultRendererName { get; }FocusOnMouseClick
Section titled “FocusOnMouseClick”When true, this object will set IsFocused to true when the mouse is clicked.
bool FocusOnMouseClick { get; set; }HeightPixels
Section titled “HeightPixels”The height of the surface in pixels.
int HeightPixels { get; }MoveToFrontOnMouseClick
Section titled “MoveToFrontOnMouseClick”When true, this object will move to the front of its parent object when the mouse is clicked.
bool MoveToFrontOnMouseClick { get; set; }Renderer
Section titled “Renderer”The renderer used to draw this surface.
IRenderer? Renderer { get; }Surface
Section titled “Surface”The surface.
ICellSurface Surface { get; }UsePixelPositioning
Section titled “UsePixelPositioning”Treats the SadRogue.Primitives.IPositionable.Position of the object as if it is pixels and not cells.
bool UsePixelPositioning { get; set; }WidthPixels
Section titled “WidthPixels”The width of the surface in pixels.
int WidthPixels { get; }AbsoluteArea
Section titled “AbsoluteArea”The pixel area on the screen this surface occupies.
Rectangle AbsoluteArea { get; }Font used with rendering.
IFont Font { get; set; }FontSize
Section titled “FontSize”The size of the Font cells applied to the object when rendering.
Point FontSize { get; set; }ForceRendererRefresh
Section titled “ForceRendererRefresh”When true, forces the Renderer to refresh the backing texture with the latest state of the object.
bool ForceRendererRefresh { get; set; }IsDirty
Section titled “IsDirty”Indicates the surface has changed and needs to be rendered.
bool IsDirty { get; set; }A tint used in rendering.
Color Tint { get; set; }Events
Section titled “Events”MouseButtonClicked
Section titled “MouseButtonClicked”Raised when a mouse button is clicked on this object.
event EventHandler<MouseScreenObjectState> MouseButtonClickedEvent Type
Section titled “Event Type”EventHandler<MouseScreenObjectState>
MouseEnter
Section titled “MouseEnter”Raised when the mouse enters this object.
event EventHandler<MouseScreenObjectState> MouseEnterEvent Type
Section titled “Event Type”EventHandler<MouseScreenObjectState>
MouseExit
Section titled “MouseExit”Raised when the mouse exits this object.
event EventHandler<MouseScreenObjectState> MouseExitEvent Type
Section titled “Event Type”EventHandler<MouseScreenObjectState>
MouseMove
Section titled “MouseMove”Raised when the mouse moves around the this object.
event EventHandler<MouseScreenObjectState> MouseMove