Class Toplevel
Toplevel views can be modally executed.
Inherited Members
Namespace: Terminal.Gui
Assembly: Terminal.Gui.dll
Syntax
public class Toplevel : Terminal.Gui.View
Remarks
Toplevels can be modally executing views, and they return control to the caller when the "Running" property is set to false, or by calling Terminal.Gui.Application.RequestStop()
There will be a toplevel created for you on the first time use and can be accessed from the property Top, but new toplevels can be created and ran on top of it. To run, create the toplevel and then invoke Run() with the new toplevel.
Constructors
Toplevel(Rect)
Initializes a new instance of the Toplevel class.
Declaration
public Toplevel (Terminal.Gui.Rect frame);
Parameters
Type | Name | Description |
---|---|---|
Rect | frame | Frame. |
Fields
Running
This flag is checked on each iteration of the mainloop and it continues running until this flag is set to false.
Declaration
public bool Running;
Field Value
Type | Description |
---|---|
System.Boolean | To be added. |
Properties
CanFocus
Declaration
public override bool CanFocus { get; }
Property Value
Type | Description |
---|---|
System.Boolean | To be added. |
Methods
Create()
Convenience factory method that creates a new toplevel with the current terminal dimensions.
Declaration
public static Terminal.Gui.Toplevel Create ();
Returns
Type | Description |
---|---|
Toplevel | The create. |
ProcessKey(KeyEvent)
Declaration
public override bool ProcessKey (Terminal.Gui.KeyEvent keyEvent);
Parameters
Type | Name | Description |
---|---|---|
KeyEvent | kb | To be added. |
Returns
Type | Description |
---|---|
System.Boolean | To be added. |