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

Наследование: Widget
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
Border int
ContainerColorFocus int
ContainerColorHotFocus int
ContainerColorHotNormal int
ContainerColorNormal int
Running bool

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

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

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

Метод Описание
Container ( ) : System

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

Add() публичный Метод

Adds a widget to this container.
public Add ( Widget w ) : void
w Widget
Результат void

Container() публичный Метод

Public constructor.
public Container ( int x, int y, int w, int h ) : System
x int
y int
w int
h int
Результат System

ContainerBaseMove() публичный Метод

public ContainerBaseMove ( int row, int col ) : void
row int
col int
Результат void

ContainerMove() публичный Метод

public ContainerMove ( int row, int col ) : void
row int
col int
Результат void

DoSizeChanged() публичный Метод

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

EnsureFocus() публичный Метод

Focuses the first possible focusable widget in the contained widgets.
public EnsureFocus ( ) : void
Результат void

FocusFirst() публичный Метод

Focuses the first widget in the contained widgets.
public FocusFirst ( ) : void
Результат void

FocusLast() публичный Метод

Focuses the last widget in the contained widgets.
public FocusLast ( ) : void
Результат void

FocusNext() публичный Метод

Focuses the next widget.
public FocusNext ( ) : bool
Результат bool

FocusPrev() публичный Метод

Focuses the previous widget.
public FocusPrev ( ) : bool
Результат bool

GetBase() публичный Метод

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

GetEnumerator() публичный Метод

public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

PositionCursor() публичный Метод

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

Prepare() публичный Метод

Called on top-level container before starting up.
public Prepare ( ) : void
Результат void

ProcessColdKey() публичный Метод

public ProcessColdKey ( int key ) : bool
key int
Результат bool

ProcessHotKey() публичный Метод

public ProcessHotKey ( int key ) : bool
key int
Результат bool

ProcessKey() публичный Метод

public ProcessKey ( int key ) : bool
key int
Результат bool

ProcessMouse() публичный Метод

public ProcessMouse ( Curses ev ) : void
ev Curses
Результат void

Redraw() публичный Метод

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

RedrawChildren() публичный Метод

Used to redraw all the children in this container.
public RedrawChildren ( ) : void
Результат void

Remove() публичный Метод

Removes a widget from this container.
public Remove ( Widget w ) : void
w Widget
Результат void

RemoveAll() публичный Метод

Removes all the widgets from this container.
public RemoveAll ( ) : void
Результат void

SetFocus() публичный Метод

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

SizeChanged() публичный Метод

This method is invoked when the size of this container changes.
public SizeChanged ( ) : void
Результат void

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

Border публичное свойство

public int Border
Результат int

ContainerColorFocus публичное свойство

public int ContainerColorFocus
Результат int

ContainerColorHotFocus публичное свойство

public int ContainerColorHotFocus
Результат int

ContainerColorHotNormal публичное свойство

public int ContainerColorHotNormal
Результат int

ContainerColorNormal публичное свойство

public int ContainerColorNormal
Результат int

Running публичное свойство

public bool Running
Результат bool