Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Xfc::Gtk::Bin Class Reference

A GtkBin C++ wrapper class. More...

#include <xfc/gtk/bin.hh>

Inheritance diagram for Xfc::Gtk::Bin:

Xfc::Gtk::Container Xfc::Gtk::Widget Xfc::Gtk::Object Xfc::Atk::Implementor Xfc::G::Object Xfc::G::TypeInterface Xfc::G::TypeInstance Xfc::G::TypeInstance Xfc::Trackable Xfc::Trackable Xfc::Gtk::Alignment Xfc::Gtk::Button Xfc::Gtk::ComboBox Xfc::Gtk::EventBox Xfc::Gtk::Expander Xfc::Gtk::Frame Xfc::Gtk::HandleBox Xfc::Gtk::Item Xfc::Gtk::ScrolledWindow Xfc::Gtk::ToolItem Xfc::Gtk::Viewport Xfc::Gtk::Window List of all members.

Public Member Functions

Accessors

Detailed Description

A GtkBin C++ wrapper class.

The Bin widget is a container with just one child. It is not very useful itself, but it is useful for deriving subclasses, since it provides common code needed for handling a single child widget. Many widgets are subclasses of Bin, including Window, Button, Frame, HandleBox, and ScrolledWindow.


Constructor & Destructor Documentation

Xfc::Gtk::Bin::Bin ( GtkBin *  bin,
bool  owns_reference = false 
) [explicit, protected]

Construct a new Bin from an existing GtkBin.

Parameters:
bin A pointer to a GtkBin.
owns_reference Set false if the initial reference count is floating, set true if it's not.
The bin can be a newly created GtkBin or an existing GtkBin. (see G::Object::Object).

Xfc::Gtk::Bin::Bin ( GtkBin *  bin,
bool  owns_reference = false 
) [explicit, protected]

Construct a new Bin from an existing GtkBin.

Parameters:
bin A pointer to a GtkBin.
owns_reference Set false if the initial reference count is floating, set true if it's not.
The bin can be a newly created GtkBin or an existing GtkBin. (see G::Object::Object).


Member Function Documentation

Widget* Xfc::Gtk::Bin::get_child (  )  const

Gets the child of the bin, or null if the bin contains no child widget.

Returns:
A pointer to the child of the Bin. The returned widget does not have a reference added, so you do not need to unref it.


The documentation for this class was generated from the following file: Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC 4.3