![]() |
![]() |
![]() |
Netbook Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
NbtkSubtexture; ClutterActor * nbtk_subtexture_new (ClutterTexture *texture, gint top, gint left, gint width, gint height); void nbtk_subtexture_set_parent_texture (NbtkSubtexture *frame, ClutterTexture *texture); ClutterTexture * nbtk_subtexture_get_parent_texture (NbtkSubtexture *frame); void nbtk_subtexture_set_frame (NbtkSubtexture *frame, gint top, gint left, gint width, gint height); void nbtk_subtexture_get_frame (NbtkSubtexture *frame, gint *top, gint *left, gint *width, gint *height);
"height" gint : Read / Write "left" gint : Read / Write "parent-texture" ClutterTexture* : Read / Write / Construct "top" gint : Read / Write "width" gint : Read / Write
typedef struct _NbtkSubtexture NbtkSubtexture;
The contents of this structure are private and should only be accessed through the public API.
ClutterActor * nbtk_subtexture_new (ClutterTexture *texture, gint top, gint left, gint width, gint height);
A NbtkSubtexture is a specialized texture that efficiently clones
an area of the given texture
while keeping preserving portions of the
same texture.
A NbtkSubtexture can be used to make a rectangular texture fit a given size without stretching its borders.
|
a ClutterTexture or NULL
|
|
top |
|
left |
|
width |
|
height |
Returns : |
the newly created NbtkSubtexture |
void nbtk_subtexture_set_parent_texture (NbtkSubtexture *frame, ClutterTexture *texture);
Set the ClutterTexture used by this NbtkSubtexture
|
A NbtkSubtexture |
|
A ClutterTexture |
ClutterTexture * nbtk_subtexture_get_parent_texture (NbtkSubtexture *frame);
Return the texture used by the NbtkSubtexture
|
A NbtkSubtexture |
Returns : |
a ClutterTexture owned by the NbtkSubtexture |
void nbtk_subtexture_set_frame (NbtkSubtexture *frame, gint top, gint left, gint width, gint height);
Set the frame of the subtexture
|
A NbtkSubtexture |
|
top |
|
left |
|
width |
|
height |
"parent-texture"
property"parent-texture" ClutterTexture* : Read / Write / Construct
The parent ClutterTexture.