context 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. data/Rakefile.rb +107 -0
  2. data/coverage/-usr-local-lib-site_ruby-1_8-atk_rb.html +612 -0
  3. data/coverage/-usr-local-lib-site_ruby-1_8-gdk_pixbuf2_rb.html +637 -0
  4. data/coverage/-usr-local-lib-site_ruby-1_8-glib2_rb.html +829 -0
  5. data/coverage/-usr-local-lib-site_ruby-1_8-gtk2-base_rb.html +709 -0
  6. data/coverage/-usr-local-lib-site_ruby-1_8-gtk2_rb.html +623 -0
  7. data/coverage/-usr-local-lib-site_ruby-1_8-pango_rb.html +665 -0
  8. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-color_rb.html +865 -0
  9. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-colors_rb.html +1266 -0
  10. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-constants_rb.html +632 -0
  11. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-blur_rb.html +655 -0
  12. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-circle_rb.html +619 -0
  13. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-color_rb.html +621 -0
  14. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-path_rb.html +726 -0
  15. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-rectangle_rb.html +643 -0
  16. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context-triangle_rb.html +622 -0
  17. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-context_rb.html +639 -0
  18. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-paper_rb.html +793 -0
  19. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-papers_rb.html +651 -0
  20. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-path_rb.html +625 -0
  21. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo-point_rb.html +617 -0
  22. data/coverage/-var-lib-gems-1_8-gems-cairo-1_7_0-src-lib-cairo_rb.html +756 -0
  23. data/coverage/index.html +1170 -0
  24. data/coverage/lib-Context-Bridge_rb.html +673 -0
  25. data/coverage/lib-Context-Context_rb.html +756 -0
  26. data/coverage/lib-Context-EnumeratedType_rb.html +661 -0
  27. data/coverage/lib-Context-ExecutionProxy_rb.html +671 -0
  28. data/coverage/lib-Context-Gtk-App_rb.html +638 -0
  29. data/coverage/lib-Context-Gtk-Key_rb.html +664 -0
  30. data/coverage/lib-Context-Gtk-Widget_rb.html +667 -0
  31. data/coverage/lib-Context-KeyAssignment_rb.html +641 -0
  32. data/coverage/lib-Context-KeyMap_rb.html +653 -0
  33. data/coverage/lib-Context-Key_rb.html +667 -0
  34. data/coverage/lib-Context-View_rb.html +659 -0
  35. data/coverage/lib-Context-Views-Gtk-PageView_rb.html +660 -0
  36. data/coverage/lib-Context-Views-PageView_rb.html +627 -0
  37. data/coverage/lib-Context-Widget_rb.html +650 -0
  38. data/coverage/lib-Context-require_all_rb.html +623 -0
  39. data/doc/classes/Context.html +174 -0
  40. data/doc/classes/Context/Bridge.html +296 -0
  41. data/doc/classes/Context/Context.html +564 -0
  42. data/doc/classes/Context/EnumeratedType.html +283 -0
  43. data/doc/classes/Context/ExecutionProxy.html +228 -0
  44. data/doc/classes/Context/Gtk.html +126 -0
  45. data/doc/classes/Context/Gtk/App.html +217 -0
  46. data/doc/classes/Context/Gtk/Key.html +292 -0
  47. data/doc/classes/Context/Gtk/PageView.html +245 -0
  48. data/doc/classes/Context/Gtk/PageView/MainWindow.html +200 -0
  49. data/doc/classes/Context/Gtk/Widget.html +311 -0
  50. data/doc/classes/Context/Key.html +305 -0
  51. data/doc/classes/Context/Key/Modifier.html +117 -0
  52. data/doc/classes/Context/KeyAssignment.html +234 -0
  53. data/doc/classes/Context/KeyMap.html +273 -0
  54. data/doc/classes/Context/PageView.html +180 -0
  55. data/doc/classes/Context/View.html +334 -0
  56. data/doc/classes/Context/Widget.html +298 -0
  57. data/doc/classes/Kernel.html +148 -0
  58. data/doc/classes/Object.html +196 -0
  59. data/doc/created.rid +1 -0
  60. data/doc/files/lib/Context/Bridge_rb.html +108 -0
  61. data/doc/files/lib/Context/Context_rb.html +109 -0
  62. data/doc/files/lib/Context/EnumeratedType_rb.html +101 -0
  63. data/doc/files/lib/Context/ExecutionProxy_rb.html +101 -0
  64. data/doc/files/lib/Context/Gtk/App_rb.html +110 -0
  65. data/doc/files/lib/Context/Gtk/Key_rb.html +109 -0
  66. data/doc/files/lib/Context/Gtk/Widget_rb.html +109 -0
  67. data/doc/files/lib/Context/KeyAssignment_rb.html +108 -0
  68. data/doc/files/lib/Context/KeyMap_rb.html +109 -0
  69. data/doc/files/lib/Context/Key_rb.html +108 -0
  70. data/doc/files/lib/Context/Version_rb.html +101 -0
  71. data/doc/files/lib/Context/View_rb.html +101 -0
  72. data/doc/files/lib/Context/Views/Gtk/PageView_rb.html +111 -0
  73. data/doc/files/lib/Context/Views/PageView_rb.html +108 -0
  74. data/doc/files/lib/Context/Widget_rb.html +101 -0
  75. data/doc/files/lib/Context/require_all_rb.html +101 -0
  76. data/doc/fr_class_index.html +46 -0
  77. data/doc/fr_file_index.html +42 -0
  78. data/doc/fr_method_index.html +103 -0
  79. data/doc/index.html +24 -0
  80. data/doc/rdoc-style.css +208 -0
  81. data/lib/Context/Bridge.rb +63 -0
  82. data/lib/Context/Context.rb +146 -0
  83. data/lib/Context/EnumeratedType.rb +51 -0
  84. data/lib/Context/ExecutionProxy.rb +61 -0
  85. data/lib/Context/Gtk/App.rb +28 -0
  86. data/lib/Context/Gtk/Key.rb +54 -0
  87. data/lib/Context/Gtk/Widget.rb +57 -0
  88. data/lib/Context/Key.rb +57 -0
  89. data/lib/Context/KeyAssignment.rb +31 -0
  90. data/lib/Context/KeyMap.rb +43 -0
  91. data/lib/Context/Version.rb +5 -0
  92. data/lib/Context/View.rb +49 -0
  93. data/lib/Context/Views/Gtk/PageView.rb +50 -0
  94. data/lib/Context/Views/PageView.rb +17 -0
  95. data/lib/Context/Widget.rb +40 -0
  96. data/lib/Context/require_all.rb +13 -0
  97. data/spec/Context/Bridge_spec.rb +40 -0
  98. data/spec/Context/Context_spec.rb +102 -0
  99. data/spec/Context/EnumeratedType_spec.rb +51 -0
  100. data/spec/Context/ExecutionProxy_spec.rb +28 -0
  101. data/spec/Context/Gtk/App_spec.rb +24 -0
  102. data/spec/Context/Gtk/Key_spec.rb +45 -0
  103. data/spec/Context/Gtk/Widget_spec.rb +44 -0
  104. data/spec/Context/KeyAssignment_spec.rb +26 -0
  105. data/spec/Context/KeyMap_spec.rb +64 -0
  106. data/spec/Context/Key_spec.rb +22 -0
  107. data/spec/Context/View_spec.rb +62 -0
  108. data/spec/Context/Views/Gtk/PageView_spec.rb +44 -0
  109. data/spec/Context/Views/PageView_spec.rb +20 -0
  110. data/spec/Context/Widget_spec.rb +15 -0
  111. data/spec/Context/require_all_spec.rb +13 -0
  112. data/test_results.html +343 -0
  113. metadata +179 -0
