- Main Page
- Classes
- Directories
- Related Pages

- Class List
- Class Hierarchy
- Class Members

# TkSpinBox Class Reference

Represent "TkSpinBox" Tk widget. More...

`#include <tk_spinbox.h>`

Inheritance diagram for TkSpinBox:

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 | setValues (const char *values[])
void | setValues (const list< string > &values)
int | getValuesIndex () const
void | setValue (double value)
void | setValue (int value)
void | setText (const string &text)
| Sets text of widget.
int | intValue () const
double | doubleValue () const
const string & | getText () const
| Gets content of widget in text form.
void | setLimitFrom (double value)
void | setLimitTo (double value)
void | setIncrement (double value)
void | setRange (double from, double to, double increment)
TclVar * | getDefaultVar ()
| return pointer to default variable
void | setEventsEnabled (bool value)
| Enables or disables events on widget.
void | setBackgroundColor (TkColorOption *color)
| Set background color.
Ptr< TkColorOption > & | getBackgroundColor () const
| Returns background color of widget.
void | create ()
| Creates widget in shell.

## Detailed Description

Represent "TkSpinBox" Tk widget.

Date:
  01-12-2006

Author:
  Ondrej Svejdar

Todo:

Bug:

## Member Function Documentation

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

| Create deep-clone of object.

Returns:
  deep-clone of object

Implements TkBase.

double TkSpinBox::doubleValue | ( |  | ) | const

| Return actual value of spinbox, converted to double

Returns:
  actual value

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

| Returns background color of widget.

Returns:
  background color

Implements TkBase.

TclVar* TkSpinBox::getDefaultVar | ( |  | ) | `[inline, virtual]`

| return pointer to default variable

Returns:
  pointer to default variable

Implements IInnerVariable.

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

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

Returns:
  array of options

Implements TkBase.

const string & TkSpinBox::getText | ( |  | ) | const`[virtual]`

| Gets content of widget in text form.

Returns:
  text content

Implements ITextable.

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

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

Returns:
  widget type

Implements TkBase.

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

| Return type of class.

Returns:
  type of class

Reimplemented from TXmlObject.

int TkSpinBox::getValuesIndex | ( |  | ) | const

| Return index of active field if in values "mode" and value is from the value list. otherwise return -1.

Returns:

int TkSpinBox::intValue | ( |  | ) | const

| Return actual value of spinbox, converted to integer

Returns:
  actual value

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

| Set background color.

Parameters:

  | color | color value

Implements TkBase.

void TkSpinBox::setEventsEnabled | ( | bool | value | ) | `[inline, virtual]`

| Enables or disables events on widget.

Parameters:

  | value | if true events will be enabled

Reimplemented from TkBase.

void TkSpinBox::setIncrement | ( | double | value | ) |

| Set speed of incrementation. Default is 1. This is mutually exclusive to using enumeration of values.

Parameters:

  | value | speed of incrementation

void TkSpinBox::setLimitFrom | ( | double | value | ) |

| Set minimal limit for spinbox value. This is mutually exclusive to using enumeration of values.

Parameters:

  | value | minimal number to display

void TkSpinBox::setLimitTo | ( | double | value | ) |

| Set maximal limit for spinbox value. This is mutually exclusive to using enumeration of values.

Parameters:

  | value | maximal number to display

void TkSpinBox::setRange | ( | double | from,
|  | double | to,
|  | double | increment
| ) |

| Set range for spinbox values. This is mutually exclusive to using enumeration of values.

Parameters:

  | from | minimal number
  | to | maximal number
  | increment | speed of incrementation

void TkSpinBox::setText | ( | const string & | text | ) | `[virtual]`

| Sets text of widget.

Parameters:

  | text | text to set

Implements ITextable.

void TkSpinBox::setValue | ( | int | value | ) |

| Set spinbox actual value to value

Parameters:

  | value |

void TkSpinBox::setValue | ( | double | value | ) |

| Set spinbox actual value to value

Parameters:

  | value |

void TkSpinBox::setValues | ( | const list< string > & | values | ) |

| Spinbox will roll this enumeration of values

Parameters:

  | values | list of values

void TkSpinBox::setValues | ( | const char * | values[] | ) |

| Spinbox will roll this enumeration of values. This is mutually exclusive to any "range" settings of spinbox

Parameters:

  | values[] | list of values, use NULL to signalize last parameter

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

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