Class Index | Cross Index | Namespace Index |
A decrative border
Contained in: Gtk
Derived from:
Gtk::Bin
Derived by:
Gtk::AspectFrame
#include <gtk--/frame.h>
public function member index: |
||
Frame | (const nstring& label); | |
Frame | (); | |
string | get_label | () const; |
GtkShadowType | get_shadow_type | () const; |
float | get_xalign | () const; |
float | get_yalign | () const; |
GtkFrame* | gtkobj | (); |
const GtkFrame* | gtkobj | () const; |
static bool | isA | (Object* object); |
void | set_label | (const nstring& str); |
void | set_label_align | (gfloat xalign=0.0, gfloat yalign=0.5); |
void | set_shadow_type | (GtkShadowType type); |
virtual | ~Frame | (); |
If there is no label, the string will be empty.
Range from 0 (left) to 1.0 (right).
Range from 0 (top) to 1.0 (bottom).
Label alignment defaults to the upper left corner of the frame. str can be a NULL pointer.
xalign sets the horizontal label position and should be between 0 (left) and 1.0 (right). yalign does not appear to have any effect in this version of gtk+. Defaults to (0.0,0.5).
The possible choices are: GTK_SHADOW_NONE,GTK_SHADOW_IN,GTK_SHADOW_OUT,GTK_SHADOW_ETCHED_IN, GTK_SHADOW_ETCHED_OUTdeclaration of the enum GtkShadowType can be found from gtkenums.h