![]() |
![]() |
![]() |
Clutter-Gtk 0.10.8 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
struct GtkClutterViewport; struct GtkClutterViewportClass; ClutterActor * gtk_clutter_viewport_new (GtkAdjustment *h_adjust
,GtkAdjustment *v_adjust
,GtkAdjustment *z_adjust
); void gtk_clutter_viewport_get_origin (GtkClutterViewport *viewport
,gfloat *x
,gfloat *y
,gfloat *z
);
GtkClutterViewport implements ClutterScriptable, ClutterAnimatable, AtkImplementorIface, ClutterContainer, GtkClutterScrollable and GtkClutterZoomable.
GtkClutterViewport is a scrollable actor that can contain a single ClutterActor. Using two GtkAdjustments it is possible to control the visible area of the child actor if the size of the viewport is smaller than the size of the child.
The GtkAdjustments used to control the horizontal and vertical scrolling can be attached to a GtkScrollbar subclass, like GtkHScrollbar or GtkVScrollbar.
The GtkClutterViewport can be used inside any ClutterContainer implementation.
GtkClutterViewport is available since Clutter-GTK 0.10
struct GtkClutterViewport;
The GtkClutterViewport structure contains only private data and should be accessed using the provided functions.
Since 0.8.2
struct GtkClutterViewportClass { };
The GtkClutterViewportClass structure contains only private data and should be accessed using the provided functions.
Since 0.8.2
ClutterActor * gtk_clutter_viewport_new (GtkAdjustment *h_adjust
,GtkAdjustment *v_adjust
,GtkAdjustment *z_adjust
);
Creates a new GtkClutterViewport with the given adjustments.
|
horizontal adjustment, or NULL
|
|
vertical adjustment, or NULL
|
|
zoom adjustment, or NULL
|
Returns : |
the newly created viewport actor |
Since 0.10
void gtk_clutter_viewport_get_origin (GtkClutterViewport *viewport
,gfloat *x
,gfloat *y
,gfloat *z
);
Retrieves the current translation factor ("origin") used when
displaying the child of viewport
.
|
a GtkClutterViewport |
|
return location for the X origin in pixels, or NULL
|
|
return location for the Y origin in pixels, or NULL
|
|
return location for the Z origin in pixels, or NULL
|
Since 0.10