Go up one levelGo to Previous Go to Next

TkWidget

TkWidget is a base class for C++ classes defining Tk widgets. In addition to the features inherited from its base class TclCommand(3) , TkWidget adds support for creating and configuring Tk widgets.

The configure (or config) and cget subcommands are implemented here automatically, so that derived classes don't have to handle this. The derived classes only need to define two structures required by Tk for widgets:

One is the Tk_ConfigSpec structure, a static struct describing the widget options.

The other is a non-static member struct for holding the values for widget configuration options. This struct must be derived from TkWidgetOptions , which is just a dummy struct used for passing the actual struct as a parameter.

See below and TkWidget(3) for more details.


Go up one levelGo to Previous Go to Next

Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory