1 /* goocanvas.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Goo", lower_case_cprefix = "goo_")]
6 [CCode (copy_function = "goo_cairo_matrix_copy", cheader_filename = "goocanvas.h")]
7 public class CairoMatrix {
8 public static Cairo.Matrix copy (Cairo.Matrix matrix);
10 [CCode (cheader_filename = "goocanvas.h")]
11 public class Canvas : Gtk.Container, Atk.Implementor, Gtk.Buildable {
12 public Goo.CanvasBounds bounds;
13 public weak Gdk.Window canvas_window;
14 public int canvas_x_offset;
15 public int canvas_y_offset;
16 public Gdk.EventCrossing crossing_event;
17 public double device_to_pixels_x;
18 public double device_to_pixels_y;
19 public weak Goo.CanvasItem focused_item;
20 public int freeze_count;
21 public weak Gtk.Adjustment hadjustment;
23 public weak Goo.CanvasItem keyboard_grab_item;
24 public weak GLib.HashTable model_to_item;
25 public uint need_entire_subtree_update;
26 public uint need_update;
27 public uint pointer_grab_button;
28 public weak Goo.CanvasItem pointer_grab_initial_item;
29 public weak Goo.CanvasItem pointer_grab_item;
30 public weak Goo.CanvasItem pointer_item;
31 public weak Goo.CanvasItem root_item;
32 public weak Goo.CanvasItemModel root_item_model;
33 public weak Gdk.Window tmp_window;
34 public weak Gtk.Adjustment vadjustment;
35 public weak GLib.List widget_items;
36 public void convert_from_item_space (Goo.CanvasItem item, double x, double y);
37 public void convert_from_pixels (double x, double y);
38 public void convert_to_item_space (Goo.CanvasItem item, double x, double y);
39 public void convert_to_pixels (double x, double y);
40 public unowned Cairo.Context create_cairo_context ();
41 public virtual unowned Goo.CanvasItem create_item (Goo.CanvasItemModel model);
42 public static void create_path (GLib.Array commands, Cairo.Context cr);
43 public void get_bounds (double left, double top, double right, double bottom);
44 public double get_default_line_width ();
45 public unowned Goo.CanvasItem get_item (Goo.CanvasItemModel model);
46 public unowned Goo.CanvasItem get_item_at (double x, double y, bool is_pointer_event);
47 public unowned GLib.List get_items_at (double x, double y, bool is_pointer_event);
48 public unowned GLib.List get_items_in_area (Goo.CanvasBounds area, bool inside_area, bool allow_overlaps, bool include_containers);
49 public unowned Goo.CanvasItem get_root_item ();
50 public unowned Goo.CanvasItemModel get_root_item_model ();
51 public double get_scale ();
52 public void grab_focus (Goo.CanvasItem item);
53 public Gdk.GrabStatus keyboard_grab (Goo.CanvasItem item, bool owner_events, uint32 time);
54 public void keyboard_ungrab (Goo.CanvasItem item, uint32 time);
55 public static void marshal_BOOLEAN__BOXED (GLib.Closure closure, GLib.Value return_value, uint n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data);
56 public static void marshal_BOOLEAN__OBJECT_BOXED (GLib.Closure closure, GLib.Value return_value, uint n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data);
57 public static void marshal_VOID__INT_INT (GLib.Closure closure, GLib.Value return_value, uint n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data);
58 public static void marshal_VOID__OBJECT_OBJECT (GLib.Closure closure, GLib.Value return_value, uint n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data);
59 [CCode (type = "GtkWidget*", has_construct_function = false)]
61 public static unowned GLib.Array parse_path_data (string path_data);
62 public Gdk.GrabStatus pointer_grab (Goo.CanvasItem item, Gdk.EventMask event_mask, Gdk.Cursor cursor, uint32 time);
63 public void pointer_ungrab (Goo.CanvasItem item, uint32 time);
64 public void register_widget_item (Goo.CanvasWidget witem);
65 public void render (Cairo.Context cr, Goo.CanvasBounds bounds, double scale);
66 public void request_redraw (Goo.CanvasBounds bounds);
67 public void request_update ();
68 public void scroll_to (double left, double top);
69 public void set_bounds (double left, double top, double right, double bottom);
70 public void set_root_item (Goo.CanvasItem item);
71 public void set_root_item_model (Goo.CanvasItemModel model);
72 public void set_scale (double scale);
73 public void unregister_item (Goo.CanvasItemModel model);
74 public void unregister_widget_item (Goo.CanvasWidget witem);
75 public void update ();
77 public Gtk.AnchorType anchor { get; set; }
79 public bool automatic_bounds { get; set; }
81 public string background_color { set; }
83 public uint background_color_rgb { set; }
85 public bool bounds_from_origin { get; set; }
87 public double bounds_padding { get; set; }
89 public bool integer_layout { get; set; }
91 public double resolution_x { get; set; }
93 public double resolution_y { get; set; }
94 public double scale { get; set; }
96 public double scale_x { get; set; }
98 public double scale_y { get; set; }
100 public Gtk.Unit units { get; set; }
102 public double x1 { get; set; }
104 public double x2 { get; set; }
106 public double y1 { get; set; }
108 public double y2 { get; set; }
109 public virtual signal void item_created (Goo.CanvasItem item, Goo.CanvasItemModel model);
110 public virtual signal void set_scroll_adjustments (Gtk.Adjustment hadjustment, Gtk.Adjustment vadjustment);
112 [CCode (cheader_filename = "goocanvas.h")]
113 public class CanvasEllipse : Goo.CanvasItemSimple, Goo.CanvasItem {
114 public Goo.CanvasEllipseData ellipse_data;
115 [CCode (cname = "goo_canvas_ellipse_new")]
116 public static unowned Goo.CanvasEllipse create (Goo.CanvasItem? parent, double center_x, double center_y, double radius_x, double radius_y, ...);
118 public double center_x { get; set; }
120 public double center_y { get; set; }
122 public double radius_x { get; set; }
124 public double radius_y { get; set; }
126 [CCode (cheader_filename = "goocanvas.h")]
127 public class CanvasEllipseModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
128 public Goo.CanvasEllipseData ellipse_data;
129 [CCode (cname = "goo_canvas_ellipse_model_new")]
130 public static unowned Goo.CanvasEllipseModel create (Goo.CanvasItemModel? parent, double center_x, double center_y, double radius_x, double radius_y, ...);
132 public double center_x { get; set; }
134 public double center_y { get; set; }
136 public double radius_x { get; set; }
138 public double radius_y { get; set; }
140 [CCode (cheader_filename = "goocanvas.h")]
141 public class CanvasGroup : Goo.CanvasItemSimple, Goo.CanvasItem {
142 public weak GLib.PtrArray items;
143 [CCode (cname = "goo_canvas_group_new")]
144 public static unowned Goo.CanvasGroup create (Goo.CanvasItem? parent, ...);
146 [CCode (cheader_filename = "goocanvas.h")]
147 public class CanvasGroupModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
148 public weak GLib.PtrArray children;
149 [CCode (cname = "goo_canvas_group_model_new")]
150 public static unowned Goo.CanvasGroupModel create (Goo.CanvasItemModel? parent, ...);
152 [CCode (cheader_filename = "goocanvas.h")]
153 public class CanvasImage : Goo.CanvasItemSimple, Goo.CanvasItem {
154 public Goo.CanvasImageData image_data;
155 [CCode (cname = "goo_image_group_new")]
156 public static unowned Goo.CanvasImage create (Goo.CanvasItem? parent, Gdk.Pixbuf pixbuf, double x, double y, ...);
158 public double height { get; set; }
160 public Goo.CairoPattern pattern { get; set; }
162 public Gdk.Pixbuf pixbuf { set; }
164 public double width { get; set; }
166 public double x { get; set; }
168 public double y { get; set; }
170 [CCode (cheader_filename = "goocanvas.h")]
171 public class CanvasImageModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
172 public Goo.CanvasImageData image_data;
173 [CCode (cname = "goo_canvas_image_model_new")]
174 public static unowned Goo.CanvasImageModel create (Goo.CanvasItemModel? parent, Gdk.Pixbuf pixbuf, double x, double y, ...);
176 public double height { get; set; }
178 public Goo.CairoPattern pattern { get; set; }
180 public Gdk.Pixbuf pixbuf { set; }
182 public double width { get; set; }
184 public double x { get; set; }
186 public double y { get; set; }
188 [CCode (cheader_filename = "goocanvas.h")]
189 public class CanvasItemModelSimple : GLib.Object, Goo.CanvasItemModel {
190 public weak string description;
191 public weak Goo.CanvasItemModel parent;
192 public Goo.CanvasItemSimpleData simple_data;
193 public weak string title;
195 public Goo.CairoAntialias antialias { get; set; }
197 public Goo.CairoFillRule clip_fill_rule { get; set; }
199 public string clip_path { set; }
201 public string fill_color { set; }
203 public uint fill_color_rgba { set; }
205 public Goo.CairoPattern fill_pattern { get; set; }
207 public Gdk.Pixbuf fill_pixbuf { set; }
209 public Goo.CairoFillRule fill_rule { get; set; }
211 public string font { owned get; set; }
213 public Pango.FontDescription font_desc { owned get; set; }
215 public Goo.CairoHintMetrics hint_metrics { get; set; }
217 public Goo.CairoLineCap line_cap { get; set; }
219 public Goo.CairoLineDash line_dash { get; set; }
221 public Goo.CairoLineJoin line_join { get; set; }
223 public double line_join_miter_limit { get; set; }
225 public double line_width { get; set; }
227 public Goo.CairoOperator operator { get; set; }
229 public string stroke_color { set; }
231 public uint stroke_color_rgba { set; }
233 public Goo.CairoPattern stroke_pattern { get; set; }
235 public Gdk.Pixbuf stroke_pixbuf { set; }
237 [CCode (cheader_filename = "goocanvas.h")]
238 public class CanvasItemSimple : GLib.Object, Goo.CanvasItem {
239 public Goo.CanvasBounds bounds;
240 public weak Goo.Canvas canvas;
241 public weak Goo.CanvasItemModelSimple model;
242 public uint need_entire_subtree_update;
243 public uint need_update;
244 public weak Goo.CanvasItem parent;
245 public Goo.CanvasItemSimpleData simple_data;
246 public void changed (bool recompute_bounds);
247 public bool check_in_path (double x, double y, Cairo.Context cr, Goo.CanvasPointerEvents pointer_events);
248 public void check_style ();
249 public double get_line_width ();
250 public void get_path_bounds (Cairo.Context cr, Goo.CanvasBounds bounds);
251 public void paint_path (Cairo.Context cr);
253 public virtual void simple_create_path (Cairo.Context cr);
255 public virtual bool simple_is_item_at (double x, double y, Cairo.Context cr, bool is_pointer_event);
257 public virtual void simple_paint (Cairo.Context cr, Goo.CanvasBounds bounds);
259 public virtual void simple_update (Cairo.Context cr);
260 public void user_bounds_to_device (Cairo.Context cr, Goo.CanvasBounds bounds);
261 public void user_bounds_to_parent (Cairo.Context cr, Goo.CanvasBounds bounds);
263 public Goo.CairoAntialias antialias { get; set; }
265 public Goo.CairoFillRule clip_fill_rule { get; set; }
267 public string clip_path { set; }
269 public string fill_color { set; }
271 public uint fill_color_rgba { set; }
273 public Goo.CairoPattern fill_pattern { get; set; }
275 public Gdk.Pixbuf fill_pixbuf { set; }
277 public Goo.CairoFillRule fill_rule { get; set; }
279 public string font { owned get; set; }
281 public Pango.FontDescription font_desc { owned get; set; }
283 public Goo.CairoHintMetrics hint_metrics { get; set; }
285 public Goo.CairoLineCap line_cap { get; set; }
287 public Goo.CairoLineDash line_dash { get; set; }
289 public Goo.CairoLineJoin line_join { get; set; }
291 public double line_join_miter_limit { get; set; }
293 public double line_width { get; set; }
295 public Goo.CairoOperator operator { get; set; }
297 public string stroke_color { set; }
299 public uint stroke_color_rgba { set; }
301 public Goo.CairoPattern stroke_pattern { get; set; }
303 public Gdk.Pixbuf stroke_pixbuf { set; }
306 [CCode (ref_function = "goo_canvas_line_dash_ref", unref_function = "goo_canvas_line_dash_unref", cheader_filename = "goocanvas.h")]
307 public class CanvasLineDash {
308 public double dash_offset;
309 public double dashes;
310 public int num_dashes;
311 public int ref_count;
312 [CCode (has_construct_function = false)]
313 public CanvasLineDash (int num_dashes);
314 [CCode (cname = "goo_canvas_line_dash_newv", has_construct_function = false)]
315 public CanvasLineDash.newv (int num_dashes, double dashes);
317 [CCode (cheader_filename = "goocanvas.h")]
318 public class CanvasPath : Goo.CanvasItemSimple, Goo.CanvasItem {
319 public Goo.CanvasPathData path_data;
320 [CCode (cname = "goo_canvas_path_new")]
321 public static unowned Goo.CanvasPath create (Goo.CanvasItem? parent, string path_data, ...);
323 public string data { set; }
325 [CCode (cheader_filename = "goocanvas.h")]
326 public class CanvasPathModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
327 public Goo.CanvasPathData path_data;
328 [CCode (cname = "goo_canvas_path_model_new")]
329 public static unowned Goo.CanvasPathModel create (Goo.CanvasItemModel? parent, string path_data, ...);
331 public string data { set; }
334 [CCode (ref_function = "goo_canvas_points_ref", unref_function = "goo_canvas_points_unref", cheader_filename = "goocanvas.h")]
335 public class CanvasPoints {
336 public double coords;
337 public int num_points;
338 public int ref_count;
339 [CCode (has_construct_function = false)]
340 public CanvasPoints (int num_points);
342 [CCode (cheader_filename = "goocanvas.h")]
343 public class CanvasPolyline : Goo.CanvasItemSimple, Goo.CanvasItem {
344 public Goo.CanvasPolylineData polyline_data;
345 [CCode (cname = "goo_canvas_polyline_new")]
346 public static unowned Goo.CanvasPolyline create (Goo.CanvasItem? parent, bool close_path, int num_points, ...);
347 [CCode (cname = "goo_canvas_polyline_new_line")]
348 public static unowned Goo.CanvasPolyline create_line (Goo.CanvasItem? parent, double x1, double y1, double x2, double y2, ...);
349 [CCode (type = "GooCanvasItem*", has_construct_function = false)]
350 public CanvasPolyline.line (Goo.CanvasItem parent, double x1, double y1, double x2, double y2);
352 public double arrow_length { get; set; }
354 public double arrow_tip_length { get; set; }
356 public double arrow_width { get; set; }
358 public bool close_path { get; set; }
360 public bool end_arrow { get; set; }
362 public Goo.CanvasPoints points { owned get; set; }
364 public bool start_arrow { get; set; }
366 [CCode (cheader_filename = "goocanvas.h")]
367 public class CanvasPolylineModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
368 public Goo.CanvasPolylineData polyline_data;
369 [CCode (cname = "goo_canvas_polyline_model_new")]
370 public static unowned Goo.CanvasPolylineModel create (Goo.CanvasItemModel? parent, bool close_path, int num_points, ...);
371 [CCode (cname = "goo_canvas_polyline_model_new_line")]
372 public static unowned Goo.CanvasPolylineModel create_line (Goo.CanvasItemModel? parent, double x1, double y1, double x2, double y2, ...);
373 [CCode (type = "GooCanvasItemModel*", has_construct_function = false)]
374 public CanvasPolylineModel.line (Goo.CanvasItemModel parent, double x1, double y1, double x2, double y2);
376 public double arrow_length { get; set; }
378 public double arrow_tip_length { get; set; }
380 public double arrow_width { get; set; }
382 public bool close_path { get; set; }
384 public bool end_arrow { get; set; }
386 public Goo.CanvasPoints points { owned get; set; }
388 public bool start_arrow { get; set; }
390 [CCode (cheader_filename = "goocanvas.h")]
391 public class CanvasRect : Goo.CanvasItemSimple, Goo.CanvasItem {
392 public Goo.CanvasRectData rect_data;
393 [CCode (cname = "goo_canvas_rect_new")]
394 public static unowned Goo.CanvasRect create (Goo.CanvasItem? parent, double x, double y, double width, double height, ...);
396 public double height { get; set; }
398 public double radius_x { get; set; }
400 public double radius_y { get; set; }
402 public double width { get; set; }
404 public double x { get; set; }
406 public double y { get; set; }
408 [CCode (cheader_filename = "goocanvas.h")]
409 public class CanvasRectModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
410 public Goo.CanvasRectData rect_data;
411 [CCode (cname = "goo_canvas_rect_model_new")]
412 public static unowned Goo.CanvasRectModel create (Goo.CanvasItemModel? parent, double x, double y, double width, double height, ...);
414 public double height { get; set; }
416 public double radius_x { get; set; }
418 public double radius_y { get; set; }
420 public double width { get; set; }
422 public double x { get; set; }
424 public double y { get; set; }
426 [CCode (cheader_filename = "goocanvas.h")]
427 public class CanvasStyle : GLib.Object {
428 public weak Goo.CanvasStyle parent;
429 public weak GLib.Array properties;
430 public unowned Goo.CanvasStyle copy ();
431 public unowned Goo.CanvasStyle get_parent ();
432 public GLib.Value get_property (GLib.Quark property_id);
433 [CCode (has_construct_function = false)]
434 public CanvasStyle ();
435 public bool set_fill_options (Cairo.Context cr);
436 public void set_parent (Goo.CanvasStyle parent);
437 public void set_property (GLib.Quark property_id, GLib.Value value);
438 public bool set_stroke_options (Cairo.Context cr);
440 [CCode (cheader_filename = "goocanvas.h")]
441 public class CanvasTable : Goo.CanvasGroup, Goo.CanvasItem {
442 public Goo.CanvasTableData table_data;
443 [CCode (cname = "goo_canvas_table_new")]
444 public static unowned Goo.CanvasTable create (Goo.CanvasItem? parent, ...);
446 public double column_spacing { get; set; }
448 public double height { get; set; }
450 public bool homogeneous_columns { get; set; }
452 public bool homogeneous_rows { get; set; }
454 public double row_spacing { get; set; }
456 public double width { get; set; }
458 [CCode (cheader_filename = "goocanvas.h")]
459 public class CanvasTableModel : Goo.CanvasGroupModel, Goo.CanvasItemModel {
460 public Goo.CanvasTableData table_data;
461 [CCode (cname = "goo_canvas_table_model_new")]
462 public static unowned Goo.CanvasTableModel create (Goo.CanvasItemModel? parent, ...);
464 public double column_spacing { get; set; }
466 public double height { get; set; }
468 public bool homogeneous_columns { get; set; }
470 public bool homogeneous_rows { get; set; }
472 public double row_spacing { get; set; }
474 public double width { get; set; }
476 [CCode (cheader_filename = "goocanvas.h")]
477 public class CanvasText : Goo.CanvasItemSimple, Goo.CanvasItem {
478 public double layout_width;
479 public Goo.CanvasTextData text_data;
480 [CCode (cname = "goo_canvas_text_new")]
481 public static unowned Goo.CanvasText create (Goo.CanvasItem? parent, string str, double x, double y, double width, Gtk.AnchorType anchor, ...);
483 public Pango.Alignment alignment { get; set; }
485 public Gtk.AnchorType anchor { get; set; }
487 public Pango.EllipsizeMode ellipsize { get; set; }
489 public string text { owned get; set; }
491 public bool use_markup { get; set; }
493 public double width { get; set; }
495 public Pango.WrapMode wrap { get; set; }
497 public double x { get; set; }
499 public double y { get; set; }
501 [CCode (cheader_filename = "goocanvas.h")]
502 public class CanvasTextModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
503 public Goo.CanvasTextData text_data;
504 [CCode (cname = "goo_canvas_text_model_new")]
505 public static unowned Goo.CanvasTextModel create (Goo.CanvasItemModel? parent, string str, double x, double y, double width, Gtk.AnchorType anchor, ...);
507 public Pango.Alignment alignment { get; set; }
509 public Gtk.AnchorType anchor { get; set; }
511 public Pango.EllipsizeMode ellipsize { get; set; }
513 public string text { owned get; set; }
515 public bool use_markup { get; set; }
517 public double width { get; set; }
519 public Pango.WrapMode wrap { get; set; }
521 public double x { get; set; }
523 public double y { get; set; }
525 [CCode (cheader_filename = "goocanvas.h")]
526 public class CanvasWidget : Goo.CanvasItemSimple, Goo.CanvasItem {
527 [CCode (cname = "goo_canvas_widget_new")]
528 public static unowned Goo.CanvasWidget create (Goo.CanvasItem? parent, Gtk.Widget widget, double x, double y, double width, double height, ...);
530 public Gtk.AnchorType anchor { get; set; }
532 public double height { get; set; }
534 public Gtk.Widget widget { owned get; set; }
536 public double width { get; set; }
538 public double x { get; set; }
540 public double y { get; set; }
542 [CCode (cheader_filename = "goocanvas.h")]
543 public interface CanvasItem : GLib.Object {
544 public abstract void add_child (Goo.CanvasItem child, int position);
545 public abstract void allocate_area (Cairo.Context cr, Goo.CanvasBounds requested_area, Goo.CanvasBounds allocated_area, double x_offset, double y_offset);
546 public void animate (double x, double y, double scale, double degrees, bool absolute, int duration, int step_time, Goo.CanvasAnimateType type);
547 public static unowned GLib.ParamSpec class_find_child_property (GLib.ObjectClass iclass, string property_name);
548 public static void class_install_child_property (GLib.ObjectClass iclass, uint property_id, GLib.ParamSpec pspec);
549 public static unowned GLib.ParamSpec class_list_child_properties (GLib.ObjectClass iclass, uint n_properties);
550 public void ensure_updated ();
551 public int find_child (Goo.CanvasItem child);
552 public abstract void get_bounds (Goo.CanvasBounds bounds);
553 public abstract unowned Goo.Canvas get_canvas ();
554 public abstract unowned Goo.CanvasItem get_child (int child_num);
555 public void get_child_properties (Goo.CanvasItem child);
556 public void get_child_properties_valist (Goo.CanvasItem child, void* var_args);
558 public abstract void get_child_property (Goo.CanvasItem child, uint property_id, GLib.Value value, GLib.ParamSpec pspec);
559 public abstract unowned GLib.List get_items_at (double x, double y, Cairo.Context cr, bool is_pointer_event, bool parent_is_visible, GLib.List found_items);
560 public abstract unowned Goo.CanvasItemModel get_model ();
561 public abstract int get_n_children ();
562 public abstract unowned Goo.CanvasItem get_parent ();
563 public abstract bool get_requested_area (Cairo.Context cr, Goo.CanvasBounds requested_area);
564 public abstract double get_requested_height (Cairo.Context cr, double width);
565 public void get_simple_transform (out double x, out double y, out double scale, out double rotation);
566 public abstract unowned Goo.CanvasStyle get_style ();
567 public abstract bool get_transform (Cairo.Matrix transform);
568 public abstract bool get_transform_for_child (Goo.CanvasItem child, Cairo.Matrix transform);
569 public bool is_container ();
570 public abstract bool is_visible ();
571 public void lower (Goo.CanvasItem below);
572 public abstract void move_child (int old_position, int new_position);
573 public abstract void paint (Cairo.Context cr, Goo.CanvasBounds bounds, double scale);
575 public abstract bool query_tooltip (double x, double y, bool keyboard_tooltip, void* tooltip);
576 public void raise (Goo.CanvasItem above);
577 public void remove ();
578 public abstract void remove_child (int child_num);
579 public abstract void request_update ();
580 public void rotate (double degrees, double cx, double cy);
581 public void scale (double sx, double sy);
582 public abstract void set_canvas (Goo.Canvas canvas);
583 public void set_child_properties (Goo.CanvasItem child);
584 public void set_child_properties_valist (Goo.CanvasItem child, void* var_args);
586 public abstract void set_child_property (Goo.CanvasItem child, uint property_id, GLib.Value value, GLib.ParamSpec pspec);
587 public abstract void set_model (Goo.CanvasItemModel model);
588 public abstract void set_parent (Goo.CanvasItem parent);
589 public void set_simple_transform (double x, double y, double scale, double rotation);
590 public abstract void set_style (Goo.CanvasStyle style);
591 public abstract void set_transform (Cairo.Matrix transform);
592 public void skew_x (double degrees, double cx, double cy);
593 public void skew_y (double degrees, double cx, double cy);
594 public void stop_animation ();
595 public void translate (double tx, double ty);
596 public abstract void update (bool entire_tree, Cairo.Context cr, Goo.CanvasBounds bounds);
597 public bool can_focus { get; set; }
598 public string description { get; set; }
599 public Goo.CanvasItem parent { get; set; }
600 public Goo.CanvasPointerEvents pointer_events { get; set; }
601 public string title { get; set; }
602 public Goo.CairoMatrix transform { get; set; }
603 public Goo.CanvasItemVisibility visibility { get; set; }
604 public double visibility_threshold { get; set; }
605 public virtual signal bool button_press_event (Goo.CanvasItem target, Gdk.EventButton event);
606 public virtual signal bool button_release_event (Goo.CanvasItem target, Gdk.EventButton event);
607 public virtual signal void child_notify (GLib.ParamSpec pspec);
608 public virtual signal bool enter_notify_event (Goo.CanvasItem target, Gdk.EventCrossing event);
609 public virtual signal bool focus_in_event (Goo.CanvasItem target, Gdk.EventFocus event);
610 public virtual signal bool focus_out_event (Goo.CanvasItem target, Gdk.EventFocus event);
611 public virtual signal bool grab_broken_event (Goo.CanvasItem target, Gdk.EventGrabBroken event);
612 public virtual signal bool key_press_event (Goo.CanvasItem target, Gdk.EventKey event);
613 public virtual signal bool key_release_event (Goo.CanvasItem target, Gdk.EventKey event);
614 public virtual signal bool leave_notify_event (Goo.CanvasItem target, Gdk.EventCrossing event);
615 public virtual signal bool motion_notify_event (Goo.CanvasItem target, Gdk.EventMotion event);
617 [CCode (cheader_filename = "goocanvas.h")]
618 public interface CanvasItemModel : GLib.Object {
619 public abstract void add_child (Goo.CanvasItemModel child, int position);
620 public void animate (double x, double y, double scale, double degrees, bool absolute, int duration, int step_time, Goo.CanvasAnimateType type);
621 public static unowned GLib.ParamSpec class_find_child_property (GLib.ObjectClass mclass, string property_name);
622 public static void class_install_child_property (GLib.ObjectClass mclass, uint property_id, GLib.ParamSpec pspec);
623 public static unowned GLib.ParamSpec class_list_child_properties (GLib.ObjectClass mclass, uint n_properties);
625 public abstract unowned Goo.CanvasItem create_item (Goo.Canvas canvas);
626 public int find_child (Goo.CanvasItemModel child);
627 public abstract unowned Goo.CanvasItemModel get_child (int child_num);
628 public void get_child_properties (Goo.CanvasItemModel child);
629 public void get_child_properties_valist (Goo.CanvasItemModel child, void* var_args);
631 public abstract void get_child_property (Goo.CanvasItemModel child, uint property_id, GLib.Value value, GLib.ParamSpec pspec);
632 public abstract int get_n_children ();
633 public abstract unowned Goo.CanvasItemModel get_parent ();
634 public void get_simple_transform (out double x, out double y, out double scale, out double rotation);
635 public abstract unowned Goo.CanvasStyle get_style ();
636 public abstract bool get_transform (Cairo.Matrix transform);
637 public bool is_container ();
638 public void lower (Goo.CanvasItemModel below);
639 public abstract void move_child (int old_position, int new_position);
640 public void raise (Goo.CanvasItemModel above);
641 public void remove ();
642 public abstract void remove_child (int child_num);
643 public void rotate (double degrees, double cx, double cy);
644 public void scale (double sx, double sy);
645 public void set_child_properties (Goo.CanvasItemModel child);
646 public void set_child_properties_valist (Goo.CanvasItemModel child, void* var_args);
648 public abstract void set_child_property (Goo.CanvasItemModel child, uint property_id, GLib.Value value, GLib.ParamSpec pspec);
649 public abstract void set_parent (Goo.CanvasItemModel parent);
650 public void set_simple_transform (double x, double y, double scale, double rotation);
651 public abstract void set_style (Goo.CanvasStyle style);
652 public abstract void set_transform (Cairo.Matrix transform);
653 public void skew_x (double degrees, double cx, double cy);
654 public void skew_y (double degrees, double cx, double cy);
655 public void stop_animation ();
656 public void translate (double tx, double ty);
657 public bool can_focus { get; set; }
658 public string description { get; set; }
659 public Goo.CanvasItemModel parent { get; set; }
660 public Goo.CanvasPointerEvents pointer_events { get; set; }
661 public string title { get; set; }
662 public Goo.CairoMatrix transform { get; set; }
663 public Goo.CanvasItemVisibility visibility { get; set; }
664 public double visibility_threshold { get; set; }
665 public virtual signal void changed (bool recompute_bounds);
666 public virtual signal void child_added (int child_num);
667 public virtual signal void child_moved (int old_child_num, int new_child_num);
668 public virtual signal void child_notify (GLib.ParamSpec pspec);
669 public virtual signal void child_removed (int child_num);
671 [CCode (type_id = "GOO_TYPE_CAIRO_LINE_DASH", cheader_filename = "goocanvas.h")]
672 public struct CairoLineDash {
674 [CCode (type_id = "GOO_TYPE_CAIRO_PATTERN", cheader_filename = "goocanvas.h")]
675 public struct CairoPattern {
677 [CCode (type_id = "GOO_TYPE_CANVAS_BOUNDS", cheader_filename = "goocanvas.h")]
678 public struct CanvasBounds {
684 [CCode (type_id = "GOO_TYPE_CANVAS_ELLIPSE_DATA", cheader_filename = "goocanvas.h")]
685 public struct CanvasEllipseData {
686 public double center_x;
687 public double center_y;
688 public double radius_x;
689 public double radius_y;
691 [CCode (type_id = "GOO_TYPE_CANVAS_IMAGE_DATA", cheader_filename = "goocanvas.h")]
692 public struct CanvasImageData {
693 public weak Cairo.Pattern pattern;
697 public double height;
699 [CCode (type_id = "GOO_TYPE_CANVAS_ITEM_SIMPLE_DATA", cheader_filename = "goocanvas.h")]
700 public struct CanvasItemSimpleData {
701 public weak Goo.CanvasStyle style;
702 public Cairo.Matrix transform;
703 public weak GLib.Array clip_path_commands;
704 public weak string tooltip;
705 public double visibility_threshold;
706 public uint visibility;
707 public uint pointer_events;
708 public uint can_focus;
709 public uint own_style;
710 public uint clip_fill_rule;
711 public uint cache_setting;
712 public uint has_tooltip;
714 [CCode (type_id = "GOO_TYPE_CANVAS_PATH_COMMAND", cheader_filename = "goocanvas.h")]
715 public struct CanvasPathCommand {
720 [CCode (type_id = "GOO_TYPE_CANVAS_PATH_DATA", cheader_filename = "goocanvas.h")]
721 public struct CanvasPathData {
722 public weak GLib.Array path_commands;
724 [CCode (type_id = "GOO_TYPE_CANVAS_POLYLINE_ARROW_DATA", cheader_filename = "goocanvas.h")]
725 public struct CanvasPolylineArrowData {
726 public double arrow_width;
727 public double arrow_length;
728 public double arrow_tip_length;
729 [CCode (array_length = false)]
730 public weak double[] line_start;
731 [CCode (array_length = false)]
732 public weak double[] line_end;
733 [CCode (array_length = false)]
734 public weak double[] start_arrow_coords;
735 [CCode (array_length = false)]
736 public weak double[] end_arrow_coords;
738 [CCode (type_id = "GOO_TYPE_CANVAS_POLYLINE_DATA", cheader_filename = "goocanvas.h")]
739 public struct CanvasPolylineData {
740 public double coords;
741 public Goo.CanvasPolylineArrowData arrow_data;
742 public uint num_points;
743 public uint close_path;
744 public uint start_arrow;
745 public uint end_arrow;
746 public uint reconfigure_arrows;
748 [CCode (type_id = "GOO_TYPE_CANVAS_RECT_DATA", cheader_filename = "goocanvas.h")]
749 public struct CanvasRectData {
753 public double height;
754 public double radius_x;
755 public double radius_y;
757 [CCode (type_id = "GOO_TYPE_CANVAS_STYLE_PROPERTY", cheader_filename = "goocanvas.h")]
758 public struct CanvasStyleProperty {
759 public GLib.Quark id;
760 public GLib.Value value;
762 [CCode (type_id = "GOO_TYPE_CANVAS_TABLE_DATA", cheader_filename = "goocanvas.h")]
763 public struct CanvasTableData {
765 public double height;
766 [CCode (array_length = false)]
767 public weak Goo.CanvasTableDimension[] dimensions;
768 public double border_width;
769 public weak GLib.Array children;
770 public Goo.CanvasTableLayoutData layout_data;
772 [CCode (type_id = "GOO_TYPE_CANVAS_TABLE_DIMENSION", cheader_filename = "goocanvas.h")]
773 public struct CanvasTableDimension {
775 public double default_spacing;
776 public double spacings;
777 public uint homogeneous;
779 [CCode (type_id = "GOO_TYPE_CANVAS_TABLE_LAYOUT_DATA", cheader_filename = "goocanvas.h")]
780 public struct CanvasTableLayoutData {
782 [CCode (type_id = "GOO_TYPE_CANVAS_TEXT_DATA", cheader_filename = "goocanvas.h")]
783 public struct CanvasTextData {
784 public weak string text;
788 public uint use_markup;
790 public uint alignment;
791 public uint ellipsize;
794 [CCode (cprefix = "CAIRO_ANTIALIAS_", has_type_id = "0", cheader_filename = "goocanvas.h")]
795 public enum CairoAntialias {
801 [CCode (cprefix = "CAIRO_FILL_RULE_", has_type_id = "0", cheader_filename = "goocanvas.h")]
802 public enum CairoFillRule {
806 [CCode (cprefix = "CAIRO_HINT_METRICS_", has_type_id = "0", cheader_filename = "goocanvas.h")]
807 public enum CairoHintMetrics {
812 [CCode (cprefix = "CAIRO_LINE_CAP_", has_type_id = "0", cheader_filename = "goocanvas.h")]
813 public enum CairoLineCap {
818 [CCode (cprefix = "CAIRO_LINE_JOIN_", has_type_id = "0", cheader_filename = "goocanvas.h")]
819 public enum CairoLineJoin {
824 [CCode (cprefix = "CAIRO_OPERATOR_", has_type_id = "0", cheader_filename = "goocanvas.h")]
825 public enum CairoOperator {
841 [CCode (cprefix = "GOO_CANVAS_ANIMATE_", has_type_id = "0", cheader_filename = "goocanvas.h")]
842 public enum CanvasAnimateType {
848 [CCode (cprefix = "GOO_CANVAS_ITEM_", has_type_id = "0", cheader_filename = "goocanvas.h")]
849 public enum CanvasItemVisibility {
853 VISIBLE_ABOVE_THRESHOLD
855 [CCode (cprefix = "GOO_CANVAS_PATH_", has_type_id = "0", cheader_filename = "goocanvas.h")]
856 public enum CanvasPathCommandType {
865 SMOOTH_QUADRATIC_CURVE_TO,
868 [CCode (cprefix = "GOO_CANVAS_EVENTS_", has_type_id = "0", cheader_filename = "goocanvas.h")]
870 public enum CanvasPointerEvents {
885 [CCode (cheader_filename = "goocanvas.h")]
886 public const int NUM_ARROW_POINTS;