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", type_id = "GOO_TYPE_CAIRO_MATRIX", cheader_filename = "goocanvas.h")]
7 public class CairoMatrix {
14 public static Cairo.Matrix copy (Cairo.Matrix matrix);
17 [CCode (type_id = "GOO_TYPE_CAIRO_PATTERN", cheader_filename = "goocanvas.h")]
18 public class CairoPattern {
20 [CCode (cheader_filename = "goocanvas.h")]
21 public class Canvas : Gtk.Container, Atk.Implementor, Gtk.Buildable {
22 [CCode (has_construct_function = false)]
24 public void convert_bounds_to_item_space (Goo.CanvasItem item, ref Goo.CanvasBounds bounds);
25 public void convert_from_item_space (Goo.CanvasItem item, ref double x, ref double y);
26 public void convert_from_pixels (ref double x, ref double y);
27 public void convert_to_item_space (Goo.CanvasItem item, ref double x, ref double y);
28 public void convert_to_pixels (ref double x, ref double y);
29 public unowned Cairo.Context create_cairo_context ();
30 public virtual unowned Goo.CanvasItem create_item (Goo.CanvasItemModel model);
31 public static void create_path (GLib.Array<Goo.CanvasPathCommand> commands, Cairo.Context cr);
32 public void get_bounds (ref unowned double? left, ref unowned double? top, ref unowned double? right, ref unowned double? bottom);
33 public double get_default_line_width ();
34 public unowned Goo.CanvasItem? get_item (Goo.CanvasItemModel model);
35 public unowned Goo.CanvasItem? get_item_at (double x, double y, bool is_pointer_event);
36 public unowned GLib.List<Goo.CanvasItem> get_items_at (double x, double y, bool is_pointer_event);
37 public unowned GLib.List<Goo.CanvasItem> get_items_in_area (Goo.CanvasBounds area, bool inside_area, bool allow_overlaps, bool include_containers);
38 public unowned Goo.CanvasItem? get_root_item ();
39 public unowned Goo.CanvasItemModel? get_root_item_model ();
40 public double get_scale ();
41 public unowned Goo.CanvasItem? get_static_root_item ();
42 public unowned Goo.CanvasItemModel? get_static_root_item_model ();
43 public void grab_focus (Goo.CanvasItem item);
44 public Gdk.GrabStatus keyboard_grab (Goo.CanvasItem item, bool owner_events, uint32 time);
45 public void keyboard_ungrab (Goo.CanvasItem item, uint32 time);
46 public static GLib.Array<Goo.CanvasPathCommand> parse_path_data (string path_data);
47 public Gdk.GrabStatus pointer_grab (Goo.CanvasItem item, Gdk.EventMask event_mask, Gdk.Cursor? cursor, uint32 time);
48 public void pointer_ungrab (Goo.CanvasItem item, uint32 time);
49 public void register_widget_item (Goo.CanvasWidget witem);
50 public void render (Cairo.Context cr, Goo.CanvasBounds? bounds, double scale);
51 public void request_item_redraw (Goo.CanvasBounds bounds, bool is_static);
52 public void request_redraw (Goo.CanvasBounds bounds);
53 public void request_update ();
54 public void scroll_to (double left, double top);
55 public void set_bounds (double left, double top, double right, double bottom);
56 public void set_root_item (Goo.CanvasItem item);
57 public void set_root_item_model (Goo.CanvasItemModel model);
58 public void set_scale (double scale);
59 public void set_static_root_item (Goo.CanvasItem item);
60 public void set_static_root_item_model (Goo.CanvasItemModel model);
61 public void unregister_item (Goo.CanvasItemModel model);
62 public void unregister_widget_item (Goo.CanvasWidget witem);
63 public void update ();
65 public Gtk.AnchorType anchor { get; set; }
67 public bool automatic_bounds { get; set; }
69 public string background_color { set; }
71 public uint background_color_rgb { set; }
73 public bool bounds_from_origin { get; set; }
75 public double bounds_padding { get; set; }
77 public bool clear_background { get; set; }
79 public bool integer_layout { get; set; }
81 public bool redraw_when_scrolled { get; set; }
83 public double resolution_x { get; set; }
85 public double resolution_y { get; set; }
86 public double scale { get; set; }
88 public double scale_x { get; set; }
90 public double scale_y { get; set; }
92 public Gtk.Unit units { get; set; }
94 public double x1 { get; set; }
96 public double x2 { get; set; }
98 public double y1 { get; set; }
100 public double y2 { get; set; }
101 public virtual signal void item_created (Goo.CanvasItem item, Goo.CanvasItemModel model);
102 public virtual signal void set_scroll_adjustments (Gtk.Adjustment hadjustment, Gtk.Adjustment vadjustment);
104 [CCode (cheader_filename = "goocanvas.h")]
105 public class CanvasEllipse : Goo.CanvasItemSimple, Goo.CanvasItem {
106 [CCode (cname = "goo_canvas_ellipse_new")]
107 public static unowned Goo.CanvasEllipse create (Goo.CanvasItem? parent, double center_x, double center_y, double radius_x, double radius_y, ...);
109 public double center_x { get; set; }
111 public double center_y { get; set; }
113 public double height { get; set; }
115 public double radius_x { get; set; }
117 public double radius_y { get; set; }
119 public double width { get; set; }
121 public double x { get; set; }
123 public double y { get; set; }
125 [CCode (cheader_filename = "goocanvas.h")]
126 public class CanvasEllipseModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
127 [CCode (cname = "goo_canvas_ellipse_model_new")]
128 public static unowned Goo.CanvasEllipseModel create (Goo.CanvasItemModel? parent, double center_x, double center_y, double radius_x, double radius_y, ...);
130 public double center_x { get; set; }
132 public double center_y { get; set; }
134 public double height { get; set; }
136 public double radius_x { get; set; }
138 public double radius_y { get; set; }
140 public double width { get; set; }
142 public double x { get; set; }
144 public double y { get; set; }
146 [CCode (cheader_filename = "goocanvas.h")]
147 public class CanvasGrid : Goo.CanvasItemSimple, Goo.CanvasItem {
148 [CCode (cname = "goo_canvas_grid_new")]
149 public static unowned Goo.CanvasGrid create (Goo.CanvasItem? parent, double x, double y, double width, double height, double x_step, double y_step, double x_offset, double y_offset, ...);
151 public string border_color { set; }
153 public uint border_color_rgba { get; set; }
155 public Goo.CairoPattern border_pattern { owned get; set; }
157 public Gdk.Pixbuf border_pixbuf { set; }
159 public double border_width { get; set; }
161 public double height { get; set; }
163 public string horz_grid_line_color { set; }
165 public uint horz_grid_line_color_rgba { get; set; }
167 public Goo.CairoPattern horz_grid_line_pattern { owned get; set; }
169 public Gdk.Pixbuf horz_grid_line_pixbuf { set; }
171 public double horz_grid_line_width { get; set; }
173 public bool show_horz_grid_lines { get; set; }
175 public bool show_vert_grid_lines { get; set; }
177 public string vert_grid_line_color { set; }
179 public uint vert_grid_line_color_rgba { get; set; }
181 public Goo.CairoPattern vert_grid_line_pattern { owned get; set; }
183 public Gdk.Pixbuf vert_grid_line_pixbuf { set; }
185 public double vert_grid_line_width { get; set; }
187 public bool vert_grid_lines_on_top { get; set; }
189 public double width { get; set; }
191 public double x { get; set; }
193 public double x_offset { get; set; }
195 public double x_step { get; set; }
197 public double y { get; set; }
199 public double y_offset { get; set; }
201 public double y_step { get; set; }
203 [CCode (cheader_filename = "goocanvas.h")]
204 public class CanvasGridModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
205 [CCode (cname = "goo_canvas_grid_model_new")]
206 public static unowned Goo.CanvasGridModel create (Goo.CanvasItemModel? parent, double x, double y, double width, double height, double x_step, double y_step, double x_offset, double y_offset, ...);
208 public string border_color { set; }
210 public uint border_color_rgba { get; set; }
212 public Goo.CairoPattern border_pattern { owned get; set; }
214 public Gdk.Pixbuf border_pixbuf { set; }
216 public double border_width { get; set; }
218 public double height { get; set; }
220 public string horz_grid_line_color { set; }
222 public uint horz_grid_line_color_rgba { get; set; }
224 public Goo.CairoPattern horz_grid_line_pattern { owned get; set; }
226 public Gdk.Pixbuf horz_grid_line_pixbuf { set; }
228 public double horz_grid_line_width { get; set; }
230 public bool show_horz_grid_lines { get; set; }
232 public bool show_vert_grid_lines { get; set; }
234 public string vert_grid_line_color { set; }
236 public uint vert_grid_line_color_rgba { get; set; }
238 public Goo.CairoPattern vert_grid_line_pattern { owned get; set; }
240 public Gdk.Pixbuf vert_grid_line_pixbuf { set; }
242 public double vert_grid_line_width { get; set; }
244 public bool vert_grid_lines_on_top { get; set; }
246 public double width { get; set; }
248 public double x { get; set; }
250 public double x_offset { get; set; }
252 public double x_step { get; set; }
254 public double y { get; set; }
256 public double y_offset { get; set; }
258 public double y_step { get; set; }
260 [CCode (cheader_filename = "goocanvas.h")]
261 public class CanvasGroup : Goo.CanvasItemSimple, Goo.CanvasItem {
262 [CCode (cname = "goo_canvas_group_new")]
263 public static unowned Goo.CanvasGroup create (Goo.CanvasItem? parent, ...);
265 public double height { get; set; }
267 public double width { get; set; }
269 public double x { get; set; }
271 public double y { get; set; }
273 [CCode (cheader_filename = "goocanvas.h")]
274 public class CanvasGroupModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
275 [CCode (cname = "goo_canvas_group_model_new")]
276 public static unowned Goo.CanvasGroupModel create (Goo.CanvasItemModel? parent, ...);
278 public double height { get; set; }
280 public double width { get; set; }
282 public double x { get; set; }
284 public double y { get; set; }
286 [CCode (cheader_filename = "goocanvas.h")]
287 public class CanvasImage : Goo.CanvasItemSimple, Goo.CanvasItem {
288 [CCode (cname = "goo_canvas_image_new")]
289 public static unowned Goo.CanvasImage create (Goo.CanvasItem? parent, Gdk.Pixbuf pixbuf, double x, double y, ...);
291 public double height { get; set; }
293 public Goo.CairoPattern pattern { owned get; set; }
295 public Gdk.Pixbuf pixbuf { set; }
297 public bool scale_to_fit { get; set; }
299 public double width { get; set; }
301 public double x { get; set; }
303 public double y { get; set; }
305 [CCode (cheader_filename = "goocanvas.h")]
306 public class CanvasImageModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
307 [CCode (cname = "goo_canvas_image_model_new")]
308 public static unowned Goo.CanvasImageModel create (Goo.CanvasItemModel? parent, Gdk.Pixbuf pixbuf, double x, double y, ...);
310 public double height { get; set; }
312 public Goo.CairoPattern pattern { owned get; set; }
314 public Gdk.Pixbuf pixbuf { set; }
316 public bool scale_to_fit { get; set; }
318 public double width { get; set; }
320 public double x { get; set; }
322 public double y { get; set; }
324 [CCode (cheader_filename = "goocanvas.h")]
325 public class CanvasItemModelSimple : GLib.Object, Goo.CanvasItemModel {
326 public weak Goo.CanvasItemModel parent;
327 public Goo.CanvasItemSimpleData simple_data;
329 public Goo.CairoAntialias antialias { get; set; }
331 public Goo.CairoFillRule clip_fill_rule { get; set; }
333 public string clip_path { set; }
335 public string fill_color { set; }
337 public uint fill_color_rgba { get; set; }
339 public Goo.CairoPattern fill_pattern { owned get; set; }
341 public Gdk.Pixbuf fill_pixbuf { set; }
343 public Goo.CairoFillRule fill_rule { get; set; }
345 public string font { owned get; set; }
347 public Pango.FontDescription font_desc { owned get; set; }
349 public Goo.CairoHintMetrics hint_metrics { get; set; }
351 public Goo.CairoLineCap line_cap { get; set; }
353 public Goo.CanvasLineDash line_dash { owned get; set; }
355 public Goo.CairoLineJoin line_join { get; set; }
357 public double line_join_miter_limit { get; set; }
359 public double line_width { get; set; }
361 public Goo.CairoOperator operator { get; set; }
363 public string stroke_color { set; }
365 public uint stroke_color_rgba { get; set; }
367 public Goo.CairoPattern stroke_pattern { owned get; set; }
369 public Gdk.Pixbuf stroke_pixbuf { set; }
371 [CCode (cheader_filename = "goocanvas.h")]
372 public class CanvasItemSimple : GLib.Object, Goo.CanvasItem {
373 public Goo.CanvasBounds bounds;
374 public weak Goo.Canvas canvas;
375 public weak Goo.CanvasItemModelSimple model;
376 public uint need_entire_subtree_update;
377 public uint need_update;
378 public weak Goo.CanvasItem parent;
379 public Goo.CanvasItemSimpleData simple_data;
380 public void changed (bool recompute_bounds);
381 public bool check_in_path (double x, double y, Cairo.Context cr, Goo.CanvasPointerEvents pointer_events);
382 public void check_style ();
383 public double get_line_width ();
384 public void get_path_bounds (Cairo.Context cr, out Goo.CanvasBounds bounds);
385 public void paint_path (Cairo.Context cr);
387 public virtual void simple_create_path (Cairo.Context cr);
389 public virtual bool simple_is_item_at (double x, double y, Cairo.Context cr, bool is_pointer_event);
391 public virtual void simple_paint (Cairo.Context cr, Goo.CanvasBounds bounds);
393 public virtual void simple_update (Cairo.Context cr);
394 public void user_bounds_to_device (Cairo.Context cr, Goo.CanvasBounds bounds);
395 public void user_bounds_to_parent (Cairo.Context cr, Goo.CanvasBounds bounds);
397 public Goo.CairoAntialias antialias { get; set; }
399 public Goo.CairoFillRule clip_fill_rule { get; set; }
401 public string clip_path { set; }
403 public string fill_color { set; }
405 public uint fill_color_rgba { get; set; }
407 public Goo.CairoPattern fill_pattern { owned get; set; }
409 public Gdk.Pixbuf fill_pixbuf { set; }
411 public Goo.CairoFillRule fill_rule { get; set; }
413 public string font { owned get; set; }
415 public Pango.FontDescription font_desc { owned get; set; }
417 public Goo.CairoHintMetrics hint_metrics { get; set; }
419 public Goo.CairoLineCap line_cap { get; set; }
421 public Goo.CanvasLineDash line_dash { owned get; set; }
423 public Goo.CairoLineJoin line_join { get; set; }
425 public double line_join_miter_limit { get; set; }
427 public double line_width { get; set; }
429 public Goo.CairoOperator operator { get; set; }
431 public string stroke_color { set; }
433 public uint stroke_color_rgba { get; set; }
435 public Goo.CairoPattern stroke_pattern { owned get; set; }
437 public Gdk.Pixbuf stroke_pixbuf { set; }
440 [CCode (ref_function = "goo_canvas_line_dash_ref", unref_function = "goo_canvas_line_dash_unref", type_id = "GOO_TYPE_CANVAS_LINE_DASH", cheader_filename = "goocanvas.h")]
441 public class CanvasLineDash {
442 public double dash_offset;
443 public double* dashes;
444 public int num_dashes;
445 public int ref_count;
446 [CCode (has_construct_function = false)]
447 public CanvasLineDash (int num_dashes);
448 [CCode (has_construct_function = false)]
449 public CanvasLineDash.newv (int num_dashes, double* dashes);
451 [CCode (cheader_filename = "goocanvas.h")]
452 public class CanvasPath : Goo.CanvasItemSimple, Goo.CanvasItem {
453 [CCode (cname = "goo_canvas_path_new")]
454 public static unowned Goo.CanvasPath create (Goo.CanvasItem? parent, string path_data, ...);
456 public string data { set; }
458 public double height { get; set; }
460 public double width { get; set; }
462 public double x { get; set; }
464 public double y { get; set; }
466 [CCode (cheader_filename = "goocanvas.h")]
467 public class CanvasPathModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
468 [CCode (cname = "goo_canvas_path_model_new")]
469 public static unowned Goo.CanvasPathModel create (Goo.CanvasItemModel? parent, string path_data, ...);
471 public string data { set; }
473 public double height { get; set; }
475 public double width { get; set; }
477 public double x { get; set; }
479 public double y { get; set; }
482 [CCode (ref_function = "goo_canvas_points_ref", unref_function = "goo_canvas_points_unref", type_id = "GOO_TYPE_CANVAS_POINTS", cheader_filename = "goocanvas.h")]
483 public class CanvasPoints {
484 public double* coords;
485 public int num_points;
486 public int ref_count;
487 [CCode (has_construct_function = false)]
488 public CanvasPoints (int num_points);
490 [CCode (cheader_filename = "goocanvas.h")]
491 public class CanvasPolyline : Goo.CanvasItemSimple, Goo.CanvasItem {
492 [CCode (cname = "goo_canvas_polyline_new")]
493 public static unowned Goo.CanvasPolyline create (Goo.CanvasItem? parent, bool close_path, int num_points, ...);
494 [CCode (cname = "goo_canvas_polyline_new_line")]
495 public static unowned Goo.CanvasPolyline create_line (Goo.CanvasItem? parent, double x1, double y1, double x2, double y2, ...);
497 public double arrow_length { get; set; }
499 public double arrow_tip_length { get; set; }
501 public double arrow_width { get; set; }
503 public bool close_path { get; set; }
505 public bool end_arrow { get; set; }
507 public double height { get; set; }
509 public Goo.CanvasPoints points { owned get; set; }
511 public bool start_arrow { get; set; }
513 public double width { get; set; }
515 public double x { get; set; }
517 public double y { get; set; }
520 [CCode (cheader_filename = "goocanvas.h")]
521 public class CanvasPolylineArrowData {
522 public double arrow_length;
523 public double arrow_tip_length;
524 public double arrow_width;
525 [CCode (array_length = false)]
526 public weak double[] end_arrow_coords;
527 [CCode (array_length = false)]
528 public weak double[] line_end;
529 [CCode (array_length = false)]
530 public weak double[] line_start;
531 [CCode (array_length = false)]
532 public weak double[] start_arrow_coords;
534 [CCode (cheader_filename = "goocanvas.h")]
535 public class CanvasPolylineModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
536 [CCode (cname = "goo_canvas_polyline_model_new")]
537 public static unowned Goo.CanvasPolylineModel create (Goo.CanvasItemModel? parent, bool close_path, int num_points, ...);
538 [CCode (cname = "goo_canvas_polyline_model_new_line")]
539 public static unowned Goo.CanvasPolylineModel create_line (Goo.CanvasItemModel? parent, double x1, double y1, double x2, double y2, ...);
541 public double arrow_length { get; set; }
543 public double arrow_tip_length { get; set; }
545 public double arrow_width { get; set; }
547 public bool close_path { get; set; }
549 public bool end_arrow { get; set; }
551 public double height { get; set; }
553 public Goo.CanvasPoints points { owned get; set; }
555 public bool start_arrow { get; set; }
557 public double width { get; set; }
559 public double x { get; set; }
561 public double y { get; set; }
563 [CCode (cheader_filename = "goocanvas.h")]
564 public class CanvasRect : Goo.CanvasItemSimple, Goo.CanvasItem {
565 [CCode (cname = "goo_canvas_rect_new")]
566 public static unowned Goo.CanvasRect create (Goo.CanvasItem? parent, double x, double y, double width, double height, ...);
568 public double height { get; set; }
570 public double radius_x { get; set; }
572 public double radius_y { get; set; }
574 public double width { get; set; }
576 public double x { get; set; }
578 public double y { get; set; }
580 [CCode (cheader_filename = "goocanvas.h")]
581 public class CanvasRectModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
582 [CCode (cname = "goo_canvas_rect_model_new")]
583 public static unowned Goo.CanvasRectModel create (Goo.CanvasItemModel? parent, double x, double y, double width, double height, ...);
585 public double height { get; set; }
587 public double radius_x { get; set; }
589 public double radius_y { get; set; }
591 public double width { get; set; }
593 public double x { get; set; }
595 public double y { get; set; }
597 [CCode (cheader_filename = "goocanvas.h")]
598 public class CanvasStyle : GLib.Object {
599 public weak Goo.CanvasStyle? parent;
600 public weak GLib.Array<Goo.CanvasStyleProperty> properties;
601 [CCode (has_construct_function = false)]
602 public CanvasStyle ();
603 public Goo.CanvasStyle copy ();
604 public unowned Goo.CanvasStyle? get_parent ();
605 public unowned GLib.Value? get_property (GLib.Quark property_id);
606 public bool set_fill_options (Cairo.Context cr);
607 public void set_parent (Goo.CanvasStyle? parent);
608 public void set_property (GLib.Quark property_id, GLib.Value value);
609 public bool set_stroke_options (Cairo.Context cr);
611 [CCode (cheader_filename = "goocanvas.h")]
612 public class CanvasTable : Goo.CanvasGroup, Goo.CanvasItem {
613 [CCode (cname = "goo_canvas_table_new")]
614 public static unowned Goo.CanvasTable create (Goo.CanvasItem? parent, ...);
616 public double column_spacing { get; set; }
618 public bool homogeneous_columns { get; set; }
620 public bool homogeneous_rows { get; set; }
622 public double horz_grid_line_width { get; set; }
624 public double row_spacing { get; set; }
626 public double vert_grid_line_width { get; set; }
628 public double x_border_spacing { get; set; }
630 public double y_border_spacing { get; set; }
632 [CCode (cheader_filename = "goocanvas.h")]
633 public class CanvasTableModel : Goo.CanvasGroupModel, Goo.CanvasItemModel {
634 [CCode (cname = "goo_canvas_table_model_new")]
635 public static unowned Goo.CanvasTableModel create (Goo.CanvasItemModel? parent, ...);
637 public double column_spacing { get; set; }
639 public bool homogeneous_columns { get; set; }
641 public bool homogeneous_rows { get; set; }
643 public double horz_grid_line_width { get; set; }
645 public double row_spacing { get; set; }
647 public double vert_grid_line_width { get; set; }
649 public double x_border_spacing { get; set; }
651 public double y_border_spacing { get; set; }
653 [CCode (cheader_filename = "goocanvas.h")]
654 public class CanvasText : Goo.CanvasItemSimple, Goo.CanvasItem {
655 [CCode (cname = "goo_canvas_text_new")]
656 public static unowned Goo.CanvasText create (Goo.CanvasItem? parent, string str, double x, double y, double width, Gtk.AnchorType anchor, ...);
657 public void get_natural_extents (out unowned Pango.Rectangle? ink_rect, out unowned Pango.Rectangle? logical_rect);
659 public Pango.Alignment alignment { get; set; }
661 public Gtk.AnchorType anchor { get; set; }
663 public Pango.EllipsizeMode ellipsize { get; set; }
665 public double height { get; set; }
667 public string text { owned get; set; }
669 public bool use_markup { get; set; }
671 public double width { get; set; }
673 public Pango.WrapMode wrap { get; set; }
675 public double x { get; set; }
677 public double y { get; set; }
679 [CCode (cheader_filename = "goocanvas.h")]
680 public class CanvasTextModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
681 [CCode (cname = "goo_canvas_text_model_new")]
682 public static unowned Goo.CanvasTextModel create (Goo.CanvasItemModel? parent, string str, double x, double y, double width, Gtk.AnchorType anchor, ...);
684 public Pango.Alignment alignment { get; set; }
686 public Gtk.AnchorType anchor { get; set; }
688 public Pango.EllipsizeMode ellipsize { get; set; }
690 public double height { get; set; }
692 public string text { owned get; set; }
694 public bool use_markup { get; set; }
696 public double width { get; set; }
698 public Pango.WrapMode wrap { get; set; }
700 public double x { get; set; }
702 public double y { get; set; }
704 [CCode (cheader_filename = "goocanvas.h")]
705 public class CanvasWidget : Goo.CanvasItemSimple, Goo.CanvasItem {
706 [CCode (cname = "goo_canvas_widget_new")]
707 public static unowned Goo.CanvasWidget create (Goo.CanvasItem? parent, Gtk.Widget widget, double x, double y, double width, double height, ...);
709 public Gtk.AnchorType anchor { get; set; }
711 public double height { get; set; }
713 public Gtk.Widget widget { owned get; set; }
715 public double width { get; set; }
717 public double x { get; set; }
719 public double y { get; set; }
721 [CCode (cheader_filename = "goocanvas.h")]
722 public interface CanvasItem : GLib.Object {
723 public abstract void add_child (Goo.CanvasItem child, int position);
724 public abstract void allocate_area (Cairo.Context cr, Goo.CanvasBounds requested_area, Goo.CanvasBounds allocated_area, double x_offset, double y_offset);
725 public void animate (double x, double y, double scale, double degrees, bool absolute, int duration, int step_time, Goo.CanvasAnimateType type);
726 public static unowned GLib.ParamSpec? class_find_child_property (GLib.ObjectClass iclass, string property_name);
727 public static void class_install_child_property (GLib.ObjectClass iclass, uint property_id, GLib.ParamSpec pspec);
728 public static GLib.ParamSpec[] class_list_child_properties (GLib.ObjectClass iclass, out uint n_properties);
729 public void ensure_updated ();
730 public int find_child (Goo.CanvasItem child);
731 public abstract void get_bounds (out Goo.CanvasBounds bounds);
732 public abstract unowned Goo.Canvas get_canvas ();
733 public abstract unowned Goo.CanvasItem? get_child (int child_num);
734 public void get_child_properties (Goo.CanvasItem child, ...);
735 public abstract void get_child_property (Goo.CanvasItem child, string property_name, out GLib.Value value);
736 public abstract bool get_is_static ();
737 public abstract unowned GLib.List<Goo.CanvasItem> get_items_at (double x, double y, Cairo.Context cr, bool is_pointer_event, bool parent_is_visible, GLib.List<Goo.CanvasItem> found_items);
738 public abstract unowned Goo.CanvasItemModel? get_model ();
739 public abstract int get_n_children ();
740 public abstract unowned Goo.CanvasItem? get_parent ();
741 public abstract bool get_requested_area (Cairo.Context cr, out Goo.CanvasBounds requested_area);
742 public abstract double get_requested_height (Cairo.Context cr, double width);
743 public bool get_simple_transform (out double x, out double y, out double scale, out double rotation);
744 public abstract unowned Goo.CanvasStyle get_style ();
745 public abstract bool get_transform (out Cairo.Matrix transform);
746 public abstract bool get_transform_for_child (Goo.CanvasItem child, out Cairo.Matrix transform);
747 public bool is_container ();
748 public abstract bool is_visible ();
749 public void lower (Goo.CanvasItem? below);
750 public abstract void move_child (int old_position, int new_position);
751 public abstract void paint (Cairo.Context cr, Goo.CanvasBounds bounds, double scale);
752 public void raise (Goo.CanvasItem? above);
753 public void remove ();
754 public abstract void remove_child (int child_num);
755 public abstract void request_update ();
756 public void rotate (double degrees, double cx, double cy);
757 public void scale (double sx, double sy);
758 public abstract void set_canvas (Goo.Canvas canvas);
759 public void set_child_properties (Goo.CanvasItem child, ...);
760 public abstract void set_child_property (Goo.CanvasItem child, string property_name, GLib.Value value);
761 public abstract void set_is_static (bool is_static);
762 public abstract void set_model (Goo.CanvasItemModel model);
763 public abstract void set_parent (Goo.CanvasItem parent);
764 public void set_simple_transform (double x, double y, double scale, double rotation);
765 public abstract void set_style (Goo.CanvasStyle style);
766 public abstract void set_transform (Cairo.Matrix? transform);
767 public void skew_x (double degrees, double cx, double cy);
768 public void skew_y (double degrees, double cx, double cy);
769 public void stop_animation ();
770 public void translate (double tx, double ty);
771 public abstract void update (bool entire_tree, Cairo.Context cr, Goo.CanvasBounds bounds);
772 public bool can_focus { get; set; }
773 public string description { get; set; }
774 public Goo.CanvasItem parent { get; set; }
775 public Goo.CanvasPointerEvents pointer_events { get; set; }
776 public string title { get; set; }
777 public string tooltip { get; set; }
778 public Goo.CairoMatrix transform { get; set; }
779 public Goo.CanvasItemVisibility visibility { get; set; }
780 public double visibility_threshold { get; set; }
781 public signal void animation_finished (bool stopped);
782 public signal bool button_press_event (Goo.CanvasItem target, Gdk.EventButton event);
783 public signal bool button_release_event (Goo.CanvasItem target, Gdk.EventButton event);
784 public signal void child_notify (GLib.ParamSpec pspec);
785 public signal bool enter_notify_event (Goo.CanvasItem target, Gdk.EventCrossing event);
786 public signal bool focus_in_event (Goo.CanvasItem target, Gdk.EventFocus event);
787 public signal bool focus_out_event (Goo.CanvasItem target, Gdk.EventFocus event);
788 public signal bool grab_broken_event (Goo.CanvasItem target, Gdk.EventGrabBroken event);
789 public signal bool key_press_event (Goo.CanvasItem target, Gdk.EventKey event);
790 public signal bool key_release_event (Goo.CanvasItem target, Gdk.EventKey event);
791 public signal bool leave_notify_event (Goo.CanvasItem target, Gdk.EventCrossing event);
792 public signal bool motion_notify_event (Goo.CanvasItem target, Gdk.EventMotion event);
793 public signal bool query_tooltip (double x, double y, bool keyboard_tooltip, Gtk.Tooltip tooltip);
794 public signal bool scroll_event (Goo.CanvasItem target, Gdk.Event event);
796 [CCode (cheader_filename = "goocanvas.h")]
797 public interface CanvasItemModel : GLib.Object {
798 public abstract void add_child (Goo.CanvasItemModel child, int position);
799 public void animate (double x, double y, double scale, double degrees, bool absolute, int duration, int step_time, Goo.CanvasAnimateType type);
800 public static unowned GLib.ParamSpec? class_find_child_property (GLib.ObjectClass mclass, string property_name);
801 public static void class_install_child_property (GLib.ObjectClass mclass, uint property_id, GLib.ParamSpec pspec);
802 public static GLib.ParamSpec[] class_list_child_properties (GLib.ObjectClass iclass, out uint n_properties);
804 public abstract unowned Goo.CanvasItem create_item (Goo.Canvas canvas);
805 public int find_child (Goo.CanvasItemModel child);
806 public abstract unowned Goo.CanvasItemModel? get_child (int child_num);
807 public void get_child_properties (Goo.CanvasItem child, ...);
808 public abstract void get_child_property (Goo.CanvasItemModel child, string property_name, out GLib.Value value);
809 public abstract int get_n_children ();
810 public abstract unowned Goo.CanvasItemModel? get_parent ();
811 public bool get_simple_transform (out double x, out double y, out double scale, out double rotation);
812 public abstract unowned Goo.CanvasStyle get_style ();
813 public abstract bool get_transform (out Cairo.Matrix transform);
814 public bool is_container ();
815 public void lower (Goo.CanvasItemModel? below);
816 public abstract void move_child (int old_position, int new_position);
817 public void raise (Goo.CanvasItemModel? above);
818 public void remove ();
819 public abstract void remove_child (int child_num);
820 public void rotate (double degrees, double cx, double cy);
821 public void scale (double sx, double sy);
822 public void set_child_properties (Goo.CanvasItem child, ...);
823 public abstract void set_child_property (Goo.CanvasItemModel child, string property_name, GLib.Value value);
824 public abstract void set_parent (Goo.CanvasItemModel parent);
825 public void set_simple_transform (double x, double y, double scale, double rotation);
826 public abstract void set_style (Goo.CanvasStyle style);
827 public abstract void set_transform (Cairo.Matrix? transform);
828 public void skew_x (double degrees, double cx, double cy);
829 public void skew_y (double degrees, double cx, double cy);
830 public void stop_animation ();
831 public void translate (double tx, double ty);
832 public bool can_focus { get; set; }
833 public string description { get; set; }
834 public Goo.CanvasItemModel parent { get; set; }
835 public Goo.CanvasPointerEvents pointer_events { get; set; }
836 public string title { get; set; }
837 public string tooltip { get; set; }
838 public Goo.CairoMatrix transform { get; set; }
839 public Goo.CanvasItemVisibility visibility { get; set; }
840 public double visibility_threshold { get; set; }
841 public signal void animation_finished (bool stopped);
842 public signal void changed (bool recompute_bounds);
843 public signal void child_added (int child_num);
844 public signal void child_moved (int old_child_num, int new_child_num);
845 public signal void child_notify (GLib.ParamSpec pspec);
846 public signal void child_removed (int child_num);
848 [CCode (type_id = "GOO_TYPE_CANVAS_BOUNDS", cheader_filename = "goocanvas.h")]
849 public struct CanvasBounds {
855 [CCode (type_id = "GOO_TYPE_CANVAS_ITEM_SIMPLE_DATA", cheader_filename = "goocanvas.h")]
856 public struct CanvasItemSimpleData {
857 public Cairo.Matrix? transform;
858 public weak GLib.Array<Goo.CanvasPathCommand> clip_path_commands;
859 public weak Goo.CanvasStyle style;
860 public weak string tooltip;
861 public double visibility_threshold;
862 public uint visibility;
863 public uint pointer_events;
864 public uint can_focus;
865 public uint own_style;
866 public uint clip_fill_rule;
867 public uint is_static;
868 public uint cache_setting;
869 public uint has_tooltip;
871 [CCode (type_id = "GOO_TYPE_CANVAS_PATH_COMMAND", cheader_filename = "goocanvas.h")]
872 public struct CanvasPathCommand {
873 public Goo.CanvasPathCommandSimple simple;
874 public Goo.CanvasPathCommandCurve curve;
875 public Goo.CanvasPathCommandArc arc;
877 [CCode (type_id = "GOO_TYPE_CANVAS_PATH_COMMAND_ARC", cheader_filename = "goocanvas.h")]
878 public struct CanvasPathCommandArc {
880 public uint relative;
881 public uint large_arc_flag;
882 public uint sweep_flag;
885 public double x_axis_rotation;
889 [CCode (type_id = "GOO_TYPE_CANVAS_PATH_COMMAND_CURVE", cheader_filename = "goocanvas.h")]
890 public struct CanvasPathCommandCurve {
892 public uint relative;
900 [CCode (type_id = "GOO_TYPE_CANVAS_PATH_COMMAND_SIMPLE", cheader_filename = "goocanvas.h")]
901 public struct CanvasPathCommandSimple {
903 public uint relative;
907 [CCode (type_id = "GOO_TYPE_CANVAS_STYLE_PROPERTY", cheader_filename = "goocanvas.h")]
908 public struct CanvasStyleProperty {
909 public GLib.Quark id;
910 public GLib.Value value;
912 [CCode (cprefix = "CAIRO_ANTIALIAS_", cheader_filename = "goocanvas.h")]
913 public enum CairoAntialias {
919 [CCode (cprefix = "CAIRO_FILL_RULE_", cheader_filename = "goocanvas.h")]
920 public enum CairoFillRule {
924 [CCode (cprefix = "CAIRO_HINT_METRICS_", cheader_filename = "goocanvas.h")]
925 public enum CairoHintMetrics {
930 [CCode (cprefix = "CAIRO_LINE_CAP_", cheader_filename = "goocanvas.h")]
931 public enum CairoLineCap {
936 [CCode (cprefix = "CAIRO_LINE_JOIN_", cheader_filename = "goocanvas.h")]
937 public enum CairoLineJoin {
942 [CCode (cprefix = "CAIRO_OPERATOR_", cheader_filename = "goocanvas.h")]
943 public enum CairoOperator {
959 [CCode (cprefix = "GOO_CANVAS_ANIMATE_", cheader_filename = "goocanvas.h")]
960 public enum CanvasAnimateType {
966 [CCode (cprefix = "GOO_CANVAS_ITEM_", cheader_filename = "goocanvas.h")]
967 public enum CanvasItemVisibility {
971 VISIBLE_ABOVE_THRESHOLD
973 [CCode (cprefix = "GOO_CANVAS_PATH_", cheader_filename = "goocanvas.h")]
974 public enum CanvasPathCommandType {
983 SMOOTH_QUADRATIC_CURVE_TO,
986 [CCode (cprefix = "GOO_CANVAS_EVENTS_", cheader_filename = "goocanvas.h")]
988 public enum CanvasPointerEvents {
1003 [CCode (cheader_filename = "goocanvas.h")]
1004 public const int NUM_ARROW_POINTS;