GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

GFC::Gtk::ScaleSignals Class Reference

Abstract base class that implements the virtual signal handlers for Gtk::Scale. More...

#include <gfc/gtk/scalesignals.hh>

Inheritance diagram for GFC::Gtk::ScaleSignals:

GFC::Gtk::RangeSignals GFC::Gtk::WidgetSignals GFC::Gtk::ObjectSignals GFC::G::ObjectSignals GFC::G::TypeInstance GFC::Trackable List of all members.

Public Member Functions

Signal Handlers

Protected Member Functions

Constructors

Detailed Description

Abstract base class that implements the virtual signal handlers for Gtk::Scale.


Constructor & Destructor Documentation

GFC::Gtk::ScaleSignals::ScaleSignals Scale scale  )  [protected]
 

Constructs a new ScaleSignals object.

Parameters:
scale A Scale object inheriting the ScaleSignals implementation.


Member Function Documentation

virtual char* GFC::Gtk::ScaleSignals::on_format_value double  value  )  [virtual]
 

Called to format the scale value before it gets displayed.

Parameters:
value The scale value to format.
Returns:
An allocated string representing value.

This signal handler allows you to change how the scale value is displayed. The return value must be an allocated string representing value. That string will then be used to display the scale's value. Here's an example signal handler which displays a value 1.0 as with "-->1.0<--".
             char*
             MyScale::on_format_value(double value)
             {
                return g_strdup_printf("-->%0.*g<--", scale->get_digits(value));
             }


The documentation for this class was generated from the following file:
Generated on Tue Aug 24 00:34:41 2004 for GFC-UI by doxygen 1.3.8