| Moblin UI Toolkit Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
MxSubtexture; ClutterActor * mx_subtexture_new (ClutterTexture *texture,gint top,gint left,gint width,gint height); void mx_subtexture_set_parent_texture (MxSubtexture *frame,ClutterTexture *texture); ClutterTexture * mx_subtexture_get_parent_texture (MxSubtexture *frame); void mx_subtexture_set_frame (MxSubtexture *frame,gint top,gint left,gint width,gint height); void mx_subtexture_get_frame (MxSubtexture *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 _MxSubtexture MxSubtexture;
The contents of this structure are private and should only be accessed through the public API.
ClutterActor * mx_subtexture_new (ClutterTexture *texture,gint top,gint left,gint width,gint height);
A MxSubtexture is a specialized texture that efficiently clones
an area of the given texture while keeping preserving portions of the
same texture.
A MxSubtexture 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 MxSubtexture |
void mx_subtexture_set_parent_texture (MxSubtexture *frame,ClutterTexture *texture);
Set the ClutterTexture used by this MxSubtexture
|
A MxSubtexture |
|
A ClutterTexture |
ClutterTexture * mx_subtexture_get_parent_texture (MxSubtexture *frame);
Return the texture used by the MxSubtexture
|
A MxSubtexture |
Returns : |
a ClutterTexture owned by the MxSubtexture. transfer none. |
void mx_subtexture_set_frame (MxSubtexture *frame,gint top,gint left,gint width,gint height);
Set the frame of the subtexture
|
A MxSubtexture |
|
top |
|
left |
|
width |
|
height |
void mx_subtexture_get_frame (MxSubtexture *frame,gint *top,gint *left,gint *width,gint *height);
Retrieve the current frame.
|
A MxSubtexture |
|
top |
|
left |
|
width |
|
height |