Top | ![]() |
![]() |
![]() |
![]() |
ClutterActor * | mx_texture_frame_new () |
void | mx_texture_frame_set_parent_texture () |
ClutterTexture * | mx_texture_frame_get_parent_texture () |
void | mx_texture_frame_set_border_values () |
void | mx_texture_frame_get_border_values () |
float | bottom | Read / Write / Construct |
float | left | Read / Write / Construct |
ClutterTexture * | parent-texture | Read / Write / Construct |
float | right | Read / Write / Construct |
float | top | Read / Write / Construct |
MxTextureFrame implements ClutterContainer, ClutterScriptable, ClutterAnimatable and AtkImplementorIface.
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.
texture |
a ClutterTexture or |
|
left |
left margin preserving its content |
|
top |
top margin preserving its content |
|
right |
right margin preserving its content |
|
bottom |
bottom margin preserving its content |
void mx_texture_frame_set_parent_texture (MxTextureFrame *frame
,ClutterTexture *texture
);
Set the ClutterTexture used by this MxTextureFrame
ClutterTexture *
mx_texture_frame_get_parent_texture (MxTextureFrame *frame
);
Return the texture used by the MxTextureFrame
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.
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.
struct MxTextureFrame;
The contents of this structure are private and should only be accessed through the public API.
“bottom”
property “bottom” float
Bottom offset.
Owner: MxTextureFrame
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 0
“left”
property “left” float
Left offset.
Owner: MxTextureFrame
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 0
“parent-texture”
property “parent-texture” ClutterTexture *
The parent ClutterTexture.
Owner: MxTextureFrame
Flags: Read / Write / Construct
“right”
property “right” float
Right offset.
Owner: MxTextureFrame
Flags: Read / Write / Construct
Allowed values: >= 0
Default value: 0