wxruby3 0.9.0 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/ext/wxruby3/include/wxRubyApp.h +338 -0
- data/ext/wxruby3/include/wxruby-Config.h +6 -6
- data/ext/wxruby3/include/wxruby-runtime.h +3 -0
- data/ext/wxruby3/swig/common.i +22 -0
- data/ext/wxruby3/swig/custom/director.swg +296 -0
- data/ext/wxruby3/swig/custom/rubyapi.swg +19 -0
- data/ext/wxruby3/swig/custom/rubyerrors.swg +45 -0
- data/ext/wxruby3/swig/custom/rubyhead.swg +192 -0
- data/ext/wxruby3/swig/custom/rubyrun.swg +187 -0
- data/ext/wxruby3/swig/custom/swigrun.swg +363 -0
- data/ext/wxruby3/swig/custom/typemaps/swigtypemaps.swg +173 -0
- data/ext/wxruby3/swig/wx.i +50 -30
- data/lib/wx/aui/aui_tab_ctrl.rb +18 -0
- data/lib/wx/aui/auinotebook.rb +6 -2
- data/lib/wx/aui/require.rb +1 -0
- data/lib/wx/core/app.rb +2 -2
- data/lib/wx/core/collapsible_pane.rb +1 -1
- data/lib/wx/core/const.rb +83 -0
- data/lib/wx/core/controlwithitems.rb +8 -6
- data/lib/wx/core/menu.rb +10 -0
- data/lib/wx/core/notebook.rb +6 -2
- data/lib/wx/core/sizer.rb +11 -0
- data/lib/wx/core/task_bar_button.rb +19 -0
- data/lib/wx/core/textctrl.rb +11 -1
- data/lib/wx/core/{treectrl.rb → tree_ctrl.rb} +31 -12
- data/lib/wx/core/window.rb +10 -0
- data/lib/wx/doc/app.rb +48 -38
- data/lib/wx/doc/art_locator.rb +47 -43
- data/lib/wx/doc/aui/auimanager.rb +16 -8
- data/lib/wx/doc/aui/auinotebook.rb +20 -5
- data/lib/wx/doc/clipboard.rb +11 -7
- data/lib/wx/doc/colour_dialog.rb +14 -10
- data/lib/wx/doc/const.rb +66 -66
- data/lib/wx/doc/controlwithitems.rb +17 -7
- data/lib/wx/doc/data_object.rb +2 -2
- data/lib/wx/doc/event.rb +0 -6
- data/lib/wx/doc/evthandler.rb +113 -108
- data/lib/wx/doc/font.rb +1 -0
- data/lib/wx/doc/functions.rb +9 -9
- data/lib/wx/doc/gc_dc.rb +6 -1
- data/lib/wx/doc/graphics_context.rb +1 -0
- data/lib/wx/doc/grid/grid.rb +22 -1
- data/lib/wx/doc/help_controller.rb +11 -7
- data/lib/wx/doc/html/html_help_controller.rb +12 -4
- data/lib/wx/doc/list_ctrl.rb +33 -29
- data/lib/wx/doc/menu.rb +20 -0
- data/lib/wx/doc/notebook.rb +21 -0
- data/lib/wx/doc/pg/events.rb +13 -9
- data/lib/wx/doc/pg/pg_property.rb +18 -0
- data/lib/wx/doc/progress_dialog.rb +36 -32
- data/lib/wx/doc/prt/page_setup_dialog.rb +20 -12
- data/lib/wx/doc/prt/print_data.rb +13 -5
- data/lib/wx/doc/prt/print_dialog.rb +31 -23
- data/lib/wx/doc/prt/printer.rb +20 -12
- data/lib/wx/doc/radio_box.rb +19 -15
- data/lib/wx/doc/rbn/ribbon_bar.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_button_bar.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_gallery.rb +13 -5
- data/lib/wx/doc/rbn/ribbon_tool_bar.rb +13 -5
- data/lib/wx/doc/region_iterator.rb +32 -28
- data/lib/wx/doc/rtc/rich_text_composite_object.rb +24 -0
- data/lib/wx/doc/rtc/rich_text_ctrl.rb +24 -0
- data/lib/wx/doc/rtc/rich_text_paragraph.rb +24 -0
- data/lib/wx/doc/rtc/richtext_buffer.rb +27 -19
- data/lib/wx/doc/rtc/richtext_printing.rb +17 -9
- data/lib/wx/doc/rtc/richtext_style_sheet.rb +17 -9
- data/lib/wx/doc/sizer.rb +20 -0
- data/lib/wx/doc/stc/styled_text_ctrl.rb +24 -0
- data/lib/wx/doc/stream.rb +39 -35
- data/lib/wx/doc/system_settings.rb +30 -26
- data/lib/wx/doc/text_validator.rb +12 -8
- data/lib/wx/doc/textctrl.rb +16 -0
- data/lib/wx/doc/tree_ctrl.rb +95 -0
- data/lib/wx/doc/treebook.rb +9 -5
- data/lib/wx/doc/v_list_box.rb +9 -5
- data/lib/wx/doc/variant.rb +164 -160
- data/lib/wx/doc/window.rb +57 -42
- data/lib/wx/doc/window_disabler.rb +10 -6
- data/lib/wx/grid/grid.rb +27 -4
- data/lib/wx/keyword_defs.rb +43 -6
- data/lib/wx/pg/pg_property.rb +22 -0
- data/lib/wx/rtc/require.rb +3 -0
- data/lib/wx/rtc/rich_text_composite_object.rb +25 -0
- data/lib/wx/rtc/rich_text_ctrl.rb +25 -0
- data/lib/wx/rtc/rich_text_paragraph.rb +25 -0
- data/lib/wx/stc/require.rb +1 -0
- data/lib/wx/stc/styled_text_ctrl.rb +25 -0
- data/lib/wx/version.rb +1 -1
- data/rakelib/lib/config/linux.rb +0 -3
- data/rakelib/lib/config/macosx.rb +1 -1
- data/rakelib/lib/config/mingw.rb +1 -1
- data/rakelib/lib/config/unixish.rb +1 -1
- data/rakelib/lib/config.rb +14 -4
- data/rakelib/lib/core/include/funcall.inc +33 -14
- data/rakelib/lib/core/include/swigdirector.inc +384 -0
- data/rakelib/lib/core/include/swigrubyerrors.inc +161 -0
- data/{ext/wxruby3/swig/custom/swig4/rubyrun.swg → rakelib/lib/core/include/swigrubyrun.inc} +245 -120
- data/rakelib/lib/core/include/swigrun.inc +700 -0
- data/rakelib/lib/core/package.rb +19 -9
- data/rakelib/lib/core/parameter.rb +3 -0
- data/rakelib/lib/core/spec.rb +6 -1
- data/rakelib/lib/director/accelerator.rb +3 -4
- data/rakelib/lib/director/accessible.rb +47 -0
- data/rakelib/lib/director/animation.rb +1 -1
- data/rakelib/lib/director/animation_ctrl.rb +20 -0
- data/rakelib/lib/director/app.rb +15 -304
- data/rakelib/lib/director/app_traits.rb +10 -12
- data/rakelib/lib/director/art_provider.rb +1 -1
- data/rakelib/lib/director/ctrl_with_items.rb +17 -5
- data/rakelib/lib/director/data_format.rb +1 -1
- data/rakelib/lib/director/data_object_simple_base.rb +1 -2
- data/rakelib/lib/director/derived_dc.rb +1 -1
- data/rakelib/lib/director/dialog.rb +6 -0
- data/rakelib/lib/director/dialup_event.rb +44 -0
- data/rakelib/lib/director/dialup_manager.rb +45 -0
- data/rakelib/lib/director/drag_image.rb +2 -3
- data/rakelib/lib/director/event.rb +22 -4
- data/rakelib/lib/director/file_ctrl.rb +35 -0
- data/rakelib/lib/director/file_ctrl_event.rb +26 -0
- data/rakelib/lib/director/frame.rb +1 -3
- data/rakelib/lib/director/gdicommon.rb +27 -11
- data/rakelib/lib/director/graphics_context.rb +2 -4
- data/rakelib/lib/director/grid_cell_editor.rb +6 -6
- data/rakelib/lib/director/grid_ctrl.rb +34 -3
- data/rakelib/lib/director/help_controller.rb +1 -1
- data/rakelib/lib/director/icon.rb +5 -2
- data/rakelib/lib/director/list_ctrl.rb +5 -6
- data/rakelib/lib/director/locale.rb +1 -3
- data/rakelib/lib/director/log.rb +1 -4
- data/rakelib/lib/director/media_ctrl.rb +54 -0
- data/rakelib/lib/director/menu.rb +16 -1
- data/rakelib/lib/director/menu_item.rb +2 -2
- data/rakelib/lib/director/pgarray_editor_dialog.rb +0 -6
- data/rakelib/lib/director/pgeditor.rb +2 -2
- data/rakelib/lib/director/pgproperties.rb +3 -3
- data/rakelib/lib/director/pgproperty.rb +24 -1
- data/rakelib/lib/director/property_grid_interface.rb +5 -10
- data/rakelib/lib/director/richtext_buffer.rb +1 -1
- data/rakelib/lib/director/richtext_composite_object.rb +25 -0
- data/rakelib/lib/director/richtext_ctrl.rb +15 -5
- data/rakelib/lib/director/richtext_formatting_dialog.rb +7 -5
- data/rakelib/lib/director/richtext_paragraph_layout_box.rb +9 -7
- data/rakelib/lib/director/sash_event.rb +42 -0
- data/rakelib/lib/director/sizer.rb +79 -1
- data/rakelib/lib/director/sizer_item.rb +22 -0
- data/rakelib/lib/director/static_box.rb +4 -5
- data/rakelib/lib/director/styled_text_ctrl.rb +12 -0
- data/rakelib/lib/director/task_bar_button.rb +30 -0
- data/rakelib/lib/director/task_bar_icon.rb +6 -14
- data/rakelib/lib/director/textctrl.rb +12 -1
- data/rakelib/lib/director/tool_tip.rb +1 -1
- data/rakelib/lib/director/top_level_window.rb +4 -5
- data/rakelib/lib/director/tree_ctrl.rb +24 -50
- data/rakelib/lib/director/variant.rb +1 -1
- data/rakelib/lib/director/window.rb +24 -5
- data/rakelib/lib/director.rb +4 -4
- data/rakelib/lib/extractor/function.rb +6 -6
- data/rakelib/lib/extractor.rb +34 -5
- data/rakelib/lib/generate/analyzer.rb +8 -3
- data/rakelib/lib/generate/doc/animation_ctrl.yaml +15 -0
- data/rakelib/lib/generate/doc/busy_info.yaml +0 -2
- data/rakelib/lib/generate/doc/clipboard.yaml +0 -2
- data/rakelib/lib/generate/doc/cursor.yaml +0 -2
- data/rakelib/lib/generate/doc/events.yaml +10 -4
- data/rakelib/lib/generate/doc/panel.yaml +7 -0
- data/rakelib/lib/generate/doc/static_box.yaml +8 -0
- data/rakelib/lib/generate/doc/xml_resource.yaml +3 -0
- data/rakelib/lib/generate/doc.rb +89 -16
- data/rakelib/lib/generate/interface.rb +4 -3
- data/rakelib/lib/specs/interfaces.rb +161 -156
- data/rakelib/lib/swig_runner.rb +4 -50
- data/rakelib/lib/typemap/common.rb +54 -10
- data/rakelib/lib/typemap/data_format.rb +1 -1
- data/rakelib/lib/typemap/data_object_data.rb +2 -2
- data/rakelib/lib/typemap/pgprop_arg.rb +7 -2
- data/rakelib/lib/typemap/points_list.rb +5 -7
- data/rakelib/lib/util/string.rb +10 -8
- data/rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css +74 -2
- data/rakelib/yard/templates/default/fulldoc/html/full_list.erb +38 -0
- data/rakelib/yard/templates/default/fulldoc/html/setup.rb +39 -0
- data/rakelib/yard/templates/default/tags/html/wxrb_require.erb +10 -0
- data/rakelib/yard/templates/default/tags/setup.rb +16 -0
- data/rakelib/yard/yard-custom-templates.rb +3 -0
- data/samples/text/richtext.rb +0 -30
- data/samples/treectrl/treectrl.rb +1 -1
- data/tests/media/beep_lo.wav +0 -0
- data/tests/test_app_exit_exception.rb +36 -0
- data/tests/test_app_init_exception.rb +20 -0
- data/tests/test_book_controls.rb +29 -0
- data/tests/test_exceptions.rb +41 -0
- data/tests/test_list_ctrl.rb +1 -1
- data/tests/test_media_ctrl.rb +38 -0
- data/tests/test_menu.rb +69 -0
- data/tests/test_pg.rb +27 -0
- data/tests/test_richtext.rb +45 -0
- data/tests/test_sizer.rb +59 -0
- data/tests/test_std_controls.rb +78 -1
- data/tests/test_styled_text_ctrl.rb +46 -0
- data/tests/test_tree_ctrl.rb +138 -0
- data/tests/test_window.rb +12 -0
- data/tests/testapp_noframe.rb +1 -1
- metadata +54 -5
- data/ext/wxruby3/swig/custom/swig3/rubyrun.swg +0 -456
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wxruby3
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Martin Corino
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-11-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|
|
@@ -97,15 +97,21 @@ files:
|
|
|
97
97
|
- assets/repo-social-preview.png
|
|
98
98
|
- bin/wxruby
|
|
99
99
|
- ext/mkrf_conf_srcgem.rb
|
|
100
|
+
- ext/wxruby3/include/wxRubyApp.h
|
|
100
101
|
- ext/wxruby3/include/wxruby-Config.h
|
|
101
102
|
- ext/wxruby3/include/wxruby-ScaledDC.h
|
|
102
103
|
- ext/wxruby3/include/wxruby-runtime.h
|
|
103
104
|
- ext/wxruby3/swig/RubyStockObjects.i
|
|
104
105
|
- ext/wxruby3/swig/common.i
|
|
106
|
+
- ext/wxruby3/swig/custom/director.swg
|
|
107
|
+
- ext/wxruby3/swig/custom/rubyapi.swg
|
|
108
|
+
- ext/wxruby3/swig/custom/rubyerrors.swg
|
|
109
|
+
- ext/wxruby3/swig/custom/rubyhead.swg
|
|
105
110
|
- ext/wxruby3/swig/custom/rubyprimtypes.swg
|
|
111
|
+
- ext/wxruby3/swig/custom/rubyrun.swg
|
|
106
112
|
- ext/wxruby3/swig/custom/rubytracking.swg
|
|
107
|
-
- ext/wxruby3/swig/custom/
|
|
108
|
-
- ext/wxruby3/swig/custom/
|
|
113
|
+
- ext/wxruby3/swig/custom/swigrun.swg
|
|
114
|
+
- ext/wxruby3/swig/custom/typemaps/swigtypemaps.swg
|
|
109
115
|
- ext/wxruby3/swig/mark_free_impl.i
|
|
110
116
|
- ext/wxruby3/swig/memory_management.i
|
|
111
117
|
- ext/wxruby3/swig/typedefs.i
|
|
@@ -115,6 +121,7 @@ files:
|
|
|
115
121
|
- lib/wx.rb
|
|
116
122
|
- lib/wx/accessors.rb
|
|
117
123
|
- lib/wx/aui.rb
|
|
124
|
+
- lib/wx/aui/aui_tab_ctrl.rb
|
|
118
125
|
- lib/wx/aui/auifloatframe.rb
|
|
119
126
|
- lib/wx/aui/auimanager.rb
|
|
120
127
|
- lib/wx/aui/auinotebook.rb
|
|
@@ -139,6 +146,7 @@ files:
|
|
|
139
146
|
- lib/wx/core/combo_ctrl.rb
|
|
140
147
|
- lib/wx/core/combobox.rb
|
|
141
148
|
- lib/wx/core/config.rb
|
|
149
|
+
- lib/wx/core/const.rb
|
|
142
150
|
- lib/wx/core/controlwithitems.rb
|
|
143
151
|
- lib/wx/core/cursor.rb
|
|
144
152
|
- lib/wx/core/data_object.rb
|
|
@@ -187,12 +195,13 @@ files:
|
|
|
187
195
|
- lib/wx/core/size.rb
|
|
188
196
|
- lib/wx/core/sizer.rb
|
|
189
197
|
- lib/wx/core/splash_screen.rb
|
|
198
|
+
- lib/wx/core/task_bar_button.rb
|
|
190
199
|
- lib/wx/core/text_entry.rb
|
|
191
200
|
- lib/wx/core/textctrl.rb
|
|
192
201
|
- lib/wx/core/timer.rb
|
|
193
202
|
- lib/wx/core/toolbar.rb
|
|
194
203
|
- lib/wx/core/toolbartool.rb
|
|
195
|
-
- lib/wx/core/
|
|
204
|
+
- lib/wx/core/tree_ctrl.rb
|
|
196
205
|
- lib/wx/core/v_list_box.rb
|
|
197
206
|
- lib/wx/core/validator.rb
|
|
198
207
|
- lib/wx/core/variant.rb
|
|
@@ -253,7 +262,9 @@ files:
|
|
|
253
262
|
- lib/wx/doc/list_ctrl.rb
|
|
254
263
|
- lib/wx/doc/log.rb
|
|
255
264
|
- lib/wx/doc/memory_dc.rb
|
|
265
|
+
- lib/wx/doc/menu.rb
|
|
256
266
|
- lib/wx/doc/mirror_dc.rb
|
|
267
|
+
- lib/wx/doc/notebook.rb
|
|
257
268
|
- lib/wx/doc/pen.rb
|
|
258
269
|
- lib/wx/doc/pg/events.rb
|
|
259
270
|
- lib/wx/doc/pg/pg_property.rb
|
|
@@ -272,18 +283,24 @@ files:
|
|
|
272
283
|
- lib/wx/doc/rbn/ribbon_gallery.rb
|
|
273
284
|
- lib/wx/doc/rbn/ribbon_tool_bar.rb
|
|
274
285
|
- lib/wx/doc/region_iterator.rb
|
|
286
|
+
- lib/wx/doc/rtc/rich_text_composite_object.rb
|
|
287
|
+
- lib/wx/doc/rtc/rich_text_ctrl.rb
|
|
288
|
+
- lib/wx/doc/rtc/rich_text_paragraph.rb
|
|
275
289
|
- lib/wx/doc/rtc/richtext_buffer.rb
|
|
276
290
|
- lib/wx/doc/rtc/richtext_formatting_dialog.rb
|
|
277
291
|
- lib/wx/doc/rtc/richtext_printing.rb
|
|
278
292
|
- lib/wx/doc/rtc/richtext_style_sheet.rb
|
|
279
293
|
- lib/wx/doc/scaled_dc.rb
|
|
280
294
|
- lib/wx/doc/screen_dc.rb
|
|
295
|
+
- lib/wx/doc/sizer.rb
|
|
296
|
+
- lib/wx/doc/stc/styled_text_ctrl.rb
|
|
281
297
|
- lib/wx/doc/stock_objects.rb
|
|
282
298
|
- lib/wx/doc/stream.rb
|
|
283
299
|
- lib/wx/doc/svg_file_dc.rb
|
|
284
300
|
- lib/wx/doc/system_settings.rb
|
|
285
301
|
- lib/wx/doc/text_validator.rb
|
|
286
302
|
- lib/wx/doc/textctrl.rb
|
|
303
|
+
- lib/wx/doc/tree_ctrl.rb
|
|
287
304
|
- lib/wx/doc/tree_event.rb
|
|
288
305
|
- lib/wx/doc/treebook.rb
|
|
289
306
|
- lib/wx/doc/v_list_box.rb
|
|
@@ -336,6 +353,9 @@ files:
|
|
|
336
353
|
- lib/wx/rtc/ext.rb
|
|
337
354
|
- lib/wx/rtc/keyword_defs.rb
|
|
338
355
|
- lib/wx/rtc/require.rb
|
|
356
|
+
- lib/wx/rtc/rich_text_composite_object.rb
|
|
357
|
+
- lib/wx/rtc/rich_text_ctrl.rb
|
|
358
|
+
- lib/wx/rtc/rich_text_paragraph.rb
|
|
339
359
|
- lib/wx/rtc/richtext_buffer.rb
|
|
340
360
|
- lib/wx/rtc/richtext_formatting_dialog.rb
|
|
341
361
|
- lib/wx/rtc/richtext_style_organiser_dialog.rb
|
|
@@ -343,6 +363,7 @@ files:
|
|
|
343
363
|
- lib/wx/stc.rb
|
|
344
364
|
- lib/wx/stc/keyword_defs.rb
|
|
345
365
|
- lib/wx/stc/require.rb
|
|
366
|
+
- lib/wx/stc/styled_text_ctrl.rb
|
|
346
367
|
- lib/wx/version.rb
|
|
347
368
|
- lib/wx/wxruby/base.rb
|
|
348
369
|
- lib/wx/wxruby/cmd/sampler.rb
|
|
@@ -365,6 +386,10 @@ files:
|
|
|
365
386
|
- rakelib/lib/core/include/enum.inc
|
|
366
387
|
- rakelib/lib/core/include/funcall.inc
|
|
367
388
|
- rakelib/lib/core/include/init.inc
|
|
389
|
+
- rakelib/lib/core/include/swigdirector.inc
|
|
390
|
+
- rakelib/lib/core/include/swigrubyerrors.inc
|
|
391
|
+
- rakelib/lib/core/include/swigrubyrun.inc
|
|
392
|
+
- rakelib/lib/core/include/swigrun.inc
|
|
368
393
|
- rakelib/lib/core/mapping.rb
|
|
369
394
|
- rakelib/lib/core/package.rb
|
|
370
395
|
- rakelib/lib/core/parameter.rb
|
|
@@ -373,6 +398,7 @@ files:
|
|
|
373
398
|
- rakelib/lib/director.rb
|
|
374
399
|
- rakelib/lib/director/about_dialog_info.rb
|
|
375
400
|
- rakelib/lib/director/accelerator.rb
|
|
401
|
+
- rakelib/lib/director/accessible.rb
|
|
376
402
|
- rakelib/lib/director/animation.rb
|
|
377
403
|
- rakelib/lib/director/animation_ctrl.rb
|
|
378
404
|
- rakelib/lib/director/any_button.rb
|
|
@@ -428,6 +454,8 @@ files:
|
|
|
428
454
|
- rakelib/lib/director/defs.rb
|
|
429
455
|
- rakelib/lib/director/derived_dc.rb
|
|
430
456
|
- rakelib/lib/director/dialog.rb
|
|
457
|
+
- rakelib/lib/director/dialup_event.rb
|
|
458
|
+
- rakelib/lib/director/dialup_manager.rb
|
|
431
459
|
- rakelib/lib/director/dir_filterlist_ctrl.rb
|
|
432
460
|
- rakelib/lib/director/dir_picker_ctrl.rb
|
|
433
461
|
- rakelib/lib/director/drag_image.rb
|
|
@@ -439,6 +467,8 @@ files:
|
|
|
439
467
|
- rakelib/lib/director/event_handler.rb
|
|
440
468
|
- rakelib/lib/director/event_loop.rb
|
|
441
469
|
- rakelib/lib/director/events.rb
|
|
470
|
+
- rakelib/lib/director/file_ctrl.rb
|
|
471
|
+
- rakelib/lib/director/file_ctrl_event.rb
|
|
442
472
|
- rakelib/lib/director/file_dialog_custom_control.rb
|
|
443
473
|
- rakelib/lib/director/file_dialog_customize_hook.rb
|
|
444
474
|
- rakelib/lib/director/file_picker_ctrl.rb
|
|
@@ -549,6 +579,7 @@ files:
|
|
|
549
579
|
- rakelib/lib/director/richtext_printing.rb
|
|
550
580
|
- rakelib/lib/director/richtext_style_listbox.rb
|
|
551
581
|
- rakelib/lib/director/richtext_style_organiser_dialog.rb
|
|
582
|
+
- rakelib/lib/director/sash_event.rb
|
|
552
583
|
- rakelib/lib/director/sash_layout_event.rb
|
|
553
584
|
- rakelib/lib/director/sash_layout_window.rb
|
|
554
585
|
- rakelib/lib/director/sash_window.rb
|
|
@@ -568,6 +599,7 @@ files:
|
|
|
568
599
|
- rakelib/lib/director/styled_text_event.rb
|
|
569
600
|
- rakelib/lib/director/system_options.rb
|
|
570
601
|
- rakelib/lib/director/system_settings.rb
|
|
602
|
+
- rakelib/lib/director/task_bar_button.rb
|
|
571
603
|
- rakelib/lib/director/task_bar_icon.rb
|
|
572
604
|
- rakelib/lib/director/text_attr.rb
|
|
573
605
|
- rakelib/lib/director/text_entry.rb
|
|
@@ -606,6 +638,7 @@ files:
|
|
|
606
638
|
- rakelib/lib/generate/doc.rb
|
|
607
639
|
- rakelib/lib/generate/doc/about_dialog_info.yaml
|
|
608
640
|
- rakelib/lib/generate/doc/accelerator.yaml
|
|
641
|
+
- rakelib/lib/generate/doc/animation_ctrl.yaml
|
|
609
642
|
- rakelib/lib/generate/doc/art_provider.yaml
|
|
610
643
|
- rakelib/lib/generate/doc/aui_manager.yaml
|
|
611
644
|
- rakelib/lib/generate/doc/bitmap.yaml
|
|
@@ -653,6 +686,7 @@ files:
|
|
|
653
686
|
- rakelib/lib/generate/doc/message_dialog.yaml
|
|
654
687
|
- rakelib/lib/generate/doc/non_owned_window.yaml
|
|
655
688
|
- rakelib/lib/generate/doc/notebook.yaml
|
|
689
|
+
- rakelib/lib/generate/doc/panel.yaml
|
|
656
690
|
- rakelib/lib/generate/doc/pen.yaml
|
|
657
691
|
- rakelib/lib/generate/doc/pg_editor.yaml
|
|
658
692
|
- rakelib/lib/generate/doc/pg_multi_button.yaml
|
|
@@ -715,7 +749,11 @@ files:
|
|
|
715
749
|
- rakelib/prepost.rb
|
|
716
750
|
- rakelib/run.rake
|
|
717
751
|
- rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css
|
|
752
|
+
- rakelib/yard/templates/default/fulldoc/html/full_list.erb
|
|
753
|
+
- rakelib/yard/templates/default/fulldoc/html/setup.rb
|
|
718
754
|
- rakelib/yard/templates/default/layout/html/setup.rb
|
|
755
|
+
- rakelib/yard/templates/default/tags/html/wxrb_require.erb
|
|
756
|
+
- rakelib/yard/templates/default/tags/setup.rb
|
|
719
757
|
- rakelib/yard/yard-custom-templates.rb
|
|
720
758
|
- rakelib/yard/yard-relative_markdown_links.rb
|
|
721
759
|
- rakelib/yard/yard/relative_markdown_links.rb
|
|
@@ -1069,12 +1107,16 @@ files:
|
|
|
1069
1107
|
- tests/lib/text_entry_tests.rb
|
|
1070
1108
|
- tests/lib/wxapp_runner.rb
|
|
1071
1109
|
- tests/lib/wxframe_runner.rb
|
|
1110
|
+
- tests/media/beep_lo.wav
|
|
1072
1111
|
- tests/test_app_event_filter.rb
|
|
1112
|
+
- tests/test_app_exit_exception.rb
|
|
1113
|
+
- tests/test_app_init_exception.rb
|
|
1073
1114
|
- tests/test_app_traits.rb
|
|
1074
1115
|
- tests/test_art.rb
|
|
1075
1116
|
- tests/test_art_provider.rb
|
|
1076
1117
|
- tests/test_aui.rb
|
|
1077
1118
|
- tests/test_basic.rb
|
|
1119
|
+
- tests/test_book_controls.rb
|
|
1078
1120
|
- tests/test_box_sizer.rb
|
|
1079
1121
|
- tests/test_clipboard.rb
|
|
1080
1122
|
- tests/test_config.rb
|
|
@@ -1082,6 +1124,7 @@ files:
|
|
|
1082
1124
|
- tests/test_dialog.rb
|
|
1083
1125
|
- tests/test_event_handling.rb
|
|
1084
1126
|
- tests/test_events.rb
|
|
1127
|
+
- tests/test_exceptions.rb
|
|
1085
1128
|
- tests/test_ext_controls.rb
|
|
1086
1129
|
- tests/test_file_dialog.rb
|
|
1087
1130
|
- tests/test_font.rb
|
|
@@ -1092,10 +1135,16 @@ files:
|
|
|
1092
1135
|
- tests/test_item_data.rb
|
|
1093
1136
|
- tests/test_list_ctrl.rb
|
|
1094
1137
|
- tests/test_log.rb
|
|
1138
|
+
- tests/test_media_ctrl.rb
|
|
1139
|
+
- tests/test_menu.rb
|
|
1140
|
+
- tests/test_pg.rb
|
|
1095
1141
|
- tests/test_proof_check.rb
|
|
1096
1142
|
- tests/test_richtext.rb
|
|
1143
|
+
- tests/test_sizer.rb
|
|
1097
1144
|
- tests/test_std_controls.rb
|
|
1145
|
+
- tests/test_styled_text_ctrl.rb
|
|
1098
1146
|
- tests/test_timer.rb
|
|
1147
|
+
- tests/test_tree_ctrl.rb
|
|
1099
1148
|
- tests/test_variant.rb
|
|
1100
1149
|
- tests/test_window.rb
|
|
1101
1150
|
- tests/testapp.rb
|
|
@@ -1,456 +0,0 @@
|
|
|
1
|
-
/* -----------------------------------------------------------------------------
|
|
2
|
-
* rubyrun.swg
|
|
3
|
-
*
|
|
4
|
-
* This file contains the runtime support for Ruby modules
|
|
5
|
-
* and includes code for managing global variables and pointer
|
|
6
|
-
* type checking.
|
|
7
|
-
* ----------------------------------------------------------------------------- */
|
|
8
|
-
|
|
9
|
-
/* For backward compatibility only */
|
|
10
|
-
#define SWIG_POINTER_EXCEPTION 0
|
|
11
|
-
|
|
12
|
-
/* for raw pointers */
|
|
13
|
-
#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
|
|
14
|
-
#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own)
|
|
15
|
-
#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags)
|
|
16
|
-
#define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own)
|
|
17
|
-
#define swig_owntype swig_ruby_owntype
|
|
18
|
-
|
|
19
|
-
/* for raw packed data */
|
|
20
|
-
#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)
|
|
21
|
-
#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
|
|
22
|
-
|
|
23
|
-
/* for class or struct pointers */
|
|
24
|
-
#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
|
|
25
|
-
#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
|
|
26
|
-
|
|
27
|
-
/* for C or C++ function pointers */
|
|
28
|
-
#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0)
|
|
29
|
-
#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0)
|
|
30
|
-
|
|
31
|
-
/* for C++ member pointers, ie, member methods */
|
|
32
|
-
#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty)
|
|
33
|
-
#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/* Runtime API */
|
|
37
|
-
|
|
38
|
-
#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule(clientdata)
|
|
39
|
-
#define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
/* Error manipulation */
|
|
43
|
-
|
|
44
|
-
#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
|
|
45
|
-
#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), "%s", msg)
|
|
46
|
-
#define SWIG_fail goto fail
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/* Ruby-specific SWIG API */
|
|
50
|
-
|
|
51
|
-
#define SWIG_InitRuntime() SWIG_Ruby_InitRuntime()
|
|
52
|
-
#define SWIG_define_class(ty) SWIG_Ruby_define_class(ty)
|
|
53
|
-
#define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty)
|
|
54
|
-
#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
|
|
55
|
-
#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
|
|
56
|
-
|
|
57
|
-
#include "assert.h"
|
|
58
|
-
|
|
59
|
-
/* -----------------------------------------------------------------------------
|
|
60
|
-
* pointers/data manipulation
|
|
61
|
-
* ----------------------------------------------------------------------------- */
|
|
62
|
-
|
|
63
|
-
#ifdef __cplusplus
|
|
64
|
-
extern "C" {
|
|
65
|
-
#endif
|
|
66
|
-
|
|
67
|
-
typedef struct {
|
|
68
|
-
VALUE klass;
|
|
69
|
-
VALUE mImpl;
|
|
70
|
-
void (*mark)(void *);
|
|
71
|
-
void (*destroy)(void *);
|
|
72
|
-
int trackObjects;
|
|
73
|
-
} swig_class;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
/* Global pointer used to keep some internal SWIG stuff */
|
|
77
|
-
static VALUE _cSWIG_Pointer = Qnil;
|
|
78
|
-
static VALUE swig_runtime_data_type_pointer = Qnil;
|
|
79
|
-
|
|
80
|
-
/* Global IDs used to keep some internal SWIG stuff */
|
|
81
|
-
static ID swig_arity_id = 0;
|
|
82
|
-
static ID swig_call_id = 0;
|
|
83
|
-
|
|
84
|
-
/*
|
|
85
|
-
If your swig extension is to be run within an embedded ruby and has
|
|
86
|
-
director callbacks, you should set -DRUBY_EMBEDDED during compilation.
|
|
87
|
-
This will reset ruby's stack frame on each entry point from the main
|
|
88
|
-
program the first time a virtual director function is invoked (in a
|
|
89
|
-
non-recursive way).
|
|
90
|
-
If this is not done, you run the risk of Ruby trashing the stack.
|
|
91
|
-
*/
|
|
92
|
-
|
|
93
|
-
#ifdef RUBY_EMBEDDED
|
|
94
|
-
|
|
95
|
-
# define SWIG_INIT_STACK \
|
|
96
|
-
if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \
|
|
97
|
-
++swig_virtual_calls;
|
|
98
|
-
# define SWIG_RELEASE_STACK --swig_virtual_calls;
|
|
99
|
-
# define Ruby_DirectorTypeMismatchException(x) \
|
|
100
|
-
rb_raise( rb_eTypeError, "%s", x ); return c_result;
|
|
101
|
-
|
|
102
|
-
static unsigned int swig_virtual_calls = 0;
|
|
103
|
-
|
|
104
|
-
#else /* normal non-embedded extension */
|
|
105
|
-
|
|
106
|
-
# define SWIG_INIT_STACK
|
|
107
|
-
# define SWIG_RELEASE_STACK
|
|
108
|
-
# define Ruby_DirectorTypeMismatchException(x) \
|
|
109
|
-
throw Swig::DirectorTypeMismatchException( x );
|
|
110
|
-
|
|
111
|
-
#endif /* RUBY_EMBEDDED */
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
SWIGRUNTIME VALUE
|
|
115
|
-
getExceptionClass(void) {
|
|
116
|
-
static int init = 0;
|
|
117
|
-
static VALUE rubyExceptionClass ;
|
|
118
|
-
if (!init) {
|
|
119
|
-
init = 1;
|
|
120
|
-
rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
|
|
121
|
-
}
|
|
122
|
-
return rubyExceptionClass;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/* This code checks to see if the Ruby object being raised as part
|
|
126
|
-
of an exception inherits from the Ruby class Exception. If so,
|
|
127
|
-
the object is simply returned. If not, then a new Ruby exception
|
|
128
|
-
object is created and that will be returned to Ruby.*/
|
|
129
|
-
SWIGRUNTIME VALUE
|
|
130
|
-
SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) {
|
|
131
|
-
VALUE exceptionClass = getExceptionClass();
|
|
132
|
-
if (rb_obj_is_kind_of(obj, exceptionClass)) {
|
|
133
|
-
return obj;
|
|
134
|
-
} else {
|
|
135
|
-
return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj));
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/* Initialize Ruby runtime support */
|
|
140
|
-
SWIGRUNTIME void
|
|
141
|
-
SWIG_Ruby_InitRuntime(void)
|
|
142
|
-
{
|
|
143
|
-
if (_mSWIG == Qnil) {
|
|
144
|
-
_mSWIG = rb_define_module("SWIG");
|
|
145
|
-
swig_call_id = rb_intern("call");
|
|
146
|
-
swig_arity_id = rb_intern("arity");
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/* Define Ruby class for C type */
|
|
151
|
-
SWIGRUNTIME void
|
|
152
|
-
SWIG_Ruby_define_class(swig_type_info *type)
|
|
153
|
-
{
|
|
154
|
-
char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
|
|
155
|
-
sprintf(klass_name, "TYPE%s", type->name);
|
|
156
|
-
if (NIL_P(_cSWIG_Pointer)) {
|
|
157
|
-
_cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
|
|
158
|
-
rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
|
|
159
|
-
}
|
|
160
|
-
rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
|
|
161
|
-
free((void *) klass_name);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/* Create a new pointer object */
|
|
165
|
-
SWIGRUNTIME VALUE
|
|
166
|
-
SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
167
|
-
{
|
|
168
|
-
int own = flags & SWIG_POINTER_OWN;
|
|
169
|
-
int track;
|
|
170
|
-
char *klass_name;
|
|
171
|
-
swig_class *sklass;
|
|
172
|
-
VALUE klass;
|
|
173
|
-
VALUE obj;
|
|
174
|
-
|
|
175
|
-
if (!ptr)
|
|
176
|
-
return Qnil;
|
|
177
|
-
|
|
178
|
-
if (type->clientdata) {
|
|
179
|
-
sklass = (swig_class *) type->clientdata;
|
|
180
|
-
|
|
181
|
-
/* Are we tracking this class and have we already returned this Ruby object? */
|
|
182
|
-
track = sklass->trackObjects;
|
|
183
|
-
if (track) {
|
|
184
|
-
obj = SWIG_RubyInstanceFor(ptr);
|
|
185
|
-
|
|
186
|
-
/* Check the object's type and make sure it has the correct type.
|
|
187
|
-
It might not in cases where methods do things like
|
|
188
|
-
downcast methods. */
|
|
189
|
-
if (obj != Qnil) {
|
|
190
|
-
VALUE value = rb_iv_get(obj, "@__swigtype__");
|
|
191
|
-
const char* type_name = RSTRING_PTR(value);
|
|
192
|
-
|
|
193
|
-
if (strcmp(type->name, type_name) == 0) {
|
|
194
|
-
return obj;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
/* Create a new Ruby object */
|
|
200
|
-
obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
|
|
201
|
-
( own ? VOIDFUNC(sklass->destroy) :
|
|
202
|
-
(track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
|
|
203
|
-
), ptr);
|
|
204
|
-
|
|
205
|
-
/* If tracking is on for this class then track this object. */
|
|
206
|
-
if (track) {
|
|
207
|
-
SWIG_RubyAddTracking(ptr, obj);
|
|
208
|
-
}
|
|
209
|
-
} else {
|
|
210
|
-
klass_name = (char *) malloc(4 + strlen(type->name) + 1);
|
|
211
|
-
sprintf(klass_name, "TYPE%s", type->name);
|
|
212
|
-
klass = rb_const_get(_mSWIG, rb_intern(klass_name));
|
|
213
|
-
free((void *) klass_name);
|
|
214
|
-
obj = Data_Wrap_Struct(klass, 0, 0, ptr);
|
|
215
|
-
}
|
|
216
|
-
rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
|
|
217
|
-
|
|
218
|
-
return obj;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/* Create a new class instance (always owned) */
|
|
222
|
-
SWIGRUNTIME VALUE
|
|
223
|
-
SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
|
|
224
|
-
{
|
|
225
|
-
VALUE obj;
|
|
226
|
-
swig_class *sklass = (swig_class *) type->clientdata;
|
|
227
|
-
obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0);
|
|
228
|
-
rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
|
|
229
|
-
return obj;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/* Get type mangle from class name */
|
|
233
|
-
SWIGRUNTIMEINLINE char *
|
|
234
|
-
SWIG_Ruby_MangleStr(VALUE obj)
|
|
235
|
-
{
|
|
236
|
-
VALUE stype = rb_iv_get(obj, "@__swigtype__");
|
|
237
|
-
return StringValuePtr(stype);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/* Acquire a pointer value */
|
|
241
|
-
typedef struct {
|
|
242
|
-
void (*datafree)(void *);
|
|
243
|
-
int own;
|
|
244
|
-
} swig_ruby_owntype;
|
|
245
|
-
|
|
246
|
-
SWIGRUNTIME swig_ruby_owntype
|
|
247
|
-
SWIG_Ruby_AcquirePtr(VALUE obj, swig_ruby_owntype own) {
|
|
248
|
-
swig_ruby_owntype oldown = {0, 0};
|
|
249
|
-
if (TYPE(obj) == T_DATA && !RTYPEDDATA_P(obj)) {
|
|
250
|
-
oldown.datafree = RDATA(obj)->dfree;
|
|
251
|
-
RDATA(obj)->dfree = own.datafree;
|
|
252
|
-
}
|
|
253
|
-
return oldown;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/* Convert a pointer value */
|
|
257
|
-
SWIGRUNTIME int
|
|
258
|
-
SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, swig_ruby_owntype *own)
|
|
259
|
-
{
|
|
260
|
-
char *c;
|
|
261
|
-
swig_cast_info *tc;
|
|
262
|
-
void *vptr = 0;
|
|
263
|
-
|
|
264
|
-
/* Grab the pointer */
|
|
265
|
-
if (NIL_P(obj)) {
|
|
266
|
-
if (ptr)
|
|
267
|
-
*ptr = 0;
|
|
268
|
-
return SWIG_OK;
|
|
269
|
-
} else {
|
|
270
|
-
if (TYPE(obj) != T_DATA) {
|
|
271
|
-
return SWIG_ERROR;
|
|
272
|
-
}
|
|
273
|
-
Data_Get_Struct(obj, void, vptr);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
if (own) {
|
|
277
|
-
own->datafree = RDATA(obj)->dfree;
|
|
278
|
-
own->own = 0;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/* Check to see if the input object is giving up ownership
|
|
282
|
-
of the underlying C struct or C++ object. If so then we
|
|
283
|
-
need to reset the destructor since the Ruby object no
|
|
284
|
-
longer owns the underlying C++ object.*/
|
|
285
|
-
if (flags & SWIG_POINTER_DISOWN) {
|
|
286
|
-
/* Is tracking on for this class? */
|
|
287
|
-
int track = 0;
|
|
288
|
-
if (ty && ty->clientdata) {
|
|
289
|
-
swig_class *sklass = (swig_class *) ty->clientdata;
|
|
290
|
-
track = sklass->trackObjects;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
if (track) {
|
|
294
|
-
/* We are tracking objects for this class. Thus we change the destructor
|
|
295
|
-
* to SWIG_RubyRemoveTracking. This allows us to
|
|
296
|
-
* remove the mapping from the C++ to Ruby object
|
|
297
|
-
* when the Ruby object is garbage collected. If we don't
|
|
298
|
-
* do this, then it is possible we will return a reference
|
|
299
|
-
* to a Ruby object that no longer exists thereby crashing Ruby. */
|
|
300
|
-
RDATA(obj)->dfree = SWIG_RubyRemoveTracking;
|
|
301
|
-
} else {
|
|
302
|
-
RDATA(obj)->dfree = 0;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
/* Do type-checking if type info was provided */
|
|
307
|
-
if (ty) {
|
|
308
|
-
if (ty->clientdata) {
|
|
309
|
-
if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) {
|
|
310
|
-
if (vptr == 0) {
|
|
311
|
-
/* The object has already been deleted */
|
|
312
|
-
return SWIG_ObjectPreviouslyDeletedError;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
if ((c = SWIG_MangleStr(obj)) == NULL) {
|
|
317
|
-
return SWIG_ERROR;
|
|
318
|
-
}
|
|
319
|
-
tc = SWIG_TypeCheck(c, ty);
|
|
320
|
-
if (!tc) {
|
|
321
|
-
return SWIG_ERROR;
|
|
322
|
-
} else {
|
|
323
|
-
if (ptr) {
|
|
324
|
-
if (tc->type == ty) {
|
|
325
|
-
*ptr = vptr;
|
|
326
|
-
} else {
|
|
327
|
-
int newmemory = 0;
|
|
328
|
-
*ptr = SWIG_TypeCast(tc, vptr, &newmemory);
|
|
329
|
-
if (newmemory == SWIG_CAST_NEW_MEMORY) {
|
|
330
|
-
assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
|
|
331
|
-
if (own)
|
|
332
|
-
own->own = own->own | SWIG_CAST_NEW_MEMORY;
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
} else {
|
|
338
|
-
if (ptr)
|
|
339
|
-
*ptr = vptr;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
return SWIG_OK;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/* Check convert */
|
|
346
|
-
SWIGRUNTIMEINLINE int
|
|
347
|
-
SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty)
|
|
348
|
-
{
|
|
349
|
-
char *c = SWIG_MangleStr(obj);
|
|
350
|
-
if (!c) return 0;
|
|
351
|
-
return SWIG_TypeCheck(c,ty) != 0;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
SWIGRUNTIME VALUE
|
|
355
|
-
SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
|
|
356
|
-
char result[1024];
|
|
357
|
-
char *r = result;
|
|
358
|
-
if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
|
|
359
|
-
*(r++) = '_';
|
|
360
|
-
r = SWIG_PackData(r, ptr, sz);
|
|
361
|
-
strcpy(r, type->name);
|
|
362
|
-
return rb_str_new2(result);
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
/* Convert a packed value value */
|
|
366
|
-
SWIGRUNTIME int
|
|
367
|
-
SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) {
|
|
368
|
-
swig_cast_info *tc;
|
|
369
|
-
const char *c;
|
|
370
|
-
|
|
371
|
-
if (TYPE(obj) != T_STRING) goto type_error;
|
|
372
|
-
c = StringValuePtr(obj);
|
|
373
|
-
/* Pointer values must start with leading underscore */
|
|
374
|
-
if (*c != '_') goto type_error;
|
|
375
|
-
c++;
|
|
376
|
-
c = SWIG_UnpackData(c, ptr, sz);
|
|
377
|
-
if (ty) {
|
|
378
|
-
tc = SWIG_TypeCheck(c, ty);
|
|
379
|
-
if (!tc) goto type_error;
|
|
380
|
-
}
|
|
381
|
-
return SWIG_OK;
|
|
382
|
-
|
|
383
|
-
type_error:
|
|
384
|
-
return SWIG_ERROR;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
SWIGRUNTIME swig_module_info *
|
|
388
|
-
SWIG_Ruby_GetModule(void *SWIGUNUSEDPARM(clientdata))
|
|
389
|
-
{
|
|
390
|
-
VALUE pointer;
|
|
391
|
-
swig_module_info *ret = 0;
|
|
392
|
-
VALUE verbose = rb_gv_get("VERBOSE");
|
|
393
|
-
|
|
394
|
-
/* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */
|
|
395
|
-
rb_gv_set("VERBOSE", Qfalse);
|
|
396
|
-
|
|
397
|
-
/* first check if pointer already created */
|
|
398
|
-
pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
|
|
399
|
-
if (pointer != Qnil) {
|
|
400
|
-
Data_Get_Struct(pointer, swig_module_info, ret);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
/* reinstate warnings */
|
|
404
|
-
rb_gv_set("VERBOSE", verbose);
|
|
405
|
-
return ret;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
SWIGRUNTIME void
|
|
409
|
-
SWIG_Ruby_SetModule(swig_module_info *pointer)
|
|
410
|
-
{
|
|
411
|
-
/* register a new class */
|
|
412
|
-
VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
|
|
413
|
-
rb_undef_alloc_func(cl);
|
|
414
|
-
/* create and store the structure pointer to a global variable */
|
|
415
|
-
swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
|
|
416
|
-
rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
/* This function can be used to check whether a proc or method or similarly
|
|
420
|
-
callable function has been passed. Usually used in a %typecheck, like:
|
|
421
|
-
|
|
422
|
-
%typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) {
|
|
423
|
-
$result = SWIG_Ruby_isCallable( $input );
|
|
424
|
-
}
|
|
425
|
-
*/
|
|
426
|
-
SWIGINTERN
|
|
427
|
-
int SWIG_Ruby_isCallable( VALUE proc )
|
|
428
|
-
{
|
|
429
|
-
if ( rb_respond_to( proc, swig_call_id ) )
|
|
430
|
-
return 1;
|
|
431
|
-
return 0;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
/* This function can be used to check the arity (number of arguments)
|
|
435
|
-
a proc or method can take. Usually used in a %typecheck.
|
|
436
|
-
Valid arities will be that equal to minimal or those < 0
|
|
437
|
-
which indicate a variable number of parameters at the end.
|
|
438
|
-
*/
|
|
439
|
-
SWIGINTERN
|
|
440
|
-
int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
441
|
-
{
|
|
442
|
-
if ( rb_respond_to( proc, swig_arity_id ) )
|
|
443
|
-
{
|
|
444
|
-
VALUE num = rb_funcall( proc, swig_arity_id, 0 );
|
|
445
|
-
int arity = NUM2INT(num);
|
|
446
|
-
if ( arity < 0 && (arity+1) < -minimal ) return 1;
|
|
447
|
-
if ( arity == minimal ) return 1;
|
|
448
|
-
return 1;
|
|
449
|
-
}
|
|
450
|
-
return 0;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
#ifdef __cplusplus
|
|
455
|
-
}
|
|
456
|
-
#endif
|