AdgGtkLayout — A scrollable AdgGtkArea based widget
AdgGtkLayout; GtkWidget * adg_gtk_layout_new (void); GtkWidget * adg_gtk_layout_new_with_canvas (AdgCanvas *canvas); void adg_gtk_layout_set_hadjustment (AdgGtkLayout *layout, GtkAdjustment *hadjustment); GtkAdjustment * adg_gtk_layout_get_hadjustment (AdgGtkLayout *layout); void adg_gtk_layout_set_vadjustment (AdgGtkLayout *layout, GtkAdjustment *vadjustment); GtkAdjustment * adg_gtk_layout_get_vadjustment (AdgGtkLayout *layout);
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkDrawingArea
+----AdgGtkArea
+----AdgGtkLayout
"hadjustment" GtkAdjustment* : Read / Write / Construct "vadjustment" GtkAdjustment* : Read / Write / Construct
This is an AdgGtkArea derived object with scrolling capabilities. It means an AdgGtkLayout object can be added directly to a GtkScrolledWindow container without the need for an intermediate GtkViewport container.
typedef struct _AdgGtkLayout AdgGtkLayout;
All fields are private and should not be used directly. Use its public methods instead.
GtkWidget * adg_gtk_layout_new (void);
Creates a new empty AdgGtkLayout. The widget is useful only after an AdgCanvas has been added either using the "canvas" property or with adg_gtk_layout_set_canvas().
|
Returns : |
the newly created widget |
GtkWidget * adg_gtk_layout_new_with_canvas (AdgCanvas *canvas);
Creates a new AdgGtkLayout and sets the "canvas" property
to canvas.
|
|
the AdgCanvas shown by this widget |
|
Returns : |
the newly created widget |
void adg_gtk_layout_set_hadjustment (AdgGtkLayout *layout, GtkAdjustment *hadjustment);
Sets the new horizontal adjustment for layout to hadjustment.
The old adjustment, if present, is unreferenced.
This is basically the same as manually setting the "hadjustment" property with g_object_set().
|
|
an AdgGtkLayout |
|
|
the new adjustment |
GtkAdjustment * adg_gtk_layout_get_hadjustment (AdgGtkLayout *layout);
Retrieves the current horizontal adjustment of layout.
|
|
an AdgGtkLayout |
void adg_gtk_layout_set_vadjustment (AdgGtkLayout *layout, GtkAdjustment *vadjustment);
Sets the new vertical adjustment for layout to vadjustment.
The old adjustment, if present, is unreferenced.
This is basically the same as manually setting the "vadjustment" property with g_object_set().
|
|
an AdgGtkLayout |
|
|
the new adjustment |
GtkAdjustment * adg_gtk_layout_get_vadjustment (AdgGtkLayout *layout);
Retrieves the current vertical adjustment of layout.
|
|
an AdgGtkLayout |
"hadjustment" property"hadjustment" GtkAdjustment* : Read / Write / Construct
The GtkAdjustment that determines the values of the horizontal position for this viewport.
"set-scroll-adjustments" signalvoid user_function (AdgGtkLayout *layout, GtkAdjustment *old_canvas, GtkAdjustment *arg2, gpointer user_data) : Run Last
Emitted when the AdgGtkLayout scroll adjustments have been set.
|
|
an AdgGtkLayout |
|
|
the old AdgCanvas object |
|
|
user data set when the signal handler was connected. |
AdgGtkLayoutwas last modified by gtk-doc on Sun 20 Mar 2011 09:36:51 PM CET