efl: add documentation for shape and gradient interface.

This commit is contained in:
Subhransu Sekhar Mohanty 2015-04-03 16:30:37 +02:00 committed by Cedric BAIL
parent a068378c83
commit b108fe8a10
4 changed files with 216 additions and 101 deletions

View File

@ -5,23 +5,34 @@ interface Efl.Gfx.Gradient.Base
properties {
stop {
set {
}
get {
}
values {
const(Efl_Gfx_Gradient_Stop) *colors;
uint length;
}
/*@
Set the list of color stops for the gradient
*/
}
get {
/*@
get the list of color stops.
*/
}
values {
const(Efl_Gfx_Gradient_Stop) *colors; /*@ color stops list*/
uint length; /*@ length of the list */
}
}
spread {
set {
}
get {
}
values {
Efl_Gfx_Gradient_Spread s;
}
/*@
Specifies the spread method that should be used for this gradient.
*/
}
get {
/*@
Returns the spread method use by this gradient. The default is EFL_GFX_GRADIENT_SPREAD_PAD.
*/
}
values {
Efl_Gfx_Gradient_Spread s; /*@ spread type to be used */
}
}
}
}

View File

@ -4,23 +4,35 @@ interface Efl.Gfx.Gradient.Linear (Efl.Gfx.Gradient.Base)
properties {
start {
set {
}
get {
}
values {
double x;
double y;
}
/*@
Sets the start point of this linear gradient.
*/
}
get {
/*@
Gets the start point of this linear gradient.
*/
}
values {
double x; /*@ x co-ordinate of start point */
double y; /*@ y co-ordinate of start point */
}
}
end {
set {
}
get {
}
values {
double x;
double y;
}
/*@
Sets the end point of this linear gradient.
*/
}
get {
/*@
Gets the end point of this linear gradient.
*/
}
values {
double x; /*@ x co-ordinate of end point */
double y; /*@ y co-ordinate of end point */
}
}
}
}

View File

@ -4,32 +4,50 @@ interface Efl.Gfx.Gradient.Radial (Efl.Gfx.Gradient.Base)
properties {
center {
set {
}
get {
}
values {
double x;
double y;
}
/*@
Sets the center of this radial gradient.
*/
}
get {
/*@
Gets the center of this radial gradient.
*/
}
values {
double x; /*@ x co-ordinate of center point */
double y; /*@ y co-ordinate of center point */
}
}
radius {
set {
}
get {
}
values {
double r;
}
/*@
Sets the center radius of this radial gradient.
*/
}
get {
/*@
Gets the center radius of this radial gradient.
*/
}
values {
double r; /*@ center radius */
}
}
focal {
set {
}
get {
}
values {
double x;
double y;
}
/*@
Sets the focal point of this radial gradient.
*/
}
get {
/*@
Gets the focal point of this radial gradient.
*/
}
values {
double x; /*@ x co-ordinate of focal point */
double y; /*@ y co-ordinate of focal point */
}
}
}
}

View File

@ -4,80 +4,154 @@ class Efl.Gfx.Shape
properties {
stroke_scale {
set {
}
get {
}
values {
double s;
}
/*@
Sets the stroke scale to be used for stroking the path.
the scale property will be used along with stroke width property.
@since 1.14
*/
}
get {
/*@
Get the stroke scaling factor used for stroking this path.
@since 1.14
*/
}
values {
double s; /*@ stroke scale value */
}
}
stroke_color {
set {
}
get {
}
values {
int r;
int g;
int b;
int a;
}
/*@
Sets the color to be used for stroking the path.
@since 1.14
*/
}
get {
/*@
Gets the color used for stroking the path.
@since 1.14
*/
}
values {
int r; /*@ The red component of the given color. */
int g; /*@ The green component of the given color. */
int b; /*@ The blue component of the given color. */
int a; /*@ The alpha component of the given color. */
}
}
stroke_width {
set {
}
get {
}
values {
double w;
}
/*@
Sets the stroke width to be used for stroking the path.
@since 1.14
*/
}
get {
/*@
Gets the stroke width to be used for stroking the path.
@since 1.14
*/
}
values {
double w; /*@ stroke width to be used */
}
}
stroke_location {
set {
}
get {
}
values {
double centered;
}
/*@
Not Implemented
*/
}
get {
/*@
Not Implemented
*/
}
values {
double centered; /*@ */
}
}
stroke_dash {
set {
}
get {
}
values {
const(Efl_Gfx_Dash) *dash;
uint length;
}
/*@
Not Implemented
*/
}
get {
/*@
Not Implemented
*/
}
values {
const(Efl_Gfx_Dash) *dash; /*@ */
uint length; /*@ */
}
}
stroke_cap {
set {
}
get {
}
values {
Efl_Gfx_Cap c;
}
/*@
Sets the cap style to be used for stroking the path.
The cap will be used for capping the end point of a
open subpath.
@see Efl_Gfx_Cap
@since 1.14
*/
}
get {
/*@
Gets the cap style used for stroking path.
@since 1.14
*/
}
values {
Efl_Gfx_Cap c; /*@ cap style to use , default is EFL_GFX_CAP_BUTT */
}
}
stroke_join {
set {
}
get {
}
values {
Efl_Gfx_Join j;
}
/*@
Sets the join style to be used for stroking the path.
The join style will be used for joining the two line segment
while stroking teh path.
@see Efl_Gfx_Join
@since 1.14
*/
}
get {
/*@
Gets the join style used for stroking path.
@since 1.14
*/
}
values {
Efl_Gfx_Join j; /*@ join style to use , default is
EFL_GFX_JOIN_MITER */
}
}
path {
set {
}
get {
}
values {
const(Efl_Gfx_Path_Command) *commands;
const(double) *points;
}
/*@
Set the list of commands and points to be used to create the
content of shape.
@note see efl_gfx_path interface for how to create a command list.
@see Efl_Gfx_Path_Command
@since 1.14
*/
}
get {
/*@
Gets the command and points list
@since 1.14
*/
}
values {
const(Efl_Gfx_Path_Command) *op; /*@ command list */
const(double) *points; /*@ point list */
}
}
path_length {
get {