| GTK+ Reference Manual | |||
|---|---|---|---|
| <<< Previous Page | Home | Up | Next Page >>> |
#include <gtk/gtk.h> struct GtkFixed; struct GtkFixedChild; GtkWidget* gtk_fixed_new (void); void gtk_fixed_put (GtkFixed *fixed, GtkWidget *widget, gint16 x, gint16 y); void gtk_fixed_move (GtkFixed *fixed, GtkWidget *widget, gint16 x, gint16 y); |
The GtkFixed widget is a container which can place child widgets at fixed positions and with fixed sizes, given in pixels.
struct GtkFixed; |
The GtkFixed struct contains the following fields. (These fields should be considered read-only. They should never be set by an application.)
| GList *children; | a list of GtkFixedChild elements, containing the child widgets and their positions. |
struct GtkFixedChild
{
GtkWidget *widget;
gint16 x;
gint16 y;
}; |
The GtkFixedChild struct contains the following fields. (These fields should be considered read-only. They should never be set by an application.)
void gtk_fixed_put (GtkFixed *fixed, GtkWidget *widget, gint16 x, gint16 y); |
Adds a widget to a GtkFixed container at the given position.
| fixed : | a GtkFixed. |
| widget : | the widget to add. |
| x : | the horizontal position to place the widget at. |
| y : | the vertical position to place the widget at. |