forked from enlightenment/efl
efl interface: add Eo API documentation for path and shape interpolation
Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5202 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
93d339b5ed
commit
ea811a9174
|
@ -256,12 +256,22 @@ mixin Efl.Gfx.Path
|
|||
}
|
||||
}
|
||||
interpolate {
|
||||
[[Interpolate object]]
|
||||
[[Creates intermediary path part-way between two paths
|
||||
|
||||
Sets the points of the $obj as the linear interpolation of the points
|
||||
in the $from and to $paths. The path's x,y position and control
|
||||
point coordinates are likewise interpolated.
|
||||
|
||||
The $from and $to paths must not already have equivalent points,
|
||||
and $to must contain at least as many points as $from, else the
|
||||
function returns $false with no interpolation performed. If $to
|
||||
has more points than $from, the excess points are ignored.
|
||||
]]
|
||||
return: bool; [[$true on success, $false otherwise]]
|
||||
params {
|
||||
@in from: const(Efl.Object); [[Source object]]
|
||||
@in to: const(Efl.Object); [[Destination object]]
|
||||
@in pos_map: double; [[Position map]]
|
||||
@in from: const(Efl.Object); [[Source path]]
|
||||
@in to: const(Efl.Object); [[Destination path]]
|
||||
@in pos_map: double; [[Position map in range 0.0 to 1.0]]
|
||||
}
|
||||
}
|
||||
equal_commands {
|
||||
|
|
|
@ -118,12 +118,20 @@ mixin Efl.Gfx.Shape (Efl.Gfx.Path)
|
|||
}
|
||||
}
|
||||
interpolate {
|
||||
[[Interpolate object]]
|
||||
[[Creates intermediary shape part-way between two shapes
|
||||
|
||||
Sets the data properties of $obj as the linear interpolation
|
||||
of the $from and $to objects by $pos_map. In addition to
|
||||
interpolating the path data, the two shapes' dash length, fill
|
||||
color, and stroke style are also interpolated.
|
||||
|
||||
See also @Efl.Gfx.Path.interpolate.
|
||||
]]
|
||||
return: bool; [[$true on success, $false otherwise]]
|
||||
params {
|
||||
@in from: const(Efl.Object); [[Source object]]
|
||||
@in to: const(Efl.Object); [[Destination object]]
|
||||
@in pos_map: double; [[Position map]]
|
||||
@in from: const(Efl.Object); [[Source shape]]
|
||||
@in to: const(Efl.Object); [[Destination shape]]
|
||||
@in pos_map: double; [[Position map in range 0.0 to 1.0]]
|
||||
}
|
||||
}
|
||||
dup {
|
||||
|
|
Loading…
Reference in New Issue