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:
Bryce Harrington 2017-09-18 10:41:40 -07:00 committed by Cedric BAIL
parent 93d339b5ed
commit ea811a9174
2 changed files with 26 additions and 8 deletions

View File

@ -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 {

View File

@ -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 {