Class SubWindow
Represents a Curses sub-window and contains all it's functionality.
Inherited Members
Namespace: Sharpie
Assembly: sharpie.dll
Syntax
[PublicAPI]
public sealed class SubWindow : Surface, IDisposable, ISubWindow, ISurface, IDrawSurface
Properties
Location
Gets or sets the location of the sub-window within its parent window.
Declaration
public 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. |
CursesOperationException | A Curses error occured. |
Origin
Returns the value of Location.
Declaration
protected override Point Origin { get; }
Property Value
Type | Description |
---|---|
Point |
Overrides
Exceptions
Type | Condition |
---|---|
CursesOperationException | A Curses error occured. |
Size
Gets or sets the size of the sub-window.
Declaration
public 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. |
CursesOperationException | A Curses error occured. |
Window
The parent window of this sub-window.
Declaration
public Window Window { get; }
Property Value
Type | Description |
---|---|
Window |
Methods
AssertSynchronized()
Asserts that executing thread is bound to the correct synchronization context.
Declaration
protected override void AssertSynchronized()
Overrides
Exceptions
Type | Condition |
---|---|
CursesSynchronizationException | Thrown if current thread is not bound to the correct context. |
Delete()
Deletes the surface from the curses backend.
Declaration
protected override void Delete()
Overrides
Duplicate()
Duplicates this sub-window, including its attributes.
Declaration
public 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. |
CursesOperationException | A Curses error occured. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |