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

Inti::Gtk::Alignment Class Reference

A GtkAlignment C++ wrapper class. More...

#include <inti/gtk/alignment.h>

Inheritance diagram for Inti::Gtk::Alignment:

Inti::Gtk::Bin Inti::Gtk::Container 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 List of all members.

Public Member Functions

Constructors
Accessors
Methods
Property Proxies

Protected Member Functions

Constructors

Detailed Description

A GtkAlignment C++ wrapper class.

The Alignment widget controls the alignment and size of its child widget. It has four settings: xscale, yscale, xalign, and yalign.

The scale settings are used to specify how much the child widget should expand to fill the space allocated to the Alignment. The values can range from 0 (meaning the child doesn't expand at all) to 1 (meaning the child expands to fill all of the available space).

The align settings are used to place the child widget within the available area. The values range from 0 (top or left) to 1 (bottom or right). Of course, if the scale settings are both set to 1, the alignment settings have no effect.


Constructor & Destructor Documentation

Inti::Gtk::Alignment::Alignment GtkAlignment *  alignment,
bool  reference = false
[explicit, protected]
 

Construct a new Alignment from an existing GtkAlignment.

Parameters:
alignment T pointer to a GtkAlignment.
reference Set false if the initial reference count is floating, set true if it's not.

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

Inti::Gtk::Alignment::Alignment float  xalign,
float  yalign,
float  xscale = 0.0,
float  yscale = 0.0
 

Construct a new Alignment.

Parameters:
xalign The horizontal alignment of the child widget, from 0 (left) to 1 (right).
yalign The vertical alignment of the child widget, from 0 (top) to 1 (bottom).
xscale The amount that the child widget expands horizontally to fill up unused space, from 0 to 1. A value of 0 indicates that the child widget should never expand. A value of 1 indicates that the child widget will expand to fill all of the space allocated for the GtkAlignment.
yscale The amount that the child widget expands vertically to fill up unused space, from 0 to 1. The values are similar to xscale.


Member Function Documentation

void Inti::Gtk::Alignment::set float  xalign,
float  yalign,
float  xscale,
float  yscale
 

Sets the Alignment values.

Parameters:
xalign The horizontal alignment of the child widget, from 0 (left) to 1 (right).
yalign The vertical alignment of the child widget, from 0 (top) to 1 (bottom).
xscale The amount that the child widget expands horizontally to fill up unused space, from 0 to 1. A value of 0 indicates that the child widget should never expand. A value of 1 indicates that the child widget will expand to fill all of the space allocated for the GtkAlignment.
yscale The amount that the child widget expands vertically to fill up unused space, from 0 to 1. The values are similar to xscale.


The documentation for this class was generated from the following file: Main Page - Footer


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