gdk3 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/Rakefile +53 -0
  2. data/ext/gdk3/depend +11 -0
  3. data/ext/gdk3/extconf.rb +127 -0
  4. data/ext/gdk3/gdk3.def +12 -0
  5. data/ext/gdk3/init.c +35 -0
  6. data/ext/gdk3/rbgdk.c +540 -0
  7. data/ext/gdk3/rbgdk3.h +71 -0
  8. data/ext/gdk3/rbgdk3conversions.h +118 -0
  9. data/ext/gdk3/rbgdk3private.h +93 -0
  10. data/ext/gdk3/rbgdkatom.c +122 -0
  11. data/ext/gdk3/rbgdkcairo.c +95 -0
  12. data/ext/gdk3/rbgdkcolor.c +137 -0
  13. data/ext/gdk3/rbgdkconst.c +33 -0
  14. data/ext/gdk3/rbgdkcursor.c +99 -0
  15. data/ext/gdk3/rbgdkdevice.c +197 -0
  16. data/ext/gdk3/rbgdkdisplay.c +482 -0
  17. data/ext/gdk3/rbgdkdisplaymanager.c +55 -0
  18. data/ext/gdk3/rbgdkdragcontext.c +191 -0
  19. data/ext/gdk3/rbgdkdraw.c +520 -0
  20. data/ext/gdk3/rbgdkevent.c +926 -0
  21. data/ext/gdk3/rbgdkgeometry.c +252 -0
  22. data/ext/gdk3/rbgdkkeymap.c +151 -0
  23. data/ext/gdk3/rbgdkkeyval.c +108 -0
  24. data/ext/gdk3/rbgdkpango.c +197 -0
  25. data/ext/gdk3/rbgdkpangorenderer.c +144 -0
  26. data/ext/gdk3/rbgdkpixbuf.c +176 -0
  27. data/ext/gdk3/rbgdkproperty.c +305 -0
  28. data/ext/gdk3/rbgdkrectangle.c +140 -0
  29. data/ext/gdk3/rbgdkrgb.c +199 -0
  30. data/ext/gdk3/rbgdkrgba.c +142 -0
  31. data/ext/gdk3/rbgdkscreen.c +443 -0
  32. data/ext/gdk3/rbgdkselection.c +146 -0
  33. data/ext/gdk3/rbgdkthreads.c +77 -0
  34. data/ext/gdk3/rbgdktimecoord.c +133 -0
  35. data/ext/gdk3/rbgdkvisual.c +251 -0
  36. data/ext/gdk3/rbgdkwindow.c +1044 -0
  37. data/ext/gdk3/rbgdkwindowattr.c +191 -0
  38. data/ext/gdk3/rbgdkx11.c +102 -0
  39. data/ext/gdk3/rbgdkx11x11window.c +66 -0
  40. data/extconf.rb +49 -0
  41. data/lib/gdk3.rb +3 -0
  42. data/lib/gdk3/base.rb +50 -0
  43. data/lib/gdk3/deprecated.rb +152 -0
  44. metadata +156 -0
