Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

Inti::Gtk::Misc Class Reference

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

#include <inti/gtk/misc.h>

Inheritance diagram for Inti::Gtk::Misc:

Inti::Gtk::Widget Inti::Gtk::Object Inti::Atk::Implementor Inti::G::Object Inti::G::TypeInterface Inti::G::TypeInstance Inti::MemoryHandler Inti::G::TypeInstance Inti::ReferencedBase Inti::ReferencedBase Inti::Gtk::Arrow Inti::Gtk::Image Inti::Gtk::Label Inti::Gtk::AccelLabel List of all members.

Public Member Functions

Constructors
Accessors
Methods
Property Proxies

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

Inti::Gtk::Misc::Misc GtkMisc *  misc,
bool  reference = false
[explicit, protected]
 

Construct a new Misc from an existing GtkMisc.

Parameters:
misc A pointer to a GtkMisc.
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 Inti::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 Inti::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 Inti::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 Inti::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: Main Page - Footer


Generated on Sun Sep 14 20:08:17 2003 for Inti by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002