EFL graphics shape object interface
⇒ Efl.Gfx.Path (mixin)
copy_from [Overridden from Efl.Gfx.Path]
Copy the path data from the object specified.
void efl_gfx_path_copy_from(Eo *obj, const Efl_Object *dup_from);
fill_rule (get, set)
The fill rule of the given shape object. Efl.Gfx.Fill_Rule.winding or Efl.Gfx.Fill_Rule.odd_even.
Efl_Gfx_Fill_Rule efl_gfx_shape_fill_rule_get(const Eo *obj); void efl_gfx_shape_fill_rule_set(Eo *obj, Efl_Gfx_Fill_Rule fill_rule);
interpolate [Overridden from Efl.Gfx.Path]
Creates intermediary path part-way between two paths
Eina_Bool efl_gfx_path_interpolate(Eo *obj, const Efl_Object *from, const Efl_Object *to, double pos_map);
stroke_cap (get, set)
The cap style to be used for stroking the path. The cap will be used for capping the end point of a open subpath.
Efl_Gfx_Cap efl_gfx_shape_stroke_cap_get(const Eo *obj); void efl_gfx_shape_stroke_cap_set(Eo *obj, Efl_Gfx_Cap c);
stroke_color (get, set)
The color to be used for stroking the path.
void efl_gfx_shape_stroke_color_get(const Eo *obj, int *r, int *g, int *b, int *a); void efl_gfx_shape_stroke_color_set(Eo *obj, int r, int g, int b, int a);
stroke_dash (get, set)
Set stroke dash pattern. A dash pattern is specified by dashes, an array of Efl.Gfx.Dash. Efl.Gfx.Dash values(length, gap) must be positive.
void efl_gfx_shape_stroke_dash_get(const Eo *obj, const Efl_Gfx_Dash **dash, unsigned int *length); void efl_gfx_shape_stroke_dash_set(Eo *obj, const Efl_Gfx_Dash *dash, unsigned int length);
stroke_join (get, set)
The join style to be used for stroking the path. The join style will be used for joining the two line segment while stroking the path.
Efl_Gfx_Join efl_gfx_shape_stroke_join_get(const Eo *obj); void efl_gfx_shape_stroke_join_set(Eo *obj, Efl_Gfx_Join j);
stroke_location (get, set)
Not implemented
double efl_gfx_shape_stroke_location_get(const Eo *obj); void efl_gfx_shape_stroke_location_set(Eo *obj, double centered);
stroke_miterlimit (get, set)
The stroke_miterlimit is a presentation defining a limit on the ratio of the miter length to the stroke-width used to draw a miter join.
double efl_gfx_shape_stroke_miterlimit_get(const Eo *obj); void efl_gfx_shape_stroke_miterlimit_set(Eo *obj, double miterlimit);
stroke_scale (get, set)
The stroke scale to be used for stroking the path. Will be used along with stroke width property.
double efl_gfx_shape_stroke_scale_get(const Eo *obj); void efl_gfx_shape_stroke_scale_set(Eo *obj, double s);
stroke_width (get, set)
The stroke width to be used for stroking the path.
double efl_gfx_shape_stroke_width_get(const Eo *obj); void efl_gfx_shape_stroke_width_set(Eo *obj, double w);
Efl.Gfx.Path | ||
---|---|---|
append_arc | Append an arc that enclosed in the given rectangle (x, y, w, h). The angle is defined in counter clock wise , use -ve angle for clockwise arc. | |
append_arc_to | Append an arc that connects from the current point int the point list to the given point (x,y). The arc is defined by the given radius in x-direction (rx) and radius in y direction (ry). | |
append_circle | Append a circle with given center and radius. | |
append_close | Closes the current subpath by drawing a line to the beginning of the subpath, automatically starting a new path. The current point of the new path is (0, 0). | |
append_cubic_to | Adds a cubic Bezier curve between the current position and the given end point (x,y) using the control points specified by (ctrl_x0, ctrl_y0), and (ctrl_x1, ctrl_y1). After the path is drawn, the current position is updated to be at the end point of the path. | |
append_line_to | Adds a straight line from the current position to the given end point. After the line is drawn, the current position is updated to be at the end point of the line. | |
append_move_to | Moves the current point to the given point, implicitly starting a new subpath and closing the previous one. | |
append_quadratic_to | Adds a quadratic Bezier curve between the current position and the given end point (x,y) using the control points specified by (ctrl_x, ctrl_y). After the path is drawn, the current position is updated to be at the end point of the path. | |
append_rect | Append the given rectangle with rounded corner to the path. | |
append_scubic_to | Same as Efl.Gfx.Path.append_cubic_to api only difference is that it uses the current control point to draw the bezier. | |
append_squadratic_to | Same as Efl.Gfx.Path.append_quadratic_to api only difference is that it uses the current control point to draw the bezier. | |
append_svg_path | Append SVG path data | |
bounds_get | Compute and return the bounding box of the currently set path | |
commit | Request to update the path object. | |
current (get) | ||
current_ctrl (get) | ||
destructor | ||
equal_commands | Equal commands in object | |
length (get) | ||
path (get, set) | Set the list of commands and points to be used to create the content of path. | |
reserve | Reserve path commands buffer in advance. If you know the count of path commands coming, you can reserve commands buffer in advance to avoid buffer growing job. | |
reset | Reset the path data of the path object. |