\section{Tk\-Radio\-Button Class Reference}
\label{class_tk_radio_button}\index{TkRadioButton@{TkRadioButton}}
Represent \char`\"{}radiobutton\char`\"{} widget.  


{\tt \#include $<$tk\_\-radiobutton.h$>$}

Inheritance diagram for Tk\-Radio\-Button::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=12cm]{class_tk_radio_button}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
const {\bf Ptr}$<$ Tk\-Option\-Def $>$ $\ast$ {\bf get\-Option\-All} () const 
\begin{CompactList}\small\item\em Returns array of all avaliable options valid for specific widget type. \item\end{CompactList}\item 
const char $\ast$ {\bf get\-Type} () const 
\begin{CompactList}\small\item\em Return type of class. \item\end{CompactList}\item 
const char $\ast$ {\bf get\-Tk\-Class} () const 
\begin{CompactList}\small\item\em Returns type of widget. \item\end{CompactList}\item 
{\bf TObject} $\ast$ {\bf clone} ()
\begin{CompactList}\small\item\em Create deep-clone of object. \item\end{CompactList}\item 
void {\bf set\-Selected} (bool value)
\item 
bool {\bf is\-Selected} () const 
\item 
void {\bf create} ()\label{class_tk_radio_button_21140cdbfc5adac008803f2a52633d13}

\begin{CompactList}\small\item\em Creates widget in shell. \item\end{CompactList}\item 
void {\bf set\-Text} (const string \&text)
\begin{CompactList}\small\item\em Sets text of widget. \item\end{CompactList}\item 
const string \& {\bf get\-Text} () const 
\begin{CompactList}\small\item\em Gets content of widget in text form. \item\end{CompactList}\item 
const string \& {\bf get\-Group} () const 
\item 
void {\bf set\-Group} (const string \&name)
\item 
void {\bf set\-Background\-Color} (Tk\-Color\-Option $\ast$color)
\begin{CompactList}\small\item\em Set background color. \item\end{CompactList}\item 
{\bf Ptr}$<$ Tk\-Color\-Option $>$ \& {\bf get\-Background\-Color} () const 
\begin{CompactList}\small\item\em Returns background color of widget. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Represent \char`\"{}radiobutton\char`\"{} widget. 

\begin{Desc}
\item[Date:]01-12-2006\end{Desc}
\begin{Desc}
\item[Author:]Ondrej Svejdar\end{Desc}
\begin{Desc}
\item[{\bf Todo}]\end{Desc}
\begin{Desc}
\item[{\bf Bug}]\end{Desc}




\subsection{Member Function Documentation}
\index{TkRadioButton@{Tk\-Radio\-Button}!clone@{clone}}
\index{clone@{clone}!TkRadioButton@{Tk\-Radio\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf TObject} $\ast$ Tk\-Radio\-Button::clone ()\hspace{0.3cm}{\tt  [virtual]}}\label{class_tk_radio_button_a57a4061e6b07e21891be7a967c53f91}


Create deep-clone of object. 

\begin{Desc}
\item[Returns:]deep-clone of object \end{Desc}


Implements {\bf Tk\-Base} {\rm (p.\,\pageref{class_tk_base_eeacc64c3f35a0f65819595fa0f5e3c6})}.\index{TkRadioButton@{Tk\-Radio\-Button}!getBackgroundColor@{getBackgroundColor}}
\index{getBackgroundColor@{getBackgroundColor}!TkRadioButton@{Tk\-Radio\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Ptr}$<$ Tk\-Color\-Option $>$ \& Tk\-Radio\-Button::get\-Background\-Color () const\hspace{0.3cm}{\tt  [virtual]}}\label{class_tk_radio_button_03c0a2d825c5a3dce8fcd1404699eeca}


Returns background color of widget. 

\begin{Desc}
\item[Returns:]background color \end{Desc}


