Synopsis
#include <gtk/gtk.h>
GtkMisc;
void gtk_misc_set_alignment (GtkMisc *misc,
gfloat xalign,
gfloat yalign);
void gtk_misc_set_padding (GtkMisc *misc,
gint xpad,
gint ypad);
void gtk_misc_get_alignment (GtkMisc *misc,
gfloat *xalign,
gfloat *yalign);
void gtk_misc_get_padding (GtkMisc *misc,
gint *xpad,
gint *ypad);
Object Hierarchy
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkMisc
+----GtkLabel
+----GtkArrow
+----GtkImage
+----GtkPixmap
Properties"xalign" gfloat : Read / Write "xpad" gint : Read / Write "yalign" gfloat : Read / Write "ypad" gint : Read / Write DescriptionThe GtkMisc 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. DetailsGtkMisctypedef struct _GtkMisc GtkMisc; The GtkMisc struct contains the following fields. (These fields should be considered read-only. They should never be set by an application.)
gtk_misc_set_alignment ()void gtk_misc_set_alignment (GtkMisc *misc, gfloat xalign, gfloat yalign); Sets the alignment of the widget.
gtk_misc_set_padding ()void gtk_misc_set_padding (GtkMisc *misc, gint xpad, gint ypad); Sets the amount of space to add around the widget.
gtk_misc_get_alignment ()void gtk_misc_get_alignment (GtkMisc *misc, gfloat *xalign, gfloat *yalign);
Gets the X and Y alignment of the widget within its allocation.
See
gtk_misc_get_padding ()void gtk_misc_get_padding (GtkMisc *misc, gint *xpad, gint *ypad);
Gets the padding in the X and Y directions of the widget.
See
Property DetailsThe
| ||||||||||||||||||||||||||||||||||||||||||