- Main Page
- Classes
- Directories
- Related Pages

- Class List
- Class Hierarchy
- Class Members

# TkRadioButton Class Reference

Represent "radiobutton" widget. More...

`#include <tk_radiobutton.h>`

Inheritance diagram for TkRadioButton:

List of all members.

## Public Member Functions

const Ptr< TkOptionDef > * | getOptionAll () const
| Returns array of all avaliable options valid for specific widget type.
const char * | getType () const
| Return type of class.
const char * | getTkClass () const
| Returns type of widget.
TObject * | clone ()
| Create deep-clone of object.
void | setSelected (bool value)
bool | isSelected () const
void | create ()
| Creates widget in shell.
void | setText (const string &text)
| Sets text of widget.
const string & | getText () const
| Gets content of widget in text form.
const string & | getGroup () const
void | setGroup (const string &name)
void | setBackgroundColor (TkColorOption *color)
| Set background color.
Ptr< TkColorOption > & | getBackgroundColor () const
| Returns background color of widget.

## Detailed Description

Represent "radiobutton" widget.

Date:
  01-12-2006

Author:
  Ondrej Svejdar

Todo:

Bug:

## Member Function Documentation

TObject * TkRadioButton::clone | ( |  | ) | `[virtual]`

| Create deep-clone of object.

Returns:
  deep-clone of object

Implements TkBase.

Ptr< TkColorOption > & TkRadioButton::getBackgroundColor | ( |  | ) | const`[virtual]`

| Returns background color of widget.

Returns:
  background color

Implements TkBase.

const string & TkRadioButton::getGroup | ( |  | ) | const

| Return name of group to which radiobutton belongs

Returns:
  name of group

const Ptr< TkOptionDef > * TkRadioButton::getOptionAll | ( |  | ) | const`[virtual]`

| Returns array of all avaliable options valid for specific widget type.

Returns:
  array of options

Implements TkBase.

const string& TkRadioButton::getText | ( |  | ) | const`[inline, virtual]`

| Gets content of widget in text form.

Returns:
  text content

Implements ITextable.

const char * TkRadioButton::getTkClass | ( |  | ) | const`[virtual]`

| Returns type of widget. Example values are "button","menu","entry" etc.

Returns:
  widget type

Implements TkBase.

const char * TkRadioButton::getType | ( |  | ) | const`[virtual]`

| Return type of class.

Returns:
  type of class

Reimplemented from TXmlObject.

bool TkRadioButton::isSelected | ( |  | ) | const

| Return true if radiobutton is selected. NOTE: This may not work correctly if radiobutton hasn't got a group assigned or is the only one radiobutton in his group.

Returns:
  true if radiobutton is selected

void TkRadioButton::setBackgroundColor | ( | TkColorOption * | color | ) | `[virtual]`

| Set background color.

Parameters:

  | color | color value

Implements TkBase.

void TkRadioButton::setGroup | ( | const string & | name | ) |

| Assing radiobutton to group named "name". NOTE: The group is identified by parent container and name. so two radiobuttons with the same name of group, but lying in diferent container will NOT be in the same group.

Parameters:

  | name | group name

void TkRadioButton::setSelected | ( | bool | value | ) |

| Force this radiobutton to be selected/deselected. NOTE: This may not work correctly if radiobutton hasn't got a group assigned or is the only one radiobutton in his group.

Parameters:

  | value | if true radiobutton will be selected

void TkRadioButton::setText | ( | const string & | text | ) | `[inline, virtual]`

| Sets text of widget.

Parameters:

  | text | text to set

Implements ITextable.

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

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