DOSBox-X
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions | Protected Attributes
GUI::Radiobox Class Reference

A radio box. More...

#include <gui_tk.h>

Inheritance diagram for GUI::Radiobox:
GUI::BorderedWindow GUI::ActionEventSource GUI::Window GUI::Refcount

List of all members.

Public Member Functions

 Radiobox (Frame *parent, int x, int y, int w, int h)
 Create a radio box with given position and size.
template<typename T >
 Radiobox (Frame *parent, int x, int y, const T text, int w=-1, int h=-1)
 Create a radio box with text label.
virtual void paint (Drawable &d) const
 Paint radio box.
virtual void setChecked (bool checked)
 Change radio box state.
virtual bool isChecked ()
 Get radio box state.
virtual bool mouseDown (int x, int y, MouseButton button)
 Press radio box.
virtual bool mouseUp (int x, int y, MouseButton button)
 Release checkbox.
virtual bool keyDown (const Key &key)
 Handle keyboard input.
virtual bool keyUp (const Key &key)
 Handle keyboard input.
template<typename STR >
 Radiobox (Frame *parent, int x, int y, const STR text, int w, int h)

Protected Attributes

bool checked
 true, if radio box is currently selected.

Detailed Description

A radio box.

Radio boxes can have any child widget as content. There are convenience constructors for common forms of radio boxes.

Definition at line 2463 of file gui_tk.h.


Constructor & Destructor Documentation

template<typename T >
GUI::Radiobox::Radiobox ( Frame parent,
int  x,
int  y,
const T  text,
int  w = -1,
int  h = -1 
)

Create a radio box with text label.

If a size is specified, text is centered. Otherwise, checkbox size is adjusted for the text.


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