gtk2 1.0.3 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +66 -1
- data/ext/gtk2/extconf.rb +0 -96
- data/ext/gtk2/global.h +274 -13
- data/ext/gtk2/gtk2.def +5 -3
- data/ext/gtk2/init.c +263 -19
- data/ext/gtk2/rbgdk.c +245 -89
- data/ext/gtk2/rbgdk.h +32 -6
- data/ext/gtk2/rbgdkatom.c +38 -28
- data/ext/gtk2/rbgdkcairo.c +32 -42
- data/ext/gtk2/rbgdkcolor.c +52 -42
- data/ext/gtk2/rbgdkcolormap.c +42 -37
- data/ext/gtk2/rbgdkconst.c +23 -13
- data/ext/gtk2/rbgdkconversions.h +19 -6
- data/ext/gtk2/rbgdkcursor.c +37 -25
- data/ext/gtk2/rbgdkdevice.c +77 -67
- data/ext/gtk2/rbgdkdisplay.c +158 -150
- data/ext/gtk2/rbgdkdisplaymanager.c +27 -15
- data/ext/gtk2/rbgdkdragcontext.c +121 -70
- data/ext/gtk2/rbgdkdraw.c +252 -160
- data/ext/gtk2/rbgdkevent.c +30 -20
- data/ext/gtk2/rbgdkgc.c +123 -116
- data/ext/gtk2/rbgdkgeometry.c +77 -68
- data/ext/gtk2/rbgdkimage.c +58 -47
- data/ext/gtk2/rbgdkinput.c +33 -26
- data/ext/gtk2/rbgdkkeymap.c +38 -27
- data/ext/gtk2/rbgdkkeyval.c +44 -32
- data/ext/gtk2/rbgdkpango.c +66 -39
- data/ext/gtk2/rbgdkpangorenderer.c +63 -35
- data/ext/gtk2/rbgdkpixbuf.c +36 -25
- data/ext/gtk2/rbgdkpixmap.c +65 -49
- data/ext/gtk2/rbgdkproperty.c +66 -60
- data/ext/gtk2/rbgdkrectangle.c +54 -46
- data/ext/gtk2/rbgdkregion.c +144 -79
- data/ext/gtk2/rbgdkrgb.c +74 -58
- data/ext/gtk2/rbgdkscreen.c +103 -97
- data/ext/gtk2/rbgdkselection.c +49 -39
- data/ext/gtk2/rbgdkthreads.c +32 -19
- data/ext/gtk2/rbgdktimecoord.c +60 -38
- data/ext/gtk2/rbgdkvisual.c +79 -71
- data/ext/gtk2/rbgdkwindow.c +284 -305
- data/ext/gtk2/rbgdkwindowattr.c +69 -58
- data/ext/gtk2/rbgdkx11.c +41 -28
- data/ext/gtk2/rbgtk.c +498 -19
- data/ext/gtk2/rbgtk.h +35 -20
- data/ext/gtk2/rbgtkaboutdialog.c +33 -80
- data/ext/gtk2/rbgtkaccelerator.c +36 -23
- data/ext/gtk2/rbgtkaccelgroup.c +50 -40
- data/ext/gtk2/rbgtkaccelgroupentry.c +32 -20
- data/ext/gtk2/rbgtkaccelkey.c +40 -28
- data/ext/gtk2/rbgtkaccellabel.c +30 -18
- data/ext/gtk2/rbgtkaccelmap.c +55 -42
- data/ext/gtk2/rbgtkaccessible.c +25 -14
- data/ext/gtk2/rbgtkaction.c +68 -68
- data/ext/gtk2/rbgtkactiongroup.c +317 -195
- data/ext/gtk2/rbgtkadjustment.c +33 -46
- data/ext/gtk2/rbgtkalignment.c +36 -24
- data/ext/gtk2/rbgtkallocation.c +53 -42
- data/ext/gtk2/rbgtkarrow.c +34 -22
- data/ext/gtk2/rbgtkaspectframe.c +32 -20
- data/ext/gtk2/rbgtkassistant.c +81 -61
- data/ext/gtk2/rbgtkbbox.c +32 -20
- data/ext/gtk2/rbgtkbin.c +28 -16
- data/ext/gtk2/rbgtkbindingset.c +42 -35
- data/ext/gtk2/rbgtkborder.c +34 -23
- data/ext/gtk2/rbgtkbox.c +40 -29
- data/ext/gtk2/rbgtkbuildable.c +57 -45
- data/ext/gtk2/rbgtkbuilder.c +53 -38
- data/ext/gtk2/rbgtkbutton.c +41 -55
- data/ext/gtk2/rbgtkcalendar.c +51 -40
- data/ext/gtk2/rbgtkcelleditable.c +28 -17
- data/ext/gtk2/rbgtkcelllayout.c +41 -30
- data/ext/gtk2/rbgtkcellrenderer.c +43 -32
- data/ext/gtk2/rbgtkcellrendereraccel.c +26 -18
- data/ext/gtk2/rbgtkcellrenderercombo.c +25 -17
- data/ext/gtk2/rbgtkcellrendererpixbuf.c +24 -17
- data/ext/gtk2/rbgtkcellrendererprogress.c +25 -17
- data/ext/gtk2/rbgtkcellrendererspin.c +24 -16
- data/ext/gtk2/rbgtkcellrendererspinner.c +23 -11
- data/ext/gtk2/rbgtkcellrenderertext.c +28 -21
- data/ext/gtk2/rbgtkcellrenderertoggle.c +24 -16
- data/ext/gtk2/rbgtkcellview.c +34 -33
- data/ext/gtk2/rbgtkcheckbutton.c +28 -16
- data/ext/gtk2/rbgtkcheckmenuitem.c +31 -19
- data/ext/gtk2/rbgtkclipboard.c +123 -77
- data/ext/gtk2/rbgtkcolorbutton.c +26 -31
- data/ext/gtk2/rbgtkcolorsel.c +109 -55
- data/ext/gtk2/rbgtkcolorselectiondialog.c +28 -19
- data/ext/gtk2/rbgtkcombo.c +43 -32
- data/ext/gtk2/rbgtkcombobox.c +44 -83
- data/ext/gtk2/rbgtkcomboboxentry.c +26 -21
- data/ext/gtk2/rbgtkconst.c +23 -13
- data/ext/gtk2/rbgtkcontainer.c +153 -100
- data/ext/gtk2/rbgtkconversions.h +19 -6
- data/ext/gtk2/rbgtkcurve.c +46 -36
- data/ext/gtk2/rbgtkdialog.c +104 -70
- data/ext/gtk2/rbgtkdrag.c +173 -121
- data/ext/gtk2/rbgtkdrawingarea.c +28 -16
- data/ext/gtk2/rbgtkeditable.c +63 -51
- data/ext/gtk2/rbgtkentry.c +48 -85
- data/ext/gtk2/rbgtkentrycompletion.c +42 -55
- data/ext/gtk2/rbgtkeventbox.c +28 -16
- data/ext/gtk2/rbgtkexpander.c +26 -35
- data/ext/gtk2/rbgtkfilechooser.c +87 -143
- data/ext/gtk2/rbgtkfilechooserbutton.c +26 -32
- data/ext/gtk2/rbgtkfilechooserdialog.c +25 -15
- data/ext/gtk2/rbgtkfilechooserwidget.c +26 -15
- data/ext/gtk2/rbgtkfilefilter.c +45 -35
- data/ext/gtk2/rbgtkfilesel.c +54 -43
- data/ext/gtk2/rbgtkfilesystemerror.c +51 -0
- data/ext/gtk2/rbgtkfixed.c +36 -25
- data/ext/gtk2/rbgtkfontbutton.c +26 -37
- data/ext/gtk2/rbgtkfontselection.c +27 -15
- data/ext/gtk2/rbgtkfontselectiondialog.c +43 -32
- data/ext/gtk2/rbgtkframe.c +39 -28
- data/ext/gtk2/rbgtkgamma.c +32 -20
- data/ext/gtk2/rbgtkhandlebox.c +31 -19
- data/ext/gtk2/rbgtkhbbox.c +28 -16
- data/ext/gtk2/rbgtkhbox.c +29 -17
- data/ext/gtk2/rbgtkhpaned.c +28 -16
- data/ext/gtk2/rbgtkhruler.c +28 -16
- data/ext/gtk2/rbgtkhscale.c +28 -16
- data/ext/gtk2/rbgtkhscrollbar.c +28 -16
- data/ext/gtk2/rbgtkhseparator.c +28 -16
- data/ext/gtk2/rbgtkiconfactory.c +35 -23
- data/ext/gtk2/rbgtkiconinfo.c +42 -30
- data/ext/gtk2/rbgtkiconset.c +31 -19
- data/ext/gtk2/rbgtkiconsize.c +38 -25
- data/ext/gtk2/rbgtkiconsource.c +62 -50
- data/ext/gtk2/rbgtkicontheme.c +95 -95
- data/ext/gtk2/rbgtkiconview.c +87 -121
- data/ext/gtk2/rbgtkimage.c +31 -40
- data/ext/gtk2/rbgtkimagemenuitem.c +26 -14
- data/ext/gtk2/rbgtkimcontext.c +46 -34
- data/ext/gtk2/rbgtkimcontextsimple.c +47 -24
- data/ext/gtk2/rbgtkimmulticontext.c +26 -14
- data/ext/gtk2/rbgtkinputdialog.c +28 -16
- data/ext/gtk2/rbgtkinvisible.c +24 -18
- data/ext/gtk2/rbgtkitem.c +32 -20
- data/ext/gtk2/rbgtkitemfactory.c +65 -57
- data/ext/gtk2/rbgtklabel.c +46 -57
- data/ext/gtk2/rbgtklayout.c +40 -29
- data/ext/gtk2/rbgtklinkbutton.c +26 -15
- data/ext/gtk2/rbgtkliststore.c +145 -102
- data/ext/gtk2/rbgtkmacros.h +19 -6
- data/ext/gtk2/rbgtkmenu.c +47 -59
- data/ext/gtk2/rbgtkmenubar.c +30 -30
- data/ext/gtk2/rbgtkmenuitem.c +34 -41
- data/ext/gtk2/rbgtkmenushell.c +43 -42
- data/ext/gtk2/rbgtkmenutoolbutton.c +27 -16
- data/ext/gtk2/rbgtkmessagedialog.c +31 -25
- data/ext/gtk2/rbgtkmisc.c +33 -22
- data/ext/gtk2/rbgtknotebook.c +98 -134
- data/ext/gtk2/rbgtkobject.c +46 -81
- data/ext/gtk2/rbgtkoptionmenu.c +35 -23
- data/ext/gtk2/rbgtkpagesetup.c +64 -54
- data/ext/gtk2/rbgtkpagesetupunixdialog.c +34 -27
- data/ext/gtk2/rbgtkpaned.c +46 -36
- data/ext/gtk2/rbgtkpapersize.c +60 -54
- data/ext/gtk2/rbgtkplug.c +32 -20
- data/ext/gtk2/rbgtkprintcontext.c +43 -35
- data/ext/gtk2/rbgtkprinter.c +36 -37
- data/ext/gtk2/rbgtkprintjob.c +36 -37
- data/ext/gtk2/rbgtkprintoperation.c +44 -33
- data/ext/gtk2/rbgtkprintoperationpreview.c +30 -18
- data/ext/gtk2/rbgtkprintsettings.c +248 -192
- data/ext/gtk2/rbgtkprintunixdialog.c +33 -45
- data/ext/gtk2/rbgtkprogress.c +23 -13
- data/ext/gtk2/rbgtkprogressbar.c +47 -46
- data/ext/gtk2/rbgtkradioaction.c +84 -39
- data/ext/gtk2/rbgtkradiobutton.c +33 -21
- data/ext/gtk2/rbgtkradiomenuitem.c +86 -45
- data/ext/gtk2/rbgtkradiotoolbutton.c +99 -53
- data/ext/gtk2/rbgtkrange.c +36 -56
- data/ext/gtk2/rbgtkrc.c +61 -49
- data/ext/gtk2/rbgtkrcstyle.c +59 -48
- data/ext/gtk2/rbgtkrecentaction.c +28 -16
- data/ext/gtk2/rbgtkrecentchooser.c +58 -92
- data/ext/gtk2/rbgtkrecentchooserdialog.c +29 -18
- data/ext/gtk2/rbgtkrecentchoosermenu.c +25 -21
- data/ext/gtk2/rbgtkrecentchooserwidget.c +24 -13
- data/ext/gtk2/rbgtkrecentdata.c +47 -36
- data/ext/gtk2/rbgtkrecentfilter.c +55 -46
- data/ext/gtk2/rbgtkrecentfilterinfo.c +51 -40
- data/ext/gtk2/rbgtkrecentinfo.c +66 -56
- data/ext/gtk2/rbgtkrecentmanager.c +47 -43
- data/ext/gtk2/rbgtkruler.c +35 -30
- data/ext/gtk2/rbgtkscale.c +29 -18
- data/ext/gtk2/rbgtkscalebutton.c +27 -27
- data/ext/gtk2/rbgtkscrollbar.c +23 -13
- data/ext/gtk2/rbgtkscrolledwindow.c +44 -60
- data/ext/gtk2/rbgtkselection.c +87 -67
- data/ext/gtk2/rbgtkselectiondata.c +74 -65
- data/ext/gtk2/rbgtkseparator.c +23 -13
- data/ext/gtk2/rbgtkseparatormenuitem.c +25 -13
- data/ext/gtk2/rbgtkseparatortoolitem.c +26 -21
- data/ext/gtk2/rbgtksettings.c +123 -103
- data/ext/gtk2/rbgtksizegroup.c +33 -30
- data/ext/gtk2/rbgtksocket.c +32 -20
- data/ext/gtk2/rbgtkspinbutton.c +48 -38
- data/ext/gtk2/rbgtkspinner.c +27 -14
- data/ext/gtk2/rbgtkstatusbar.c +36 -31
- data/ext/gtk2/rbgtkstatusicon.c +31 -44
- data/ext/gtk2/rbgtkstock.c +137 -125
- data/ext/gtk2/rbgtkstyle.c +177 -161
- data/ext/gtk2/rbgtktable.c +58 -47
- data/ext/gtk2/rbgtktargetlist.c +56 -36
- data/ext/gtk2/rbgtktearoffmenuitem.c +28 -16
- data/ext/gtk2/rbgtktextappearance.c +44 -34
- data/ext/gtk2/rbgtktextattributes.c +54 -42
- data/ext/gtk2/rbgtktextbuffer.c +188 -191
- data/ext/gtk2/rbgtktextchild.c +29 -18
- data/ext/gtk2/rbgtktextiter.c +153 -145
- data/ext/gtk2/rbgtktextmark.c +33 -30
- data/ext/gtk2/rbgtktexttag.c +34 -22
- data/ext/gtk2/rbgtktexttagtable.c +36 -25
- data/ext/gtk2/rbgtktextview.c +85 -73
- data/ext/gtk2/rbgtktoggleaction.c +27 -22
- data/ext/gtk2/rbgtktogglebutton.c +37 -26
- data/ext/gtk2/rbgtktoggletoolbutton.c +26 -20
- data/ext/gtk2/rbgtktoolbar.c +66 -69
- data/ext/gtk2/rbgtktoolbutton.c +27 -40
- data/ext/gtk2/rbgtktoolitem.c +60 -62
- data/ext/gtk2/rbgtktooltip.c +36 -25
- data/ext/gtk2/rbgtktooltips.c +42 -34
- data/ext/gtk2/rbgtktreedragdest.c +20 -11
- data/ext/gtk2/rbgtktreedragsource.c +20 -11
- data/ext/gtk2/rbgtktreeiter.c +58 -47
- data/ext/gtk2/rbgtktreemodel.c +83 -65
- data/ext/gtk2/rbgtktreemodelfilter.c +47 -35
- data/ext/gtk2/rbgtktreemodelsort.c +38 -27
- data/ext/gtk2/rbgtktreepath.c +55 -44
- data/ext/gtk2/rbgtktreerowreference.c +60 -42
- data/ext/gtk2/rbgtktreeselection.c +61 -52
- data/ext/gtk2/rbgtktreesortable.c +52 -42
- data/ext/gtk2/rbgtktreestore.c +88 -67
- data/ext/gtk2/rbgtktreeview.c +157 -185
- data/ext/gtk2/rbgtktreeviewcolumn.c +57 -62
- data/ext/gtk2/rbgtkuimanager.c +61 -61
- data/ext/gtk2/rbgtkvbbox.c +28 -16
- data/ext/gtk2/rbgtkvbox.c +29 -17
- data/ext/gtk2/rbgtkviewport.c +28 -16
- data/ext/gtk2/rbgtkvolumebutton.c +28 -16
- data/ext/gtk2/rbgtkvpaned.c +28 -16
- data/ext/gtk2/rbgtkvruler.c +28 -16
- data/ext/gtk2/rbgtkvscale.c +28 -16
- data/ext/gtk2/rbgtkvscrollbar.c +28 -16
- data/ext/gtk2/rbgtkvseparator.c +28 -16
- data/ext/gtk2/rbgtkwidget.c +284 -296
- data/ext/gtk2/rbgtkwindow.c +156 -214
- data/ext/gtk2/rbgtkwindowgroup.c +35 -24
- data/sample/testgtk/labels.rb +1 -0
- data/sample/testgtk/testgtk.rb +2 -0
- metadata +16 -17
- data/ChangeLog +0 -6902
- data/ext/gtk2/rbgtkmain.c +0 -493
data/ext/gtk2/rbgdkwindow.c
CHANGED
@@ -1,23 +1,34 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2002-2006 Ruby-GNOME2 Project Team
|
5
|
+
* Copyright (C) 1998-2000 Yukihiro Matsumoto,
|
6
|
+
* Daisuke Kanda,
|
7
|
+
* Hiroshi Igarashi
|
8
|
+
*
|
9
|
+
* This library is free software; you can redistribute it and/or
|
10
|
+
* modify it under the terms of the GNU Lesser General Public
|
11
|
+
* License as published by the Free Software Foundation; either
|
12
|
+
* version 2.1 of the License, or (at your option) any later version.
|
13
|
+
*
|
14
|
+
* This library is distributed in the hope that it will be useful,
|
15
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
17
|
+
* Lesser General Public License for more details.
|
18
|
+
*
|
19
|
+
* You should have received a copy of the GNU Lesser General Public
|
20
|
+
* License along with this library; if not, write to the Free Software
|
21
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
22
|
+
* MA 02110-1301 USA
|
23
|
+
*/
|
14
24
|
|
15
25
|
#include "global.h"
|
16
26
|
|
27
|
+
#define RG_TARGET_NAMESPACE cWindow
|
17
28
|
#define _SELF(s) GDK_WINDOW(RVAL2GOBJ(s))
|
18
29
|
|
19
30
|
static VALUE
|
20
|
-
|
31
|
+
rg_initialize(VALUE self, VALUE parent, VALUE attributes, VALUE attributes_mask)
|
21
32
|
{
|
22
33
|
GdkWindow* win;
|
23
34
|
win = gdk_window_new(NIL_P(parent) ? NULL : _SELF(parent),
|
@@ -31,20 +42,20 @@ gdkwin_initialize(VALUE self, VALUE parent, VALUE attributes, VALUE attributes_m
|
|
31
42
|
}
|
32
43
|
|
33
44
|
static VALUE
|
34
|
-
|
45
|
+
rg_destroy(VALUE self)
|
35
46
|
{
|
36
47
|
gdk_window_destroy(_SELF(self));
|
37
48
|
return Qnil;
|
38
49
|
}
|
39
50
|
|
40
51
|
static VALUE
|
41
|
-
|
52
|
+
rg_window_type(VALUE self)
|
42
53
|
{
|
43
54
|
return GENUM2RVAL(gdk_window_get_window_type(_SELF(self)), GDK_TYPE_WINDOW_TYPE);
|
44
55
|
}
|
45
56
|
|
46
57
|
static VALUE
|
47
|
-
|
58
|
+
rg_s_at_pointer(G_GNUC_UNUSED VALUE self)
|
48
59
|
{
|
49
60
|
gint x, y;
|
50
61
|
GdkWindow* win = gdk_window_at_pointer(&x, &y);
|
@@ -52,102 +63,102 @@ gdkwin_s_at_pointer(VALUE self)
|
|
52
63
|
}
|
53
64
|
|
54
65
|
static VALUE
|
55
|
-
|
66
|
+
rg_show(VALUE self)
|
56
67
|
{
|
57
68
|
gdk_window_show(_SELF(self));
|
58
69
|
return self;
|
59
70
|
}
|
60
71
|
|
61
72
|
static VALUE
|
62
|
-
|
73
|
+
rg_show_unraised(VALUE self)
|
63
74
|
{
|
64
75
|
gdk_window_show_unraised(_SELF(self));
|
65
76
|
return self;
|
66
77
|
}
|
67
78
|
|
68
79
|
static VALUE
|
69
|
-
|
80
|
+
rg_hide(VALUE self)
|
70
81
|
{
|
71
82
|
gdk_window_hide(_SELF(self));
|
72
83
|
return Qnil;
|
73
84
|
}
|
74
85
|
|
75
86
|
static VALUE
|
76
|
-
|
87
|
+
rg_visible_p(VALUE self)
|
77
88
|
{
|
78
89
|
return CBOOL2RVAL(gdk_window_is_visible(_SELF(self)));
|
79
90
|
}
|
80
91
|
|
81
92
|
static VALUE
|
82
|
-
|
93
|
+
rg_viewable_p(VALUE self)
|
83
94
|
{
|
84
95
|
return CBOOL2RVAL(gdk_window_is_viewable(_SELF(self)));
|
85
96
|
}
|
86
97
|
|
87
98
|
static VALUE
|
88
|
-
|
99
|
+
rg_state(VALUE self)
|
89
100
|
{
|
90
101
|
return GENUM2RVAL(gdk_window_get_state(_SELF(self)), GDK_TYPE_WINDOW_STATE);
|
91
102
|
}
|
92
103
|
|
93
104
|
static VALUE
|
94
|
-
|
105
|
+
rg_withdraw(VALUE self)
|
95
106
|
{
|
96
107
|
gdk_window_withdraw(_SELF(self));
|
97
108
|
return Qnil;
|
98
109
|
}
|
99
110
|
|
100
111
|
static VALUE
|
101
|
-
|
112
|
+
rg_iconify(VALUE self)
|
102
113
|
{
|
103
114
|
gdk_window_iconify(_SELF(self));
|
104
115
|
return self;
|
105
116
|
}
|
106
117
|
|
107
118
|
static VALUE
|
108
|
-
|
119
|
+
rg_deiconify(VALUE self)
|
109
120
|
{
|
110
121
|
gdk_window_deiconify(_SELF(self));
|
111
122
|
return self;
|
112
123
|
}
|
113
124
|
|
114
125
|
static VALUE
|
115
|
-
|
126
|
+
rg_stick(VALUE self)
|
116
127
|
{
|
117
128
|
gdk_window_stick(_SELF(self));
|
118
129
|
return self;
|
119
130
|
}
|
120
131
|
|
121
132
|
static VALUE
|
122
|
-
|
133
|
+
rg_unstick(VALUE self)
|
123
134
|
{
|
124
135
|
gdk_window_unstick(_SELF(self));
|
125
136
|
return self;
|
126
137
|
}
|
127
138
|
|
128
139
|
static VALUE
|
129
|
-
|
140
|
+
rg_maximize(VALUE self)
|
130
141
|
{
|
131
142
|
gdk_window_maximize(_SELF(self));
|
132
143
|
return self;
|
133
144
|
}
|
134
145
|
|
135
146
|
static VALUE
|
136
|
-
|
147
|
+
rg_unmaximize(VALUE self)
|
137
148
|
{
|
138
149
|
gdk_window_unmaximize(_SELF(self));
|
139
150
|
return self;
|
140
151
|
}
|
141
152
|
#if GTK_CHECK_VERSION(2,2,0)
|
142
153
|
static VALUE
|
143
|
-
|
154
|
+
rg_fullscreen(VALUE self)
|
144
155
|
{
|
145
156
|
gdk_window_fullscreen(_SELF(self));
|
146
157
|
return self;
|
147
158
|
}
|
148
159
|
|
149
160
|
static VALUE
|
150
|
-
|
161
|
+
rg_unfullscreen(VALUE self)
|
151
162
|
{
|
152
163
|
gdk_window_unfullscreen(_SELF(self));
|
153
164
|
return self;
|
@@ -155,14 +166,14 @@ gdkwin_unfullscreen(VALUE self)
|
|
155
166
|
#endif
|
156
167
|
#if GTK_CHECK_VERSION(2,4,0)
|
157
168
|
static VALUE
|
158
|
-
|
169
|
+
rg_set_keep_above(VALUE self, VALUE setting)
|
159
170
|
{
|
160
171
|
gdk_window_set_keep_above(_SELF(self), RVAL2CBOOL(setting));
|
161
172
|
return self;
|
162
173
|
}
|
163
174
|
|
164
175
|
static VALUE
|
165
|
-
|
176
|
+
rg_set_keep_below(VALUE self, VALUE setting)
|
166
177
|
{
|
167
178
|
gdk_window_set_keep_below(_SELF(self), RVAL2CBOOL(setting));
|
168
179
|
return self;
|
@@ -170,28 +181,28 @@ gdkwin_set_keep_below(VALUE self, VALUE setting)
|
|
170
181
|
#endif
|
171
182
|
|
172
183
|
static VALUE
|
173
|
-
|
184
|
+
rg_move(VALUE self, VALUE x, VALUE y)
|
174
185
|
{
|
175
186
|
gdk_window_move(_SELF(self), NUM2INT(x), NUM2INT(y));
|
176
187
|
return self;
|
177
188
|
}
|
178
189
|
|
179
190
|
static VALUE
|
180
|
-
|
191
|
+
rg_resize(VALUE self, VALUE w, VALUE h)
|
181
192
|
{
|
182
193
|
gdk_window_resize(_SELF(self), NUM2INT(w), NUM2INT(h));
|
183
194
|
return self;
|
184
195
|
}
|
185
196
|
|
186
197
|
static VALUE
|
187
|
-
|
198
|
+
rg_move_resize(VALUE self, VALUE x, VALUE y, VALUE w, VALUE h)
|
188
199
|
{
|
189
200
|
gdk_window_move_resize(_SELF(self), NUM2INT(x), NUM2INT(y), NUM2INT(w), NUM2INT(h));
|
190
201
|
return self;
|
191
202
|
}
|
192
203
|
|
193
204
|
static VALUE
|
194
|
-
|
205
|
+
rg_scroll(VALUE self, VALUE dx, VALUE dy)
|
195
206
|
{
|
196
207
|
gdk_window_scroll(_SELF(self), NUM2INT(dx), NUM2INT(dy));
|
197
208
|
return self;
|
@@ -199,7 +210,7 @@ gdkwin_scroll(VALUE self, VALUE dx, VALUE dy)
|
|
199
210
|
|
200
211
|
#if GTK_CHECK_VERSION(2,8,0)
|
201
212
|
static VALUE
|
202
|
-
|
213
|
+
rg_move_region(VALUE self, VALUE region, VALUE dx, VALUE dy)
|
203
214
|
{
|
204
215
|
gdk_window_move_region(_SELF(self),
|
205
216
|
(GdkRegion*)RVAL2BOXED(region, GDK_TYPE_REGION),
|
@@ -210,21 +221,21 @@ gdkwin_move_region(VALUE self, VALUE region, VALUE dx, VALUE dy)
|
|
210
221
|
#endif
|
211
222
|
|
212
223
|
static VALUE
|
213
|
-
|
224
|
+
rg_reparent(VALUE self, VALUE new_parent, VALUE x, VALUE y)
|
214
225
|
{
|
215
226
|
gdk_window_reparent(_SELF(self), _SELF(new_parent), NUM2INT(x), NUM2INT(y));
|
216
227
|
return self;
|
217
228
|
}
|
218
229
|
|
219
230
|
static VALUE
|
220
|
-
|
231
|
+
rg_clear(VALUE self)
|
221
232
|
{
|
222
233
|
gdk_window_clear(_SELF(self));
|
223
234
|
return self;
|
224
235
|
}
|
225
236
|
|
226
237
|
static VALUE
|
227
|
-
|
238
|
+
rg_clear_area(int argc, VALUE *argv, VALUE self)
|
228
239
|
{
|
229
240
|
VALUE gen_expose, x, y, w, h;
|
230
241
|
rb_scan_args(argc, argv, "41", &x, &y, &w, &h, &gen_expose);
|
@@ -239,40 +250,36 @@ gdkwin_clear_area(int argc, VALUE *argv, VALUE self)
|
|
239
250
|
return self;
|
240
251
|
}
|
241
252
|
|
242
|
-
/* Obsolete
|
243
|
-
#define gdk_window_copy_area()
|
244
|
-
*/
|
245
|
-
|
246
253
|
static VALUE
|
247
|
-
|
254
|
+
rg_raise(VALUE self)
|
248
255
|
{
|
249
256
|
gdk_window_raise(_SELF(self));
|
250
257
|
return self;
|
251
258
|
}
|
252
259
|
|
253
260
|
static VALUE
|
254
|
-
|
261
|
+
rg_lower(VALUE self)
|
255
262
|
{
|
256
263
|
gdk_window_lower(_SELF(self));
|
257
264
|
return self;
|
258
265
|
}
|
259
266
|
|
260
267
|
static VALUE
|
261
|
-
|
268
|
+
rg_focus(VALUE self, VALUE timestamp)
|
262
269
|
{
|
263
270
|
gdk_window_focus(_SELF(self), NUM2UINT(timestamp));
|
264
271
|
return self;
|
265
272
|
}
|
266
273
|
|
267
274
|
static VALUE
|
268
|
-
|
275
|
+
rg_register_dnd(VALUE self)
|
269
276
|
{
|
270
277
|
gdk_window_register_dnd(_SELF(self));
|
271
278
|
return self;
|
272
279
|
}
|
273
280
|
|
274
281
|
static VALUE
|
275
|
-
|
282
|
+
rg_begin_resize_drag(VALUE self, VALUE edge, VALUE button, VALUE root_x, VALUE root_y, VALUE timestamp)
|
276
283
|
{
|
277
284
|
gdk_window_begin_resize_drag(_SELF(self),
|
278
285
|
RVAL2GENUM(edge, GDK_TYPE_WINDOW_EDGE),
|
@@ -283,7 +290,7 @@ gdkwin_begin_resize_drag(VALUE self, VALUE edge, VALUE button, VALUE root_x, VAL
|
|
283
290
|
}
|
284
291
|
|
285
292
|
static VALUE
|
286
|
-
|
293
|
+
rg_begin_move_drag(VALUE self, VALUE button, VALUE root_x, VALUE root_y, VALUE timestamp)
|
287
294
|
{
|
288
295
|
gdk_window_begin_move_drag(_SELF(self), NUM2INT(button),
|
289
296
|
NUM2INT(root_x), NUM2INT(root_y),
|
@@ -292,7 +299,7 @@ gdkwin_begin_move_drag(VALUE self, VALUE button, VALUE root_x, VALUE root_y, VAL
|
|
292
299
|
}
|
293
300
|
|
294
301
|
static VALUE
|
295
|
-
|
302
|
+
rg_s_constrain_size(G_GNUC_UNUSED VALUE self, VALUE geometry, VALUE flags, VALUE w, VALUE h)
|
296
303
|
{
|
297
304
|
gint new_width, new_height;
|
298
305
|
gdk_window_constrain_size((GdkGeometry*)RVAL2BOXED(geometry, GDK_TYPE_GEOMETRY),
|
@@ -303,7 +310,7 @@ gdkwin_s_constrain_size(VALUE self, VALUE geometry, VALUE flags, VALUE w, VALUE
|
|
303
310
|
|
304
311
|
#if GTK_CHECK_VERSION(2, 12, 0)
|
305
312
|
static VALUE
|
306
|
-
|
313
|
+
rg_beep(VALUE self)
|
307
314
|
{
|
308
315
|
gdk_window_beep(_SELF(self));
|
309
316
|
return self;
|
@@ -311,7 +318,7 @@ gdkwin_beep(VALUE self)
|
|
311
318
|
#endif
|
312
319
|
|
313
320
|
static VALUE
|
314
|
-
|
321
|
+
rg_begin_paint(VALUE self, VALUE area)
|
315
322
|
{
|
316
323
|
if (rb_obj_is_kind_of(area, GTYPE2CLASS(GDK_TYPE_RECTANGLE))){
|
317
324
|
gdk_window_begin_paint_rect(_SELF(self),
|
@@ -324,14 +331,14 @@ gdkwin_begin_paint(VALUE self, VALUE area)
|
|
324
331
|
}
|
325
332
|
|
326
333
|
static VALUE
|
327
|
-
|
334
|
+
rg_end_paint(VALUE self)
|
328
335
|
{
|
329
336
|
gdk_window_end_paint(_SELF(self));
|
330
337
|
return self;
|
331
338
|
}
|
332
339
|
|
333
340
|
static VALUE
|
334
|
-
|
341
|
+
rg_invalidate(VALUE self, VALUE area, VALUE invalidate_children)
|
335
342
|
{
|
336
343
|
if (rb_obj_is_kind_of(area, GTYPE2CLASS(GDK_TYPE_REGION))){
|
337
344
|
gdk_window_invalidate_region(_SELF(self),
|
@@ -355,7 +362,7 @@ invalidate_child_func_wrap(GdkWindow *window, VALUE func)
|
|
355
362
|
typedef gboolean (*ChildFunc) (GdkWindow*, gpointer);
|
356
363
|
|
357
364
|
static VALUE
|
358
|
-
|
365
|
+
rg_invalidate_maybe_recurse(VALUE self, VALUE region)
|
359
366
|
{
|
360
367
|
VALUE func = (VALUE)NULL;
|
361
368
|
if (rb_block_given_p()){
|
@@ -370,49 +377,49 @@ gdkwin_invalidate_maybe_recurse(VALUE self, VALUE region)
|
|
370
377
|
}
|
371
378
|
|
372
379
|
static VALUE
|
373
|
-
|
380
|
+
rg_update_area(VALUE self)
|
374
381
|
{
|
375
382
|
GdkRegion* ret = gdk_window_get_update_area(_SELF(self));
|
376
383
|
return BOXED2RVAL(ret, GDK_TYPE_REGION);
|
377
384
|
}
|
378
385
|
|
379
386
|
static VALUE
|
380
|
-
|
387
|
+
rg_freeze_updates(VALUE self)
|
381
388
|
{
|
382
389
|
gdk_window_freeze_updates(_SELF(self));
|
383
390
|
return self;
|
384
391
|
}
|
385
392
|
|
386
393
|
static VALUE
|
387
|
-
|
394
|
+
rg_thaw_updates(VALUE self)
|
388
395
|
{
|
389
396
|
gdk_window_thaw_updates(_SELF(self));
|
390
397
|
return self;
|
391
398
|
}
|
392
399
|
|
393
400
|
static VALUE
|
394
|
-
|
401
|
+
rg_s_process_all_updates(VALUE self)
|
395
402
|
{
|
396
403
|
gdk_window_process_all_updates();
|
397
404
|
return self;
|
398
405
|
}
|
399
406
|
|
400
407
|
static VALUE
|
401
|
-
|
408
|
+
rg_process_updates(VALUE self, VALUE update_children)
|
402
409
|
{
|
403
410
|
gdk_window_process_updates(_SELF(self), RVAL2CBOOL(update_children));
|
404
411
|
return self;
|
405
412
|
}
|
406
413
|
|
407
414
|
static VALUE
|
408
|
-
|
415
|
+
rg_s_set_debug_updates(VALUE self, VALUE setting)
|
409
416
|
{
|
410
417
|
gdk_window_set_debug_updates(RVAL2CBOOL(setting));
|
411
418
|
return self;
|
412
419
|
}
|
413
420
|
|
414
421
|
static VALUE
|
415
|
-
|
422
|
+
rg_internal_paint_info(VALUE self)
|
416
423
|
{
|
417
424
|
GdkDrawable* real_drawable;
|
418
425
|
gint x_offset, y_offset;
|
@@ -425,33 +432,33 @@ gdkwin_get_internal_paint_info(VALUE self)
|
|
425
432
|
|
426
433
|
#if GTK_CHECK_VERSION(2,6,0)
|
427
434
|
static VALUE
|
428
|
-
|
435
|
+
rg_configure_finished(VALUE self)
|
429
436
|
{
|
430
437
|
gdk_window_configure_finished(_SELF(self));
|
431
438
|
return self;
|
432
439
|
}
|
433
440
|
|
434
441
|
static VALUE
|
435
|
-
|
442
|
+
rg_enable_synchronized_configure(VALUE self)
|
436
443
|
{
|
437
444
|
gdk_window_enable_synchronized_configure(_SELF(self));
|
438
445
|
|
439
446
|
if (rb_block_given_p()) {
|
440
|
-
rb_ensure(rb_yield, self,
|
447
|
+
rb_ensure(rb_yield, self, rg_configure_finished, self);
|
441
448
|
}
|
442
449
|
return self;
|
443
450
|
}
|
444
451
|
#endif
|
445
452
|
|
446
453
|
static VALUE
|
447
|
-
|
454
|
+
rg_set_user_data(VALUE self, VALUE user_data)
|
448
455
|
{
|
449
456
|
gdk_window_set_user_data(_SELF(self), (gpointer)RVAL2GOBJ(user_data));
|
450
457
|
return self;
|
451
458
|
}
|
452
459
|
|
453
460
|
static VALUE
|
454
|
-
|
461
|
+
rg_set_override_redirect(VALUE self, VALUE override_redirect)
|
455
462
|
{
|
456
463
|
gdk_window_set_override_redirect(_SELF(self),
|
457
464
|
RVAL2CBOOL(override_redirect));
|
@@ -460,7 +467,7 @@ gdkwin_set_override_redirect(VALUE self, VALUE override_redirect)
|
|
460
467
|
|
461
468
|
#if GTK_CHECK_VERSION(2,4,0)
|
462
469
|
static VALUE
|
463
|
-
|
470
|
+
rg_set_accept_focus(VALUE self, VALUE accept_focus)
|
464
471
|
{
|
465
472
|
gdk_window_set_accept_focus(_SELF(self), RVAL2CBOOL(accept_focus));
|
466
473
|
return self;
|
@@ -469,7 +476,7 @@ gdkwin_set_accept_focus(VALUE self, VALUE accept_focus)
|
|
469
476
|
|
470
477
|
#if GTK_CHECK_VERSION(2,6,0)
|
471
478
|
static VALUE
|
472
|
-
|
479
|
+
rg_set_focus_on_map(VALUE self, VALUE focus_on_map)
|
473
480
|
{
|
474
481
|
gdk_window_set_focus_on_map(_SELF(self), RVAL2CBOOL(focus_on_map));
|
475
482
|
return self;
|
@@ -489,7 +496,7 @@ gdkwin_set_focus_on_map(VALUE self, VALUE focus_on_map)
|
|
489
496
|
*/
|
490
497
|
|
491
498
|
static VALUE
|
492
|
-
|
499
|
+
rg_shape_combine_mask(VALUE self, VALUE shape_mask, VALUE offset_x, VALUE offset_y)
|
493
500
|
{
|
494
501
|
gdk_window_shape_combine_mask(_SELF(self),
|
495
502
|
GDK_BITMAP(RVAL2GOBJ(shape_mask)),
|
@@ -498,7 +505,7 @@ gdkwin_shape_combine_mask(VALUE self, VALUE shape_mask, VALUE offset_x, VALUE of
|
|
498
505
|
}
|
499
506
|
|
500
507
|
static VALUE
|
501
|
-
|
508
|
+
rg_shape_combine_region(VALUE self, VALUE shape_region, VALUE offset_x, VALUE offset_y)
|
502
509
|
{
|
503
510
|
gdk_window_shape_combine_region(_SELF(self),
|
504
511
|
NIL_P(shape_region) ? NULL : (GdkRegion*)RVAL2BOXED(shape_region, GDK_TYPE_REGION),
|
@@ -507,14 +514,14 @@ gdkwin_shape_combine_region(VALUE self, VALUE shape_region, VALUE offset_x, VALU
|
|
507
514
|
}
|
508
515
|
|
509
516
|
static VALUE
|
510
|
-
|
517
|
+
rg_set_child_shapes(VALUE self)
|
511
518
|
{
|
512
519
|
gdk_window_set_child_shapes(_SELF(self));
|
513
520
|
return self;
|
514
521
|
}
|
515
522
|
|
516
523
|
static VALUE
|
517
|
-
|
524
|
+
rg_merge_child_shapes(VALUE self)
|
518
525
|
{
|
519
526
|
gdk_window_merge_child_shapes(_SELF(self));
|
520
527
|
return self;
|
@@ -522,7 +529,7 @@ gdkwin_merge_child_shapes(VALUE self)
|
|
522
529
|
|
523
530
|
#if GTK_CHECK_VERSION(2,10,0)
|
524
531
|
static VALUE
|
525
|
-
|
532
|
+
rg_input_shape_combine_mask(VALUE self, VALUE mask, VALUE x, VALUE y)
|
526
533
|
{
|
527
534
|
gdk_window_input_shape_combine_mask(_SELF(self),
|
528
535
|
GDK_BITMAP(RVAL2GOBJ(mask)),
|
@@ -531,7 +538,7 @@ gdkwin_input_shape_combine_mask(VALUE self, VALUE mask, VALUE x, VALUE y)
|
|
531
538
|
}
|
532
539
|
|
533
540
|
static VALUE
|
534
|
-
|
541
|
+
rg_input_shape_combine_region(VALUE self, VALUE shape_region, VALUE offset_x, VALUE offset_y)
|
535
542
|
{
|
536
543
|
gdk_window_input_shape_combine_region(_SELF(self),
|
537
544
|
(GdkRegion*)RVAL2BOXED(shape_region, GDK_TYPE_REGION),
|
@@ -541,14 +548,14 @@ gdkwin_input_shape_combine_region(VALUE self, VALUE shape_region, VALUE offset_x
|
|
541
548
|
}
|
542
549
|
|
543
550
|
static VALUE
|
544
|
-
|
551
|
+
rg_set_child_input_shapes(VALUE self)
|
545
552
|
{
|
546
553
|
gdk_window_set_child_input_shapes(_SELF(self));
|
547
554
|
return self;
|
548
555
|
}
|
549
556
|
|
550
557
|
static VALUE
|
551
|
-
|
558
|
+
rg_merge_child_input_shapes(VALUE self)
|
552
559
|
{
|
553
560
|
gdk_window_merge_child_input_shapes(_SELF(self));
|
554
561
|
return self;
|
@@ -557,7 +564,7 @@ gdkwin_merge_child_input_shapes(VALUE self)
|
|
557
564
|
#endif
|
558
565
|
|
559
566
|
static VALUE
|
560
|
-
|
567
|
+
rg_set_static_gravities(VALUE self, VALUE use_static)
|
561
568
|
{
|
562
569
|
gboolean ret = gdk_window_set_static_gravities(_SELF(self),
|
563
570
|
RVAL2CBOOL(use_static));
|
@@ -567,26 +574,22 @@ gdkwin_set_static_gravities(VALUE self, VALUE use_static)
|
|
567
574
|
return self;
|
568
575
|
}
|
569
576
|
|
570
|
-
/* Obsoleted.
|
571
|
-
void gdk_window_set_hints (GdkWindow *window,
|
572
|
-
*/
|
573
|
-
|
574
577
|
static VALUE
|
575
|
-
|
578
|
+
rg_set_title(VALUE self, VALUE title)
|
576
579
|
{
|
577
580
|
gdk_window_set_title(_SELF(self),RVAL2CSTR(title));
|
578
581
|
return self;
|
579
582
|
}
|
580
583
|
|
581
584
|
static VALUE
|
582
|
-
|
585
|
+
rg_set_background(VALUE self, VALUE color)
|
583
586
|
{
|
584
587
|
gdk_window_set_background(_SELF(self), RVAL2GDKCOLOR(color));
|
585
588
|
return self;
|
586
589
|
}
|
587
590
|
|
588
591
|
static VALUE
|
589
|
-
|
592
|
+
rg_set_back_pixmap(VALUE self, VALUE pixmap, VALUE parent_relative)
|
590
593
|
{
|
591
594
|
gdk_window_set_back_pixmap(_SELF(self),
|
592
595
|
GDK_PIXMAP(RVAL2GOBJ(pixmap)),
|
@@ -594,19 +597,8 @@ gdkwin_set_back_pixmap(VALUE self, VALUE pixmap, VALUE parent_relative)
|
|
594
597
|
return self;
|
595
598
|
}
|
596
599
|
|
597
|
-
/* Properties:
|
598
|
-
*
|
599
|
-
* void gdk_window_set_cursor (GdkWindow *window,
|
600
|
-
* GdkCursor *cursor);
|
601
|
-
* GdkCursor * gdk_window_get_cursor (GdkWindow *window);
|
602
|
-
*/
|
603
|
-
|
604
|
-
/* Obsolete
|
605
|
-
#define gdk_window_set_colormap
|
606
|
-
*/
|
607
|
-
|
608
600
|
static VALUE
|
609
|
-
|
601
|
+
rg_user_data(VALUE self)
|
610
602
|
{
|
611
603
|
GObject *data = NULL;
|
612
604
|
gdk_window_get_user_data(_SELF(self), (gpointer)&data);
|
@@ -614,7 +606,7 @@ gdkwin_get_user_data(VALUE self)
|
|
614
606
|
}
|
615
607
|
|
616
608
|
static VALUE
|
617
|
-
|
609
|
+
rg_geometry(VALUE self)
|
618
610
|
{
|
619
611
|
gint x, y, w, h, d;
|
620
612
|
gdk_window_get_geometry(_SELF(self), &x, &y, &w, &h, &d);
|
@@ -623,7 +615,7 @@ gdkwin_get_geometry(VALUE self)
|
|
623
615
|
}
|
624
616
|
|
625
617
|
static VALUE
|
626
|
-
|
618
|
+
rg_set_geometry_hints(VALUE self, VALUE geometry, VALUE geom_mask)
|
627
619
|
{
|
628
620
|
gdk_window_set_geometry_hints(_SELF(self),
|
629
621
|
NIL_P(geometry) ? (GdkGeometry*)NULL : (GdkGeometry*)RVAL2BOXED(geometry, GDK_TYPE_GEOMETRY),
|
@@ -632,29 +624,27 @@ gdkwin_set_geometry_hints(VALUE self, VALUE geometry, VALUE geom_mask)
|
|
632
624
|
}
|
633
625
|
|
634
626
|
static VALUE
|
635
|
-
|
627
|
+
rg_set_icon_list(VALUE self, VALUE rbpixbufs)
|
636
628
|
{
|
637
|
-
|
638
|
-
GList *
|
629
|
+
GdkWindow *window = _SELF(self);
|
630
|
+
GList *pixbufs = RVAL2GDKPIXBUFGLIST(rbpixbufs);
|
639
631
|
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
}
|
632
|
+
gdk_window_set_icon_list(window, pixbufs);
|
633
|
+
|
634
|
+
g_list_free(pixbufs);
|
644
635
|
|
645
|
-
gdk_window_set_icon_list(_SELF(self), glist);
|
646
636
|
return self;
|
647
637
|
}
|
648
638
|
|
649
639
|
static VALUE
|
650
|
-
|
640
|
+
rg_set_modal_hint(VALUE self, VALUE modal)
|
651
641
|
{
|
652
642
|
gdk_window_set_modal_hint(_SELF(self), RVAL2CBOOL(modal));
|
653
643
|
return self;
|
654
644
|
}
|
655
645
|
|
656
646
|
static VALUE
|
657
|
-
|
647
|
+
rg_set_type_hint(VALUE self, VALUE hint)
|
658
648
|
{
|
659
649
|
gdk_window_set_type_hint(_SELF(self), RVAL2GENUM(hint, GDK_TYPE_WINDOW_TYPE_HINT));
|
660
650
|
return self;
|
@@ -662,7 +652,7 @@ gdkwin_set_type_hint(VALUE self, VALUE hint)
|
|
662
652
|
|
663
653
|
#if GTK_CHECK_VERSION(2,10,0)
|
664
654
|
static VALUE
|
665
|
-
|
655
|
+
rg_type_hint(VALUE self)
|
666
656
|
{
|
667
657
|
return GENUM2RVAL(gdk_window_get_type_hint(_SELF(self)), GDK_TYPE_WINDOW_TYPE_HINT);
|
668
658
|
}
|
@@ -670,14 +660,14 @@ gdkwin_get_type_hint(VALUE self)
|
|
670
660
|
|
671
661
|
#if GTK_CHECK_VERSION(2,2,0)
|
672
662
|
static VALUE
|
673
|
-
|
663
|
+
rg_set_skip_taskbar_hint(VALUE self, VALUE hint)
|
674
664
|
{
|
675
665
|
gdk_window_set_skip_taskbar_hint(_SELF(self), RVAL2CBOOL(hint));
|
676
666
|
return self;
|
677
667
|
}
|
678
668
|
|
679
669
|
static VALUE
|
680
|
-
|
670
|
+
rg_set_skip_pager_hint(VALUE self, VALUE hint)
|
681
671
|
{
|
682
672
|
gdk_window_set_skip_pager_hint(_SELF(self), RVAL2CBOOL(hint));
|
683
673
|
return self;
|
@@ -686,7 +676,7 @@ gdkwin_set_skip_pager_hint(VALUE self, VALUE hint)
|
|
686
676
|
|
687
677
|
#if GTK_CHECK_VERSION(2,8,0)
|
688
678
|
static VALUE
|
689
|
-
|
679
|
+
rg_set_urgency_hint(VALUE self, VALUE hint)
|
690
680
|
{
|
691
681
|
gdk_window_set_urgency_hint(_SELF(self), RVAL2CBOOL(hint));
|
692
682
|
return self;
|
@@ -694,7 +684,7 @@ gdkwin_set_urgency_hint(VALUE self, VALUE hint)
|
|
694
684
|
#endif
|
695
685
|
|
696
686
|
static VALUE
|
697
|
-
|
687
|
+
rg_position(VALUE self)
|
698
688
|
{
|
699
689
|
gint x, y;
|
700
690
|
gdk_window_get_position(_SELF(self), &x, &y);
|
@@ -702,7 +692,7 @@ gdkwin_get_position(VALUE self)
|
|
702
692
|
}
|
703
693
|
|
704
694
|
static VALUE
|
705
|
-
|
695
|
+
rg_root_origin(VALUE self)
|
706
696
|
{
|
707
697
|
int x, y;
|
708
698
|
gdk_window_get_root_origin(_SELF(self), &x, &y);
|
@@ -710,37 +700,23 @@ gdkwin_get_root_origin(VALUE self)
|
|
710
700
|
}
|
711
701
|
|
712
702
|
static VALUE
|
713
|
-
|
703
|
+
rg_frame_extents(VALUE self)
|
714
704
|
{
|
715
705
|
GdkRectangle rect;
|
716
706
|
gdk_window_get_frame_extents(_SELF(self), &rect);
|
717
707
|
return BOXED2RVAL(&rect, GDK_TYPE_RECTANGLE);
|
718
708
|
}
|
719
709
|
|
720
|
-
/* Obsolete
|
721
|
-
#define gdk_window_get_size
|
722
|
-
#define gdk_window_get_visual
|
723
|
-
#define gdk_window_get_colormap
|
724
|
-
#define gdk_window_get_type
|
725
|
-
*/
|
726
|
-
|
727
710
|
static VALUE
|
728
|
-
|
711
|
+
rg_origin(VALUE self)
|
729
712
|
{
|
730
713
|
gint x, y;
|
731
714
|
gdk_window_get_origin(_SELF(self), &x, &y);
|
732
715
|
return rb_assoc_new(INT2NUM(x), INT2NUM(y));
|
733
716
|
}
|
734
717
|
|
735
|
-
/* Obsolete
|
736
|
-
gboolean gdk_window_get_deskrelative_origin
|
737
|
-
(GdkWindow *window,
|
738
|
-
gint *x,
|
739
|
-
gint *y);
|
740
|
-
*/
|
741
|
-
|
742
718
|
static VALUE
|
743
|
-
|
719
|
+
rg_pointer(VALUE self)
|
744
720
|
{
|
745
721
|
gint x, y;
|
746
722
|
GdkModifierType state;
|
@@ -749,19 +725,19 @@ gdkwin_get_pointer(VALUE self)
|
|
749
725
|
}
|
750
726
|
|
751
727
|
static VALUE
|
752
|
-
|
728
|
+
rg_parent(VALUE self)
|
753
729
|
{
|
754
730
|
return GOBJ2RVAL(gdk_window_get_parent(_SELF(self)));
|
755
731
|
}
|
756
732
|
|
757
733
|
static VALUE
|
758
|
-
|
734
|
+
rg_toplevel(VALUE self)
|
759
735
|
{
|
760
736
|
return GOBJ2RVAL(gdk_window_get_toplevel(_SELF(self)));
|
761
737
|
}
|
762
738
|
|
763
739
|
static VALUE
|
764
|
-
|
740
|
+
rg_children(VALUE self)
|
765
741
|
{
|
766
742
|
/* Don't use gdk_window_get_children() here */
|
767
743
|
GList* list = gdk_window_peek_children(_SELF(self));
|
@@ -774,20 +750,20 @@ gdkwin_get_children(VALUE self)
|
|
774
750
|
}
|
775
751
|
|
776
752
|
static VALUE
|
777
|
-
|
753
|
+
rg_events(VALUE self)
|
778
754
|
{
|
779
755
|
return GFLAGS2RVAL(gdk_window_get_events(_SELF(self)), GDK_TYPE_EVENT_MASK);
|
780
756
|
}
|
781
757
|
|
782
758
|
static VALUE
|
783
|
-
|
759
|
+
rg_set_events(VALUE self, VALUE mask)
|
784
760
|
{
|
785
761
|
gdk_window_set_events(_SELF(self), RVAL2GFLAGS(mask, GDK_TYPE_EVENT_MASK));
|
786
762
|
return self;
|
787
763
|
}
|
788
764
|
|
789
765
|
static VALUE
|
790
|
-
|
766
|
+
rg_set_icon(VALUE self, VALUE icon, VALUE pixmap, VALUE mask)
|
791
767
|
{
|
792
768
|
gdk_window_set_icon(_SELF(self), NIL_P(icon) ? NULL :_SELF(icon),
|
793
769
|
NIL_P(pixmap) ? NULL : GDK_PIXMAP(RVAL2GOBJ(pixmap)),
|
@@ -796,28 +772,28 @@ gdkwin_set_icon(VALUE self, VALUE icon, VALUE pixmap, VALUE mask)
|
|
796
772
|
}
|
797
773
|
|
798
774
|
static VALUE
|
799
|
-
|
775
|
+
rg_set_icon_name(VALUE self, VALUE name)
|
800
776
|
{
|
801
777
|
gdk_window_set_icon_name(_SELF(self), RVAL2CSTR(name));
|
802
778
|
return self;
|
803
779
|
}
|
804
780
|
|
805
781
|
static VALUE
|
806
|
-
|
782
|
+
rg_set_transient_for(VALUE self, VALUE parent)
|
807
783
|
{
|
808
784
|
gdk_window_set_transient_for(_SELF(self), _SELF(parent));
|
809
785
|
return self;
|
810
786
|
}
|
811
787
|
|
812
788
|
static VALUE
|
813
|
-
|
789
|
+
rg_set_role(VALUE self, VALUE role)
|
814
790
|
{
|
815
791
|
gdk_window_set_role(_SELF(self), RVAL2CSTR(role));
|
816
792
|
return self;
|
817
793
|
}
|
818
794
|
|
819
795
|
static VALUE
|
820
|
-
|
796
|
+
rg_set_group(VALUE self, VALUE leader)
|
821
797
|
{
|
822
798
|
gdk_window_set_group(_SELF(self), _SELF(leader));
|
823
799
|
return self;
|
@@ -825,21 +801,21 @@ gdkwin_set_group(VALUE self, VALUE leader)
|
|
825
801
|
|
826
802
|
#if GTK_CHECK_VERSION(2,4,0)
|
827
803
|
static VALUE
|
828
|
-
|
804
|
+
rg_group(VALUE self)
|
829
805
|
{
|
830
806
|
return GOBJ2RVAL(gdk_window_get_group(_SELF(self)));
|
831
807
|
}
|
832
808
|
#endif
|
833
809
|
|
834
810
|
static VALUE
|
835
|
-
|
811
|
+
rg_set_decorations(VALUE self, VALUE decor)
|
836
812
|
{
|
837
813
|
gdk_window_set_decorations(_SELF(self), RVAL2GFLAGS(decor, GDK_TYPE_WM_DECORATION));
|
838
814
|
return self;
|
839
815
|
}
|
840
816
|
|
841
817
|
static VALUE
|
842
|
-
|
818
|
+
rg_decorations(VALUE self)
|
843
819
|
{
|
844
820
|
GdkWMDecoration decorations;
|
845
821
|
gboolean ret = gdk_window_get_decorations(_SELF(self), &decorations);
|
@@ -847,7 +823,7 @@ gdkwin_get_decorations(VALUE self)
|
|
847
823
|
}
|
848
824
|
|
849
825
|
static VALUE
|
850
|
-
|
826
|
+
rg_set_functions(VALUE self, VALUE func)
|
851
827
|
{
|
852
828
|
gdk_window_set_functions(_SELF(self), RVAL2GFLAGS(func, GDK_TYPE_WM_FUNCTION));
|
853
829
|
return self;
|
@@ -855,21 +831,21 @@ gdkwin_set_functions(VALUE self, VALUE func)
|
|
855
831
|
|
856
832
|
#if GTK_CHECK_VERSION(2, 12, 0)
|
857
833
|
static VALUE
|
858
|
-
|
834
|
+
rg_set_composited(VALUE self, VALUE composited)
|
859
835
|
{
|
860
836
|
gdk_window_set_composited(_SELF(self), RVAL2CBOOL(composited));
|
861
837
|
return self;
|
862
838
|
}
|
863
839
|
|
864
840
|
static VALUE
|
865
|
-
|
841
|
+
rg_set_opacity(VALUE self, VALUE opacity)
|
866
842
|
{
|
867
843
|
gdk_window_set_opacity(_SELF(self), NUM2DBL(opacity));
|
868
844
|
return self;
|
869
845
|
}
|
870
846
|
|
871
847
|
static VALUE
|
872
|
-
|
848
|
+
rg_set_startup_id(VALUE self, VALUE startup_id)
|
873
849
|
{
|
874
850
|
gdk_window_set_startup_id(_SELF(self), RVAL2CSTR_ACCEPT_NIL(startup_id));
|
875
851
|
return self;
|
@@ -877,13 +853,13 @@ gdkwin_set_startup_id(VALUE self, VALUE startup_id)
|
|
877
853
|
#endif
|
878
854
|
|
879
855
|
static VALUE
|
880
|
-
|
856
|
+
rg_s_toplevels(G_GNUC_UNUSED VALUE self)
|
881
857
|
{
|
882
858
|
return GLIST2ARYF(gdk_window_get_toplevels());
|
883
859
|
}
|
884
860
|
|
885
861
|
static VALUE
|
886
|
-
|
862
|
+
rg_s_default_root_window(G_GNUC_UNUSED VALUE self)
|
887
863
|
{
|
888
864
|
return GOBJ2RVAL(gdk_get_default_root_window());
|
889
865
|
}
|
@@ -894,27 +870,29 @@ GdkPointerHooks* gdk_set_pointer_hooks (const GdkPointerHooks *new_hooks);
|
|
894
870
|
|
895
871
|
/* From X Window System Interaction */
|
896
872
|
static VALUE
|
897
|
-
|
873
|
+
rg_s_foreign_new(int argc, VALUE *argv, G_GNUC_UNUSED VALUE self)
|
898
874
|
{
|
899
875
|
VALUE arg[2];
|
900
876
|
GdkWindow * win = NULL;
|
901
|
-
|
877
|
+
|
902
878
|
rb_scan_args(argc, argv, "11", &arg[0], &arg[1]);
|
903
879
|
|
904
880
|
switch(argc)
|
905
881
|
{
|
906
882
|
case 1:
|
907
|
-
|
908
|
-
|
883
|
+
win = gdk_window_foreign_new(RVAL2GDKNATIVEWINDOW(arg[0]));
|
884
|
+
break;
|
909
885
|
case 2:
|
910
886
|
#if GTK_CHECK_VERSION(2,2,0)
|
911
|
-
|
887
|
+
win = gdk_window_foreign_new_for_display(RVAL2GOBJ(arg[0]),
|
912
888
|
RVAL2GDKNATIVEWINDOW(arg[1]));
|
913
889
|
#else
|
914
|
-
|
890
|
+
win = gdk_window_foreign_new(NUM2UINT(arg[1]));
|
915
891
|
rb_warn("Not supported in GTK+-2.0.x.");
|
916
892
|
#endif
|
917
|
-
|
893
|
+
break;
|
894
|
+
default:
|
895
|
+
break;
|
918
896
|
}
|
919
897
|
if (win == NULL)
|
920
898
|
return Qnil;
|
@@ -924,26 +902,28 @@ gdkwin_foreign_new(int argc, VALUE *argv, VALUE self)
|
|
924
902
|
}
|
925
903
|
|
926
904
|
static VALUE
|
927
|
-
|
905
|
+
rg_s_lookup(int argc, VALUE *argv, G_GNUC_UNUSED VALUE self)
|
928
906
|
{
|
929
907
|
VALUE arg[2];
|
930
908
|
GdkWindow * win = NULL;
|
931
|
-
|
909
|
+
|
932
910
|
rb_scan_args(argc, argv, "11", &arg[0], &arg[1]);
|
933
911
|
|
934
912
|
switch(argc)
|
935
913
|
{
|
936
914
|
case 1:
|
937
|
-
|
938
|
-
|
915
|
+
win = gdk_window_lookup(RVAL2GDKNATIVEWINDOW(arg[0]));
|
916
|
+
break;
|
939
917
|
case 2:
|
940
918
|
#if GTK_CHECK_VERSION(2,2,0)
|
941
|
-
|
919
|
+
win = gdk_window_lookup_for_display(RVAL2GOBJ(arg[0]), RVAL2GDKNATIVEWINDOW(arg[1]));
|
942
920
|
#else
|
943
|
-
|
921
|
+
win = gdk_window_lookup(NUM2UINT(arg[1]));
|
944
922
|
rb_warn("Not supported in GTK+-2.0.x.");
|
945
923
|
#endif
|
946
|
-
|
924
|
+
break;
|
925
|
+
default:
|
926
|
+
break;
|
947
927
|
}
|
948
928
|
if (win == NULL)
|
949
929
|
return Qnil;
|
@@ -954,14 +934,14 @@ gdkwin_lookup(int argc, VALUE *argv, VALUE self)
|
|
954
934
|
|
955
935
|
#ifdef GDK_WINDOWING_X11
|
956
936
|
static VALUE
|
957
|
-
|
937
|
+
rg_server_time(VALUE self)
|
958
938
|
{
|
959
939
|
return UINT2NUM(gdk_x11_get_server_time(_SELF(self)));
|
960
940
|
}
|
961
941
|
|
962
942
|
#if GTK_CHECK_VERSION(2,6,0)
|
963
943
|
static VALUE
|
964
|
-
|
944
|
+
rg_set_user_time(VALUE self, VALUE time)
|
965
945
|
{
|
966
946
|
gdk_x11_window_set_user_time(_SELF(self), NUM2UINT(time));
|
967
947
|
return Qnil;
|
@@ -970,7 +950,7 @@ gdkwin_set_user_time(VALUE self, VALUE time)
|
|
970
950
|
|
971
951
|
#if GTK_CHECK_VERSION(2,8,0)
|
972
952
|
static VALUE
|
973
|
-
|
953
|
+
rg_move_to_current_desktop(VALUE self)
|
974
954
|
{
|
975
955
|
gdk_x11_window_move_to_current_desktop(_SELF(self));
|
976
956
|
return self;
|
@@ -980,200 +960,200 @@ gdkwin_move_to_current_desktop(VALUE self)
|
|
980
960
|
#endif
|
981
961
|
|
982
962
|
void
|
983
|
-
Init_gtk_gdk_window()
|
963
|
+
Init_gtk_gdk_window(VALUE mGdk)
|
984
964
|
{
|
985
965
|
GObjectClass *g_class;
|
986
|
-
VALUE
|
966
|
+
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GDK_TYPE_WINDOW, "Window", mGdk);
|
987
967
|
|
988
968
|
g_class = g_type_class_peek(GDK_TYPE_WINDOW);
|
989
969
|
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
970
|
+
RG_DEF_METHOD(initialize, 3);
|
971
|
+
RG_DEF_METHOD(destroy, 0);
|
972
|
+
RG_DEF_METHOD(window_type, 0);
|
973
|
+
RG_DEF_SMETHOD(at_pointer, 0);
|
974
|
+
RG_DEF_SMETHOD(constrain_size, 4);
|
975
|
+
RG_DEF_SMETHOD(process_all_updates, 0);
|
976
|
+
RG_DEF_SMETHOD(set_debug_updates, 1);
|
977
|
+
RG_DEF_METHOD(show, 0);
|
978
|
+
RG_DEF_METHOD(show_unraised, 0);
|
979
|
+
RG_DEF_METHOD(hide, 0);
|
980
|
+
RG_DEF_METHOD_P(visible, 0);
|
981
|
+
RG_DEF_METHOD_P(viewable, 0);
|
982
|
+
RG_DEF_METHOD(withdraw, 0);
|
983
|
+
RG_DEF_METHOD(state, 0);
|
984
|
+
RG_DEF_METHOD(iconify, 0);
|
985
|
+
RG_DEF_METHOD(deiconify, 0);
|
986
|
+
RG_DEF_METHOD(stick, 0);
|
987
|
+
RG_DEF_METHOD(unstick, 0);
|
988
|
+
RG_DEF_METHOD(maximize, 0);
|
989
|
+
RG_DEF_METHOD(unmaximize, 0);
|
1010
990
|
#if GTK_CHECK_VERSION(2,2,0)
|
1011
|
-
|
1012
|
-
|
991
|
+
RG_DEF_METHOD(fullscreen, 0);
|
992
|
+
RG_DEF_METHOD(unfullscreen, 0);
|
1013
993
|
#endif
|
1014
994
|
#if GTK_CHECK_VERSION(2,4,0)
|
1015
|
-
|
1016
|
-
|
995
|
+
RG_DEF_METHOD(set_keep_above, 1);
|
996
|
+
RG_DEF_METHOD(set_keep_below, 1);
|
1017
997
|
#endif
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
998
|
+
RG_DEF_METHOD(move, 2);
|
999
|
+
RG_DEF_METHOD(resize, 2);
|
1000
|
+
RG_DEF_METHOD(move_resize, 4);
|
1001
|
+
RG_DEF_METHOD(scroll, 2);
|
1022
1002
|
#if GTK_CHECK_VERSION(2,8,0)
|
1023
|
-
|
1003
|
+
RG_DEF_METHOD(move_region, 3);
|
1024
1004
|
#endif
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1005
|
+
RG_DEF_METHOD(reparent, 3);
|
1006
|
+
RG_DEF_METHOD(clear, 0);
|
1007
|
+
RG_DEF_METHOD(clear_area, -1);
|
1008
|
+
RG_DEF_METHOD(raise, 0);
|
1009
|
+
RG_DEF_METHOD(lower, 0);
|
1010
|
+
RG_DEF_METHOD(focus, 1);
|
1011
|
+
RG_DEF_METHOD(register_dnd, 0);
|
1032
1012
|
#if GTK_CHECK_VERSION(2, 12, 0)
|
1033
|
-
|
1013
|
+
RG_DEF_METHOD(beep, 0);
|
1034
1014
|
#endif
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1015
|
+
RG_DEF_METHOD(begin_resize_drag, 5);
|
1016
|
+
RG_DEF_METHOD(begin_move_drag, 4);
|
1017
|
+
RG_DEF_METHOD(begin_paint, 1);
|
1018
|
+
RG_DEF_METHOD(end_paint, 0);
|
1019
|
+
RG_DEF_METHOD(invalidate, 2);
|
1020
|
+
RG_DEF_METHOD(invalidate_maybe_recurse, 1);
|
1021
|
+
RG_DEF_METHOD(update_area, 0);
|
1022
|
+
RG_DEF_METHOD(freeze_updates, 0);
|
1023
|
+
RG_DEF_METHOD(thaw_updates, 0);
|
1024
|
+
RG_DEF_METHOD(process_updates, 1);
|
1025
|
+
RG_DEF_METHOD(internal_paint_info, 0);
|
1046
1026
|
#if GTK_CHECK_VERSION(2,6,0)
|
1047
|
-
|
1048
|
-
|
1027
|
+
RG_DEF_METHOD(configure_finished, 0);
|
1028
|
+
RG_DEF_METHOD(enable_synchronized_configure, 0);
|
1049
1029
|
#endif
|
1050
|
-
|
1051
|
-
|
1030
|
+
RG_DEF_METHOD(set_user_data, 1);
|
1031
|
+
RG_DEF_METHOD(set_override_redirect, 1);
|
1052
1032
|
#if GTK_CHECK_VERSION(2,4,0)
|
1053
|
-
|
1033
|
+
RG_DEF_METHOD(set_accept_focus, 1);
|
1054
1034
|
#endif
|
1055
1035
|
#if GTK_CHECK_VERSION(2,6,0)
|
1056
|
-
|
1036
|
+
RG_DEF_METHOD(set_focus_on_map, 1);
|
1057
1037
|
#endif
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1038
|
+
RG_DEF_METHOD(shape_combine_mask, 3);
|
1039
|
+
RG_DEF_METHOD(shape_combine_region, 3);
|
1040
|
+
RG_DEF_METHOD(set_child_shapes, 0);
|
1041
|
+
RG_DEF_METHOD(merge_child_shapes, 0);
|
1062
1042
|
#if GTK_CHECK_VERSION(2,10,0)
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1043
|
+
RG_DEF_METHOD(input_shape_combine_mask, 3);
|
1044
|
+
RG_DEF_METHOD(input_shape_combine_region, 3);
|
1045
|
+
RG_DEF_METHOD(set_child_input_shapes, 0);
|
1046
|
+
RG_DEF_METHOD(merge_child_input_shapes, 0);
|
1067
1047
|
#endif
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1048
|
+
RG_DEF_METHOD(set_static_gravities, 1);
|
1049
|
+
RG_DEF_METHOD(set_title, 1);
|
1050
|
+
RG_DEF_METHOD(set_background, 1);
|
1051
|
+
RG_DEF_METHOD(set_back_pixmap, 2);
|
1052
|
+
RG_DEF_METHOD(user_data, 0);
|
1053
|
+
RG_DEF_METHOD(geometry, 0);
|
1054
|
+
RG_DEF_METHOD(set_geometry_hints, 2);
|
1055
|
+
RG_DEF_METHOD(set_icon_list, 1);
|
1056
|
+
RG_DEF_METHOD(set_modal_hint, 1);
|
1057
|
+
RG_DEF_METHOD(set_type_hint, 1);
|
1078
1058
|
#if GTK_CHECK_VERSION(2,10,0)
|
1079
|
-
|
1059
|
+
RG_DEF_METHOD(type_hint, 0);
|
1080
1060
|
#endif
|
1081
1061
|
|
1082
1062
|
#if GTK_CHECK_VERSION(2,2,0)
|
1083
|
-
|
1084
|
-
|
1063
|
+
RG_DEF_METHOD(set_skip_taskbar_hint, 1);
|
1064
|
+
RG_DEF_METHOD(set_skip_pager_hint, 1);
|
1085
1065
|
#endif
|
1086
1066
|
#if GTK_CHECK_VERSION(2,8,0)
|
1087
|
-
|
1067
|
+
RG_DEF_METHOD(set_urgency_hint, 1);
|
1088
1068
|
#endif
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1069
|
+
RG_DEF_METHOD(position, 0);
|
1070
|
+
RG_DEF_METHOD(root_origin, 0);
|
1071
|
+
RG_DEF_METHOD(frame_extents, 0);
|
1072
|
+
RG_DEF_METHOD(origin, 0);
|
1073
|
+
RG_DEF_METHOD(pointer, 0);
|
1074
|
+
RG_DEF_METHOD(parent, 0);
|
1075
|
+
RG_DEF_METHOD(toplevel, 0);
|
1076
|
+
RG_DEF_SMETHOD(default_root_window, 0);
|
1077
|
+
RG_DEF_METHOD(children, 0);
|
1078
|
+
RG_DEF_METHOD(events, 0);
|
1079
|
+
RG_DEF_METHOD(set_events, 1);
|
1080
|
+
RG_DEF_METHOD(set_icon, 3);
|
1081
|
+
RG_DEF_METHOD(set_icon_name, 1);
|
1082
|
+
RG_DEF_METHOD(set_transient_for, 1);
|
1083
|
+
RG_DEF_METHOD(set_role, 1);
|
1084
|
+
RG_DEF_METHOD(set_group, 1);
|
1105
1085
|
#if GTK_CHECK_VERSION(2,4,0)
|
1106
|
-
|
1086
|
+
RG_DEF_METHOD(group, 0);
|
1107
1087
|
#endif
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1088
|
+
RG_DEF_METHOD(set_decorations, 1);
|
1089
|
+
RG_DEF_METHOD(decorations, 0);
|
1090
|
+
RG_DEF_METHOD(set_functions, 1);
|
1111
1091
|
#if GTK_CHECK_VERSION(2, 12, 0)
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1092
|
+
RG_DEF_METHOD(set_composited, 1);
|
1093
|
+
RG_DEF_METHOD(set_opacity, 1);
|
1094
|
+
RG_DEF_METHOD(set_startup_id, 1);
|
1115
1095
|
#endif
|
1116
|
-
|
1096
|
+
RG_DEF_SMETHOD(toplevels, 0);
|
1117
1097
|
|
1118
|
-
|
1119
|
-
|
1098
|
+
RG_DEF_SMETHOD(foreign_new, -1);
|
1099
|
+
RG_DEF_SMETHOD(lookup, -1);
|
1120
1100
|
|
1121
|
-
G_DEF_SETTERS(
|
1101
|
+
G_DEF_SETTERS(RG_TARGET_NAMESPACE);
|
1122
1102
|
|
1123
1103
|
/* GdkWindowType */
|
1124
|
-
G_DEF_CLASS(GDK_TYPE_WINDOW_TYPE, "Type",
|
1125
|
-
G_DEF_CONSTANTS(
|
1126
|
-
|
1104
|
+
G_DEF_CLASS(GDK_TYPE_WINDOW_TYPE, "Type", RG_TARGET_NAMESPACE);
|
1105
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, GDK_TYPE_WINDOW_TYPE, "GDK_WINDOW_");
|
1106
|
+
|
1127
1107
|
/* GdkWindowClass */
|
1128
|
-
G_DEF_CLASS(GDK_TYPE_WINDOW_CLASS, "Class",
|
1129
|
-
G_DEF_CONSTANTS(
|
1108
|
+
G_DEF_CLASS(GDK_TYPE_WINDOW_CLASS, "Class", RG_TARGET_NAMESPACE);
|
1109
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, GDK_TYPE_WINDOW_CLASS, "GDK_");
|
1130
1110
|
|
1131
1111
|
/* GdkWindowHints */
|
1132
|
-
G_DEF_CLASS(GDK_TYPE_WINDOW_HINTS, "Hints",
|
1133
|
-
G_DEF_CONSTANTS(
|
1112
|
+
G_DEF_CLASS(GDK_TYPE_WINDOW_HINTS, "Hints", RG_TARGET_NAMESPACE);
|
1113
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, GDK_TYPE_WINDOW_HINTS, "GDK_");
|
1134
1114
|
|
1135
1115
|
/* GdkGravity */
|
1136
|
-
G_DEF_CLASS(GDK_TYPE_GRAVITY, "Gravity",
|
1137
|
-
G_DEF_CONSTANTS(
|
1116
|
+
G_DEF_CLASS(GDK_TYPE_GRAVITY, "Gravity", RG_TARGET_NAMESPACE);
|
1117
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, GDK_TYPE_GRAVITY, "GDK_");
|
1138
1118
|
|
1139
1119
|
/* GdkWindowEdge */
|
1140
|
-
G_DEF_CLASS(GDK_TYPE_WINDOW_EDGE, "Edge",
|
1141
|
-
G_DEF_CONSTANTS(
|
1120
|
+
G_DEF_CLASS(GDK_TYPE_WINDOW_EDGE, "Edge", RG_TARGET_NAMESPACE);
|
1121
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, GDK_TYPE_WINDOW_EDGE, "GDK_WINDOW_");
|
1142
1122
|
|
1143
1123
|
/* GdkWindowTypeHint */
|
1144
|
-
G_DEF_CLASS(GDK_TYPE_WINDOW_TYPE_HINT, "TypeHint",
|
1145
|
-
G_DEF_CONSTANTS(
|
1124
|
+
G_DEF_CLASS(GDK_TYPE_WINDOW_TYPE_HINT, "TypeHint", RG_TARGET_NAMESPACE);
|
1125
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, GDK_TYPE_WINDOW_TYPE_HINT, "GDK_WINDOW_");
|
1146
1126
|
|
1147
1127
|
/* GdkWindowAttibutesType */
|
1148
|
-
G_DEF_CLASS(GDK_TYPE_WINDOW_ATTRIBUTES_TYPE, "AttributesType",
|
1149
|
-
G_DEF_CONSTANTS(
|
1128
|
+
G_DEF_CLASS(GDK_TYPE_WINDOW_ATTRIBUTES_TYPE, "AttributesType", RG_TARGET_NAMESPACE);
|
1129
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, GDK_TYPE_WINDOW_ATTRIBUTES_TYPE, "GDK_");
|
1150
1130
|
|
1151
1131
|
/* GdkFilterReturn */
|
1152
|
-
G_DEF_CLASS(GDK_TYPE_FILTER_RETURN, "FilterReturn",
|
1153
|
-
G_DEF_CONSTANTS(
|
1132
|
+
G_DEF_CLASS(GDK_TYPE_FILTER_RETURN, "FilterReturn", RG_TARGET_NAMESPACE);
|
1133
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, GDK_TYPE_FILTER_RETURN, "GDK_");
|
1154
1134
|
|
1155
1135
|
/* GdkModifierType */
|
1156
|
-
G_DEF_CLASS(GDK_TYPE_MODIFIER_TYPE, "ModifierType",
|
1157
|
-
G_DEF_CONSTANTS(
|
1158
|
-
|
1136
|
+
G_DEF_CLASS(GDK_TYPE_MODIFIER_TYPE, "ModifierType", RG_TARGET_NAMESPACE);
|
1137
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, GDK_TYPE_MODIFIER_TYPE, "GDK_");
|
1138
|
+
|
1159
1139
|
/* GdkWMDecoration */
|
1160
|
-
G_DEF_CLASS(GDK_TYPE_WM_DECORATION, "WMDecoration",
|
1161
|
-
G_DEF_CONSTANTS(
|
1162
|
-
|
1140
|
+
G_DEF_CLASS(GDK_TYPE_WM_DECORATION, "WMDecoration", RG_TARGET_NAMESPACE);
|
1141
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, GDK_TYPE_WM_DECORATION, "GDK_");
|
1142
|
+
|
1163
1143
|
/* GdkWMFunction */
|
1164
|
-
G_DEF_CLASS(GDK_TYPE_WM_FUNCTION, "WMFunction",
|
1165
|
-
G_DEF_CONSTANTS(
|
1144
|
+
G_DEF_CLASS(GDK_TYPE_WM_FUNCTION, "WMFunction", RG_TARGET_NAMESPACE);
|
1145
|
+
G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, GDK_TYPE_WM_FUNCTION, "GDK_");
|
1166
1146
|
|
1167
|
-
rb_define_const(
|
1147
|
+
rb_define_const(RG_TARGET_NAMESPACE, "PARENT_RELATIVE", INT2FIX(GDK_PARENT_RELATIVE));
|
1168
1148
|
|
1169
1149
|
#ifdef GDK_WINDOWING_X11
|
1170
|
-
|
1150
|
+
RG_DEF_METHOD(server_time, 0);
|
1171
1151
|
|
1172
1152
|
#if GTK_CHECK_VERSION(2,6,0)
|
1173
|
-
|
1153
|
+
RG_DEF_METHOD(set_user_time, 1);
|
1174
1154
|
#endif
|
1175
1155
|
#if GTK_CHECK_VERSION(2,8,0)
|
1176
|
-
|
1156
|
+
RG_DEF_METHOD(move_to_current_desktop, 0);
|
1177
1157
|
#endif
|
1178
1158
|
|
1179
1159
|
G_DEF_CLASS3("GdkWindowImplX11", "WindowImplX11", mGdk);
|
@@ -1183,4 +1163,3 @@ Init_gtk_gdk_window()
|
|
1183
1163
|
G_DEF_CLASS3("GdkWindowFB", "WindowFB", mGdk);
|
1184
1164
|
#endif
|
1185
1165
|
}
|
1186
|
-
|