1 /* goocanvas.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Goo", lower_case_cprefix = "goo_")]
4 [Version (replacement = "goocanvas-2.0")]
6 [CCode (cheader_filename = "goocanvas.h", copy_function = "goo_cairo_matrix_copy", type_id = "GOO_TYPE_CAIRO_MATRIX")]
8 public class CairoMatrix {
15 public static Cairo.Matrix copy (Cairo.Matrix matrix);
17 [CCode (cheader_filename = "goocanvas.h", type_id = "goo_cairo_pattern_get_type ()")]
19 public class CairoPattern {
21 [CCode (cheader_filename = "goocanvas.h")]
22 public class Canvas : Gtk.Container, Atk.Implementor, Gtk.Buildable {
23 [CCode (has_construct_function = false)]
25 public void convert_bounds_to_item_space (Goo.CanvasItem item, ref Goo.CanvasBounds bounds);
26 public void convert_from_item_space (Goo.CanvasItem item, ref double x, ref double y);
27 public void convert_from_pixels (ref double x, ref double y);
28 public void convert_to_item_space (Goo.CanvasItem item, ref double x, ref double y);
29 public void convert_to_pixels (ref double x, ref double y);
30 public unowned Cairo.Context create_cairo_context ();
31 public virtual unowned Goo.CanvasItem create_item (Goo.CanvasItemModel model);
32 public static void create_path (GLib.Array<Goo.CanvasPathCommand> commands, Cairo.Context cr);
33 public void get_bounds (out unowned double? left, out unowned double? top, out unowned double? right, out unowned double? bottom);
34 public double get_default_line_width ();
35 public unowned Goo.CanvasItem? get_item (Goo.CanvasItemModel model);
36 public unowned Goo.CanvasItem? get_item_at (double x, double y, bool is_pointer_event);
37 public GLib.List<weak Goo.CanvasItem>? get_items_at (double x, double y, bool is_pointer_event);
38 public GLib.List<weak Goo.CanvasItem>? get_items_in_area (Goo.CanvasBounds area, bool inside_area, bool allow_overlaps, bool include_containers);
39 public unowned Goo.CanvasItem? get_root_item ();
40 public unowned Goo.CanvasItemModel? get_root_item_model ();
41 public double get_scale ();
42 public unowned Goo.CanvasItem? get_static_root_item ();
43 public unowned Goo.CanvasItemModel? get_static_root_item_model ();
44 public void grab_focus (Goo.CanvasItem item);
45 public Gdk.GrabStatus keyboard_grab (Goo.CanvasItem item, bool owner_events, uint32 time);
46 public void keyboard_ungrab (Goo.CanvasItem item, uint32 time);
47 public static GLib.Array<Goo.CanvasPathCommand> parse_path_data (string path_data);
48 public Gdk.GrabStatus pointer_grab (Goo.CanvasItem item, Gdk.EventMask event_mask, Gdk.Cursor? cursor, uint32 time);
49 public void pointer_ungrab (Goo.CanvasItem item, uint32 time);
50 public void register_widget_item (Goo.CanvasWidget witem);
51 public void render (Cairo.Context cr, Goo.CanvasBounds? bounds, double scale);
52 public void request_item_redraw (Goo.CanvasBounds bounds, bool is_static);
53 public void request_redraw (Goo.CanvasBounds bounds);
54 public void request_update ();
55 public void scroll_to (double left, double top);
56 public void set_bounds (double left, double top, double right, double bottom);
57 public void set_root_item (Goo.CanvasItem item);
58 public void set_root_item_model (Goo.CanvasItemModel model);
59 public void set_scale (double scale);
60 public void set_static_root_item (Goo.CanvasItem item);
61 public void set_static_root_item_model (Goo.CanvasItemModel model);
62 public void unregister_item (Goo.CanvasItemModel model);
63 public void unregister_widget_item (Goo.CanvasWidget witem);
64 public void update ();
66 public Gtk.AnchorType anchor { get; set; }
68 public bool automatic_bounds { get; set; }
70 public string background_color { set; }
72 public uint background_color_rgb { set; }
74 public bool bounds_from_origin { get; set; }
76 public double bounds_padding { get; set; }
78 public bool clear_background { get; set; }
80 public bool integer_layout { get; set; }
82 public bool redraw_when_scrolled { get; set; }
84 public double resolution_x { get; set; }
86 public double resolution_y { get; set; }
87 public double scale { get; set; }
89 public double scale_x { get; set; }
91 public double scale_y { get; set; }
93 public Gtk.Unit units { get; set; }
95 public double x1 { get; set; }
97 public double x2 { get; set; }
99 public double y1 { get; set; }
101 public double y2 { get; set; }
102 public virtual signal void item_created (Goo.CanvasItem item, Goo.CanvasItemModel model);
103 public virtual signal void set_scroll_adjustments (Gtk.Adjustment hadjustment, Gtk.Adjustment vadjustment);
105 [CCode (cheader_filename = "goocanvas.h")]
106 public class CanvasEllipse : Goo.CanvasItemSimple, Goo.CanvasItem {
107 [CCode (has_construct_function = false)]
108 protected CanvasEllipse ();
109 [CCode (cname = "goo_canvas_ellipse_new", type = "GooCanvasItem*")]
110 public static unowned Goo.CanvasEllipse create (Goo.CanvasItem? parent, double center_x, double center_y, double radius_x, double radius_y, ...);
112 public double center_x { get; set; }
114 public double center_y { get; set; }
116 public double height { get; set; }
118 public double radius_x { get; set; }
120 public double radius_y { get; set; }
122 public double width { get; set; }
124 public double x { get; set; }
126 public double y { get; set; }
128 [CCode (cheader_filename = "goocanvas.h")]
129 public class CanvasEllipseModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
130 [CCode (has_construct_function = false)]
131 protected CanvasEllipseModel ();
132 [CCode (cname = "goo_canvas_ellipse_model_new", type = "GooCanvasItemModel*")]
133 public static unowned Goo.CanvasEllipseModel create (Goo.CanvasItemModel? parent, double center_x, double center_y, double radius_x, double radius_y, ...);
135 public double center_x { get; set; }
137 public double center_y { get; set; }
139 public double height { get; set; }
141 public double radius_x { get; set; }
143 public double radius_y { get; set; }
145 public double width { get; set; }
147 public double x { get; set; }
149 public double y { get; set; }
151 [CCode (cheader_filename = "goocanvas.h")]
152 public class CanvasGrid : Goo.CanvasItemSimple, Goo.CanvasItem {
153 [CCode (has_construct_function = false)]
154 protected CanvasGrid ();
155 [CCode (cname = "goo_canvas_grid_new", type = "GooCanvasItemModel*")]
156 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, ...);
158 public string border_color { set; }
160 public uint border_color_rgba { get; set; }
162 public Goo.CairoPattern border_pattern { owned get; set; }
164 public Gdk.Pixbuf border_pixbuf { set; }
166 public double border_width { get; set; }
168 public double height { get; set; }
170 public string horz_grid_line_color { set; }
172 public uint horz_grid_line_color_rgba { get; set; }
174 public Goo.CairoPattern horz_grid_line_pattern { owned get; set; }
176 public Gdk.Pixbuf horz_grid_line_pixbuf { set; }
178 public double horz_grid_line_width { get; set; }
180 public bool show_horz_grid_lines { get; set; }
182 public bool show_vert_grid_lines { get; set; }
184 public string vert_grid_line_color { set; }
186 public uint vert_grid_line_color_rgba { get; set; }
188 public Goo.CairoPattern vert_grid_line_pattern { owned get; set; }
190 public Gdk.Pixbuf vert_grid_line_pixbuf { set; }
192 public double vert_grid_line_width { get; set; }
194 public bool vert_grid_lines_on_top { get; set; }
196 public double width { get; set; }
198 public double x { get; set; }
200 public double x_offset { get; set; }
202 public double x_step { get; set; }
204 public double y { get; set; }
206 public double y_offset { get; set; }
208 public double y_step { get; set; }
210 [CCode (cheader_filename = "goocanvas.h")]
211 public class CanvasGridModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
212 [CCode (has_construct_function = false)]
213 protected CanvasGridModel ();
214 [CCode (cname = "goo_canvas_grid_model_new", type = "GooCanvasItemModel*")]
215 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, ...);
217 public string border_color { set; }
219 public uint border_color_rgba { get; set; }
221 public Goo.CairoPattern border_pattern { owned get; set; }
223 public Gdk.Pixbuf border_pixbuf { set; }
225 public double border_width { get; set; }
227 public double height { get; set; }
229 public string horz_grid_line_color { set; }
231 public uint horz_grid_line_color_rgba { get; set; }
233 public Goo.CairoPattern horz_grid_line_pattern { owned get; set; }
235 public Gdk.Pixbuf horz_grid_line_pixbuf { set; }
237 public double horz_grid_line_width { get; set; }
239 public bool show_horz_grid_lines { get; set; }
241 public bool show_vert_grid_lines { get; set; }
243 public string vert_grid_line_color { set; }
245 public uint vert_grid_line_color_rgba { get; set; }
247 public Goo.CairoPattern vert_grid_line_pattern { owned get; set; }
249 public Gdk.Pixbuf vert_grid_line_pixbuf { set; }
251 public double vert_grid_line_width { get; set; }
253 public bool vert_grid_lines_on_top { get; set; }
255 public double width { get; set; }
257 public double x { get; set; }
259 public double x_offset { get; set; }
261 public double x_step { get; set; }
263 public double y { get; set; }
265 public double y_offset { get; set; }
267 public double y_step { get; set; }
269 [CCode (cheader_filename = "goocanvas.h")]
270 public class CanvasGroup : Goo.CanvasItemSimple, Goo.CanvasItem {
271 [CCode (has_construct_function = false)]
272 protected CanvasGroup ();
273 [CCode (cname = "goo_canvas_group_new", type = "GooCanvasItem*")]
274 public static unowned Goo.CanvasGroup create (Goo.CanvasItem? parent, ...);
276 public double height { get; set; }
278 public double width { get; set; }
280 public double x { get; set; }
282 public double y { get; set; }
284 [CCode (cheader_filename = "goocanvas.h")]
285 public class CanvasGroupModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
286 [CCode (has_construct_function = false)]
287 protected CanvasGroupModel ();
288 [CCode (cname = "goo_canvas_group_model_new", type = "GooCanvasItemModel*")]
289 public static unowned Goo.CanvasGroupModel create (Goo.CanvasItemModel? parent, ...);
291 public double height { get; set; }
293 public double width { get; set; }
295 public double x { get; set; }
297 public double y { get; set; }
299 [CCode (cheader_filename = "goocanvas.h")]
300 public class CanvasImage : Goo.CanvasItemSimple, Goo.CanvasItem {
301 [CCode (has_construct_function = false)]
302 protected CanvasImage ();
303 [CCode (cname = "goo_canvas_image_new", type = "GooCanvasItem*")]
304 public static unowned Goo.CanvasImage create (Goo.CanvasItem? parent, Gdk.Pixbuf pixbuf, double x, double y, ...);
306 public double height { get; set; }
308 public Goo.CairoPattern pattern { owned get; set; }
310 public Gdk.Pixbuf pixbuf { set; }
312 public bool scale_to_fit { get; set; }
314 public double width { get; set; }
316 public double x { get; set; }
318 public double y { get; set; }
320 [CCode (cheader_filename = "goocanvas.h")]
321 public class CanvasImageModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
322 [CCode (has_construct_function = false)]
323 protected CanvasImageModel ();
324 [CCode (cname = "goo_canvas_image_model_new", type = "GooCanvasItemModel*")]
325 public static unowned Goo.CanvasImageModel create (Goo.CanvasItemModel? parent, Gdk.Pixbuf pixbuf, double x, double y, ...);
327 public double height { get; set; }
329 public Goo.CairoPattern pattern { owned get; set; }
331 public Gdk.Pixbuf pixbuf { set; }
333 public bool scale_to_fit { get; set; }
335 public double width { get; set; }
337 public double x { get; set; }
339 public double y { get; set; }
341 [CCode (cheader_filename = "goocanvas.h")]
342 public class CanvasItemModelSimple : GLib.Object, Goo.CanvasItemModel {
343 public weak Goo.CanvasItemModel parent;
344 public Goo.CanvasItemSimpleData simple_data;
345 [CCode (has_construct_function = false)]
346 protected CanvasItemModelSimple ();
348 public Goo.CairoAntialias antialias { get; set; }
350 public Goo.CairoFillRule clip_fill_rule { get; set; }
352 public string clip_path { set; }
354 public string fill_color { set; }
356 public uint fill_color_rgba { get; set; }
358 public Goo.CairoPattern fill_pattern { owned get; set; }
360 public Gdk.Pixbuf fill_pixbuf { set; }
362 public Goo.CairoFillRule fill_rule { get; set; }
364 public string font { owned get; set; }
366 public Pango.FontDescription font_desc { owned get; set; }
368 public Goo.CairoHintMetrics hint_metrics { get; set; }
370 public Goo.CairoLineCap line_cap { get; set; }
372 public Goo.CanvasLineDash line_dash { owned get; set; }
374 public Goo.CairoLineJoin line_join { get; set; }
376 public double line_join_miter_limit { get; set; }
378 public double line_width { get; set; }
380 public Goo.CairoOperator operator { get; set; }
382 public string stroke_color { set; }
384 public uint stroke_color_rgba { get; set; }
386 public Goo.CairoPattern stroke_pattern { owned get; set; }
388 public Gdk.Pixbuf stroke_pixbuf { set; }
390 [CCode (cheader_filename = "goocanvas.h")]
391 public class CanvasItemSimple : GLib.Object, Goo.CanvasItem {
392 public Goo.CanvasBounds bounds;
393 public weak Goo.Canvas canvas;
394 public weak Goo.CanvasItemModelSimple model;
395 public uint need_entire_subtree_update;
396 public uint need_update;
397 public weak Goo.CanvasItem parent;
398 public Goo.CanvasItemSimpleData simple_data;
399 [CCode (has_construct_function = false)]
400 protected CanvasItemSimple ();
401 public void changed (bool recompute_bounds);
402 public bool check_in_path (double x, double y, Cairo.Context cr, Goo.CanvasPointerEvents pointer_events);
403 public void check_style ();
404 public double get_line_width ();
405 public void get_path_bounds (Cairo.Context cr, out Goo.CanvasBounds bounds);
406 public void paint_path (Cairo.Context cr);
408 public virtual void simple_create_path (Cairo.Context cr);
410 public virtual bool simple_is_item_at (double x, double y, Cairo.Context cr, bool is_pointer_event);
412 public virtual void simple_paint (Cairo.Context cr, Goo.CanvasBounds bounds);
414 public virtual void simple_update (Cairo.Context cr);
415 public void user_bounds_to_device (Cairo.Context cr, Goo.CanvasBounds bounds);
416 public void user_bounds_to_parent (Cairo.Context cr, Goo.CanvasBounds bounds);
418 public Goo.CairoAntialias antialias { get; set; }
420 public Goo.CairoFillRule clip_fill_rule { get; set; }
422 public string clip_path { set; }
424 public string fill_color { set; }
426 public uint fill_color_rgba { get; set; }
428 public Goo.CairoPattern fill_pattern { owned get; set; }
430 public Gdk.Pixbuf fill_pixbuf { set; }
432 public Goo.CairoFillRule fill_rule { get; set; }
434 public string font { owned get; set; }
436 public Pango.FontDescription font_desc { owned get; set; }
438 public Goo.CairoHintMetrics hint_metrics { get; set; }
440 public Goo.CairoLineCap line_cap { get; set; }
442 public Goo.CanvasLineDash line_dash { owned get; set; }
444 public Goo.CairoLineJoin line_join { get; set; }
446 public double line_join_miter_limit { get; set; }
448 public double line_width { get; set; }
450 public Goo.CairoOperator operator { get; set; }
452 public string stroke_color { set; }
454 public uint stroke_color_rgba { get; set; }
456 public Goo.CairoPattern stroke_pattern { owned get; set; }
458 public Gdk.Pixbuf stroke_pixbuf { set; }
460 [CCode (cheader_filename = "goocanvas.h", ref_function = "goo_canvas_line_dash_ref", type_id = "GOO_TYPE_CANVAS_LINE_DASH", unref_function = "goo_canvas_line_dash_unref")]
462 public class CanvasLineDash {
463 public double dash_offset;
464 public double* dashes;
465 public int num_dashes;
466 public int ref_count;
467 [CCode (has_construct_function = false)]
468 public CanvasLineDash (int num_dashes);
469 [CCode (has_construct_function = false)]
470 public CanvasLineDash.newv (int num_dashes, double* dashes);
472 [CCode (cheader_filename = "goocanvas.h")]
473 public class CanvasPath : Goo.CanvasItemSimple, Goo.CanvasItem {
474 [CCode (has_construct_function = false)]
475 protected CanvasPath ();
476 [CCode (cname = "goo_canvas_path_new", type = "GooCanvasItem*")]
477 public static unowned Goo.CanvasPath create (Goo.CanvasItem? parent, string path_data, ...);
479 public string data { set; }
481 public double height { get; set; }
483 public double width { get; set; }
485 public double x { get; set; }
487 public double y { get; set; }
489 [CCode (cheader_filename = "goocanvas.h")]
490 public class CanvasPathModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
491 [CCode (has_construct_function = false)]
492 protected CanvasPathModel ();
493 [CCode (cname = "goo_canvas_path_model_new", type = "GooCanvasItemModel*")]
494 public static unowned Goo.CanvasPathModel create (Goo.CanvasItemModel? parent, string path_data, ...);
496 public string data { set; }
498 public double height { get; set; }
500 public double width { get; set; }
502 public double x { get; set; }
504 public double y { get; set; }
506 [CCode (cheader_filename = "goocanvas.h", ref_function = "goo_canvas_points_ref", type_id = "GOO_TYPE_CANVAS_POINTS", unref_function = "goo_canvas_points_unref")]
508 public class CanvasPoints {
509 public double* coords;
510 public int num_points;
511 public int ref_count;
512 [CCode (has_construct_function = false)]
513 public CanvasPoints (int num_points);
515 [CCode (cheader_filename = "goocanvas.h")]
516 public class CanvasPolyline : Goo.CanvasItemSimple, Goo.CanvasItem {
517 [CCode (has_construct_function = false)]
518 protected CanvasPolyline ();
519 [CCode (cname = "goo_canvas_polyline_new", type = "GooCanvasItem*")]
520 public static unowned Goo.CanvasPolyline create (Goo.CanvasItem? parent, bool close_path, int num_points, ...);
521 [CCode (cname = "goo_canvas_polyline_new_line", type = "GooCanvasItem*")]
522 public static unowned Goo.CanvasPolyline create_line (Goo.CanvasItem? parent, double x1, double y1, double x2, double y2, ...);
524 public double arrow_length { get; set; }
526 public double arrow_tip_length { get; set; }
528 public double arrow_width { get; set; }
530 public bool close_path { get; set; }
532 public bool end_arrow { get; set; }
534 public double height { get; set; }
536 public Goo.CanvasPoints points { owned get; set; }
538 public bool start_arrow { get; set; }
540 public double width { get; set; }
542 public double x { get; set; }
544 public double y { get; set; }
546 [CCode (cheader_filename = "goocanvas.h")]
548 public class CanvasPolylineArrowData {
549 public double arrow_length;
550 public double arrow_tip_length;
551 public double arrow_width;
552 [CCode (array_length = false)]
553 public weak double[] end_arrow_coords;
554 [CCode (array_length = false)]
555 public weak double[] line_end;
556 [CCode (array_length = false)]
557 public weak double[] line_start;
558 [CCode (array_length = false)]
559 public weak double[] start_arrow_coords;
561 [CCode (cheader_filename = "goocanvas.h")]
562 public class CanvasPolylineModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
563 [CCode (has_construct_function = false)]
564 protected CanvasPolylineModel ();
565 [CCode (cname = "goo_canvas_polyline_model_new", type = "GooCanvasItemModel*")]
566 public static unowned Goo.CanvasPolylineModel create (Goo.CanvasItemModel? parent, bool close_path, int num_points, ...);
567 [CCode (cname = "goo_canvas_polyline_model_new_line", type = "GooCanvasItemModel*")]
568 public static unowned Goo.CanvasPolylineModel create_line (Goo.CanvasItemModel? parent, double x1, double y1, double x2, double y2, ...);
570 public double arrow_length { get; set; }
572 public double arrow_tip_length { get; set; }
574 public double arrow_width { get; set; }
576 public bool close_path { get; set; }
578 public bool end_arrow { get; set; }
580 public double height { get; set; }
582 public Goo.CanvasPoints points { owned get; set; }
584 public bool start_arrow { get; set; }
586 public double width { get; set; }
588 public double x { get; set; }
590 public double y { get; set; }
592 [CCode (cheader_filename = "goocanvas.h")]
593 public class CanvasRect : Goo.CanvasItemSimple, Goo.CanvasItem {
594 [CCode (has_construct_function = false)]
595 protected CanvasRect ();
596 [CCode (cname = "goo_canvas_rect_new", type = "GooCanvasItem*")]
597 public static unowned Goo.CanvasRect create (Goo.CanvasItem? parent, double x, double y, double width, double height, ...);
599 public double height { get; set; }
601 public double radius_x { get; set; }
603 public double radius_y { get; set; }
605 public double width { get; set; }
607 public double x { get; set; }
609 public double y { get; set; }
611 [CCode (cheader_filename = "goocanvas.h")]
612 public class CanvasRectModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
613 [CCode (has_construct_function = false)]
614 protected CanvasRectModel ();
615 [CCode (cname = "goo_canvas_rect_model_new", type = "GooCanvasItemModel*")]
616 public static unowned Goo.CanvasRectModel create (Goo.CanvasItemModel? parent, double x, double y, double width, double height, ...);
618 public double height { get; set; }
620 public double radius_x { get; set; }
622 public double radius_y { get; set; }
624 public double width { get; set; }
626 public double x { get; set; }
628 public double y { get; set; }
630 [CCode (cheader_filename = "goocanvas.h")]
631 public class CanvasStyle : GLib.Object {
632 public weak Goo.CanvasStyle? parent;
633 public weak GLib.Array<Goo.CanvasStyleProperty> properties;
634 [CCode (has_construct_function = false)]
635 public CanvasStyle ();
636 public Goo.CanvasStyle copy ();
637 public unowned Goo.CanvasStyle? get_parent ();
638 public unowned GLib.Value? get_property (GLib.Quark property_id);
639 public bool set_fill_options (Cairo.Context cr);
640 public void set_parent (Goo.CanvasStyle? parent);
641 public void set_property (GLib.Quark property_id, GLib.Value value);
642 public bool set_stroke_options (Cairo.Context cr);
644 [CCode (cheader_filename = "goocanvas.h")]
645 public class CanvasTable : Goo.CanvasGroup, Goo.CanvasItem {
646 [CCode (has_construct_function = false)]
647 protected CanvasTable ();
648 [CCode (cname = "goo_canvas_table_new", type = "GooCanvasItem*")]
649 public static unowned Goo.CanvasTable create (Goo.CanvasItem? parent, ...);
651 public double column_spacing { get; set; }
653 public bool homogeneous_columns { get; set; }
655 public bool homogeneous_rows { get; set; }
657 public double horz_grid_line_width { get; set; }
659 public double row_spacing { get; set; }
661 public double vert_grid_line_width { get; set; }
663 public double x_border_spacing { get; set; }
665 public double y_border_spacing { get; set; }
667 [CCode (cheader_filename = "goocanvas.h")]
668 public class CanvasTableModel : Goo.CanvasGroupModel, Goo.CanvasItemModel {
669 [CCode (has_construct_function = false)]
670 protected CanvasTableModel ();
671 [CCode (cname = "goo_canvas_table_model_new", type = "GooCanvasItemModel*")]
672 public static unowned Goo.CanvasTableModel create (Goo.CanvasItemModel? parent, ...);
674 public double column_spacing { get; set; }
676 public bool homogeneous_columns { get; set; }
678 public bool homogeneous_rows { get; set; }
680 public double horz_grid_line_width { get; set; }
682 public double row_spacing { get; set; }
684 public double vert_grid_line_width { get; set; }
686 public double x_border_spacing { get; set; }
688 public double y_border_spacing { get; set; }
690 [CCode (cheader_filename = "goocanvas.h")]
691 public class CanvasText : Goo.CanvasItemSimple, Goo.CanvasItem {
692 [CCode (has_construct_function = false)]
693 protected CanvasText ();
694 [CCode (cname = "goo_canvas_text_new", type = "GooCanvasItem*")]
695 public static unowned Goo.CanvasText create (Goo.CanvasItem? parent, string str, double x, double y, double width, Gtk.AnchorType anchor, ...);
696 public void get_natural_extents (out unowned Pango.Rectangle? ink_rect, out unowned Pango.Rectangle? logical_rect);
698 public Pango.Alignment alignment { get; set; }
700 public Gtk.AnchorType anchor { get; set; }
702 public Pango.EllipsizeMode ellipsize { get; set; }
704 public double height { get; set; }
706 public string text { owned get; set; }
708 public bool use_markup { get; set; }
710 public double width { get; set; }
712 public Pango.WrapMode wrap { get; set; }
714 public double x { get; set; }
716 public double y { get; set; }
718 [CCode (cheader_filename = "goocanvas.h")]
719 public class CanvasTextModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
720 [CCode (has_construct_function = false)]
721 protected CanvasTextModel ();
722 [CCode (cname = "goo_canvas_text_model_new", type = "GooCanvasItemModel*")]
723 public static unowned Goo.CanvasTextModel create (Goo.CanvasItemModel? parent, string str, double x, double y, double width, Gtk.AnchorType anchor, ...);
725 public Pango.Alignment alignment { get; set; }
727 public Gtk.AnchorType anchor { get; set; }
729 public Pango.EllipsizeMode ellipsize { get; set; }
731 public double height { get; set; }
733 public string text { owned get; set; }
735 public bool use_markup { get; set; }
737 public double width { get; set; }
739 public Pango.WrapMode wrap { get; set; }
741 public double x { get; set; }
743 public double y { get; set; }
745 [CCode (cheader_filename = "goocanvas.h")]
746 public class CanvasWidget : Goo.CanvasItemSimple, Goo.CanvasItem {
747 [CCode (has_construct_function = false)]
748 protected CanvasWidget ();
749 [CCode (cname = "goo_canvas_widget_new", type = "GooCanvasItem*")]
750 public static unowned Goo.CanvasWidget create (Goo.CanvasItem? parent, Gtk.Widget widget, double x, double y, double width, double height, ...);
752 public Gtk.AnchorType anchor { get; set; }
754 public double height { get; set; }
756 public Gtk.Widget widget { owned get; set; }
758 public double width { get; set; }
760 public double x { get; set; }
762 public double y { get; set; }
764 [CCode (cheader_filename = "goocanvas.h")]
765 public interface CanvasItem : GLib.Object {
766 public abstract void add_child (Goo.CanvasItem child, int position);
767 public abstract void allocate_area (Cairo.Context cr, Goo.CanvasBounds requested_area, Goo.CanvasBounds allocated_area, double x_offset, double y_offset);
768 public void animate (double x, double y, double scale, double degrees, bool absolute, int duration, int step_time, Goo.CanvasAnimateType type);
769 public static unowned GLib.ParamSpec? class_find_child_property (GLib.ObjectClass iclass, string property_name);
770 public static void class_install_child_property (GLib.ObjectClass iclass, uint property_id, GLib.ParamSpec pspec);
771 public static GLib.ParamSpec[] class_list_child_properties (GLib.ObjectClass iclass, out uint n_properties);
772 public void ensure_updated ();
773 public int find_child (Goo.CanvasItem child);
774 public abstract void get_bounds (out Goo.CanvasBounds bounds);
775 public abstract unowned Goo.Canvas get_canvas ();
776 public abstract unowned Goo.CanvasItem? get_child (int child_num);
777 public void get_child_properties (Goo.CanvasItem child, ...);
778 public abstract void get_child_property (Goo.CanvasItem child, string property_name, out GLib.Value value);
779 public abstract bool get_is_static ();
780 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);
781 public abstract unowned Goo.CanvasItemModel? get_model ();
782 public abstract int get_n_children ();
783 public abstract unowned Goo.CanvasItem? get_parent ();
784 public abstract bool get_requested_area (Cairo.Context cr, out Goo.CanvasBounds requested_area);
785 public abstract double get_requested_height (Cairo.Context cr, double width);
786 public bool get_simple_transform (out double x, out double y, out double scale, out double rotation);
787 public abstract unowned Goo.CanvasStyle get_style ();
788 public abstract bool get_transform (out Cairo.Matrix transform);
789 public abstract bool get_transform_for_child (Goo.CanvasItem child, out Cairo.Matrix transform);
790 public bool is_container ();
791 public abstract bool is_visible ();
792 public void lower (Goo.CanvasItem? below);
793 public abstract void move_child (int old_position, int new_position);
794 public abstract void paint (Cairo.Context cr, Goo.CanvasBounds bounds, double scale);
795 public void raise (Goo.CanvasItem? above);
796 public void remove ();
797 public abstract void remove_child (int child_num);
798 public abstract void request_update ();
799 public void rotate (double degrees, double cx, double cy);
800 public void scale (double sx, double sy);
801 public abstract void set_canvas (Goo.Canvas canvas);
802 public void set_child_properties (Goo.CanvasItem child, ...);
803 public abstract void set_child_property (Goo.CanvasItem child, string property_name, GLib.Value value);
804 public abstract void set_is_static (bool is_static);
805 public abstract void set_model (Goo.CanvasItemModel model);
806 public abstract void set_parent (Goo.CanvasItem parent);
807 public void set_simple_transform (double x, double y, double scale, double rotation);
808 public abstract void set_style (Goo.CanvasStyle style);
809 public abstract void set_transform (Cairo.Matrix? transform);
810 public void skew_x (double degrees, double cx, double cy);
811 public void skew_y (double degrees, double cx, double cy);
812 public void stop_animation ();
813 public void translate (double tx, double ty);
814 public abstract void update (bool entire_tree, Cairo.Context cr, Goo.CanvasBounds bounds);
816 public bool can_focus { get; set; }
818 public string description { owned get; set; }
819 public Goo.CanvasItem parent { get; set; }
821 public Goo.CanvasPointerEvents pointer_events { get; set; }
823 public string title { owned get; set; }
825 public string tooltip { owned get; set; }
826 public Goo.CairoMatrix transform { get; set; }
828 public Goo.CanvasItemVisibility visibility { get; set; }
830 public double visibility_threshold { get; set; }
831 public signal void animation_finished (bool stopped);
832 public signal bool button_press_event (Goo.CanvasItem target, Gdk.EventButton event);
833 public signal bool button_release_event (Goo.CanvasItem target, Gdk.EventButton event);
834 public signal void child_notify (GLib.ParamSpec pspec);
835 public signal bool enter_notify_event (Goo.CanvasItem target, Gdk.EventCrossing event);
836 public signal bool focus_in_event (Goo.CanvasItem target, Gdk.EventFocus event);
837 public signal bool focus_out_event (Goo.CanvasItem target, Gdk.EventFocus event);
838 public signal bool grab_broken_event (Goo.CanvasItem target, Gdk.EventGrabBroken event);
839 public signal bool key_press_event (Goo.CanvasItem target, Gdk.EventKey event);
840 public signal bool key_release_event (Goo.CanvasItem target, Gdk.EventKey event);
841 public signal bool leave_notify_event (Goo.CanvasItem target, Gdk.EventCrossing event);
842 public signal bool motion_notify_event (Goo.CanvasItem target, Gdk.EventMotion event);
843 public signal bool query_tooltip (double x, double y, bool keyboard_tooltip, Gtk.Tooltip tooltip);
844 public signal bool scroll_event (Goo.CanvasItem target, Gdk.Event event);
846 [CCode (cheader_filename = "goocanvas.h")]
847 public interface CanvasItemModel : GLib.Object {
848 public abstract void add_child (Goo.CanvasItemModel child, int position);
849 public void animate (double x, double y, double scale, double degrees, bool absolute, int duration, int step_time, Goo.CanvasAnimateType type);
850 public static unowned GLib.ParamSpec? class_find_child_property (GLib.ObjectClass mclass, string property_name);
851 public static void class_install_child_property (GLib.ObjectClass mclass, uint property_id, GLib.ParamSpec pspec);
852 public static GLib.ParamSpec[] class_list_child_properties (GLib.ObjectClass iclass, out uint n_properties);
854 public abstract unowned Goo.CanvasItem create_item (Goo.Canvas canvas);
855 public int find_child (Goo.CanvasItemModel child);
856 public abstract unowned Goo.CanvasItemModel? get_child (int child_num);
857 public void get_child_properties (Goo.CanvasItem child, ...);
858 public abstract void get_child_property (Goo.CanvasItemModel child, string property_name, out GLib.Value value);
859 public abstract int get_n_children ();
860 public abstract unowned Goo.CanvasItemModel? get_parent ();
861 public bool get_simple_transform (out double x, out double y, out double scale, out double rotation);
862 public abstract unowned Goo.CanvasStyle get_style ();
863 public abstract bool get_transform (out Cairo.Matrix transform);
864 public bool is_container ();
865 public void lower (Goo.CanvasItemModel? below);
866 public abstract void move_child (int old_position, int new_position);
867 public void raise (Goo.CanvasItemModel? above);
868 public void remove ();
869 public abstract void remove_child (int child_num);
870 public void rotate (double degrees, double cx, double cy);
871 public void scale (double sx, double sy);
872 public void set_child_properties (Goo.CanvasItem child, ...);
873 public abstract void set_child_property (Goo.CanvasItemModel child, string property_name, GLib.Value value);
874 public abstract void set_parent (Goo.CanvasItemModel parent);
875 public void set_simple_transform (double x, double y, double scale, double rotation);
876 public abstract void set_style (Goo.CanvasStyle style);
877 public abstract void set_transform (Cairo.Matrix? transform);
878 public void skew_x (double degrees, double cx, double cy);
879 public void skew_y (double degrees, double cx, double cy);
880 public void stop_animation ();
881 public void translate (double tx, double ty);
883 public bool can_focus { get; set; }
885 public string description { owned get; set; }
886 public Goo.CanvasItemModel parent { get; set; }
888 public Goo.CanvasPointerEvents pointer_events { get; set; }
890 public string title { owned get; set; }
892 public string tooltip { owned get; set; }
893 public Goo.CairoMatrix transform { get; set; }
895 public Goo.CanvasItemVisibility visibility { get; set; }
897 public double visibility_threshold { get; set; }
898 public signal void animation_finished (bool stopped);
899 public signal void changed (bool recompute_bounds);
900 public signal void child_added (int child_num);
901 public signal void child_moved (int old_child_num, int new_child_num);
902 public signal void child_notify (GLib.ParamSpec pspec);
903 public signal void child_removed (int child_num);
905 [CCode (cheader_filename = "goocanvas.h")]
906 public struct CanvasBounds {
912 [CCode (cheader_filename = "goocanvas.h")]
913 public struct CanvasItemSimpleData {
914 public Cairo.Matrix? transform;
915 public weak GLib.Array<Goo.CanvasPathCommand> clip_path_commands;
916 public weak Goo.CanvasStyle style;
917 public weak string tooltip;
918 public double visibility_threshold;
919 public uint visibility;
920 public uint pointer_events;
921 public uint can_focus;
922 public uint own_style;
923 public uint clip_fill_rule;
924 public uint is_static;
925 public uint cache_setting;
926 public uint has_tooltip;
928 [CCode (cheader_filename = "goocanvas.h", type_id = "GOO_TYPE_CANVAS_PATH_COMMAND")]
929 public struct CanvasPathCommand {
930 public Goo.CanvasPathCommandSimple simple;
931 public Goo.CanvasPathCommandCurve curve;
932 public Goo.CanvasPathCommandArc arc;
934 [CCode (cheader_filename = "goocanvas.h")]
935 public struct CanvasPathCommandArc {
937 public uint relative;
938 public uint large_arc_flag;
939 public uint sweep_flag;
942 public double x_axis_rotation;
946 [CCode (cheader_filename = "goocanvas.h")]
947 public struct CanvasPathCommandCurve {
949 public uint relative;
957 [CCode (cheader_filename = "goocanvas.h")]
958 public struct CanvasPathCommandSimple {
960 public uint relative;
964 [CCode (cheader_filename = "goocanvas.h")]
965 public struct CanvasStyleProperty {
966 public GLib.Quark id;
967 public GLib.Value value;
969 [CCode (cheader_filename = "goocanvas.h", cprefix = "CAIRO_ANTIALIAS_")]
970 public enum CairoAntialias {
976 [CCode (cheader_filename = "goocanvas.h", cprefix = "CAIRO_FILL_RULE_")]
977 public enum CairoFillRule {
981 [CCode (cheader_filename = "goocanvas.h", cprefix = "CAIRO_HINT_METRICS_")]
982 public enum CairoHintMetrics {
987 [CCode (cheader_filename = "goocanvas.h", cprefix = "CAIRO_LINE_CAP_")]
988 public enum CairoLineCap {
993 [CCode (cheader_filename = "goocanvas.h", cprefix = "CAIRO_LINE_JOIN_")]
994 public enum CairoLineJoin {
999 [CCode (cheader_filename = "goocanvas.h", cprefix = "CAIRO_OPERATOR_")]
1000 public enum CairoOperator {
1016 [CCode (cheader_filename = "goocanvas.h", cprefix = "GOO_CANVAS_ANIMATE_")]
1017 public enum CanvasAnimateType {
1023 [CCode (cheader_filename = "goocanvas.h", cprefix = "GOO_CANVAS_ITEM_")]
1024 public enum CanvasItemVisibility {
1028 VISIBLE_ABOVE_THRESHOLD
1030 [CCode (cheader_filename = "goocanvas.h", cprefix = "GOO_CANVAS_PATH_")]
1031 public enum CanvasPathCommandType {
1040 SMOOTH_QUADRATIC_CURVE_TO,
1043 [CCode (cheader_filename = "goocanvas.h", cprefix = "GOO_CANVAS_EVENTS_")]
1045 public enum CanvasPointerEvents {
1060 [CCode (cheader_filename = "goocanvas.h")]
1061 public const int NUM_ARROW_POINTS;