![]() |
![]() |
![]() |
adg-1 reference manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
#include <adg-1/adg.h> struct AdgGtkLayout; struct AdgGtkLayoutClass; 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 +----GtkWidget +----GtkDrawingArea +----AdgGtkArea +----AdgGtkLayout
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.
struct AdgGtkLayout;
All fields are private and should not be used directly. Use its public methods instead.
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 "canvas"
property or with 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" property
to 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
"hadjustment" property with g_object_set()
.
|
an AdgGtkLayout |
|
the new adjustment |
Since 1.0
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
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 |
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