@@ -0,0 +1,152 @@
1
+ module Gdk
2
+ extend GLib::Deprecatable
3
+ define_deprecated_enums :GrabStatus, 'GRAB'
4
+ define_deprecated_enums :Status
5
+ define_deprecated_const :Image, :raise => "Use 'Gdk::Pixbuf' or 'Cairo::Surface' instead."
6
+ define_deprecated_const :Colormap, :raise => "Use 'Gdk::Visual' instead."
7
+ define_deprecated_const :Input, :raise => "Use 'GLib::IOChannel' instead."
8
+ define_deprecated_const :X11, 'GdkX11'
9
+
10
+ class Cursor
11
+ extend GLib::Deprecatable
12
+ define_deprecated_enums :Type
13
+ define_deprecated_method :pixmap?, :warn => "Don't use this method." do |_self|
14
+ false
15
+ end
16
+ end
17
+
18
+ class Device
19
+ extend GLib::Deprecatable
20
+ define_deprecated_enums :AxisUse, 'AXIS'
21
+ define_deprecated_enums :ExtensionMode, 'EXTENSION_EVENTS'
22
+ define_deprecated_enums :InputMode, 'MODE'
23
+ define_deprecated_enums :InputSource, 'SOURCE'
24
+ define_deprecated_method :source, :input_source
25
+ end
26
+
27
+ class Display
28
+ extend GLib::Deprecatable
29
+ define_deprecated_method :double_click_time, :raise => "Don't use this method."
30
+ define_deprecated_method :double_click_distance, :raise => "Don't use this method."
31
+ define_deprecated_method :button_click_time, :raise => "Don't use this method."
32
+ define_deprecated_method :button_window, :raise => "Don't use this method."
33
+ define_deprecated_method :button_number, :raise => "Don't use this method."
34
+ define_deprecated_method :button_x, :raise => "Don't use this method."
35
+ define_deprecated_method :button_y, :raise => "Don't use this method."
36
+ end
37
+
38
+ class DragContext
39
+ extend GLib::Deprecatable
40
+ define_deprecated_flags :Action, 'ACTION'
41
+ define_deprecated_enums :Protocol, 'PROTO'
42
+ define_deprecated_singleton_method :drag_begin, :warn => "Use 'Gdk::Window#drag_begin'." do |_self, window, targets|
43
+ window.drag_begin(targets)
44
+ end
45
+ define_deprecated_singleton_method :get_protocol, :raise => "Use 'Gdk::Window#drag_protocol'."
46
+ define_deprecated_method :initialize, :raise => "Use 'Gdk::Window#drag_begin'."
47
+ define_deprecated_method :action, :selected_action
48
+ define_deprecated_method :source?, :warn => "Don't use this method."
49
+ define_deprecated_method :start_time, :raise => "Don't use this method."
50
+ end
51
+
52
+ class Event
53
+ extend GLib::Deprecatable
54
+ define_deprecated_flags :Mask
55
+ define_deprecated_enums :Type
56
+ end
57
+
58
+ class EventCrossing
59
+ extend GLib::Deprecatable
60
+ define_deprecated_enums :Mode
61
+ define_deprecated_enums :NotifyType, 'NOTIFY'
62
+ end
63
+
64
+ class EventOwnerChange
65
+ extend GLib::Deprecatable
66
+ define_deprecated_enums :OwnerChange
67
+ end
68
+
69
+ class EventProperty
70
+ extend GLib::Deprecatable
71
+ define_deprecated_enums :State, 'PROPERTY'
72
+ end
73
+
74
+ class EventScroll
75
+ extend GLib::Deprecatable
76
+ define_deprecated_enums :Direction
77
+ end
78
+
79
+ class EventSetting
80
+ extend GLib::Deprecatable
81
+ define_deprecated_enums :Action, 'ACTION'
82
+ end
83
+
84
+ class EventVisibility
85
+ extend GLib::Deprecatable
86
+ define_deprecated_enums :State
87
+ end
88
+
89
+ class EventWindowState
90
+ extend GLib::Deprecatable
91
+ define_deprecated_flags :WindowState
92
+ end
93
+
94
+ module Keyval
95
+ extend GLib::Deprecatable
96
+ constants.each do |key|
97
+ define_deprecated_const key.to_s.sub(/^GDK_KEY_/, 'GDK_'), [self, key].join('::')
98
+ end
99
+ end
100
+
101
+ class Pixmap
102
+ extend GLib::Deprecatable
103
+ define_deprecated_method :initialize, :raise => "Use 'Gdk::Window#create_similar_surface'."
104
+ define_deprecated_singleton_method :create_from_data, :raise => "Use 'Cairo::ImageSurface.new'."
105
+ define_deprecated_singleton_method :create_from_xbm, :raise => "Use 'Cairo::ImageSurface.new'."
106
+ define_deprecated_singleton_method :create_from_xpm, :raise => "Use 'Gdk::Pixbuf.new'."
107
+ define_deprecated_singleton_method :create_from_xpm_d, :raise => "Use 'Gdk::Pixbuf.new'."
108
+ define_deprecated_singleton_method :colormap_create_from_xpm, :raise => "Use 'Gdk::Pixbuf.new'."
109
+ define_deprecated_singleton_method :colormap_create_from_xpm_d, :raise => "Use 'Gdk::Pixbuf.new'."
110
+ define_deprecated_singleton_method :foreign_new, :raise => "Don't use this method."
111
+ define_deprecated_singleton_method :lookup, :raise => "Don't use this method."
112
+ end
113
+
114
+ module Property
115
+ extend GLib::Deprecatable
116
+ define_deprecated_enums :PropMode, 'MODE'
117
+ end
118
+
119
+ class Visual
120
+ extend GLib::Deprecatable
121
+ define_deprecated_enums :ByteOrder
122
+ define_deprecated_enums :Type
123
+ end
124
+
125
+ class Window
126
+ extend GLib::Deprecatable
127
+ define_deprecated_flags :AttributesType, 'WA'
128
+ define_deprecated_enums :Edge, 'EDGE'
129
+ define_deprecated_enums :FilterReturn, 'FILTER'
130
+ define_deprecated_enums :Gravity, 'GRAVITY'
131
+ define_deprecated_flags :Hints, 'HINT'
132
+ define_deprecated_flags :ModifierType
133
+ define_deprecated_enums :Type
134
+ define_deprecated_enums :TypeHint, 'TYPE_HINT'
135
+ define_deprecated_flags :WMDecoration, 'DECOR'
136
+ define_deprecated_flags :WMFunction, 'FUNC'
137
+ define_deprecated_method :clear, :warn => "Don't use this method."
138
+ define_deprecated_method :clear_area, :warn => "Don't use this method."
139
+ define_deprecated_method :internal_paint_info, :raise => "Don't use this method."
140
+ define_deprecated_method :shape_combine_mask, :warn => "Don't use this method."
141
+ define_deprecated_method :input_shape_combine_mask, :warn => "Don't use this method."
142
+ define_deprecated_method :set_back_pixmap, :warn => "Don't use this method."
143
+ end
144
+
145
+ class WindowAttr
146
+ extend GLib::Deprecatable
147
+ define_deprecated_method :colormap, :raise => "Don't use this method."
148
+ define_deprecated_method :set_colormap, :warn => "Don't use this method."
149
+ alias :colormap= :set_colormap
150
+ end
151
+ end
152
+
metadata ADDED
@@ -0,0 +1,156 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gdk3
3
+ version: !ruby/object:Gem::Version
4
+ hash: 31
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 2
9
+ - 0
10
+ version: 1.2.0
11
+ platform: ruby
12
+ authors:
13
+ - The Ruby-GNOME2 Project Team
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2013-01-24 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: atk
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 31
29
+ segments:
30
+ - 1
31
+ - 2
32
+ - 0
33
+ version: 1.2.0
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: pango
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 31
45
+ segments:
46
+ - 1
47
+ - 2
48
+ - 0
49
+ version: 1.2.0
50
+ type: :runtime
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: gdk_pixbuf2
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 31
61
+ segments:
62
+ - 1
63
+ - 2
64
+ - 0
65
+ version: 1.2.0
66
+ type: :runtime
67
+ version_requirements: *id003
68
+ description: Ruby/GDK3 is a Ruby binding of GDK-3.x.
69
+ email: ruby-gnome2-devel-en@lists.sourceforge.net
70
+ executables: []
71
+
72
+ extensions:
73
+ - ext/gdk3/extconf.rb
74
+ extra_rdoc_files: []
75
+
76
+ files:
77
+ - Rakefile
78
+ - extconf.rb
79
+ - lib/gdk3.rb
80
+ - lib/gdk3/deprecated.rb
81
+ - lib/gdk3/base.rb
82
+ - ext/gdk3/rbgdkconst.c
83
+ - ext/gdk3/rbgdkx11x11window.c
84
+ - ext/gdk3/rbgdkrectangle.c
85
+ - ext/gdk3/rbgdkselection.c
86
+ - ext/gdk3/init.c
87
+ - ext/gdk3/rbgdkwindow.c
88
+ - ext/gdk3/rbgdkrgba.c
89
+ - ext/gdk3/rbgdkwindowattr.c
90
+ - ext/gdk3/rbgdkatom.c
91
+ - ext/gdk3/rbgdkcolor.c
92
+ - ext/gdk3/rbgdkscreen.c
93
+ - ext/gdk3/gdk3.def
94
+ - ext/gdk3/rbgdk.c
95
+ - ext/gdk3/rbgdk3.h
96
+ - ext/gdk3/rbgdk3conversions.h
97
+ - ext/gdk3/rbgdkx11.c
98
+ - ext/gdk3/rbgdkvisual.c
99
+ - ext/gdk3/rbgdkevent.c
100
+ - ext/gdk3/rbgdkpixbuf.c
101
+ - ext/gdk3/rbgdkpangorenderer.c
102
+ - ext/gdk3/rbgdkkeymap.c
103
+ - ext/gdk3/rbgdkproperty.c
104
+ - ext/gdk3/rbgdkthreads.c
105
+ - ext/gdk3/extconf.rb
106
+ - ext/gdk3/rbgdk3private.h
107
+ - ext/gdk3/rbgdkkeyval.c
108
+ - ext/gdk3/rbgdkdisplaymanager.c
109
+ - ext/gdk3/rbgdkpango.c
110
+ - ext/gdk3/rbgdkdevice.c
111
+ - ext/gdk3/rbgdkdragcontext.c
112
+ - ext/gdk3/rbgdkrgb.c
113
+ - ext/gdk3/rbgdkdraw.c
114
+ - ext/gdk3/rbgdkcursor.c
115
+ - ext/gdk3/depend
116
+ - ext/gdk3/rbgdkcairo.c
117
+ - ext/gdk3/rbgdkgeometry.c
118
+ - ext/gdk3/rbgdktimecoord.c
119
+ - ext/gdk3/rbgdkdisplay.c
120
+ homepage: http://ruby-gnome2.sourceforge.jp/
121
+ licenses: []
122
+
123
+ post_install_message: This library is experimental.
124
+ rdoc_options: []
125
+
126
+ require_paths:
127
+ - lib
128
+ required_ruby_version: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ hash: 55
134
+ segments:
135
+ - 1
136
+ - 9
137
+ - 2
138
+ version: 1.9.2
139
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
+ none: false
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ hash: 3
145
+ segments:
146
+ - 0
147
+ version: "0"
148
+ requirements: []
149
+
150
+ rubyforge_project:
151
+ rubygems_version: 1.8.24
152
+ signing_key:
153
+ specification_version: 3
154
+ summary: Ruby/GDK3 is a Ruby binding of GDK-3.x.
155
+ test_files: []
156
+