Logo Search packages:      
Sourcecode: ardour version File versions  Download package

Gtk::Adjustment Class Reference

#include <adjustment.h>

Inheritance diagram for Gtk::Adjustment:

sigc::trackable

List of all members.


Detailed Description

A class representing an adjustable bounded value.

The Gtk::Adjustment object represents a value which has an associated lower and upper bound, together with step and page increments, and a page size. It is used within several gtkmm widgets, including Gtk::SpinButton, Gtk::Viewport, and Gtk::Range (which is a base class for Gtk::HScrollbar, Gtk::VScrollbar, Gtk::HScale, and Gtk::VScale).

The Gtk::Adjustment object does not update the value itself. Instead it is left up to the owner of the Gtk::Adjustment to control the value.

The owner of the Gtk::Adjustment typically calls the value_changed() and changed() functions after changing the value and its bounds. This results in the emission of the "value_changed" or "changed" signal respectively.

Definition at line 60 of file adjustment.h.


Public Types

typedef GtkAdjustmentClass BaseClassType
typedef GtkAdjustment BaseObjectType
typedef Adjustment_Class CppClassType
typedef Adjustment CppObjectType
typedef void(* DestroyNotify )(gpointer data)

Public Member Functions

bool _cpp_destruction_is_in_progress () const
 Adjustment (double value, double lower, double upper, double step_increment=1, double page_increment=10, double page_size=0)
void changed ()
void clamp_page (double lower, double upper)
void * get_data (const QueryQuark &key)
double get_lower () const
double get_page_increment () const
double get_page_size () const
template<class PropertyType>
void get_property (const Glib::ustring &property_name, PropertyType &value) const
 You probably want to use a specific property_*() accessor method instead.
void get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const
 You probably want to use a specific property_*() accessor method instead.
double get_step_increment () const
double get_upper () const
double get_value () const
const GtkAdjustment * gobj () const
 Provides access to the underlying C GtkObject.
GtkAdjustment * gobj ()
 Provides access to the underlying C GtkObject.
GObject * gobj_copy () const
bool is_managed_ () const
Glib::PropertyProxy_ReadOnly
< void * > 
property_user_data () const
Glib::PropertyProxy< void * > property_user_data ()
virtual void reference () const
void remove_data (const QueryQuark &quark)
void set_data (const Quark &key, void *data, DestroyNotify notify)
void set_data (const Quark &key, void *data)
void set_lower (double lower)
virtual void set_manage ()
void set_page_increment (double incr)
void set_page_size (double size)
template<class PropertyType>
void set_property (const Glib::ustring &property_name, const PropertyType &value)
 You probably want to use a specific property_*() accessor method instead.
void set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value)
 You probably want to use a specific property_*() accessor method instead.
void set_step_increment (double incr)
void set_upper (double upper)
void set_value (double value)
Glib::SignalProxy0< void > signal_changed ()
Glib::SignalProxy0< void > signal_value_changed ()
void * steal_data (const QueryQuark &quark)
virtual void unreference () const
void value_changed ()

Static Public Member Functions

static ObjectBase * _get_current_wrapper (GObject *object)
static GType get_base_type () G_GNUC_CONST
static GType get_type () G_GNUC_CONST

Protected Member Functions

void _destroy_c_instance ()
void _init_unmanage (bool is_toplevel=false)
void _set_current_wrapper (GObject *object)
 Adjustment (GtkAdjustment *castitem)
 Adjustment (const Glib::ConstructParams &construct_params)
void destroy_ ()
virtual void destroy_notify_ ()
void disconnect_cpp_wrapper ()
void initialize (GObject *castitem)
bool is_anonymous_custom_ () const
bool is_derived_ () const
virtual void on_changed ()
virtual void on_value_changed ()

Static Protected Member Functions

static void callback_destroy_ (GObject *gobject, void *data)
static void destroy_notify_callback_ (void *data)

Protected Attributes

bool cpp_destruction_in_progress_
const char * custom_type_name_
GObject * gobject_
bool gobject_disposed_
bool referenced_

Package Functions

void add_destroy_notify_callback (void *data, func_destroy_notify func) const
void notify_callbacks ()
 Execute and remove all previously installed callbacks.
void remove_destroy_notify_callback (void *data) const

Package Attributes

 __pad0__:func_destroy_notify func_destroy_notify

Private Member Functions

 Adjustment (const Adjustment &)
Adjustmentoperator= (const Adjustment &)

Static Private Attributes

static CppClassType adjustment_class_

Friends

class Adjustment_Class
class Glib::GSigConnectionNode
class Glib::Object_Class
class HScrollbar
class Range
class VScrollbar

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Glib::Object > wrap (GObject *object, bool take_copy=false)
Gtk::Object * wrap (GtkObject *object, bool take_copy=false)
Gtk::Adjustmentwrap (GtkAdjustment *object, bool take_copy=false)

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

Generated by  Doxygen 1.6.0   Back to index