- Main Page
- Classes
- Directories
- Related Pages

- Class List
- Class Hierarchy
- Class Members

# TkContainer Class Reference

Base widget container. More...

`#include <tk_container.h>`

Inheritance diagram for TkContainer:

List of all members.

## Public Member Functions

TkBase * | getChildByCoord (int rootX, int rootY)
TkBase * | getChildByName (const string &name)
void | addChild (TkBase *object, TObject *constraints)
void | create ()
| Creates widget in shell.
void | doLayout ()
void | removeAll ()
void | removeChild (TkBase *object)
void | setLayoutManager (TkLayout *manager)
TkLayout * | getLayoutManager ()
Ptr< TclStringVar > & | getRadioGroupByName (const string &name)

## Detailed Description

Base widget container.

Date:
  01-12-2006

Author:
  Ondrej Svejdar

Todo:

Bug:

## Member Function Documentation

void TkContainer::addChild | ( | TkBase * | object,
|  | TObject * | constraints
| ) |

| Add child widget to conteiner

Parameters:

  | object | child widget
  | constraints | layout constraints for this widget

void TkContainer::doLayout | ( |  | ) |

| Start doing layout (layout manager must be set)

TkBase * TkContainer::getChildByCoord | ( | int | rootX,
|  | int | rootY
| ) |

| Returns pointer to widget at coordinates [rootX,rootY]

Parameters:

  | rootX | x coordinate
  | rootY | y coordinate

Returns:
  pointer to widget

TkBase * TkContainer::getChildByName | ( | const string & | name | ) |

| Returns pointer to widget with user-defined name name

Parameters:

  | name | name of widget

Returns:
  pointer to widget or NULL if no such widget exist

TkLayout * TkContainer::getLayoutManager | ( |  | ) |

| Returns active layout manager

Returns:
  layout manager

Ptr< TclStringVar > & TkContainer::getRadioGroupByName | ( | const string & | name | ) |

| Returns (or create) shell variable, representing radiobutton group

Parameters:

  | name | name of group

Returns:
  reference to variable

void TkContainer::removeAll | ( |  | ) |

| Remove all child widgets

void TkContainer::removeChild | ( | TkBase * | object | ) |

| Remove specific child widget

Parameters:

  | object | widget to remove

void TkContainer::setLayoutManager | ( | TkLayout * | manager | ) |

| Sets layout manager

Parameters:

  | manager | layout manager

The documentation for this class was generated from the following files:

- H:/projs/dotNET/eda/src/tk/gui/tk_container.h
- H:/projs/dotNET/eda/src/tk/gui/tk_container.cpp