Ardour  8.7-14-g57a6773833
Gtk::Object Class Reference

#include <object.h>

Inheritance diagram for Gtk::Object:
[legend]

Public Member Functions

virtual ~Object ()
 
GtkObjectgobj ()
 Provides access to the underlying C GtkObject. More...
 
const GtkObjectgobj () const
 Provides access to the underlying C GtkObject. More...
 
Glib::PropertyProxy< void * > property_user_data ()
 
Glib::PropertyProxy_ReadOnly< void * > property_user_data () const
 

Related Functions

(Note that these are not member functions.)

Gtk::Objectwrap (GtkObject *object, bool take_copy=false)
 

Detailed Description

Gtk::Object is the base class for all widgets, and for a few non-widget objects such as Gtk::Adjustment. Gtk::Object predates Glib::Object; non-widgets that derive from Gtk::Object rather than Glib::Object do so for backward compatibility reasons.

The most interesting difference between Gtk::Object and Glib::Object is the ability to use Gtk::manage() to delegate memory management to the container widget. Gtk::Objects can also be explicitly deleted at any time, instead of using only reference-counting, and container widgets can respond when their child objects are being deleted (for instance by removing the widget).

Definition at line 73 of file object.h.

Constructor & Destructor Documentation

◆ ~Object()

virtual Gtk::Object::~Object ( )
virtual

Member Function Documentation

◆ gobj() [1/2]

GtkObject* Gtk::Object::gobj ( )
inline

Provides access to the underlying C GtkObject.

Definition at line 110 of file object.h.

◆ gobj() [2/2]

const GtkObject* Gtk::Object::gobj ( ) const
inline

Provides access to the underlying C GtkObject.

Definition at line 113 of file object.h.

◆ property_user_data() [1/2]

Glib::PropertyProxy< void* > Gtk::Object::property_user_data ( )

Anonymous User Data Pointer.

Returns
A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.

◆ property_user_data() [2/2]

Glib::PropertyProxy_ReadOnly< void* > Gtk::Object::property_user_data ( ) const

Anonymous User Data Pointer.

Returns
A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.

Friends And Related Function Documentation

◆ wrap()

Gtk::Object * wrap ( GtkObject object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns
A C++ instance that wraps this C instance.

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