Gtk-- Reference: Gtk::Data

Class Index | Cross Index | Namespace Index

# Class Gtk::Data

Abstract base class for objects containing data.
Contained in: Gtk
Derived from: Gtk::Object
Derived by: Gtk::Adjustment Gtk::Tooltips

#include <gtk--/data.h>

### public function member index:
``signal` `void`` | `disconnect` | `()`;
``GtkData`*` | `gtkobj` | `()`;
``const` `GtkData`*` | `gtkobj` | `() `const``;
``static` `bool`` | `isA` | `(`Object`* `object`)`;
``virtual`` | `~Data` | `()`;
### protected function member index:
`` | `Data` | `()`;
``virtual` `void`` | `disconnect_impl` | `()`;

## Description:

The `Gtk:Data` object is a very simple object intended to be used as a base class for objects which contain data (i.e. the 'Model' in the object-oriented Model/View/Controller framework).

Currently it is not very useful since all it provides is a "disconnect" signal. This signal could be emitted by a `Gtk::Data` subclass to notify any 'Views' that they should disconnect from the `Gtk::Data` (the 'Model'), possibly just before the `Gtk::Data` is destroyed.

## Function Member Descriptions:

Gtk::Data::disconnect - Emitted to notify any views on the `Gtk::Data` object to disconnect from it, possibly because the `Gtk::Data` object is about to be destroyed.

``signal` `void`` `disconnect``()`;
``virtual` `void`` `disconnect_impl``()`;
Gtk::Data::gtkobj - Returns the underlaying gtk+ object.

``GtkData`*` `gtkobj``()`;
Gtk::Data::isA - Returns true if object is this type.

``static` `bool`` `isA``(`Object`* `object`)`;