Gtk::Object Class Reference

Gtk::Object is the base class for all widgets, and for a few non-widget objects such as Gtk::Adjustment. More...

`#include <gtkmm/object.h>`

Inheritance diagram for Gtk::Object:
[legend]

## Public Member Functions

| Object (Object&& src) noexcept
Object& | operator= (Object&& src) noexcept
| ~Object () noexcept override
GObject* | gobj ()
| Provides access to the underlying C GObject. More...
const GObject* | gobj () const
| Provides access to the underlying C GObject. More...

## 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).

## Constructor & Destructor Documentation

## Object()

Gtk::Object::Object | ( | Object&& | src | ) |

noexcept

## ~Object()

Gtk::Object::~Object | ( |  | ) |

override noexcept

## Member Function Documentation

## gobj() [1/2]

GObject* Gtk::Object::gobj | ( |  | ) |

inline

Provides access to the underlying C GObject.

## gobj() [2/2]

const GObject* Gtk::Object::gobj | ( |  | ) | const

inline

Provides access to the underlying C GObject.

## operator=()

Object& Gtk::Object::operator= | ( | Object&& | src | ) |

noexcept