C# Class Mono.Terminal.Application

Datei anzeigen Open project: mono/mono-curses

Public Properties

Property Type Description
ColorBasic int
ColorDialogFocus int
ColorDialogHotFocus int
ColorDialogHotNormal int
ColorDialogNormal int
ColorError int
ColorErrorFocus int
ColorErrorHot int
ColorErrorHotFocus int
ColorFocus int
ColorHotFocus int
ColorHotNormal int
ColorMarked int
ColorMarkedSelected int
ColorMenu int
ColorMenuHot int
ColorMenuHotSelected int
ColorMenuSelected int
ColorNormal int
MouseEventsAvailable Curses.Event

Public Methods

Method Description
Begin ( Container container ) : RunState

Starts running a new container or dialog box.

Use this method if you want to start the dialog, but you want to control the main loop execution manually by calling the RunLoop method (for example, to start the dialog, but continuing to process events). Use the returned value as the argument to RunLoop and later to the End method to remove the container from the screen.

End ( RunState state ) : void

Use this method to complete an execution started with Begin

Error ( string caption, string text ) : void

Displays an error message.

Info ( string caption, string text ) : void

Displays an informational message.

Init ( bool disable_color ) : void

Initializes the runtime. The boolean flag indicates whether we are forcing color to be off.

MakeColor ( short f, short b ) : int

Creates a new Curses color to be used by Gui.cs apps

Msg ( bool error, string caption, string t ) : void

Displays a message on a modal dialog box.

The error boolean indicates whether this is an error message box or not.

Refresh ( ) : void

Forces a repaint of the screen.

Run ( Container container ) : void

Runs the main loop on the given container.

This method is used to start processing events for the main application, but it is also used to run modal dialog boxes.

RunLoop ( RunState state ) : void

Runs the main loop for the created dialog

Calling this method will block until the dialog has completed execution.

RunLoop ( RunState state, bool wait ) : void

Runs the main loop for the created dialog

Use the wait parameter to control whether this is a blocking or non-blocking call.

Stop ( ) : void

Private Methods

Method Description
End ( Container container ) : void
ProcessChar ( Container container ) : void
Redraw ( Container container ) : void
Shutdown ( ) : void

Method Details

Begin() public static method

Starts running a new container or dialog box.
Use this method if you want to start the dialog, but you want to control the main loop execution manually by calling the RunLoop method (for example, to start the dialog, but continuing to process events). Use the returned value as the argument to RunLoop and later to the End method to remove the container from the screen.
public static Begin ( Container container ) : RunState
container Container
return RunState

End() public static method

Use this method to complete an execution started with Begin
public static End ( RunState state ) : void
state RunState
return void

Error() public static method

Displays an error message.
public static Error ( string caption, string text ) : void
caption string
text string
return void

Info() public static method

Displays an informational message.
public static Info ( string caption, string text ) : void
caption string
text string
return void

Init() public static method

Initializes the runtime. The boolean flag indicates whether we are forcing color to be off.
public static Init ( bool disable_color ) : void
disable_color bool
return void

MakeColor() public static method

Creates a new Curses color to be used by Gui.cs apps
public static MakeColor ( short f, short b ) : int
f short
b short
return int

Msg() public static method

Displays a message on a modal dialog box.
The error boolean indicates whether this is an error message box or not.
public static Msg ( bool error, string caption, string t ) : void
error bool
caption string
t string
return void

Refresh() public static method

Forces a repaint of the screen.
public static Refresh ( ) : void
return void

Run() public static method

Runs the main loop on the given container.
This method is used to start processing events for the main application, but it is also used to run modal dialog boxes.
public static Run ( Container container ) : void
container Container
return void

RunLoop() public static method

Runs the main loop for the created dialog
Calling this method will block until the dialog has completed execution.
public static RunLoop ( RunState state ) : void
state RunState
return void

RunLoop() public static method

Runs the main loop for the created dialog
Use the wait parameter to control whether this is a blocking or non-blocking call.
public static RunLoop ( RunState state, bool wait ) : void
state RunState
wait bool
return void

Stop() public static method

public static Stop ( ) : void
return void

Property Details

ColorBasic public_oe static_oe property

The basic color of the terminal.
public static int ColorBasic
return int

ColorDialogFocus public_oe static_oe property

Color for focused widgets on a dialog.
public static int ColorDialogFocus
return int

ColorDialogHotFocus public_oe static_oe property

Color for a hotkey in a focused widget on a dialog.
public static int ColorDialogHotFocus
return int

ColorDialogHotNormal public_oe static_oe property

Color for hotkeys in an unfocused widget on a dialog.
public static int ColorDialogHotNormal
return int

ColorDialogNormal public_oe static_oe property

Color for unfocused widgets on a dialog.
public static int ColorDialogNormal
return int

ColorError public_oe static_oe property

Color used for error text.
public static int ColorError
return int

ColorErrorFocus public_oe static_oe property

Color used for focused widgets on an error dialog.
public static int ColorErrorFocus
return int

ColorErrorHot public_oe static_oe property

Color used for hotkeys in error dialogs
public static int ColorErrorHot
return int

ColorErrorHotFocus public_oe static_oe property

Color used for hotkeys in a focused widget in an error dialog
public static int ColorErrorHotFocus
return int

ColorFocus public_oe static_oe property

Color used for focused widgets.
public static int ColorFocus
return int

ColorHotFocus public_oe static_oe property

Color used for hotkeys in focused widgets.
public static int ColorHotFocus
return int

ColorHotNormal public_oe static_oe property

Color used for hotkeys in unfocused widgets.
public static int ColorHotNormal
return int

ColorMarked public_oe static_oe property

Color used for marked entries.
public static int ColorMarked
return int

ColorMarkedSelected public_oe static_oe property

Color used for marked entries that are currently selected with the cursor.
public static int ColorMarkedSelected
return int

ColorMenu public_oe static_oe property

The regular color for a menu entry
public static int ColorMenu
return int

ColorMenuHot public_oe static_oe property

The hot color for a menu entry
public static int ColorMenuHot
return int

ColorMenuHotSelected public_oe static_oe property

The hot color for a selected item on a menu
public static int ColorMenuHotSelected
return int

ColorMenuSelected public_oe static_oe property

The regular color for a selected item on a menu
public static int ColorMenuSelected
return int

ColorNormal public_oe static_oe property

Color used for unfocused widgets.
public static int ColorNormal
return int

MouseEventsAvailable public_oe static_oe property

A flag indicating which mouse events are available
public static Curses.Event MouseEventsAvailable
return Curses.Event