C# Класс Mono.Terminal.Application

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
End ( Container container ) : void
ProcessChar ( Container container ) : void
Redraw ( Container container ) : void
Shutdown ( ) : void

Описание методов

Begin() публичный статический Метод

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
Результат RunState

End() публичный статический Метод

Use this method to complete an execution started with Begin
public static End ( RunState state ) : void
state RunState
Результат void

Error() публичный статический Метод

Displays an error message.
public static Error ( string caption, string text ) : void
caption string
text string
Результат void

Info() публичный статический Метод

Displays an informational message.
public static Info ( string caption, string text ) : void
caption string
text string
Результат void

Init() публичный статический Метод

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
Результат void

MakeColor() публичный статический Метод

Creates a new Curses color to be used by Gui.cs apps
public static MakeColor ( short f, short b ) : int
f short
b short
Результат int

Msg() публичный статический Метод

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
Результат void

Refresh() публичный статический Метод

Forces a repaint of the screen.
public static Refresh ( ) : void
Результат void

Run() публичный статический Метод

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
Результат void

RunLoop() публичный статический Метод

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
Результат void

RunLoop() публичный статический Метод

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
Результат void

Stop() публичный статический Метод

public static Stop ( ) : void
Результат void

Описание свойств

ColorBasic публичное статическое свойство

The basic color of the terminal.
public static int ColorBasic
Результат int

ColorDialogFocus публичное статическое свойство

Color for focused widgets on a dialog.
public static int ColorDialogFocus
Результат int

ColorDialogHotFocus публичное статическое свойство

Color for a hotkey in a focused widget on a dialog.
public static int ColorDialogHotFocus
Результат int

ColorDialogHotNormal публичное статическое свойство

Color for hotkeys in an unfocused widget on a dialog.
public static int ColorDialogHotNormal
Результат int

ColorDialogNormal публичное статическое свойство

Color for unfocused widgets on a dialog.
public static int ColorDialogNormal
Результат int

ColorError публичное статическое свойство

Color used for error text.
public static int ColorError
Результат int

ColorErrorFocus публичное статическое свойство

Color used for focused widgets on an error dialog.
public static int ColorErrorFocus
Результат int

ColorErrorHot публичное статическое свойство

Color used for hotkeys in error dialogs
public static int ColorErrorHot
Результат int

ColorErrorHotFocus публичное статическое свойство

Color used for hotkeys in a focused widget in an error dialog
public static int ColorErrorHotFocus
Результат int

ColorFocus публичное статическое свойство

Color used for focused widgets.
public static int ColorFocus
Результат int

ColorHotFocus публичное статическое свойство

Color used for hotkeys in focused widgets.
public static int ColorHotFocus
Результат int

ColorHotNormal публичное статическое свойство

Color used for hotkeys in unfocused widgets.
public static int ColorHotNormal
Результат int

ColorMarked публичное статическое свойство

Color used for marked entries.
public static int ColorMarked
Результат int

ColorMarkedSelected публичное статическое свойство

Color used for marked entries that are currently selected with the cursor.
public static int ColorMarkedSelected
Результат int

ColorMenu публичное статическое свойство

The regular color for a menu entry
public static int ColorMenu
Результат int

ColorMenuHot публичное статическое свойство

The hot color for a menu entry
public static int ColorMenuHot
Результат int

ColorMenuHotSelected публичное статическое свойство

The hot color for a selected item on a menu
public static int ColorMenuHotSelected
Результат int

ColorMenuSelected публичное статическое свойство

The regular color for a selected item on a menu
public static int ColorMenuSelected
Результат int

ColorNormal публичное статическое свойство

Color used for unfocused widgets.
public static int ColorNormal
Результат int

MouseEventsAvailable публичное статическое свойство

A flag indicating which mouse events are available
public static Curses.Event MouseEventsAvailable
Результат Curses.Event