![]() |
![]() |
![]() |
Netbook Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
NbtkViewport; NbtkWidget * nbtk_viewport_new (void
); void nbtk_viewport_set_origin (NbtkViewport *viewport
,gfloat x
,gfloat y
,gfloat z
); void nbtk_viewport_get_origin (NbtkViewport *viewport
,gfloat *x
,gfloat *y
,gfloat *z
);
GObject +----GInitiallyUnowned +----ClutterActor +----NbtkWidget +----NbtkBin +----NbtkViewport
NbtkViewport implements ClutterScriptable, NbtkStylable, ClutterContainer and NbtkScrollable.
"sync-adjustments" gboolean : Read / Write "x-origin" gfloat : Read / Write "y-origin" gfloat : Read / Write "z-origin" gfloat : Read / Write
NbtkViewport allows non-scrollable children to be scrollable by implementing the NbtkScrollable and ClutterContainer interface.
Do not use NbtkViewport if you need good performance as it does can not be selective about the area of its child that is painted/picked. Therefore if the child is very large or contains a lot of children, you will experience poor performance.
typedef struct _NbtkViewport NbtkViewport;
The contents of this structure are private and should only be accessed through the public API.
void nbtk_viewport_set_origin (NbtkViewport *viewport
,gfloat x
,gfloat y
,gfloat z
);
|
|
|
|
|
|
|
void nbtk_viewport_get_origin (NbtkViewport *viewport
,gfloat *x
,gfloat *y
,gfloat *z
);
|
|
|
|
|
|
|
"sync-adjustments"
property "sync-adjustments" gboolean : Read / Write
Whether to synchronise adjustments with viewport size.
Default value: TRUE
"x-origin"
property "x-origin" gfloat : Read / Write
Origin's X coordinate in pixels.
Default value: 0
"y-origin"
property "y-origin" gfloat : Read / Write
Origin's Y coordinate in pixels.
Default value: 0