@@ -0,0 +1,126 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: Context::Gtk</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">Context::Gtk</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/Context/Gtk/App_rb.html">
59
+ lib/Context/Gtk/App.rb
60
+ </a>
61
+ <br />
62
+ <a href="../../files/lib/Context/Gtk/Key_rb.html">
63
+ lib/Context/Gtk/Key.rb
64
+ </a>
65
+ <br />
66
+ <a href="../../files/lib/Context/Gtk/Widget_rb.html">
67
+ lib/Context/Gtk/Widget.rb
68
+ </a>
69
+ <br />
70
+ <a href="../../files/lib/Context/Views/Gtk/PageView_rb.html">
71
+ lib/Context/Views/Gtk/PageView.rb
72
+ </a>
73
+ <br />
74
+ </td>
75
+ </tr>
76
+
77
+ </table>
78
+ </div>
79
+ <!-- banner header -->
80
+
81
+ <div id="bodyContent">
82
+
83
+
84
+
85
+ <div id="contextContent">
86
+
87
+
88
+
89
+ </div>
90
+
91
+
92
+ </div>
93
+
94
+
95
+ <!-- if includes -->
96
+
97
+ <div id="section">
98
+
99
+ <div id="class-list">
100
+ <h3 class="section-bar">Classes and Modules</h3>
101
+
102
+ Class <a href="Gtk/App.html" class="link">Context::Gtk::App</a><br />
103
+ Class <a href="Gtk/Key.html" class="link">Context::Gtk::Key</a><br />
104
+ Class <a href="Gtk/PageView.html" class="link">Context::Gtk::PageView</a><br />
105
+ Class <a href="Gtk/Widget.html" class="link">Context::Gtk::Widget</a><br />
106
+
107
+ </div>
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+ <!-- if method_list -->
116
+
117
+
118
+ </div>
119
+
120
+
121
+ <div id="validator-badges">
122
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
123
+ </div>
124
+
125
+ </body>
126
+ </html>
@@ -0,0 +1,217 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Context::Gtk::App</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Context::Gtk::App</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../files/lib/Context/Gtk/App_rb.html">
59
+ lib/Context/Gtk/App.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ <a href="../Context.html">
69
+ Context::Context
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+
84
+
85
+ </div>
86
+
87
+ <div id="method-list">
88
+ <h3 class="section-bar">Methods</h3>
89
+
90
+ <div class="name-list">
91
+ <a href="#M000004">enter</a>&nbsp;&nbsp;
92
+ <a href="#M000005">exit</a>&nbsp;&nbsp;
93
+ <a href="#M000003">new</a>&nbsp;&nbsp;
94
+ </div>
95
+ </div>
96
+
97
+ </div>
98
+
99
+
100
+ <!-- if includes -->
101
+
102
+ <div id="section">
103
+
104
+
105
+
106
+
107
+
108
+ <div id="attribute-list">
109
+ <h3 class="section-bar">Attributes</h3>
110
+
111
+ <div class="name-list">
112
+ <table>
113
+ <tr class="top-aligned-row context-row">
114
+ <td class="context-item-name">mainContext</td>
115
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
116
+ <td class="context-item-desc"></td>
117
+ </tr>
118
+ </table>
119
+ </div>
120
+ </div>
121
+
122
+
123
+
124
+ <!-- if method_list -->
125
+ <div id="methods">
126
+ <h3 class="section-bar">Public Class methods</h3>
127
+
128
+ <div id="method-M000003" class="method-detail">
129
+ <a name="M000003"></a>
130
+
131
+ <div class="method-heading">
132
+ <a href="#M000003" class="method-signature">
133
+ <span class="method-name">new</span><span class="method-args">(namespace, context)</span>
134
+ </a>
135
+ </div>
136
+
137
+ <div class="method-description">
138
+ <p><a class="source-toggle" href="#"
139
+ onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
140
+ <div class="method-source-code" id="M000003-source">
141
+ <pre>
142
+ <span class="ruby-comment cmt"># File lib/Context/Gtk/App.rb, line 10</span>
143
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">namespace</span>, <span class="ruby-identifier">context</span>)
144
+ <span class="ruby-identifier">viewBridge</span> = <span class="ruby-constant">Context</span><span class="ruby-operator">::</span><span class="ruby-constant">Bridge</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">namespace</span>)
145
+ <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">viewBridge</span>)
146
+ <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">init</span>
147
+ <span class="ruby-ivar">@mainContext</span> = <span class="ruby-identifier">context</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">viewBridge</span>)
148
+ <span class="ruby-keyword kw">end</span>
149
+ </pre>
150
+ </div>
151
+ </div>
152
+ </div>
153
+
154
+ <h3 class="section-bar">Public Instance methods</h3>
155
+
156
+ <div id="method-M000004" class="method-detail">
157
+ <a name="M000004"></a>
158
+
159
+ <div class="method-heading">
160
+ <a href="#M000004" class="method-signature">
161
+ <span class="method-name">enter</span><span class="method-args">()</span>
162
+ </a>
163
+ </div>
164
+
165
+ <div class="method-description">
166
+ <p><a class="source-toggle" href="#"
167
+ onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
168
+ <div class="method-source-code" id="M000004-source">
169
+ <pre>
170
+ <span class="ruby-comment cmt"># File lib/Context/Gtk/App.rb, line 17</span>
171
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">enter</span>
172
+ <span class="ruby-keyword kw">super</span>(<span class="ruby-keyword kw">nil</span>)
173
+ <span class="ruby-ivar">@mainContext</span>.<span class="ruby-identifier">enter</span>(<span class="ruby-keyword kw">self</span>)
174
+ <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">main</span>
175
+ <span class="ruby-keyword kw">end</span>
176
+ </pre>
177
+ </div>
178
+ </div>
179
+ </div>
180
+
181
+ <div id="method-M000005" class="method-detail">
182
+ <a name="M000005"></a>
183
+
184
+ <div class="method-heading">
185
+ <a href="#M000005" class="method-signature">
186
+ <span class="method-name">exit</span><span class="method-args">()</span>
187
+ </a>
188
+ </div>
189
+
190
+ <div class="method-description">
191
+ <p><a class="source-toggle" href="#"
192
+ onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
193
+ <div class="method-source-code" id="M000005-source">
194
+ <pre>
195
+ <span class="ruby-comment cmt"># File lib/Context/Gtk/App.rb, line 23</span>
196
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exit</span>
197
+ <span class="ruby-keyword kw">super</span>()
198
+ <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">main_quit</span>
199
+ <span class="ruby-keyword kw">end</span>
200
+ </pre>
201
+ </div>
202
+ </div>
203
+ </div>
204
+
205
+
206
+ </div>
207
+
208
+
209
+ </div>
210
+
211
+
212
+ <div id="validator-badges">
213
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
214
+ </div>
215
+
216
+ </body>
217
+ </html>
@@ -0,0 +1,292 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Context::Gtk::Key</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Context::Gtk::Key</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../files/lib/Context/Gtk/Key_rb.html">
59
+ lib/Context/Gtk/Key.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ <a href="../Key.html">
69
+ Context::Key
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+
84
+
85
+ </div>
86
+
87
+ <div id="method-list">
88
+ <h3 class="section-bar">Methods</h3>
89
+
90
+ <div class="name-list">
91
+ <a href="#M000022">createFromGtkEvent</a>&nbsp;&nbsp;
92
+ <a href="#M000023">createGtkEvent</a>&nbsp;&nbsp;
93
+ <a href="#M000020">getCharacterFromEvent</a>&nbsp;&nbsp;
94
+ <a href="#M000021">getGtkKeyval</a>&nbsp;&nbsp;
95
+ <a href="#M000019">getGtkState</a>&nbsp;&nbsp;
96
+ <a href="#M000018">getModifierFromEvent</a>&nbsp;&nbsp;
97
+ </div>
98
+ </div>
99
+
100
+ </div>
101
+
102
+
103
+ <!-- if includes -->
104
+
105
+ <div id="section">
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+ <!-- if method_list -->
115
+ <div id="methods">
116
+ <h3 class="section-bar">Public Class methods</h3>
117
+
118
+ <div id="method-M000022" class="method-detail">
119
+ <a name="M000022"></a>
120
+
121
+ <div class="method-heading">
122
+ <a href="#M000022" class="method-signature">
123
+ <span class="method-name">createFromGtkEvent</span><span class="method-args">(event)</span>
124
+ </a>
125
+ </div>
126
+
127
+ <div class="method-description">
128
+ <p><a class="source-toggle" href="#"
129
+ onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
130
+ <div class="method-source-code" id="M000022-source">
131
+ <pre>
132
+ <span class="ruby-comment cmt"># File lib/Context/Gtk/Key.rb, line 36</span>
133
+ <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Key</span><span class="ruby-operator">::</span><span class="ruby-identifier">createFromGtkEvent</span>(<span class="ruby-identifier">event</span>)
134
+ <span class="ruby-identifier">modifier</span> = <span class="ruby-identifier">getModifierFromEvent</span>(<span class="ruby-identifier">event</span>)
135
+ <span class="ruby-identifier">character</span> = <span class="ruby-identifier">getCharacterFromEvent</span>(<span class="ruby-identifier">event</span>)
136
+ <span class="ruby-keyword kw">if</span>((<span class="ruby-identifier">modifier</span> <span class="ruby-operator">!=</span> <span class="ruby-constant">Context</span><span class="ruby-operator">::</span><span class="ruby-constant">Key</span><span class="ruby-operator">::</span><span class="ruby-constant">Modifier</span><span class="ruby-operator">::</span><span class="ruby-constant">ERROR</span>) <span class="ruby-operator">&amp;&amp;</span>
137
+ (<span class="ruby-operator">!</span><span class="ruby-identifier">character</span>.<span class="ruby-identifier">nil?</span>))
138
+ <span class="ruby-constant">Key</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">modifier</span>, <span class="ruby-identifier">character</span>)
139
+ <span class="ruby-keyword kw">else</span>
140
+ <span class="ruby-constant">Key</span>.<span class="ruby-identifier">null</span>
141
+ <span class="ruby-keyword kw">end</span>
142
+ <span class="ruby-keyword kw">end</span>
143
+ </pre>
144
+ </div>
145
+ </div>
146
+ </div>
147
+
148
+ <div id="method-M000020" class="method-detail">
149
+ <a name="M000020"></a>
150
+
151
+ <div class="method-heading">
152
+ <a href="#M000020" class="method-signature">
153
+ <span class="method-name">getCharacterFromEvent</span><span class="method-args">(event)</span>
154
+ </a>
155
+ </div>
156
+
157
+ <div class="method-description">
158
+ <p><a class="source-toggle" href="#"
159
+ onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
160
+ <div class="method-source-code" id="M000020-source">
161
+ <pre>
162
+ <span class="ruby-comment cmt"># File lib/Context/Gtk/Key.rb, line 28</span>
163
+ <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Key</span><span class="ruby-operator">::</span><span class="ruby-identifier">getCharacterFromEvent</span>(<span class="ruby-identifier">event</span>)
164
+ <span class="ruby-constant">Gdk</span><span class="ruby-operator">::</span><span class="ruby-constant">Keyval</span><span class="ruby-operator">::</span><span class="ruby-identifier">to_name</span>(<span class="ruby-identifier">event</span>.<span class="ruby-identifier">keyval</span>)
165
+ <span class="ruby-keyword kw">end</span>
166
+ </pre>
167
+ </div>
168
+ </div>
169
+ </div>
170
+
171
+ <div id="method-M000018" class="method-detail">
172
+ <a name="M000018"></a>
173
+
174
+ <div class="method-heading">
175
+ <a href="#M000018" class="method-signature">
176
+ <span class="method-name">getModifierFromEvent</span><span class="method-args">(event)</span>
177
+ </a>
178
+ </div>
179
+
180
+ <div class="method-description">
181
+ <p><a class="source-toggle" href="#"
182
+ onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
183
+ <div class="method-source-code" id="M000018-source">
184
+ <pre>
185
+ <span class="ruby-comment cmt"># File lib/Context/Gtk/Key.rb, line 8</span>
186
+ <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Key</span><span class="ruby-operator">::</span><span class="ruby-identifier">getModifierFromEvent</span>(<span class="ruby-identifier">event</span>)
187
+ <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">event</span>.<span class="ruby-identifier">state</span>
188
+ <span class="ruby-keyword kw">when</span> <span class="ruby-value">0</span>
189
+ <span class="ruby-constant">Context</span><span class="ruby-operator">::</span><span class="ruby-constant">Key</span><span class="ruby-operator">::</span><span class="ruby-constant">Modifier</span><span class="ruby-operator">::</span><span class="ruby-constant">NONE</span>
190
+ <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Gdk</span><span class="ruby-operator">::</span><span class="ruby-constant">Window</span><span class="ruby-operator">::</span><span class="ruby-constant">CONTROL_MASK</span>
191
+ <span class="ruby-constant">Context</span><span class="ruby-operator">::</span><span class="ruby-constant">Key</span><span class="ruby-operator">::</span><span class="ruby-constant">Modifier</span><span class="ruby-operator">::</span><span class="ruby-constant">CONTROL</span>
192
+ <span class="ruby-keyword kw">else</span>
193
+ <span class="ruby-constant">Context</span><span class="ruby-operator">::</span><span class="ruby-constant">Key</span><span class="ruby-operator">::</span><span class="ruby-constant">Modifier</span><span class="ruby-operator">::</span><span class="ruby-constant">ERROR</span>
194
+ <span class="ruby-keyword kw">end</span>
195
+ <span class="ruby-keyword kw">end</span>
196
+ </pre>
197
+ </div>
198
+ </div>
199
+ </div>
200
+
201
+ <h3 class="section-bar">Public Instance methods</h3>
202
+
203
+ <div id="method-M000023" class="method-detail">
204
+ <a name="M000023"></a>
205
+
206
+ <div class="method-heading">
207
+ <a href="#M000023" class="method-signature">
208
+ <span class="method-name">createGtkEvent</span><span class="method-args">()</span>
209
+ </a>
210
+ </div>
211
+
212
+ <div class="method-description">
213
+ <p><a class="source-toggle" href="#"
214
+ onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
215
+ <div class="method-source-code" id="M000023-source">
216
+ <pre>
217
+ <span class="ruby-comment cmt"># File lib/Context/Gtk/Key.rb, line 47</span>
218
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">createGtkEvent</span>
219
+ <span class="ruby-identifier">event</span> = <span class="ruby-constant">Gdk</span><span class="ruby-operator">::</span><span class="ruby-constant">EventKey</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">Gdk</span><span class="ruby-operator">::</span><span class="ruby-constant">Event</span><span class="ruby-operator">::</span><span class="ruby-constant">KEY_PRESS</span>)
220
+ <span class="ruby-identifier">event</span>.<span class="ruby-identifier">set_state</span>(<span class="ruby-identifier">getGtkState</span>)
221
+ <span class="ruby-identifier">event</span>.<span class="ruby-identifier">set_keyval</span>(<span class="ruby-identifier">getGtkKeyval</span>)
222
+ <span class="ruby-identifier">event</span>
223
+ <span class="ruby-keyword kw">end</span>
224
+ </pre>
225
+ </div>
226
+ </div>
227
+ </div>
228
+
229
+ <div id="method-M000021" class="method-detail">
230
+ <a name="M000021"></a>
231
+
232
+ <div class="method-heading">
233
+ <a href="#M000021" class="method-signature">
234
+ <span class="method-name">getGtkKeyval</span><span class="method-args">()</span>
235
+ </a>
236
+ </div>
237
+
238
+ <div class="method-description">
239
+ <p><a class="source-toggle" href="#"
240
+ onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
241
+ <div class="method-source-code" id="M000021-source">
242
+ <pre>
243
+ <span class="ruby-comment cmt"># File lib/Context/Gtk/Key.rb, line 32</span>
244
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getGtkKeyval</span>
245
+ <span class="ruby-constant">Gdk</span><span class="ruby-operator">::</span><span class="ruby-constant">Keyval</span><span class="ruby-operator">::</span><span class="ruby-identifier">from_name</span>(<span class="ruby-ivar">@character</span>)
246
+ <span class="ruby-keyword kw">end</span>
247
+ </pre>
248
+ </div>
249
+ </div>
250
+ </div>
251
+
252
+ <div id="method-M000019" class="method-detail">
253
+ <a name="M000019"></a>
254
+
255
+ <div class="method-heading">
256
+ <a href="#M000019" class="method-signature">
257
+ <span class="method-name">getGtkState</span><span class="method-args">()</span>
258
+ </a>
259
+ </div>
260
+
261
+ <div class="method-description">
262
+ <p><a class="source-toggle" href="#"
263
+ onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
264
+ <div class="method-source-code" id="M000019-source">
265
+ <pre>
266
+ <span class="ruby-comment cmt"># File lib/Context/Gtk/Key.rb, line 19</span>
267
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getGtkState</span>
268
+ <span class="ruby-keyword kw">case</span> <span class="ruby-ivar">@modifier</span>
269
+ <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Context</span><span class="ruby-operator">::</span><span class="ruby-constant">Key</span><span class="ruby-operator">::</span><span class="ruby-constant">Modifier</span><span class="ruby-operator">::</span><span class="ruby-constant">CONTROL</span>
270
+ <span class="ruby-constant">Gdk</span><span class="ruby-operator">::</span><span class="ruby-constant">Window</span><span class="ruby-operator">::</span><span class="ruby-constant">CONTROL_MASK</span>
271
+ <span class="ruby-keyword kw">else</span>
272
+ <span class="ruby-value">0</span>
273
+ <span class="ruby-keyword kw">end</span>
274
+ <span class="ruby-keyword kw">end</span>
275
+ </pre>
276
+ </div>
277
+ </div>
278
+ </div>
279
+
280
+
281
+ </div>
282
+
283
+
284
+ </div>
285
+
286
+
287
+ <div id="validator-badges">
288
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
289
+ </div>
290
+
291
+ </body>
292
+ </html>