C# Class Mono.Terminal.Application

Afficher le fichier Open project: mono/mono-curses

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthode Description
End ( Container container ) : void
ProcessChar ( Container container ) : void
Redraw ( Container container ) : void
Shutdown ( ) : void

Method Details

Begin() public static méthode

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
Résultat RunState

End() public static méthode

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

Error() public static méthode

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

Info() public static méthode

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

Init() public static méthode

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
Résultat void

MakeColor() public static méthode

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

Msg() public static méthode

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
Résultat void

Refresh() public static méthode

Forces a repaint of the screen.
public static Refresh ( ) : void
Résultat void

Run() public static méthode

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
Résultat void

RunLoop() public static méthode

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
Résultat void

RunLoop() public static méthode

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
Résultat void

Stop() public static méthode

public static Stop ( ) : void
Résultat void

Property Details

ColorBasic public_oe static_oe property

The basic color of the terminal.
public static int ColorBasic
Résultat int

ColorDialogFocus public_oe static_oe property

Color for focused widgets on a dialog.
public static int ColorDialogFocus
Résultat int

ColorDialogHotFocus public_oe static_oe property

Color for a hotkey in a focused widget on a dialog.
public static int ColorDialogHotFocus
Résultat int

ColorDialogHotNormal public_oe static_oe property

Color for hotkeys in an unfocused widget on a dialog.
public static int ColorDialogHotNormal
Résultat int

ColorDialogNormal public_oe static_oe property

Color for unfocused widgets on a dialog.
public static int ColorDialogNormal
Résultat int

ColorError public_oe static_oe property

Color used for error text.
public static int ColorError
Résultat int

ColorErrorFocus public_oe static_oe property

Color used for focused widgets on an error dialog.
public static int ColorErrorFocus
Résultat int

ColorErrorHot public_oe static_oe property

Color used for hotkeys in error dialogs
public static int ColorErrorHot
Résultat int

ColorErrorHotFocus public_oe static_oe property

Color used for hotkeys in a focused widget in an error dialog
public static int ColorErrorHotFocus
Résultat int

ColorFocus public_oe static_oe property

Color used for focused widgets.
public static int ColorFocus
Résultat int

ColorHotFocus public_oe static_oe property

Color used for hotkeys in focused widgets.
public static int ColorHotFocus
Résultat int

ColorHotNormal public_oe static_oe property

Color used for hotkeys in unfocused widgets.
public static int ColorHotNormal
Résultat int

ColorMarked public_oe static_oe property

Color used for marked entries.
public static int ColorMarked
Résultat int

ColorMarkedSelected public_oe static_oe property

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

ColorMenu public_oe static_oe property

The regular color for a menu entry
public static int ColorMenu
Résultat int

ColorMenuHot public_oe static_oe property

The hot color for a menu entry
public static int ColorMenuHot
Résultat int

ColorMenuHotSelected public_oe static_oe property

The hot color for a selected item on a menu
public static int ColorMenuHotSelected
Résultat int

ColorMenuSelected public_oe static_oe property

The regular color for a selected item on a menu
public static int ColorMenuSelected
Résultat int

ColorNormal public_oe static_oe property

Color used for unfocused widgets.
public static int ColorNormal
Résultat int

MouseEventsAvailable public_oe static_oe property

A flag indicating which mouse events are available
public static Curses.Event MouseEventsAvailable
Résultat Curses.Event