ella Reference Manual | ||||
---|---|---|---|---|
Top | Description |
#define ELLA_TYPE_TOOL EllaCanvas; EllaCanvasClass; EllaCanvasPrivate; enum EllaTool;GType ella_canvas_get_type (void
); EllaCanvas* ella_canvas_new (void
); EllaCanvas* ella_canvas_construct ();
GType object_typevoid ella_canvas_remove_selected_item (EllaCanvas *self
);void ella_canvas_export_to_png (EllaCanvas *self
);gboolean ella_canvas_draw (EllaCanvas *self
,);
cairo_t *crvoid ella_canvas_set_selection_color (EllaCanvas *self
,,
gdouble r,
gdouble g,
gdouble b);
gdouble avoid ella_canvas_get_selection_color (EllaCanvas *self
,);
EllaColor *resultvoid ella_canvas_get_selection_stroke_color (EllaCanvas *self
,);
EllaColor *resultgdouble ella_canvas_get_selection_line_width (EllaCanvas *self
);void ella_canvas_set_selection_stroke_color (EllaCanvas *self
,,
gdouble r,
gdouble g,
gdouble b);
gdouble avoid ella_canvas_set_selection_line_width (EllaCanvas *self
,);
gdouble line_widthvoid ella_canvas_set_selection_text (EllaCanvas *self
,const
);gchar *textgchar * ella_canvas_get_selection_text (EllaCanvas *self
);gboolean ella_canvas_is_text_item_selected (EllaCanvas *self
);void ella_canvas_change_keyframe (EllaCanvas *self
,);
gint timevoid ella_canvas_add_keyframe (EllaCanvas *self
,);
gint timevoid ella_canvas_bump_maxkeyframe (EllaCanvas *self
,);
gint timevoid ella_canvas_play (EllaCanvas *self
,,
gint start);
guint speedvoid ella_canvas_add_layer (EllaCanvas *self
,);
EllaCommonLayer *layervoid ella_canvas_clear_all_layers (EllaCanvas *self
);void ella_canvas_import_png (EllaCanvas *self
,const
,gchar *path,
gdouble x); EllaTool ella_canvas_get_tool (
gdouble yEllaCanvas *self
);void ella_canvas_set_tool (EllaCanvas *self
,EllaTool value
);gdouble ella_canvas_get_page_width (EllaCanvas *self
);void ella_canvas_set_page_width (EllaCanvas *self
,);
gdouble valuegdouble ella_canvas_get_page_height (EllaCanvas *self
);void ella_canvas_set_page_height (EllaCanvas *self
,);
gdouble valuegdouble ella_canvas_get_scale (EllaCanvas *self
);void ella_canvas_set_scale (EllaCanvas *self
,);
gdouble valuegdouble ella_canvas_get_page_color_red (EllaCanvas *self
);void ella_canvas_set_page_color_red (EllaCanvas *self
,);
gdouble valuegdouble ella_canvas_get_page_color_green (EllaCanvas *self
);void ella_canvas_set_page_color_green (EllaCanvas *self
,);
gdouble valuegdouble ella_canvas_get_page_color_blue (EllaCanvas *self
);void ella_canvas_set_page_color_blue (EllaCanvas *self
,);
gdouble value
typedef enum { ELLA_TOOL_RECTANGLE, ELLA_TOOL_SELECT, ELLA_TOOL_CIRCLE, ELLA_TOOL_LINE, ELLA_TOOL_PATH, ELLA_TOOL_TEXT, ELLA_TOOL_IMAGE } EllaTool;
The differents tool that the canvas can use. They can be used in the canvas with the ella_canvas_get_tool and ella_canvas_set_tool functions.
EllaCanvas* ella_canvas_new (void
);
Create a new EllaCanvas widget. It is derivated from a GtkDrawingArea.
EllaCanvas* ella_canvas_construct (GType object_type
);
For internal use only, forget that.
void ella_canvas_set_selection_color (EllaCanvas *self
,,
gdouble r,
gdouble g,
gdouble b);
gdouble a
Set the color selection.
Set the color of all the items of the current selection.
|
red channel, between 0.0 and 1.0 |
|
red channel, between 0.0 and 1.0 |
|
red channel, between 0.0 and 1.0 |
|
alpha channel, between 0.0 and 1.0 |
void ella_canvas_get_selection_color (EllaCanvas *self
,);
EllaColor *result
void ella_canvas_get_selection_stroke_color (EllaCanvas *self
,);
EllaColor *result
gdouble ella_canvas_get_selection_line_width (EllaCanvas *self
);
void ella_canvas_set_selection_stroke_color (EllaCanvas *self
,,
gdouble r,
gdouble g,
gdouble b);
gdouble a
void ella_canvas_set_selection_line_width (EllaCanvas *self
,);
gdouble line_width
void ella_canvas_set_selection_text (EllaCanvas *self
,const
);gchar *text
void ella_canvas_import_png (EllaCanvas *self
,const
,gchar *path,
gdouble x);
gdouble y
void ella_canvas_set_scale (EllaCanvas *self
,);
gdouble value
This is the scale/zoom level of the canvas, just change it to make a zoom out/zoom in.
Scaling.
|
the new scale value, it is absolute. |
|
a EllaCanvas widget. |
void ella_canvas_set_page_color_red (EllaCanvas *self
,);
gdouble value
void ella_canvas_set_page_color_green (EllaCanvas *self
,);
gdouble value
void ella_canvas_set_page_color_blue (EllaCanvas *self
,);
gdouble value