GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

GFC::Gtk::Misc Class Reference

A GtkMisc C++ wrapper class. More...

#include <gfc/gtk/misc.hh>

Inheritance diagram for GFC::Gtk::Misc:

GFC::Gtk::Widget GFC::Gtk::Object GFC::Atk::Implementor GFC::G::Object GFC::G::TypeInterface GFC::G::TypeInstance GFC::G::TypeInstance GFC::Trackable GFC::Trackable GFC::Gtk::Arrow GFC::Gtk::Image GFC::Gtk::Label GFC::Gtk::AccelLabel List of all members.

Public Member Functions

Constructors
Accessors
Methods

Protected Member Functions

Constructors

Detailed Description

A GtkMisc C++ wrapper class.

The Misc widget is an abstract widget which is not useful itself, but is used to derive subclasses which have alignment and padding attributes. The horizontal and vertical padding attributes allows extra space to be added around the widget. The horizontal and vertical alignment attributes enable the widget to be positioned within its allocated area. Note that if the widget is added to a container in such a way that it expands automatically to fill its allocated area, the alignment settings will not alter the widgets position.


Constructor & Destructor Documentation

GFC::Gtk::Misc::Misc GtkMisc *  misc,
bool  owns_reference = false
[explicit, protected]
 

Construct a new Misc from an existing GtkMisc.

Parameters:
misc A pointer to a GtkMisc.
owns_reference Set false if the initial reference count is floating, set true if it's not.

The misc can be a newly created GtkMisc or an existing GtkMisc (see G::Object::Object).


Member Function Documentation

void GFC::Gtk::Misc::get_alignment float *  xalign,
float *  yalign
 

Gets the X and Y alignment of the widget within its allocation (see set_alignment()).

Parameters:
xalign The location to store X alignment of misc, or null.
yalign The location to store Y alignment of misc, or null.

void GFC::Gtk::Misc::get_padding int *  xpad,
int *  ypad
 

Gets the padding in the X and Y directions of the widget (see set_padding()).

Parameters:
xpad The location to store padding in the X direction, or null.
ypad The location to store padding in the Y direction, or null.

void GFC::Gtk::Misc::set_alignment float  xalign,
float  yalign
 

Sets the alignment of the widget.

Parameters:
xalign The horizontal alignment, from 0 (left) to 1 (right).
yalign The vertical alignment, from 0 (top) to 1 (bottom).

void GFC::Gtk::Misc::set_padding int  xpad,
int  ypad
 

Sets the amount of space to add around the widget.

Parameters:
xpad The amount of space to add on the left and right of the widget, in pixels.
ypad The amount of space to add on the top and bottom of the widget, in pixels.


The documentation for this class was generated from the following file:
Generated on Tue Aug 24 00:34:40 2004 for GFC-UI by doxygen 1.3.8