Interface ISubWindow
Defines the traits implemented by the SubWindow class.
Inherited Members
Namespace: Sharpie.Abstractions
Assembly: sharpie.dll
Syntax
[PublicAPI]
public interface ISubWindow : ISurface, IDrawSurface
Properties
Location
Gets or sets the location of the sub-window within its parent window.
Declaration
Point Location { get; set; }
Property Value
Type | Description |
---|---|
Point |
Remarks
This operation is not thread safe.
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | The |
ObjectDisposedException | Window is no longer usable. |
CursesSynchronizationException | Thrown if this operation was expected to run on the main thread/context but wasn't. |
Size
Gets or sets the size of the sub-window.
Declaration
Size Size { get; set; }
Property Value
Type | Description |
---|---|
Size |
Remarks
This operation is not thread safe.
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | The |
ObjectDisposedException | Window is no longer usable. |
CursesSynchronizationException | Thrown if this operation was expected to run on the main thread/context but wasn't. |
Window
The parent window of this sub-window.
Declaration
IWindow Window { get; }
Property Value
Type | Description |
---|---|
IWindow |
Methods
Duplicate()
Duplicates this sub-window, including its attributes.
Declaration
ISubWindow Duplicate()
Returns
Type | Description |
---|---|
ISubWindow | A new window object. |
Remarks
This operation is not thread safe.
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | Screen is no longer usable. |
CursesSynchronizationException | Thrown if this operation was expected to run on the main thread/context but wasn't. |