C# Class Mono.Terminal.Container

Inheritance: Widget
Show file Open project: mono/mono-curses Class Usage Examples

Public Properties

Property Type Description
Border int
ContainerColorFocus int
ContainerColorHotFocus int
ContainerColorHotNormal int
ContainerColorNormal int
Running bool

Public Methods

Method 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

Method Description
Container ( ) : System

Method Details

Add() public method

Adds a widget to this container.
public Add ( Widget w ) : void
w Widget
return void

Container() public method

Public constructor.
public Container ( int x, int y, int w, int h ) : System
x int
y int
w int
h int
return System

ContainerBaseMove() public method

public ContainerBaseMove ( int row, int col ) : void
row int
col int
return void

ContainerMove() public method

public ContainerMove ( int row, int col ) : void
row int
col int
return void

DoSizeChanged() public method

public DoSizeChanged ( ) : void
return void

EnsureFocus() public method

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

FocusFirst() public method

Focuses the first widget in the contained widgets.
public FocusFirst ( ) : void
return void

FocusLast() public method

Focuses the last widget in the contained widgets.
public FocusLast ( ) : void
return void

FocusNext() public method

Focuses the next widget.
public FocusNext ( ) : bool
return bool

FocusPrev() public method

Focuses the previous widget.
public FocusPrev ( ) : bool
return bool

GetBase() public method

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
return void

GetEnumerator() public method

public GetEnumerator ( ) : IEnumerator
return IEnumerator

PositionCursor() public method

public PositionCursor ( ) : void
return void

Prepare() public method

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

ProcessColdKey() public method

public ProcessColdKey ( int key ) : bool
key int
return bool

ProcessHotKey() public method

public ProcessHotKey ( int key ) : bool
key int
return bool

ProcessKey() public method

public ProcessKey ( int key ) : bool
key int
return bool

ProcessMouse() public method

public ProcessMouse ( Curses ev ) : void
ev Curses
return void

Redraw() public method

public Redraw ( ) : void
return void

RedrawChildren() public method

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

Remove() public method

Removes a widget from this container.
public Remove ( Widget w ) : void
w Widget
return void

RemoveAll() public method

Removes all the widgets from this container.
public RemoveAll ( ) : void
return void

SetFocus() public method

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
return void

SizeChanged() public method

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

Property Details

Border public property

public int Border
return int

ContainerColorFocus public property

public int ContainerColorFocus
return int

ContainerColorHotFocus public property

public int ContainerColorHotFocus
return int

ContainerColorHotNormal public property

public int ContainerColorHotNormal
return int

ContainerColorNormal public property

public int ContainerColorNormal
return int

Running public property

public bool Running
return bool