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 (out unowned double? left, out unowned double? top, out unowned double? right, out 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 GLib.List<weak Goo.CanvasItem>? get_items_at (double x, double y, bool is_pointer_event);
37 public GLib.List<weak 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 (has_construct_function = false)]
107 protected CanvasEllipse ();
108 [CCode (cname = "goo_canvas_ellipse_new")]
109 public static unowned Goo.CanvasEllipse create (Goo.CanvasItem? parent, double center_x, double center_y, double radius_x, double radius_y, ...);
111 public double center_x { get; set; }
113 public double center_y { get; set; }
115 public double height { get; set; }
117 public double radius_x { get; set; }
119 public double radius_y { get; set; }
121 public double width { get; set; }
123 public double x { get; set; }
125 public double y { get; set; }
127 [CCode (cheader_filename = "goocanvas.h")]
128 public class CanvasEllipseModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
129 [CCode (has_construct_function = false)]
130 protected CanvasEllipseModel ();
131 [CCode (cname = "goo_canvas_ellipse_model_new")]
132 public static unowned Goo.CanvasEllipseModel create (Goo.CanvasItemModel? parent, double center_x, double center_y, double radius_x, double radius_y, ...);
134 public double center_x { get; set; }
136 public double center_y { get; set; }
138 public double height { get; set; }
140 public double radius_x { get; set; }
142 public double radius_y { get; set; }
144 public double width { get; set; }
146 public double x { get; set; }
148 public double y { get; set; }
150 [CCode (cheader_filename = "goocanvas.h")]
151 public class CanvasGrid : Goo.CanvasItemSimple, Goo.CanvasItem {
152 [CCode (has_construct_function = false)]
153 protected CanvasGrid ();
154 [CCode (cname = "goo_canvas_grid_new")]
155 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, ...);
157 public string border_color { set; }
159 public uint border_color_rgba { get; set; }
161 public Goo.CairoPattern border_pattern { owned get; set; }
163 public Gdk.Pixbuf border_pixbuf { set; }
165 public double border_width { get; set; }
167 public double height { get; set; }
169 public string horz_grid_line_color { set; }
171 public uint horz_grid_line_color_rgba { get; set; }
173 public Goo.CairoPattern horz_grid_line_pattern { owned get; set; }
175 public Gdk.Pixbuf horz_grid_line_pixbuf { set; }
177 public double horz_grid_line_width { get; set; }
179 public bool show_horz_grid_lines { get; set; }
181 public bool show_vert_grid_lines { get; set; }
183 public string vert_grid_line_color { set; }
185 public uint vert_grid_line_color_rgba { get; set; }
187 public Goo.CairoPattern vert_grid_line_pattern { owned get; set; }
189 public Gdk.Pixbuf vert_grid_line_pixbuf { set; }
191 public double vert_grid_line_width { get; set; }
193 public bool vert_grid_lines_on_top { get; set; }
195 public double width { get; set; }
197 public double x { get; set; }
199 public double x_offset { get; set; }
201 public double x_step { get; set; }
203 public double y { get; set; }
205 public double y_offset { get; set; }
207 public double y_step { get; set; }
209 [CCode (cheader_filename = "goocanvas.h")]
210 public class CanvasGridModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
211 [CCode (has_construct_function = false)]
212 protected CanvasGridModel ();
213 [CCode (cname = "goo_canvas_grid_model_new")]
214 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, ...);
216 public string border_color { set; }
218 public uint border_color_rgba { get; set; }
220 public Goo.CairoPattern border_pattern { owned get; set; }
222 public Gdk.Pixbuf border_pixbuf { set; }
224 public double border_width { get; set; }
226 public double height { get; set; }
228 public string horz_grid_line_color { set; }
230 public uint horz_grid_line_color_rgba { get; set; }
232 public Goo.CairoPattern horz_grid_line_pattern { owned get; set; }
234 public Gdk.Pixbuf horz_grid_line_pixbuf { set; }
236 public double horz_grid_line_width { get; set; }
238 public bool show_horz_grid_lines { get; set; }
240 public bool show_vert_grid_lines { get; set; }
242 public string vert_grid_line_color { set; }
244 public uint vert_grid_line_color_rgba { get; set; }
246 public Goo.CairoPattern vert_grid_line_pattern { owned get; set; }
248 public Gdk.Pixbuf vert_grid_line_pixbuf { set; }
250 public double vert_grid_line_width { get; set; }
252 public bool vert_grid_lines_on_top { get; set; }
254 public double width { get; set; }
256 public double x { get; set; }
258 public double x_offset { get; set; }
260 public double x_step { get; set; }
262 public double y { get; set; }
264 public double y_offset { get; set; }
266 public double y_step { get; set; }
268 [CCode (cheader_filename = "goocanvas.h")]
269 public class CanvasGroup : Goo.CanvasItemSimple, Goo.CanvasItem {
270 [CCode (has_construct_function = false)]
271 protected CanvasGroup ();
272 [CCode (cname = "goo_canvas_group_new")]
273 public static unowned Goo.CanvasGroup create (Goo.CanvasItem? parent, ...);
275 public double height { get; set; }
277 public double width { get; set; }
279 public double x { get; set; }
281 public double y { get; set; }
283 [CCode (cheader_filename = "goocanvas.h")]
284 public class CanvasGroupModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
285 [CCode (has_construct_function = false)]
286 protected CanvasGroupModel ();
287 [CCode (cname = "goo_canvas_group_model_new")]
288 public static unowned Goo.CanvasGroupModel create (Goo.CanvasItemModel? parent, ...);
290 public double height { get; set; }
292 public double width { get; set; }
294 public double x { get; set; }
296 public double y { get; set; }
298 [CCode (cheader_filename = "goocanvas.h")]
299 public class CanvasImage : Goo.CanvasItemSimple, Goo.CanvasItem {
300 [CCode (has_construct_function = false)]
301 protected CanvasImage ();
302 [CCode (cname = "goo_canvas_image_new")]
303 public static unowned Goo.CanvasImage create (Goo.CanvasItem? parent, Gdk.Pixbuf pixbuf, double x, double y, ...);
305 public double height { get; set; }
307 public Goo.CairoPattern pattern { owned get; set; }
309 public Gdk.Pixbuf pixbuf { set; }
311 public bool scale_to_fit { get; set; }
313 public double width { get; set; }
315 public double x { get; set; }
317 public double y { get; set; }
319 [CCode (cheader_filename = "goocanvas.h")]
320 public class CanvasImageModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
321 [CCode (has_construct_function = false)]
322 protected CanvasImageModel ();
323 [CCode (cname = "goo_canvas_image_model_new")]
324 public static unowned Goo.CanvasImageModel create (Goo.CanvasItemModel? parent, Gdk.Pixbuf pixbuf, double x, double y, ...);
326 public double height { get; set; }
328 public Goo.CairoPattern pattern { owned get; set; }
330 public Gdk.Pixbuf pixbuf { set; }
332 public bool scale_to_fit { get; set; }
334 public double width { get; set; }
336 public double x { get; set; }
338 public double y { get; set; }
340 [CCode (cheader_filename = "goocanvas.h")]
341 public class CanvasItemModelSimple : GLib.Object, Goo.CanvasItemModel {
342 public weak Goo.CanvasItemModel parent;
343 public Goo.CanvasItemSimpleData simple_data;
344 [CCode (has_construct_function = false)]
345 protected CanvasItemModelSimple ();
347 public Goo.CairoAntialias antialias { get; set; }
349 public Goo.CairoFillRule clip_fill_rule { get; set; }
351 public string clip_path { set; }
353 public string fill_color { set; }
355 public uint fill_color_rgba { get; set; }
357 public Goo.CairoPattern fill_pattern { owned get; set; }
359 public Gdk.Pixbuf fill_pixbuf { set; }
361 public Goo.CairoFillRule fill_rule { get; set; }
363 public string font { owned get; set; }
365 public Pango.FontDescription font_desc { owned get; set; }
367 public Goo.CairoHintMetrics hint_metrics { get; set; }
369 public Goo.CairoLineCap line_cap { get; set; }
371 public Goo.CanvasLineDash line_dash { owned get; set; }
373 public Goo.CairoLineJoin line_join { get; set; }
375 public double line_join_miter_limit { get; set; }
377 public double line_width { get; set; }
379 public Goo.CairoOperator operator { get; set; }
381 public string stroke_color { set; }
383 public uint stroke_color_rgba { get; set; }
385 public Goo.CairoPattern stroke_pattern { owned get; set; }
387 public Gdk.Pixbuf stroke_pixbuf { set; }
389 [CCode (cheader_filename = "goocanvas.h")]
390 public class CanvasItemSimple : GLib.Object, Goo.CanvasItem {
391 public Goo.CanvasBounds bounds;
392 public weak Goo.Canvas canvas;
393 public weak Goo.CanvasItemModelSimple model;
394 public uint need_entire_subtree_update;
395 public uint need_update;
396 public weak Goo.CanvasItem parent;
397 public Goo.CanvasItemSimpleData simple_data;
398 [CCode (has_construct_function = false)]
399 protected CanvasItemSimple ();
400 public void changed (bool recompute_bounds);
401 public bool check_in_path (double x, double y, Cairo.Context cr, Goo.CanvasPointerEvents pointer_events);
402 public void check_style ();
403 public double get_line_width ();
404 public void get_path_bounds (Cairo.Context cr, out Goo.CanvasBounds bounds);
405 public void paint_path (Cairo.Context cr);
407 public virtual void simple_create_path (Cairo.Context cr);
409 public virtual bool simple_is_item_at (double x, double y, Cairo.Context cr, bool is_pointer_event);
411 public virtual void simple_paint (Cairo.Context cr, Goo.CanvasBounds bounds);
413 public virtual void simple_update (Cairo.Context cr);
414 public void user_bounds_to_device (Cairo.Context cr, Goo.CanvasBounds bounds);
415 public void user_bounds_to_parent (Cairo.Context cr, Goo.CanvasBounds bounds);
417 public Goo.CairoAntialias antialias { get; set; }
419 public Goo.CairoFillRule clip_fill_rule { get; set; }
421 public string clip_path { set; }
423 public string fill_color { set; }
425 public uint fill_color_rgba { get; set; }
427 public Goo.CairoPattern fill_pattern { owned get; set; }
429 public Gdk.Pixbuf fill_pixbuf { set; }
431 public Goo.CairoFillRule fill_rule { get; set; }
433 public string font { owned get; set; }
435 public Pango.FontDescription font_desc { owned get; set; }
437 public Goo.CairoHintMetrics hint_metrics { get; set; }
439 public Goo.CairoLineCap line_cap { get; set; }
441 public Goo.CanvasLineDash line_dash { owned get; set; }
443 public Goo.CairoLineJoin line_join { get; set; }
445 public double line_join_miter_limit { get; set; }
447 public double line_width { get; set; }
449 public Goo.CairoOperator operator { get; set; }
451 public string stroke_color { set; }
453 public uint stroke_color_rgba { get; set; }
455 public Goo.CairoPattern stroke_pattern { owned get; set; }
457 public Gdk.Pixbuf stroke_pixbuf { set; }
460 [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")]
461 public class CanvasLineDash {
462 public double dash_offset;
463 public double* dashes;
464 public int num_dashes;
465 public int ref_count;
466 [CCode (has_construct_function = false)]
467 public CanvasLineDash (int num_dashes);
468 [CCode (has_construct_function = false)]
469 public CanvasLineDash.newv (int num_dashes, double* dashes);
471 [CCode (cheader_filename = "goocanvas.h")]
472 public class CanvasPath : Goo.CanvasItemSimple, Goo.CanvasItem {
473 [CCode (has_construct_function = false)]
474 protected CanvasPath ();
475 [CCode (cname = "goo_canvas_path_new")]
476 public static unowned Goo.CanvasPath create (Goo.CanvasItem? parent, string path_data, ...);
478 public string data { set; }
480 public double height { get; set; }
482 public double width { get; set; }
484 public double x { get; set; }
486 public double y { get; set; }
488 [CCode (cheader_filename = "goocanvas.h")]
489 public class CanvasPathModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
490 [CCode (has_construct_function = false)]
491 protected CanvasPathModel ();
492 [CCode (cname = "goo_canvas_path_model_new")]
493 public static unowned Goo.CanvasPathModel create (Goo.CanvasItemModel? parent, string path_data, ...);
495 public string data { set; }
497 public double height { get; set; }
499 public double width { get; set; }
501 public double x { get; set; }
503 public double y { get; set; }
506 [CCode (ref_function = "goo_canvas_points_ref", unref_function = "goo_canvas_points_unref", type_id = "GOO_TYPE_CANVAS_POINTS", cheader_filename = "goocanvas.h")]
507 public class CanvasPoints {
508 public double* coords;
509 public int num_points;
510 public int ref_count;
511 [CCode (has_construct_function = false)]
512 public CanvasPoints (int num_points);
514 [CCode (cheader_filename = "goocanvas.h")]
515 public class CanvasPolyline : Goo.CanvasItemSimple, Goo.CanvasItem {
516 [CCode (has_construct_function = false)]
517 protected CanvasPolyline ();
518 [CCode (cname = "goo_canvas_polyline_new")]
519 public static unowned Goo.CanvasPolyline create (Goo.CanvasItem? parent, bool close_path, int num_points, ...);
520 [CCode (cname = "goo_canvas_polyline_new_line")]
521 public static unowned Goo.CanvasPolyline create_line (Goo.CanvasItem? parent, double x1, double y1, double x2, double y2, ...);
523 public double arrow_length { get; set; }
525 public double arrow_tip_length { get; set; }
527 public double arrow_width { get; set; }
529 public bool close_path { get; set; }
531 public bool end_arrow { get; set; }
533 public double height { get; set; }
535 public Goo.CanvasPoints points { owned get; set; }
537 public bool start_arrow { get; set; }
539 public double width { get; set; }
541 public double x { get; set; }
543 public double y { get; set; }
546 [CCode (cheader_filename = "goocanvas.h")]
547 public class CanvasPolylineArrowData {
548 public double arrow_length;
549 public double arrow_tip_length;
550 public double arrow_width;
551 [CCode (array_length = false)]
552 public weak double[] end_arrow_coords;
553 [CCode (array_length = false)]
554 public weak double[] line_end;
555 [CCode (array_length = false)]
556 public weak double[] line_start;
557 [CCode (array_length = false)]
558 public weak double[] start_arrow_coords;
560 [CCode (cheader_filename = "goocanvas.h")]
561 public class CanvasPolylineModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
562 [CCode (has_construct_function = false)]
563 protected CanvasPolylineModel ();
564 [CCode (cname = "goo_canvas_polyline_model_new")]
565 public static unowned Goo.CanvasPolylineModel create (Goo.CanvasItemModel? parent, bool close_path, int num_points, ...);
566 [CCode (cname = "goo_canvas_polyline_model_new_line")]
567 public static unowned Goo.CanvasPolylineModel create_line (Goo.CanvasItemModel? parent, double x1, double y1, double x2, double y2, ...);
569 public double arrow_length { get; set; }
571 public double arrow_tip_length { get; set; }
573 public double arrow_width { get; set; }
575 public bool close_path { get; set; }
577 public bool end_arrow { get; set; }
579 public double height { get; set; }
581 public Goo.CanvasPoints points { owned get; set; }
583 public bool start_arrow { get; set; }
585 public double width { get; set; }
587 public double x { get; set; }
589 public double y { get; set; }
591 [CCode (cheader_filename = "goocanvas.h")]
592 public class CanvasRect : Goo.CanvasItemSimple, Goo.CanvasItem {
593 [CCode (has_construct_function = false)]
594 protected CanvasRect ();
595 [CCode (cname = "goo_canvas_rect_new")]
596 public static unowned Goo.CanvasRect create (Goo.CanvasItem? parent, double x, double y, double width, double height, ...);
598 public double height { get; set; }
600 public double radius_x { get; set; }
602 public double radius_y { get; set; }
604 public double width { get; set; }
606 public double x { get; set; }
608 public double y { get; set; }
610 [CCode (cheader_filename = "goocanvas.h")]
611 public class CanvasRectModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
612 [CCode (has_construct_function = false)]
613 protected CanvasRectModel ();
614 [CCode (cname = "goo_canvas_rect_model_new")]
615 public static unowned Goo.CanvasRectModel create (Goo.CanvasItemModel? parent, double x, double y, double width, double height, ...);
617 public double height { get; set; }
619 public double radius_x { get; set; }
621 public double radius_y { get; set; }
623 public double width { get; set; }
625 public double x { get; set; }
627 public double y { get; set; }
629 [CCode (cheader_filename = "goocanvas.h")]
630 public class CanvasStyle : GLib.Object {
631 public weak Goo.CanvasStyle? parent;
632 public weak GLib.Array<Goo.CanvasStyleProperty> properties;
633 [CCode (has_construct_function = false)]
634 public CanvasStyle ();
635 public Goo.CanvasStyle copy ();
636 public unowned Goo.CanvasStyle? get_parent ();
637 public unowned GLib.Value? get_property (GLib.Quark property_id);
638 public bool set_fill_options (Cairo.Context cr);
639 public void set_parent (Goo.CanvasStyle? parent);
640 public void set_property (GLib.Quark property_id, GLib.Value value);
641 public bool set_stroke_options (Cairo.Context cr);
643 [CCode (cheader_filename = "goocanvas.h")]
644 public class CanvasTable : Goo.CanvasGroup, Goo.CanvasItem {
645 [CCode (has_construct_function = false)]
646 protected CanvasTable ();
647 [CCode (cname = "goo_canvas_table_new")]
648 public static unowned Goo.CanvasTable create (Goo.CanvasItem? parent, ...);
650 public double column_spacing { get; set; }
652 public bool homogeneous_columns { get; set; }
654 public bool homogeneous_rows { get; set; }
656 public double horz_grid_line_width { get; set; }
658 public double row_spacing { get; set; }
660 public double vert_grid_line_width { get; set; }
662 public double x_border_spacing { get; set; }
664 public double y_border_spacing { get; set; }
666 [CCode (cheader_filename = "goocanvas.h")]
667 public class CanvasTableModel : Goo.CanvasGroupModel, Goo.CanvasItemModel {
668 [CCode (has_construct_function = false)]
669 protected CanvasTableModel ();
670 [CCode (cname = "goo_canvas_table_model_new")]
671 public static unowned Goo.CanvasTableModel create (Goo.CanvasItemModel? parent, ...);
673 public double column_spacing { get; set; }
675 public bool homogeneous_columns { get; set; }
677 public bool homogeneous_rows { get; set; }
679 public double horz_grid_line_width { get; set; }
681 public double row_spacing { get; set; }
683 public double vert_grid_line_width { get; set; }
685 public double x_border_spacing { get; set; }
687 public double y_border_spacing { get; set; }
689 [CCode (cheader_filename = "goocanvas.h")]
690 public class CanvasText : Goo.CanvasItemSimple, Goo.CanvasItem {
691 [CCode (has_construct_function = false)]
692 protected CanvasText ();
693 [CCode (cname = "goo_canvas_text_new")]
694 public static unowned Goo.CanvasText create (Goo.CanvasItem? parent, string str, double x, double y, double width, Gtk.AnchorType anchor, ...);
695 public void get_natural_extents (out unowned Pango.Rectangle? ink_rect, out unowned Pango.Rectangle? logical_rect);
697 public Pango.Alignment alignment { get; set; }
699 public Gtk.AnchorType anchor { get; set; }
701 public Pango.EllipsizeMode ellipsize { get; set; }
703 public double height { get; set; }
705 public string text { owned get; set; }
707 public bool use_markup { get; set; }
709 public double width { get; set; }
711 public Pango.WrapMode wrap { get; set; }
713 public double x { get; set; }
715 public double y { get; set; }
717 [CCode (cheader_filename = "goocanvas.h")]
718 public class CanvasTextModel : Goo.CanvasItemModelSimple, Goo.CanvasItemModel {
719 [CCode (has_construct_function = false)]
720 protected CanvasTextModel ();
721 [CCode (cname = "goo_canvas_text_model_new")]
722 public static unowned Goo.CanvasTextModel create (Goo.CanvasItemModel? parent, string str, double x, double y, double width, Gtk.AnchorType anchor, ...);
724 public Pango.Alignment alignment { get; set; }
726 public Gtk.AnchorType anchor { get; set; }
728 public Pango.EllipsizeMode ellipsize { get; set; }
730 public double height { get; set; }
732 public string text { owned get; set; }
734 public bool use_markup { get; set; }
736 public double width { get; set; }
738 public Pango.WrapMode wrap { get; set; }
740 public double x { get; set; }
742 public double y { get; set; }
744 [CCode (cheader_filename = "goocanvas.h")]
745 public class CanvasWidget : Goo.CanvasItemSimple, Goo.CanvasItem {
746 [CCode (has_construct_function = false)]
747 protected CanvasWidget ();
748 [CCode (cname = "goo_canvas_widget_new")]
749 public static unowned Goo.CanvasWidget create (Goo.CanvasItem? parent, Gtk.Widget widget, double x, double y, double width, double height, ...);
751 public Gtk.AnchorType anchor { get; set; }
753 public double height { get; set; }
755 public Gtk.Widget widget { owned get; set; }
757 public double width { get; set; }
759 public double x { get; set; }
761 public double y { get; set; }
763 [CCode (cheader_filename = "goocanvas.h")]
764 public interface CanvasItem : GLib.Object {
765 public abstract void add_child (Goo.CanvasItem child, int position);
766 public abstract void allocate_area (Cairo.Context cr, Goo.CanvasBounds requested_area, Goo.CanvasBounds allocated_area, double x_offset, double y_offset);
767 public void animate (double x, double y, double scale, double degrees, bool absolute, int duration, int step_time, Goo.CanvasAnimateType type);
768 public static unowned GLib.ParamSpec? class_find_child_property (GLib.ObjectClass iclass, string property_name);
769 public static void class_install_child_property (GLib.ObjectClass iclass, uint property_id, GLib.ParamSpec pspec);
770 public static GLib.ParamSpec[] class_list_child_properties (GLib.ObjectClass iclass, out uint n_properties);
771 public void ensure_updated ();
772 public int find_child (Goo.CanvasItem child);
773 public abstract void get_bounds (out Goo.CanvasBounds bounds);
774 public abstract unowned Goo.Canvas get_canvas ();
775 public abstract unowned Goo.CanvasItem? get_child (int child_num);
776 public void get_child_properties (Goo.CanvasItem child, ...);
777 public abstract void get_child_property (Goo.CanvasItem child, string property_name, out GLib.Value value);
778 public abstract bool get_is_static ();
779 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);
780 public abstract unowned Goo.CanvasItemModel? get_model ();
781 public abstract int get_n_children ();
782 public abstract unowned Goo.CanvasItem? get_parent ();
783 public abstract bool get_requested_area (Cairo.Context cr, out Goo.CanvasBounds requested_area);
784 public abstract double get_requested_height (Cairo.Context cr, double width);
785 public bool get_simple_transform (out double x, out double y, out double scale, out double rotation);
786 public abstract unowned Goo.CanvasStyle get_style ();
787 public abstract bool get_transform (out Cairo.Matrix transform);
788 public abstract bool get_transform_for_child (Goo.CanvasItem child, out Cairo.Matrix transform);
789 public bool is_container ();
790 public abstract bool is_visible ();
791 public void lower (Goo.CanvasItem? below);
792 public abstract void move_child (int old_position, int new_position);
793 public abstract void paint (Cairo.Context cr, Goo.CanvasBounds bounds, double scale);
794 public void raise (Goo.CanvasItem? above);
795 public void remove ();
796 public abstract void remove_child (int child_num);
797 public abstract void request_update ();
798 public void rotate (double degrees, double cx, double cy);
799 public void scale (double sx, double sy);
800 public abstract void set_canvas (Goo.Canvas canvas);
801 public void set_child_properties (Goo.CanvasItem child, ...);
802 public abstract void set_child_property (Goo.CanvasItem child, string property_name, GLib.Value value);
803 public abstract void set_is_static (bool is_static);
804 public abstract void set_model (Goo.CanvasItemModel model);
805 public abstract void set_parent (Goo.CanvasItem parent);
806 public void set_simple_transform (double x, double y, double scale, double rotation);
807 public abstract void set_style (Goo.CanvasStyle style);
808 public abstract void set_transform (Cairo.Matrix? transform);
809 public void skew_x (double degrees, double cx, double cy);
810 public void skew_y (double degrees, double cx, double cy);
811 public void stop_animation ();
812 public void translate (double tx, double ty);
813 public abstract void update (bool entire_tree, Cairo.Context cr, Goo.CanvasBounds bounds);
814 public bool can_focus { get; set; }
815 public string description { get; set; }
816 public Goo.CanvasItem parent { get; set; }
817 public Goo.CanvasPointerEvents pointer_events { get; set; }
818 public string title { get; set; }
819 public string tooltip { get; set; }
820 public Goo.CairoMatrix transform { get; set; }
821 public Goo.CanvasItemVisibility visibility { get; set; }
822 public double visibility_threshold { get; set; }
823 public signal void animation_finished (bool stopped);
824 public signal bool button_press_event (Goo.CanvasItem target, Gdk.EventButton event);
825 public signal bool button_release_event (Goo.CanvasItem target, Gdk.EventButton event);
826 public signal void child_notify (GLib.ParamSpec pspec);
827 public signal bool enter_notify_event (Goo.CanvasItem target, Gdk.EventCrossing event);
828 public signal bool focus_in_event (Goo.CanvasItem target, Gdk.EventFocus event);
829 public signal bool focus_out_event (Goo.CanvasItem target, Gdk.EventFocus event);
830 public signal bool grab_broken_event (Goo.CanvasItem target, Gdk.EventGrabBroken event);
831 public signal bool key_press_event (Goo.CanvasItem target, Gdk.EventKey event);
832 public signal bool key_release_event (Goo.CanvasItem target, Gdk.EventKey event);
833 public signal bool leave_notify_event (Goo.CanvasItem target, Gdk.EventCrossing event);
834 public signal bool motion_notify_event (Goo.CanvasItem target, Gdk.EventMotion event);
835 public signal bool query_tooltip (double x, double y, bool keyboard_tooltip, Gtk.Tooltip tooltip);
836 public signal bool scroll_event (Goo.CanvasItem target, Gdk.Event event);
838 [CCode (cheader_filename = "goocanvas.h")]
839 public interface CanvasItemModel : GLib.Object {
840 public abstract void add_child (Goo.CanvasItemModel child, int position);
841 public void animate (double x, double y, double scale, double degrees, bool absolute, int duration, int step_time, Goo.CanvasAnimateType type);
842 public static unowned GLib.ParamSpec? class_find_child_property (GLib.ObjectClass mclass, string property_name);
843 public static void class_install_child_property (GLib.ObjectClass mclass, uint property_id, GLib.ParamSpec pspec);
844 public static GLib.ParamSpec[] class_list_child_properties (GLib.ObjectClass iclass, out uint n_properties);
846 public abstract unowned Goo.CanvasItem create_item (Goo.Canvas canvas);
847 public int find_child (Goo.CanvasItemModel child);
848 public abstract unowned Goo.CanvasItemModel? get_child (int child_num);
849 public void get_child_properties (Goo.CanvasItem child, ...);
850 public abstract void get_child_property (Goo.CanvasItemModel child, string property_name, out GLib.Value value);
851 public abstract int get_n_children ();
852 public abstract unowned Goo.CanvasItemModel? get_parent ();
853 public bool get_simple_transform (out double x, out double y, out double scale, out double rotation);
854 public abstract unowned Goo.CanvasStyle get_style ();
855 public abstract bool get_transform (out Cairo.Matrix transform);
856 public bool is_container ();
857 public void lower (Goo.CanvasItemModel? below);
858 public abstract void move_child (int old_position, int new_position);
859 public void raise (Goo.CanvasItemModel? above);
860 public void remove ();
861 public abstract void remove_child (int child_num);
862 public void rotate (double degrees, double cx, double cy);
863 public void scale (double sx, double sy);
864 public void set_child_properties (Goo.CanvasItem child, ...);
865 public abstract void set_child_property (Goo.CanvasItemModel child, string property_name, GLib.Value value);
866 public abstract void set_parent (Goo.CanvasItemModel parent);
867 public void set_simple_transform (double x, double y, double scale, double rotation);
868 public abstract void set_style (Goo.CanvasStyle style);
869 public abstract void set_transform (Cairo.Matrix? transform);
870 public void skew_x (double degrees, double cx, double cy);
871 public void skew_y (double degrees, double cx, double cy);
872 public void stop_animation ();
873 public void translate (double tx, double ty);
874 public bool can_focus { get; set; }
875 public string description { get; set; }
876 public Goo.CanvasItemModel parent { get; set; }
877 public Goo.CanvasPointerEvents pointer_events { get; set; }
878 public string title { get; set; }
879 public string tooltip { get; set; }
880 public Goo.CairoMatrix transform { get; set; }
881 public Goo.CanvasItemVisibility visibility { get; set; }
882 public double visibility_threshold { get; set; }
883 public signal void animation_finished (bool stopped);
884 public signal void changed (bool recompute_bounds);
885 public signal void child_added (int child_num);
886 public signal void child_moved (int old_child_num, int new_child_num);
887 public signal void child_notify (GLib.ParamSpec pspec);
888 public signal void child_removed (int child_num);
890 [CCode (type_id = "GOO_TYPE_CANVAS_BOUNDS", cheader_filename = "goocanvas.h")]
891 public struct CanvasBounds {
897 [CCode (type_id = "GOO_TYPE_CANVAS_ITEM_SIMPLE_DATA", cheader_filename = "goocanvas.h")]
898 public struct CanvasItemSimpleData {
899 public Cairo.Matrix? transform;
900 public weak GLib.Array<Goo.CanvasPathCommand> clip_path_commands;
901 public weak Goo.CanvasStyle style;
902 public weak string tooltip;
903 public double visibility_threshold;
904 public uint visibility;
905 public uint pointer_events;
906 public uint can_focus;
907 public uint own_style;
908 public uint clip_fill_rule;
909 public uint is_static;
910 public uint cache_setting;
911 public uint has_tooltip;
913 [CCode (type_id = "GOO_TYPE_CANVAS_PATH_COMMAND", cheader_filename = "goocanvas.h")]
914 public struct CanvasPathCommand {
915 public Goo.CanvasPathCommandSimple simple;
916 public Goo.CanvasPathCommandCurve curve;
917 public Goo.CanvasPathCommandArc arc;
919 [CCode (type_id = "GOO_TYPE_CANVAS_PATH_COMMAND_ARC", cheader_filename = "goocanvas.h")]
920 public struct CanvasPathCommandArc {
922 public uint relative;
923 public uint large_arc_flag;
924 public uint sweep_flag;
927 public double x_axis_rotation;
931 [CCode (type_id = "GOO_TYPE_CANVAS_PATH_COMMAND_CURVE", cheader_filename = "goocanvas.h")]
932 public struct CanvasPathCommandCurve {
934 public uint relative;
942 [CCode (type_id = "GOO_TYPE_CANVAS_PATH_COMMAND_SIMPLE", cheader_filename = "goocanvas.h")]
943 public struct CanvasPathCommandSimple {
945 public uint relative;
949 [CCode (type_id = "GOO_TYPE_CANVAS_STYLE_PROPERTY", cheader_filename = "goocanvas.h")]
950 public struct CanvasStyleProperty {
951 public GLib.Quark id;
952 public GLib.Value value;
954 [CCode (cprefix = "CAIRO_ANTIALIAS_", cheader_filename = "goocanvas.h")]
955 public enum CairoAntialias {
961 [CCode (cprefix = "CAIRO_FILL_RULE_", cheader_filename = "goocanvas.h")]
962 public enum CairoFillRule {
966 [CCode (cprefix = "CAIRO_HINT_METRICS_", cheader_filename = "goocanvas.h")]
967 public enum CairoHintMetrics {
972 [CCode (cprefix = "CAIRO_LINE_CAP_", cheader_filename = "goocanvas.h")]
973 public enum CairoLineCap {
978 [CCode (cprefix = "CAIRO_LINE_JOIN_", cheader_filename = "goocanvas.h")]
979 public enum CairoLineJoin {
984 [CCode (cprefix = "CAIRO_OPERATOR_", cheader_filename = "goocanvas.h")]
985 public enum CairoOperator {
1001 [CCode (cprefix = "GOO_CANVAS_ANIMATE_", cheader_filename = "goocanvas.h")]
1002 public enum CanvasAnimateType {
1008 [CCode (cprefix = "GOO_CANVAS_ITEM_", cheader_filename = "goocanvas.h")]
1009 public enum CanvasItemVisibility {
1013 VISIBLE_ABOVE_THRESHOLD
1015 [CCode (cprefix = "GOO_CANVAS_PATH_", cheader_filename = "goocanvas.h")]
1016 public enum CanvasPathCommandType {
1025 SMOOTH_QUADRATIC_CURVE_TO,
1028 [CCode (cprefix = "GOO_CANVAS_EVENTS_", cheader_filename = "goocanvas.h")]
1030 public enum CanvasPointerEvents {
1045 [CCode (cheader_filename = "goocanvas.h")]
1046 public const int NUM_ARROW_POINTS;