C# Class Mono.Terminal.Container

Inheritance: Widget
Afficher le fichier Open project: mono/mono-curses Class Usage Examples

Méthodes publiques

Свойство Type Description
Border int
ContainerColorFocus int
ContainerColorHotFocus int
ContainerColorHotNormal int
ContainerColorNormal int
Running bool

Méthodes publiques

Méthode Description
Add ( Widget w ) : void

Adds a widget to this container.

Container ( int x, int y, int w, int h ) : System

Public constructor.

ContainerBaseMove ( int row, int col ) : void
ContainerMove ( int row, int col ) : void
DoSizeChanged ( ) : void
EnsureFocus ( ) : void

Focuses the first possible focusable widget in the contained widgets.

FocusFirst ( ) : void

Focuses the first widget in the contained widgets.

FocusLast ( ) : void

Focuses the last widget in the contained widgets.

FocusNext ( ) : bool

Focuses the next widget.

FocusPrev ( ) : bool

Focuses the previous widget.

GetBase ( int &row, int &col ) : void

Returns the base position for child widgets to paint on.

This method is typically overwritten by containers that want to have some padding (like Frames or Dialogs).

GetEnumerator ( ) : IEnumerator
PositionCursor ( ) : void
Prepare ( ) : void

Called on top-level container before starting up.

ProcessColdKey ( int key ) : bool
ProcessHotKey ( int key ) : bool
ProcessKey ( int key ) : bool
ProcessMouse ( Curses ev ) : void
Redraw ( ) : void
RedrawChildren ( ) : void

Used to redraw all the children in this container.

Remove ( Widget w ) : void

Removes a widget from this container.

RemoveAll ( ) : void

Removes all the widgets from this container.

SetFocus ( Widget w ) : void

Focuses the specified widget in this container.

Focuses the specified widge, taking the focus away from any previously focused widgets. This method only works if the widget specified supports being focused.

SizeChanged ( ) : void

This method is invoked when the size of this container changes.

Private Methods

Méthode Description
Container ( ) : System

Method Details

Add() public méthode

Adds a widget to this container.
public Add ( Widget w ) : void
w Widget
Résultat void

Container() public méthode

Public constructor.
public Container ( int x, int y, int w, int h ) : System
x int
y int
w int
h int
Résultat System

ContainerBaseMove() public méthode

public ContainerBaseMove ( int row, int col ) : void
row int
col int
Résultat void

ContainerMove() public méthode

public ContainerMove ( int row, int col ) : void
row int
col int
Résultat void

DoSizeChanged() public méthode

public DoSizeChanged ( ) : void
Résultat void

EnsureFocus() public méthode

Focuses the first possible focusable widget in the contained widgets.
public EnsureFocus ( ) : void
Résultat void

FocusFirst() public méthode

Focuses the first widget in the contained widgets.
public FocusFirst ( ) : void
Résultat void

FocusLast() public méthode

Focuses the last widget in the contained widgets.
public FocusLast ( ) : void
Résultat void

FocusNext() public méthode

Focuses the next widget.
public FocusNext ( ) : bool
Résultat bool

FocusPrev() public méthode

Focuses the previous widget.
public FocusPrev ( ) : bool
Résultat bool

GetBase() public méthode

Returns the base position for child widgets to paint on.
This method is typically overwritten by containers that want to have some padding (like Frames or Dialogs).
public GetBase ( int &row, int &col ) : void
row int
col int
Résultat void

GetEnumerator() public méthode

public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

PositionCursor() public méthode

public PositionCursor ( ) : void
Résultat void

Prepare() public méthode

Called on top-level container before starting up.
public Prepare ( ) : void
Résultat void

ProcessColdKey() public méthode

public ProcessColdKey ( int key ) : bool
key int
Résultat bool

ProcessHotKey() public méthode

public ProcessHotKey ( int key ) : bool
key int
Résultat bool

ProcessKey() public méthode

public ProcessKey ( int key ) : bool
key int
Résultat bool

ProcessMouse() public méthode

public ProcessMouse ( Curses ev ) : void
ev Curses
Résultat void

Redraw() public méthode

public Redraw ( ) : void
Résultat void

RedrawChildren() public méthode

Used to redraw all the children in this container.
public RedrawChildren ( ) : void
Résultat void

Remove() public méthode

Removes a widget from this container.
public Remove ( Widget w ) : void
w Widget
Résultat void

RemoveAll() public méthode

Removes all the widgets from this container.
public RemoveAll ( ) : void
Résultat void

SetFocus() public méthode

Focuses the specified widget in this container.
Focuses the specified widge, taking the focus away from any previously focused widgets. This method only works if the widget specified supports being focused.
public SetFocus ( Widget w ) : void
w Widget
Résultat void

SizeChanged() public méthode

This method is invoked when the size of this container changes.
public SizeChanged ( ) : void
Résultat void

Property Details

Border public_oe property

public int Border
Résultat int

ContainerColorFocus public_oe property

public int ContainerColorFocus
Résultat int

ContainerColorHotFocus public_oe property

public int ContainerColorHotFocus
Résultat int

ContainerColorHotNormal public_oe property

public int ContainerColorHotNormal
Résultat int

ContainerColorNormal public_oe property

public int ContainerColorNormal
Résultat int

Running public_oe property

public bool Running
Résultat bool