![]() |
![]() |
![]() |
adg-1 reference manual |
![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
AdgGtkLayoutAdgGtkLayout — A scrollable AdgGtkArea based widget |
struct AdgGtkLayout; struct AdgGtkLayoutClass;GtkAdjustment * adg_gtk_layout_get_hadjustment (AdgGtkLayout *layout
);GtkAdjustment * adg_gtk_layout_get_vadjustment (AdgGtkLayout *layout
);GtkWidget * adg_gtk_layout_new (void
);GtkWidget * adg_gtk_layout_new_with_canvas (AdgCanvas *canvas
);void adg_gtk_layout_set_hadjustment (AdgGtkLayout *layout
,);
GtkAdjustment *hadjustmentvoid adg_gtk_layout_set_vadjustment (AdgGtkLayout *layout
,);
GtkAdjustment *vadjustment
GObject +----GInitiallyUnowned +----GtkWidget +----GtkDrawingArea +----AdgGtkArea +----AdgGtkLayout
This is an AdgGtkArea derived object with scrolling capabilities.
It means an AdgGtkLayout object can be added directly to a
struct AdgGtkLayout;
All fields are private and should not be used directly. Use its public methods instead.
Since 1.0
struct AdgGtkLayoutClass { /* Virtual Table */ void (*canvas_changed) (AdgGtkLayout *layout); };
GtkAdjustment * adg_gtk_layout_get_hadjustment (AdgGtkLayout *layout
);
Retrieves the current horizontal adjustment of layout
.
The returned alignment is owned by layout
and should
not be modified or freed.
|
an AdgGtkLayout |
Returns : |
the alignment of layout . [transfer none] |
Since 1.0
GtkAdjustment * adg_gtk_layout_get_vadjustment (AdgGtkLayout *layout
);
Retrieves the current vertical adjustment of layout
.
The returned alignment is owned by layout
and should
not be modified or freed.
|
an AdgGtkLayout |
Returns : |
the alignment of layout . [transfer none] |
Since 1.0
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 adg_gtk_layout_set_canvas()
Returns : |
the newly created widget. [transfer full] |
Since 1.0
GtkWidget * adg_gtk_layout_new_with_canvas (AdgCanvas *canvas
);
Creates a new AdgGtkLayout and sets the canvas
.
|
the AdgCanvas shown by this widget |
Returns : |
the newly created widget. [transfer full] |
Since 1.0
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
g_object_set()
|
an AdgGtkLayout |
|
the new adjustment |
Since 1.0
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
g_object_set()
|
an AdgGtkLayout |
|
the new adjustment |
Since 1.0