3 * Copyright (C) 2008 Jürg Billeter
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 * Jürg Billeter <j@bitron.ch>
24 public const Atom SELECTION_PRIMARY
;
25 public const Atom SELECTION_SECONDARY
;
26 public const Atom SELECTION_CLIPBOARD
;
28 [CCode (cheader_filename
= "gdk/gdk.h")]
31 [CCode (cname
="GDK_NONE")]
32 public static Atom NONE
;
35 [CCode (ref_function
= "g_object_ref", unref_function
= "g_object_unref")]
39 public class Drawable
{
40 [CCode (cname
= "gdk_draw_arc")]
41 public virtual void draw_arc (Gdk
.GC gc
, bool filled
, int x
, int y
, int width
, int height
, int angle1
, int angle2
);
42 [CCode (cname
= "gdk_draw_drawable")]
43 public virtual void draw_drawable (Gdk
.GC gc
, Gdk
.Drawable src
, int xsrc
, int ysrc
, int xdest
, int ydest
, int width
, int height
);
44 [CCode (cname
= "gdk_draw_glyphs")]
45 public virtual void draw_glyphs (Gdk
.GC gc
, Pango
.Font font
, int x
, int y
, Pango
.GlyphString glyphs
);
46 [CCode (cname
= "gdk_draw_glyphs_transformed")]
47 public virtual void draw_glyphs_transformed (Gdk
.GC gc
, Pango
.Matrix matrix
, Pango
.Font font
, int x
, int y
, Pango
.GlyphString glyphs
);
48 [CCode (cname
= "gdk_draw_image")]
49 public virtual void draw_image (Gdk
.GC gc
, Gdk
.Image image
, int xsrc
, int ysrc
, int xdest
, int ydest
, int width
, int height
);
50 [CCode (cname
= "gdk_draw_lines")]
51 public virtual void draw_lines (Gdk
.GC gc
, Gdk
.Point
[] points
);
52 [CCode (cname
= "gdk_draw_pixbuf")]
53 public virtual void draw_pixbuf (Gdk
.GC? gc
, Gdk
.Pixbuf pixbuf
, int src_x
, int src_y
, int dest_x
, int dest_y
, int width
, int height
, Gdk
.RgbDither dither
, int x_dither
, int y_dither
);
54 [CCode (cname
= "gdk_draw_points")]
55 public virtual void draw_points (Gdk
.GC gc
, Gdk
.Point
[] points
);
56 [CCode (cname
= "gdk_draw_polygon")]
57 public virtual void draw_polygon (Gdk
.GC gc
, bool filled
, Gdk
.Point
[] points
);
58 [CCode (cname
= "gdk_draw_rectangle")]
59 public virtual void draw_rectangle (Gdk
.GC gc
, bool filled
, int x
, int y
, int width
, int height
);
60 [CCode (cname
= "gdk_draw_segments")]
61 public virtual void draw_segments (Gdk
.GC gc
, Gdk
.Segment
[] segs
);
62 [CCode (cname
= "gdk_draw_text")]
63 public virtual void draw_text (Gdk
.Font font
, Gdk
.GC gc
, int x
, int y
, string text
, int text_length
);
64 [CCode (cname
= "gdk_draw_text_wc")]
65 public virtual void draw_text_wc (Gdk
.Font font
, Gdk
.GC gc
, int x
, int y
, Gdk
.WChar text
, int text_length
);
66 [CCode (cname
= "gdk_draw_trapezoids")]
67 public virtual void draw_trapezoids (Gdk
.GC gc
, Gdk
.Trapezoid
[] trapezoids
);
70 [CCode (cheader_filename
= "gdk/gdk.h")]
72 public static void convert (Gdk
.Window requestor
, Gdk
.Atom selection
, Gdk
.Atom target
, uint32 time_
);
73 public static unowned Gdk
.Window
owner_get (Gdk
.Atom selection
);
74 public static unowned Gdk
.Window
owner_get_for_display (Gdk
.Display display
, Gdk
.Atom selection
);
75 public static bool owner_set (Gdk
.Window owner
, Gdk
.Atom selection
, uint32 time_
, bool send_event
);
76 public static bool owner_set_for_display (Gdk
.Display display
, Gdk
.Window owner
, Gdk
.Atom selection
, uint32 time_
, bool send_event
);
77 public static int property_get (Gdk
.Window requestor
, uchar[] data
, out Gdk
.Atom prop_type
, int prop_format
);
78 public static void send_notify (Gdk
.NativeWindow requestor
, Gdk
.Atom selection
, Gdk
.Atom target
, Gdk
.Atom property
, uint32 time_
);
79 public static void send_notify_for_display (Gdk
.Display display
, Gdk
.NativeWindow requestor
, Gdk
.Atom selection
, Gdk
.Atom target
, Gdk
.Atom property
, uint32 time_
);
82 [Deprecated (since
= "vala-0.12", replacement
= "Selection.convert")]
83 public static void selection_convert (Gdk
.Window requestor
, Gdk
.Atom selection
, Gdk
.Atom target
, uint32 time_
);
84 [Deprecated (since
= "vala-0.12", replacement
= "Selection.owner_get")]
85 public static unowned Gdk
.Window
selection_owner_get (Gdk
.Atom selection
);
86 [Deprecated (since
= "vala-0.12", replacement
= "Selection.owner_get_for_display")]
87 public static unowned Gdk
.Window
selection_owner_get_for_display (Gdk
.Display display
, Gdk
.Atom selection
);
88 [Deprecated (since
= "vala-0.12", replacement
= "Selection.owner_set")]
89 public static bool selection_owner_set (Gdk
.Window owner
, Gdk
.Atom selection
, uint32 time_
, bool send_event
);
90 [Deprecated (since
= "vala-0.12", replacement
= "Selection.owner_set_for_display")]
91 public static bool selection_owner_set_for_display (Gdk
.Display display
, Gdk
.Window owner
, Gdk
.Atom selection
, uint32 time_
, bool send_event
);
92 [Deprecated (since
= "vala-0.12", replacement
= "Selection.property_get")]
93 public static int selection_property_get (Gdk
.Window requestor
, uchar[] data
, out Gdk
.Atom prop_type
, int prop_format
);
94 [Deprecated (since
= "vala-0.12", replacement
= "Selection.send_notify")]
95 public static void selection_send_notify (Gdk
.NativeWindow requestor
, Gdk
.Atom selection
, Gdk
.Atom target
, Gdk
.Atom property
, uint32 time_
);
96 [Deprecated (since
= "vala-0.12", replacement
= "Selection.send_notify_for_display")]
97 public static void selection_send_notify_for_display (Gdk
.Display display
, Gdk
.NativeWindow requestor
, Gdk
.Atom selection
, Gdk
.Atom target
, Gdk
.Atom property
, uint32 time_
);