Implements {\bf Tk\-Base} {\rm (p.\,\pageref{class_tk_base_104d02d466da4b0894a099b72b12cb07})}.\index{TkRadioButton@{Tk\-Radio\-Button}!getGroup@{getGroup}}
\index{getGroup@{getGroup}!TkRadioButton@{Tk\-Radio\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const string \& Tk\-Radio\-Button::get\-Group () const}\label{class_tk_radio_button_3b20a079162732408158ba276dc54b2d}


Return name of group to which radiobutton belongs \begin{Desc}
\item[Returns:]name of group \end{Desc}
\index{TkRadioButton@{Tk\-Radio\-Button}!getOptionAll@{getOptionAll}}
\index{getOptionAll@{getOptionAll}!TkRadioButton@{Tk\-Radio\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf Ptr}$<$ Tk\-Option\-Def $>$ $\ast$ Tk\-Radio\-Button::get\-Option\-All () const\hspace{0.3cm}{\tt  [virtual]}}\label{class_tk_radio_button_9fee034d6164ec34a26d3a3b98a9e61b}


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

\begin{Desc}
\item[Returns:]array of options \end{Desc}


Implements {\bf Tk\-Base} {\rm (p.\,\pageref{class_tk_base_89d93c80ff7a528f833e2ea45f1a10f6})}.\index{TkRadioButton@{Tk\-Radio\-Button}!getText@{getText}}
\index{getText@{getText}!TkRadioButton@{Tk\-Radio\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const string\& Tk\-Radio\-Button::get\-Text () const\hspace{0.3cm}{\tt  [inline, virtual]}}\label{class_tk_radio_button_d9082c02796bc7437e6e9eda2e7cb99f}


Gets content of widget in text form. 

\begin{Desc}
\item[Returns:]text content \end{Desc}


Implements {\bf ITextable} {\rm (p.\,\pageref{class_i_textable_2049c2afc0901cd5431316a2a5ef7700})}.\index{TkRadioButton@{Tk\-Radio\-Button}!getTkClass@{getTkClass}}
\index{getTkClass@{getTkClass}!TkRadioButton@{Tk\-Radio\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char $\ast$ Tk\-Radio\-Button::get\-Tk\-Class () const\hspace{0.3cm}{\tt  [virtual]}}\label{class_tk_radio_button_4c84eb8aa0f24934d8c12ee757f622c1}


Returns type of widget. 

Example values are \char`\"{}button\char`\"{},\char`\"{}menu\char`\"{},\char`\"{}entry\char`\"{} etc. \begin{Desc}
\item[Returns:]widget type \end{Desc}


Implements {\bf Tk\-Base} {\rm (p.\,\pageref{class_tk_base_2e57ed30603b2d16c02812df67e1f2fd})}.\index{TkRadioButton@{Tk\-Radio\-Button}!getType@{getType}}
\index{getType@{getType}!TkRadioButton@{Tk\-Radio\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char $\ast$ Tk\-Radio\-Button::get\-Type () const\hspace{0.3cm}{\tt  [virtual]}}\label{class_tk_radio_button_1413702cbda682553d02b08afccebfc3}


Return type of class. 

\begin{Desc}
\item[Returns:]type of class \end{Desc}


Reimplemented from {\bf TXml\-Object} {\rm (p.\,\pageref{class_t_xml_object_1413702cbda682553d02b08afccebfc3})}.\index{TkRadioButton@{Tk\-Radio\-Button}!isSelected@{isSelected}}
\index{isSelected@{isSelected}!TkRadioButton@{Tk\-Radio\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Tk\-Radio\-Button::is\-Selected () const}\label{class_tk_radio_button_178130cb830817a99e221caa0abcb5b9}


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. \begin{Desc}
\item[Returns:]true if radiobutton is selected \end{Desc}
\index{TkRadioButton@{Tk\-Radio\-Button}!setBackgroundColor@{setBackgroundColor}}
\index{setBackgroundColor@{setBackgroundColor}!TkRadioButton@{Tk\-Radio\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Tk\-Radio\-Button::set\-Background\-Color (Tk\-Color\-Option $\ast$ {\em color})\hspace{0.3cm}{\tt  [virtual]}}\label{class_tk_radio_button_8afd70e6e3b95665d0c013f93c7fb9c5}


Set background color. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em color}]color value \end{description}
\end{Desc}


Implements {\bf Tk\-Base} {\rm (p.\,\pageref{class_tk_base_5b832cf60b0c72679e8460a876376226})}.\index{TkRadioButton@{Tk\-Radio\-Button}!setGroup@{setGroup}}
\index{setGroup@{setGroup}!TkRadioButton@{Tk\-Radio\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Tk\-Radio\-Button::set\-Group (const string \& {\em name})}\label{class_tk_radio_button_ba331d86edaf28ce4e2723df03f95c3e}


Assing radiobutton to group named \char`\"{}name\char`\"{}. 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. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em name}]group name \end{description}
\end{Desc}
\index{TkRadioButton@{Tk\-Radio\-Button}!setSelected@{setSelected}}
\index{setSelected@{setSelected}!TkRadioButton@{Tk\-Radio\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Tk\-Radio\-Button::set\-Selected (bool {\em value})}\label{class_tk_radio_button_2a719312cb24e016b122d73e7e3da1fe}


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. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em value}]if true radiobutton will be selected \end{description}
\end{Desc}
\index{TkRadioButton@{Tk\-Radio\-Button}!setText@{setText}}
\index{setText@{setText}!TkRadioButton@{Tk\-Radio\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Tk\-Radio\-Button::set\-Text (const string \& {\em text})\hspace{0.3cm}{\tt  [inline, virtual]}}\label{class_tk_radio_button_d1a82a922df991ada381313617e68b88}


Sets text of widget. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]text to set \end{description}
\end{Desc}


Implements {\bf ITextable} {\rm (p.\,\pageref{class_i_textable_8ff10158413b29d17006a6b0d08093d2})}.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
H:/projs/dot\-NET/eda/src/tk/gui/tk\_\-radiobutton.h\item 
H:/projs/dot\-NET/eda/src/tk/gui/tk\_\-radiobutton.cpp\end{CompactItemize}
