Class Index Cross Index Namespace Index

Class Gtk::Alignment

Alignment Container
Contained in: Gtk
Derived from: Gtk::Bin
Derived by: none

#include <gtk--/alignment.h>


public function member index:

explicit Alignment(gfloat xalign=0.5, gfloat yalign=0.5, gfloat xscale=1.0, gfloat yscale=1.0);
gfloat get_xalign() const;
gfloat get_xscale() const;
gfloat get_yalign() const;
gfloat get_yscale() const;
GtkAlignment* gtkobj();
const GtkAlignment* gtkobj() const;
static bool isA(Object* object);
void set(gfloat xalign=0.5, gfloat yalign=0.5, gfloat xscale=1.0, gfloat yscale=1.0);
virtual ~Alignment();
 

Description:

Normally, a widget is allocated at least as much size as it requests. When a widget is allocated more size than it requests there is a question of how the widget should expand. By convention, most GTK widgets expand to fill their allocated space. Sometimes this behavior is not desired. The alignment widget allows the programmer to specify how a widget should expand and position itself to fill the area it is allocated.


Function Member Descriptions:

Gtk::Alignment::gtkobj - Returns the underlaying gtk+ object.

GtkAlignment* gtkobj();

Gtk::Alignment::isA - Returns true if object is this type.

static bool isA(Object* object);

Gtk::Alignment::set - Sets the properties for this widget.

void set(gfloat xalign=0.5, gfloat yalign=0.5, gfloat xscale=1.0, gfloat yscale=1.0);
Sets both the alignment and scale of the window.

See properties xalign and xscale for more detail.