| Mx Toolkit Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
struct MxTextureFrame; struct MxTextureFrameClass; ClutterActor * mx_texture_frame_new (ClutterTexture *texture,gfloat top,gfloat right,gfloat bottom,gfloat left); void mx_texture_frame_set_parent_texture (MxTextureFrame *frame,ClutterTexture *texture); ClutterTexture * mx_texture_frame_get_parent_texture (MxTextureFrame *frame); void mx_texture_frame_set_border_values (MxTextureFrame *frame,gfloat top,gfloat right,gfloat bottom,gfloat left); void mx_texture_frame_get_border_values (MxTextureFrame *frame,gfloat *top,gfloat *right,gfloat *bottom,gfloat *left);
MxTextureFrame implements ClutterContainer, ClutterScriptable, ClutterAnimatable and AtkImplementorIface.
"bottom" gfloat : Read / Write / Construct "left" gfloat : Read / Write / Construct "parent-texture" ClutterTexture* : Read / Write / Construct "right" gfloat : Read / Write / Construct "top" gfloat : Read / Write / Construct
struct MxTextureFrame;
The contents of this structure are private and should only be accessed through the public API.
struct MxTextureFrameClass {
ClutterActorClass parent_class;
/* padding for future expansion */
void (*_padding_0) (void);
void (*_padding_1) (void);
void (*_padding_2) (void);
void (*_padding_3) (void);
void (*_padding_4) (void);
};
ClutterActor * mx_texture_frame_new (ClutterTexture *texture,gfloat top,gfloat right,gfloat bottom,gfloat left);
A MxTextureFrame is a specialized texture that efficiently clones
an area of the given texture while keeping preserving portions of the
same texture.
A MxTextureFrame can be used to make a rectangular texture fit a given size without stretching its borders.
|
a ClutterTexture or NULL
|
|
left margin preserving its content |
|
top margin preserving its content |
|
right margin preserving its content |
|
bottom margin preserving its content |
Returns : |
the newly created MxTextureFrame |
void mx_texture_frame_set_parent_texture (MxTextureFrame *frame,ClutterTexture *texture);
Set the ClutterTexture used by this MxTextureFrame
|
A MxTextureFrame |
|
A ClutterTexture |
ClutterTexture * mx_texture_frame_get_parent_texture (MxTextureFrame *frame);
Return the texture used by the MxTextureFrame
|
A MxTextureFrame |
Returns : |
a ClutterTexture owned by the MxTextureFrame. [transfer none] |
void mx_texture_frame_set_border_values (MxTextureFrame *frame,gfloat top,gfloat right,gfloat bottom,gfloat left);
Set the slice lines of the specified frame. The slices are calculated as widths from the edge of the frame.
|
A MxTextureFrame |
|
width of the top slice |
|
width of the right slice |
|
width of the bottom slice |
|
width of the left slice |
void mx_texture_frame_get_border_values (MxTextureFrame *frame,gfloat *top,gfloat *right,gfloat *bottom,gfloat *left);
Retrieve the current slice lines from the specified frame.
|
A MxTextureFrame |
|
width of the top slice |
|
width of the right slice |
|
width of the bottom slice |
|
width of the left slice |
"bottom" property"bottom" gfloat : Read / Write / Construct
Bottom offset.
Allowed values: >= 0
Default value: 0
"left" property"left" gfloat : Read / Write / Construct
Left offset.
Allowed values: >= 0
Default value: 0
"parent-texture" property"parent-texture" ClutterTexture* : Read / Write / Construct
The parent ClutterTexture.
"right" property"right" gfloat : Read / Write / Construct
Right offset.
Allowed values: >= 0
Default value: 0
"top" property"top" gfloat : Read / Write / Construct
Top offset.
Allowed values: >= 0
Default value: 0