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


Xfc::Gtk::BoxChild Class Reference

A GtkBoxChild C++ wrapper class. More...

#include <xfc/gtk/boxchild.hh>

List of all members.

Public Member Functions

Accessors

Detailed Description

A GtkBoxChild C++ wrapper class.

BoxChild is an object that describes how a child widget is to be packed into a box. Use Gtk::Box::query_child_packing() and Gtk::Box::set_child_packing() to query and reset the padding, expand, fill, and pack fields.


Member Function Documentation

bool Xfc::Gtk::BoxChild::expand  )  const
 

Get the child widget expand flag.

Returns:
true if extra space should be given to the child widget.
The expand flag indicates whether extra space should be given to this child. Any extra space given to the parent Box is divided up among all children with this attribute set to true; set when packed, true by default.

bool Xfc::Gtk::BoxChild::fill  )  const
 

Get the child widget fill flag.

Returns:
true if extra space given to this child is allocated to the child.
Indicates whether any extra space given to this child due to its expand attribute being set is actually allocated to the child, rather than being used as padding around the widget; set when packed, true by default.

PackType Xfc::Gtk::BoxChild::pack  )  const
 

Gets the child widget PackType.

Returns:
The PackType.
The PackType indicates whether the child is packed with reference to the start (top/left) or end (bottom/right) of the Box.

unsigned int Xfc::Gtk::BoxChild::padding  )  const
 

Gets the number of extra pixels to put between the child widget and its neighbors.

Returns:
The number of extra pixels.
The padding is the number of extra pixels between this child and its neighbors, set when packed, zero by default.

Widget* Xfc::Gtk::BoxChild::widget  )  const
 

Gets the child widget, packed into the Box.

Returns:
The child packed into the Box. 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