Gtk-- Reference: Gtk::Bin

Class Index | Cross Index | Namespace Index

# Class Gtk::Bin

Signal Widget Container
Contained in: Gtk
Derived from: Gtk::Container
Derived by: Gtk::Alignment Gtk::Button Gtk::EventBox Gtk::Frame Gtk::HandleBox Gtk::Invisible Gtk::Item Gtk::ScrolledWindow Gtk::Viewport Gtk::Window

#include <gtk--/bin.h>

### public function member index:
``void`` | `add_label` | `(`const` `string`& `label`, `gfloat` `x`=0.0, `gfloat` `y`=0.5)`;
``void`` | `add_pixlabel` | `(`const` `Gdk_Pixmap`& `pixmap`, `const` `Gdk_Bitmap`& `bitmap`, `const` `string`& `label`, `gfloat` `x`=0.0, `gfloat` `y`=0.5)`;
``void`` | `add_pixlabel` | `(`const` `string`& `pixfile`, `const` `string`& `label`, `gfloat` `x`=0.0, `gfloat` `y`=0.5)`;
``void`` | `add_pixmap` | `(`const` `Gdk_Pixmap`& `pixmap`, `const` `Gdk_Bitmap`& `bitmap`)`;
``Widget`*` | `get_child` | `() `const``;
``GtkBin`*` | `gtkobj` | `()`;
``const` `GtkBin`*` | `gtkobj` | `() `const``;
``static` `bool`` | `isA` | `(`Object`* `object`)`;
``void`` | `remove` | `()`;
``virtual`` | `~Bin` | `()`;
### protected function member index:
`` | `Bin` | `()`;

## Description:

Gtk_Bin is an abstract base class from which classes holding one widget inside of them derive. It provides access to methods relevent to a single object like add_label, add_pixmap, etc.

## Function Member Descriptions:

Gtk::Bin::gtkobj - Returns the underlaying gtk+ object.

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

``static` `bool`` `isA``(`Object`* `object`)`;
Gtk::Bin::remove - Remove the contained object

``void`` `remove``()`;

> Since Gtk_Bin can only hold one object it is not necessary to specify which object to remove like other containers.