wxruby3 1.8.0 → 2.0.0

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.
Files changed (499) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +20 -10
  3. data/README.md +3 -3
  4. data/ext/wxruby3/include/wxRubyApp.h +49 -3
  5. data/ext/wxruby3/include/wxruby-ComboPopup.h +17 -32
  6. data/ext/wxruby3/include/wxruby-Config.h +34 -11
  7. data/ext/wxruby3/include/wxruby-GCTracking.h +23 -5
  8. data/ext/wxruby3/include/wxruby-SharedEventHandler.h +7 -7
  9. data/ext/wxruby3/include/wxruby-runtime.h +65 -0
  10. data/ext/wxruby3/swig/common.i +6 -0
  11. data/ext/wxruby3/swig/custom/typed_data/rubyhead.swg +220 -0
  12. data/ext/wxruby3/swig/custom/typed_data/rubyprimtypes.swg +265 -0
  13. data/ext/wxruby3/swig/custom/typed_data/rubyrun.swg +243 -0
  14. data/ext/wxruby3/swig/custom/typed_data/swigrun.swg +689 -0
  15. data/ext/wxruby3/swig/custom/{rubyprimtypes.swg → untyped_data/rubyprimtypes.swg} +8 -0
  16. data/ext/wxruby3/swig/mark_free_impl.i +2 -2
  17. data/ext/wxruby3/swig/memory_management.i +1 -0
  18. data/ext/wxruby3/swig/wx.i +19 -6
  19. data/lib/wx/core/file_dialog.rb +3 -10
  20. data/lib/wx/doc/rbn/events.rb +32 -0
  21. data/lib/wx/doc/rbn/ribbon_backstage_mrulist.rb +25 -0
  22. data/lib/wx/doc/stream.rb +7 -3
  23. data/lib/wx/keyword_ctors.rb +3 -13
  24. data/lib/wx/rbn/events.rb +18 -0
  25. data/lib/wx/rbn/require.rb +1 -0
  26. data/lib/wx/rbn/ribbon_backstage_mrulist.rb +39 -0
  27. data/lib/wx/version.rb +1 -1
  28. data/lib/wx/wxruby/cmd/test.rb +8 -2
  29. data/rakelib/lib/config/pkgman/linux.rb +4 -2
  30. data/rakelib/lib/config.rb +3 -3
  31. data/rakelib/lib/core/include/typed_data/swigrubyrun.inc +629 -0
  32. data/rakelib/lib/core/include/typed_data/swigrun.inc +870 -0
  33. data/rakelib/lib/core/package.rb +2 -2
  34. data/rakelib/lib/director/app.rb +16 -0
  35. data/rakelib/lib/director/art_provider.rb +3 -3
  36. data/rakelib/lib/director/aui_mdi_child_frame.rb +24 -0
  37. data/rakelib/lib/director/aui_mdi_parent_frame.rb +0 -2
  38. data/rakelib/lib/director/aui_tab_ctrl.rb +3 -3
  39. data/rakelib/lib/director/comboctrl.rb +35 -2
  40. data/rakelib/lib/director/config_base.rb +79 -33
  41. data/rakelib/lib/director/data_object.rb +1 -1
  42. data/rakelib/lib/director/date_event.rb +10 -3
  43. data/rakelib/lib/director/derived_dc.rb +41 -32
  44. data/rakelib/lib/director/editable_listbox.rb +10 -8
  45. data/rakelib/lib/director/event.rb +16 -7
  46. data/rakelib/lib/director/event_handler.rb +48 -10
  47. data/rakelib/lib/director/events.rb +4 -2
  48. data/rakelib/lib/director/file_history.rb +46 -0
  49. data/rakelib/lib/director/frame.rb +29 -0
  50. data/rakelib/lib/director/fs_file.rb +25 -4
  51. data/rakelib/lib/director/functions.rb +2 -2
  52. data/rakelib/lib/director/graphics_context.rb +6 -6
  53. data/rakelib/lib/director/grid_cell_editor.rb +1 -1
  54. data/rakelib/lib/director/grid_cell_renderer.rb +1 -1
  55. data/rakelib/lib/director/grid_ctrl.rb +39 -12
  56. data/rakelib/lib/director/help_controller.rb +17 -0
  57. data/rakelib/lib/director/html_help_data.rb +20 -2
  58. data/rakelib/lib/director/icon.rb +3 -0
  59. data/rakelib/lib/director/log.rb +25 -1
  60. data/rakelib/lib/director/menu.rb +38 -106
  61. data/rakelib/lib/director/menu_bar.rb +36 -70
  62. data/rakelib/lib/director/num_validator.rb +3 -3
  63. data/rakelib/lib/director/numeric_property_validator.rb +1 -1
  64. data/rakelib/lib/director/page_setup_dialog.rb +18 -1
  65. data/rakelib/lib/director/pgeditor.rb +1 -1
  66. data/rakelib/lib/director/pgvalidation_info.rb +1 -0
  67. data/rakelib/lib/director/popup_window.rb +7 -0
  68. data/rakelib/lib/director/preview_frame.rb +8 -1
  69. data/rakelib/lib/director/print_dialog.rb +17 -0
  70. data/rakelib/lib/director/printer.rb +1 -1
  71. data/rakelib/lib/director/property_grid_page.rb +2 -0
  72. data/rakelib/lib/director/region_iterator.rb +1 -1
  73. data/rakelib/lib/director/ribbon_backstage.rb +28 -0
  74. data/rakelib/lib/director/ribbon_backstage_button.rb +25 -0
  75. data/rakelib/lib/director/ribbon_backstage_callout.rb +26 -0
  76. data/rakelib/lib/director/ribbon_backstage_heading.rb +26 -0
  77. data/rakelib/lib/director/ribbon_backstage_itemlist.rb +27 -0
  78. data/rakelib/lib/director/ribbon_backstage_mrulist.rb +112 -0
  79. data/rakelib/lib/director/ribbon_bar.rb +14 -0
  80. data/rakelib/lib/director/ribbon_gallery.rb +6 -2
  81. data/rakelib/lib/director/ribbon_page.rb +11 -0
  82. data/rakelib/lib/director/ribbon_tool_bar.rb +6 -4
  83. data/rakelib/lib/director/richtext_composite_object.rb +4 -4
  84. data/rakelib/lib/director/richtext_paragraph_layout_box.rb +1 -1
  85. data/rakelib/lib/director/scrolled_t.rb +1 -1
  86. data/rakelib/lib/director/sizer.rb +7 -0
  87. data/rakelib/lib/director/sizer_item.rb +4 -1
  88. data/rakelib/lib/director/splitter_event.rb +2 -2
  89. data/rakelib/lib/director/task_bar_icon.rb +4 -1
  90. data/rakelib/lib/director/text_validator.rb +1 -1
  91. data/rakelib/lib/director/top_level_window.rb +12 -4
  92. data/rakelib/lib/director/tree_event.rb +3 -3
  93. data/rakelib/lib/director/validator.rb +1 -1
  94. data/rakelib/lib/director/variant.rb +2 -2
  95. data/rakelib/lib/director/window.rb +27 -5
  96. data/rakelib/lib/director/window_disabler.rb +1 -1
  97. data/rakelib/lib/director/xml_resource.rb +33 -8
  98. data/rakelib/lib/extractor/class.rb +2 -1
  99. data/rakelib/lib/extractor.rb +3 -2
  100. data/rakelib/lib/generate/interface.rb +2 -3
  101. data/rakelib/lib/specs/interfaces.rb +9 -2
  102. data/rakelib/lib/swig_runner.rb +14 -3
  103. data/rakelib/lib/typemap/common.rb +2 -36
  104. data/rakelib/lib/typemap/config.rb +22 -0
  105. data/samples/ribbon/ribbon.rb +277 -20
  106. data/tests/test_shared_event_handler.rb +3 -3
  107. data/tests/test_webview.rb +5 -5
  108. metadata +32 -394
  109. data/assets/repo-social-preview.odg +0 -0
  110. data/assets/repo-social-preview.xcf +0 -0
  111. data/lib/wx/aui/events/evt_list.rb +0 -148
  112. data/lib/wx/core/events/evt_list.rb +0 -1458
  113. data/lib/wx/core/font/encoding.rb +0 -113
  114. data/lib/wx/doc/gen/about_dialog_info.rb +0 -330
  115. data/lib/wx/doc/gen/accelerator.rb +0 -178
  116. data/lib/wx/doc/gen/activity_indicator.rb +0 -83
  117. data/lib/wx/doc/gen/affine_matrix2d.rb +0 -286
  118. data/lib/wx/doc/gen/animation.rb +0 -275
  119. data/lib/wx/doc/gen/animation_ctrl.rb +0 -300
  120. data/lib/wx/doc/gen/any_button.rb +0 -191
  121. data/lib/wx/doc/gen/app.rb +0 -463
  122. data/lib/wx/doc/gen/app_traits.rb +0 -396
  123. data/lib/wx/doc/gen/art_provider.rb +0 -617
  124. data/lib/wx/doc/gen/aui/aui_dock_art.rb +0 -455
  125. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +0 -54
  126. data/lib/wx/doc/gen/aui/aui_manager.rb +0 -847
  127. data/lib/wx/doc/gen/aui/aui_manager_event.rb +0 -131
  128. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +0 -180
  129. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +0 -59
  130. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +0 -130
  131. data/lib/wx/doc/gen/aui/aui_notebook.rb +0 -631
  132. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +0 -233
  133. data/lib/wx/doc/gen/aui/aui_pane_info.rb +0 -769
  134. data/lib/wx/doc/gen/aui/aui_tab_art.rb +0 -352
  135. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +0 -14
  136. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +0 -510
  137. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +0 -340
  138. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +0 -244
  139. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +0 -257
  140. data/lib/wx/doc/gen/aui/event_list.rb +0 -179
  141. data/lib/wx/doc/gen/banner_window.rb +0 -124
  142. data/lib/wx/doc/gen/bitmap.rb +0 -731
  143. data/lib/wx/doc/gen/bitmap_button.rb +0 -123
  144. data/lib/wx/doc/gen/bitmap_combo_box.rb +0 -221
  145. data/lib/wx/doc/gen/book_ctrl_base.rb +0 -274
  146. data/lib/wx/doc/gen/book_ctrl_event.rb +0 -66
  147. data/lib/wx/doc/gen/box_sizer.rb +0 -85
  148. data/lib/wx/doc/gen/brush.rb +0 -251
  149. data/lib/wx/doc/gen/busy_info.rb +0 -157
  150. data/lib/wx/doc/gen/button.rb +0 -182
  151. data/lib/wx/doc/gen/calculate_layout_event.rb +0 -62
  152. data/lib/wx/doc/gen/calendar_ctrl.rb +0 -505
  153. data/lib/wx/doc/gen/calendar_date_attr.rb +0 -138
  154. data/lib/wx/doc/gen/calendar_event.rb +0 -147
  155. data/lib/wx/doc/gen/caret.rb +0 -97
  156. data/lib/wx/doc/gen/check_box.rb +0 -175
  157. data/lib/wx/doc/gen/check_list_box.rb +0 -121
  158. data/lib/wx/doc/gen/choice.rb +0 -175
  159. data/lib/wx/doc/gen/choicebook.rb +0 -116
  160. data/lib/wx/doc/gen/client_dc.rb +0 -43
  161. data/lib/wx/doc/gen/clipboard.rb +0 -144
  162. data/lib/wx/doc/gen/collapsible_pane.rb +0 -138
  163. data/lib/wx/doc/gen/collapsible_pane_event.rb +0 -46
  164. data/lib/wx/doc/gen/colour.rb +0 -333
  165. data/lib/wx/doc/gen/colour_dialog.rb +0 -190
  166. data/lib/wx/doc/gen/colour_picker_ctrl.rb +0 -110
  167. data/lib/wx/doc/gen/colour_picker_event.rb +0 -77
  168. data/lib/wx/doc/gen/combo_box.rb +0 -292
  169. data/lib/wx/doc/gen/combo_ctrl.rb +0 -662
  170. data/lib/wx/doc/gen/command_link_button.rb +0 -134
  171. data/lib/wx/doc/gen/config_base.rb +0 -10
  172. data/lib/wx/doc/gen/context_help_button.rb +0 -56
  173. data/lib/wx/doc/gen/control.rb +0 -277
  174. data/lib/wx/doc/gen/control_with_items.rb +0 -253
  175. data/lib/wx/doc/gen/core.rb +0 -45
  176. data/lib/wx/doc/gen/credential_entry_dialog.rb +0 -137
  177. data/lib/wx/doc/gen/cursor.rb +0 -193
  178. data/lib/wx/doc/gen/data_format.rb +0 -85
  179. data/lib/wx/doc/gen/data_object.rb +0 -436
  180. data/lib/wx/doc/gen/data_object_simple_base.rb +0 -10
  181. data/lib/wx/doc/gen/date_event.rb +0 -49
  182. data/lib/wx/doc/gen/date_picker_ctrl.rb +0 -161
  183. data/lib/wx/doc/gen/dc.rb +0 -1631
  184. data/lib/wx/doc/gen/dc_overlay.rb +0 -102
  185. data/lib/wx/doc/gen/defs.rb +0 -2802
  186. data/lib/wx/doc/gen/dial_up_event.rb +0 -45
  187. data/lib/wx/doc/gen/dial_up_manager.rb +0 -149
  188. data/lib/wx/doc/gen/dialog.rb +0 -541
  189. data/lib/wx/doc/gen/dir_dialog.rb +0 -164
  190. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +0 -90
  191. data/lib/wx/doc/gen/dir_picker_ctrl.rb +0 -125
  192. data/lib/wx/doc/gen/display.rb +0 -238
  193. data/lib/wx/doc/gen/drag_drop.rb +0 -299
  194. data/lib/wx/doc/gen/drag_image.rb +0 -116
  195. data/lib/wx/doc/gen/editable_list_box.rb +0 -109
  196. data/lib/wx/doc/gen/event.rb +0 -990
  197. data/lib/wx/doc/gen/event_blocker.rb +0 -50
  198. data/lib/wx/doc/gen/event_filter.rb +0 -92
  199. data/lib/wx/doc/gen/event_list.rb +0 -1644
  200. data/lib/wx/doc/gen/events.rb +0 -2809
  201. data/lib/wx/doc/gen/evt_handler.rb +0 -229
  202. data/lib/wx/doc/gen/ext_help_controller.rb +0 -155
  203. data/lib/wx/doc/gen/file_ctrl.rb +0 -231
  204. data/lib/wx/doc/gen/file_ctrl_event.rb +0 -83
  205. data/lib/wx/doc/gen/file_dialog.rb +0 -353
  206. data/lib/wx/doc/gen/file_dialog_custom_control.rb +0 -165
  207. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +0 -158
  208. data/lib/wx/doc/gen/file_dir_picker_event.rb +0 -100
  209. data/lib/wx/doc/gen/file_picker_ctrl.rb +0 -132
  210. data/lib/wx/doc/gen/file_system.rb +0 -232
  211. data/lib/wx/doc/gen/find_dialog_event.rb +0 -126
  212. data/lib/wx/doc/gen/find_replace_data.rb +0 -60
  213. data/lib/wx/doc/gen/find_replace_dialog.rb +0 -58
  214. data/lib/wx/doc/gen/flex_grid_sizer.rb +0 -199
  215. data/lib/wx/doc/gen/font.rb +0 -1379
  216. data/lib/wx/doc/gen/font_data.rb +0 -151
  217. data/lib/wx/doc/gen/font_dialog.rb +0 -88
  218. data/lib/wx/doc/gen/font_picker_ctrl.rb +0 -143
  219. data/lib/wx/doc/gen/font_picker_event.rb +0 -65
  220. data/lib/wx/doc/gen/frame.rb +0 -352
  221. data/lib/wx/doc/gen/fs_file.rb +0 -337
  222. data/lib/wx/doc/gen/functions.rb +0 -10
  223. data/lib/wx/doc/gen/gauge.rb +0 -157
  224. data/lib/wx/doc/gen/gb_sizer_item.rb +0 -68
  225. data/lib/wx/doc/gen/gcdc.rb +0 -46
  226. data/lib/wx/doc/gen/gdi_common.rb +0 -1271
  227. data/lib/wx/doc/gen/gdi_object.rb +0 -31
  228. data/lib/wx/doc/gen/generic_about_dialog.rb +0 -140
  229. data/lib/wx/doc/gen/generic_dir_ctrl.rb +0 -223
  230. data/lib/wx/doc/gen/geometry.rb +0 -661
  231. data/lib/wx/doc/gen/graphics_context.rb +0 -1184
  232. data/lib/wx/doc/gen/graphics_object.rb +0 -750
  233. data/lib/wx/doc/gen/grid/event_list.rb +0 -191
  234. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +0 -40
  235. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +0 -280
  236. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +0 -35
  237. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +0 -37
  238. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +0 -49
  239. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +0 -35
  240. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +0 -46
  241. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +0 -38
  242. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +0 -45
  243. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +0 -40
  244. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +0 -197
  245. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +0 -39
  246. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +0 -44
  247. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +0 -45
  248. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +0 -79
  249. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +0 -46
  250. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +0 -35
  251. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +0 -108
  252. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +0 -35
  253. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +0 -49
  254. data/lib/wx/doc/gen/grid/grid_ctrl.rb +0 -3037
  255. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +0 -95
  256. data/lib/wx/doc/gen/grid/grid_event.rb +0 -129
  257. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +0 -104
  258. data/lib/wx/doc/gen/grid/grid_size_event.rb +0 -85
  259. data/lib/wx/doc/gen/grid/grid_string_table.rb +0 -142
  260. data/lib/wx/doc/gen/grid/grid_table_base.rb +0 -317
  261. data/lib/wx/doc/gen/grid/grid_table_message.rb +0 -81
  262. data/lib/wx/doc/gen/grid_bag_sizer.rb +0 -323
  263. data/lib/wx/doc/gen/grid_sizer.rb +0 -195
  264. data/lib/wx/doc/gen/gui_event_loop.rb +0 -159
  265. data/lib/wx/doc/gen/h_scrolled_window.rb +0 -562
  266. data/lib/wx/doc/gen/header_ctrl.rb +0 -880
  267. data/lib/wx/doc/gen/header_ctrl_event.rb +0 -133
  268. data/lib/wx/doc/gen/help_controller.rb +0 -238
  269. data/lib/wx/doc/gen/help_provider.rb +0 -98
  270. data/lib/wx/doc/gen/html/event_list.rb +0 -38
  271. data/lib/wx/doc/gen/html/html_cell.rb +0 -536
  272. data/lib/wx/doc/gen/html/html_cell_event.rb +0 -69
  273. data/lib/wx/doc/gen/html/html_data_object.rb +0 -42
  274. data/lib/wx/doc/gen/html/html_easy_printing.rb +0 -203
  275. data/lib/wx/doc/gen/html/html_help_controller.rb +0 -382
  276. data/lib/wx/doc/gen/html/html_help_data.rb +0 -159
  277. data/lib/wx/doc/gen/html/html_help_window.rb +0 -258
  278. data/lib/wx/doc/gen/html/html_link_event.rb +0 -41
  279. data/lib/wx/doc/gen/html/html_list_box.rb +0 -346
  280. data/lib/wx/doc/gen/html/html_printout.rb +0 -109
  281. data/lib/wx/doc/gen/html/html_window.rb +0 -461
  282. data/lib/wx/doc/gen/hyperlink_ctrl.rb +0 -311
  283. data/lib/wx/doc/gen/hyperlink_event.rb +0 -44
  284. data/lib/wx/doc/gen/icon.rb +0 -267
  285. data/lib/wx/doc/gen/icon_location.rb +0 -40
  286. data/lib/wx/doc/gen/image.rb +0 -1371
  287. data/lib/wx/doc/gen/image_list.rb +0 -168
  288. data/lib/wx/doc/gen/info_bar.rb +0 -195
  289. data/lib/wx/doc/gen/keyboard_state.rb +0 -140
  290. data/lib/wx/doc/gen/list_box.rb +0 -304
  291. data/lib/wx/doc/gen/list_ctrl.rb +0 -1774
  292. data/lib/wx/doc/gen/list_event.rb +0 -208
  293. data/lib/wx/doc/gen/listbook.rb +0 -116
  294. data/lib/wx/doc/gen/locale.rb +0 -4293
  295. data/lib/wx/doc/gen/log.rb +0 -603
  296. data/lib/wx/doc/gen/mb_conv.rb +0 -10
  297. data/lib/wx/doc/gen/mdi_client_window.rb +0 -47
  298. data/lib/wx/doc/gen/mdi_frame.rb +0 -324
  299. data/lib/wx/doc/gen/media_ctrl.rb +0 -269
  300. data/lib/wx/doc/gen/media_event.rb +0 -117
  301. data/lib/wx/doc/gen/memory_dc.rb +0 -174
  302. data/lib/wx/doc/gen/menu.rb +0 -509
  303. data/lib/wx/doc/gen/menu_bar.rb +0 -287
  304. data/lib/wx/doc/gen/menu_item.rb +0 -362
  305. data/lib/wx/doc/gen/message_dialog.rb +0 -238
  306. data/lib/wx/doc/gen/mini_frame.rb +0 -108
  307. data/lib/wx/doc/gen/mirror_dc.rb +0 -22
  308. data/lib/wx/doc/gen/mouse_state.rb +0 -150
  309. data/lib/wx/doc/gen/multi_choice_dialog.rb +0 -80
  310. data/lib/wx/doc/gen/non_owned_window.rb +0 -49
  311. data/lib/wx/doc/gen/notebook.rb +0 -278
  312. data/lib/wx/doc/gen/num_validator.rb +0 -37
  313. data/lib/wx/doc/gen/number_entry_dialog.rb +0 -93
  314. data/lib/wx/doc/gen/object.rb +0 -59
  315. data/lib/wx/doc/gen/owner_drawn_combo_box.rb +0 -395
  316. data/lib/wx/doc/gen/paint_dc.rb +0 -27
  317. data/lib/wx/doc/gen/palette.rb +0 -92
  318. data/lib/wx/doc/gen/panel.rb +0 -127
  319. data/lib/wx/doc/gen/pen.rb +0 -511
  320. data/lib/wx/doc/gen/persistence_manager.rb +0 -135
  321. data/lib/wx/doc/gen/persistent_object.rb +0 -52
  322. data/lib/wx/doc/gen/persistent_window.rb +0 -241
  323. data/lib/wx/doc/gen/pg/event_list.rb +0 -106
  324. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +0 -54
  325. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +0 -292
  326. data/lib/wx/doc/gen/pg/pg_cell.rb +0 -177
  327. data/lib/wx/doc/gen/pg/pg_editor.rb +0 -721
  328. data/lib/wx/doc/gen/pg/pg_multi_button.rb +0 -152
  329. data/lib/wx/doc/gen/pg/pg_properties.rb +0 -2829
  330. data/lib/wx/doc/gen/pg/pg_property.rb +0 -2078
  331. data/lib/wx/doc/gen/pg/pg_validation_info.rb +0 -344
  332. data/lib/wx/doc/gen/pg/property_grid.rb +0 -740
  333. data/lib/wx/doc/gen/pg/property_grid_event.rb +0 -184
  334. data/lib/wx/doc/gen/pg/property_grid_interface.rb +0 -1098
  335. data/lib/wx/doc/gen/pg/property_grid_manager.rb +0 -415
  336. data/lib/wx/doc/gen/pg/property_grid_page.rb +0 -354
  337. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +0 -165
  338. data/lib/wx/doc/gen/picker_base.rb +0 -152
  339. data/lib/wx/doc/gen/platform_info.rb +0 -622
  340. data/lib/wx/doc/gen/popup_window.rb +0 -107
  341. data/lib/wx/doc/gen/progress_dialog.rb +0 -100
  342. data/lib/wx/doc/gen/property_sheet_dialog.rb +0 -216
  343. data/lib/wx/doc/gen/prt/event_list.rb +0 -17
  344. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +0 -44
  345. data/lib/wx/doc/gen/prt/post_script_dc.rb +0 -30
  346. data/lib/wx/doc/gen/prt/preview_frame.rb +0 -78
  347. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +0 -151
  348. data/lib/wx/doc/gen/prt/print_data.rb +0 -804
  349. data/lib/wx/doc/gen/prt/print_dialog.rb +0 -55
  350. data/lib/wx/doc/gen/prt/printer.rb +0 -518
  351. data/lib/wx/doc/gen/prt/printer_dc.rb +0 -37
  352. data/lib/wx/doc/gen/query_layout_info_event.rb +0 -106
  353. data/lib/wx/doc/gen/radio_box.rb +0 -306
  354. data/lib/wx/doc/gen/radio_button.rb +0 -159
  355. data/lib/wx/doc/gen/rbn/event_list.rb +0 -136
  356. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +0 -1142
  357. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +0 -308
  358. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +0 -45
  359. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +0 -458
  360. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +0 -63
  361. data/lib/wx/doc/gen/rbn/ribbon_control.rb +0 -143
  362. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +0 -229
  363. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +0 -55
  364. data/lib/wx/doc/gen/rbn/ribbon_page.rb +0 -174
  365. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +0 -270
  366. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +0 -45
  367. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +0 -360
  368. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +0 -42
  369. data/lib/wx/doc/gen/rearrange_ctrl.rb +0 -78
  370. data/lib/wx/doc/gen/rearrange_list.rb +0 -123
  371. data/lib/wx/doc/gen/region.rb +0 -380
  372. data/lib/wx/doc/gen/region_iterator.rb +0 -76
  373. data/lib/wx/doc/gen/rich_tool_tip.rb +0 -154
  374. data/lib/wx/doc/gen/rt/event_list.rb +0 -17
  375. data/lib/wx/doc/gen/rt/shared_evt_handler.rb +0 -14
  376. data/lib/wx/doc/gen/rt/thread_event.rb +0 -71
  377. data/lib/wx/doc/gen/rtc/event_list.rb +0 -125
  378. data/lib/wx/doc/gen/rtc/rich_text_box.rb +0 -445
  379. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +0 -1188
  380. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +0 -41
  381. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +0 -538
  382. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +0 -2103
  383. data/lib/wx/doc/gen/rtc/rich_text_event.rb +0 -173
  384. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +0 -181
  385. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +0 -319
  386. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +0 -193
  387. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +0 -102
  388. data/lib/wx/doc/gen/rtc/rich_text_image.rb +0 -337
  389. data/lib/wx/doc/gen/rtc/rich_text_object.rb +0 -2922
  390. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +0 -1240
  391. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +0 -258
  392. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +0 -344
  393. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +0 -227
  394. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +0 -59
  395. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +0 -169
  396. data/lib/wx/doc/gen/sash_event.rb +0 -147
  397. data/lib/wx/doc/gen/sash_layout_window.rb +0 -232
  398. data/lib/wx/doc/gen/sash_window.rb +0 -171
  399. data/lib/wx/doc/gen/scaled_dc.rb +0 -10
  400. data/lib/wx/doc/gen/screen_dc.rb +0 -30
  401. data/lib/wx/doc/gen/scroll_bar.rb +0 -204
  402. data/lib/wx/doc/gen/scrolled_canvas.rb +0 -410
  403. data/lib/wx/doc/gen/scrolled_control.rb +0 -410
  404. data/lib/wx/doc/gen/scrolled_window.rb +0 -430
  405. data/lib/wx/doc/gen/search_ctrl.rb +0 -159
  406. data/lib/wx/doc/gen/secret_store.rb +0 -116
  407. data/lib/wx/doc/gen/simplebook.rb +0 -110
  408. data/lib/wx/doc/gen/single_choice_dialog.rb +0 -89
  409. data/lib/wx/doc/gen/sizer.rb +0 -945
  410. data/lib/wx/doc/gen/sizer_item.rb +0 -244
  411. data/lib/wx/doc/gen/slider.rb +0 -342
  412. data/lib/wx/doc/gen/spin_button.rb +0 -157
  413. data/lib/wx/doc/gen/spin_ctrl.rb +0 -231
  414. data/lib/wx/doc/gen/spin_ctrl_double.rb +0 -192
  415. data/lib/wx/doc/gen/spin_double_event.rb +0 -55
  416. data/lib/wx/doc/gen/spin_event.rb +0 -51
  417. data/lib/wx/doc/gen/splash_screen.rb +0 -113
  418. data/lib/wx/doc/gen/splitter_event.rb +0 -99
  419. data/lib/wx/doc/gen/splitter_window.rb +0 -498
  420. data/lib/wx/doc/gen/static_bitmap.rb +0 -256
  421. data/lib/wx/doc/gen/static_box.rb +0 -180
  422. data/lib/wx/doc/gen/static_box_sizer.rb +0 -85
  423. data/lib/wx/doc/gen/static_line.rb +0 -83
  424. data/lib/wx/doc/gen/static_text.rb +0 -127
  425. data/lib/wx/doc/gen/status_bar.rb +0 -290
  426. data/lib/wx/doc/gen/stc/event_list.rb +0 -221
  427. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +0 -4474
  428. data/lib/wx/doc/gen/stc/styled_text_event.rb +0 -8762
  429. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +0 -129
  430. data/lib/wx/doc/gen/svg_file_dc.rb +0 -164
  431. data/lib/wx/doc/gen/system_options.rb +0 -129
  432. data/lib/wx/doc/gen/system_settings.rb +0 -507
  433. data/lib/wx/doc/gen/task_bar_icon.rb +0 -127
  434. data/lib/wx/doc/gen/task_bar_icon_event.rb +0 -88
  435. data/lib/wx/doc/gen/text_attr.rb +0 -756
  436. data/lib/wx/doc/gen/text_ctrl.rb +0 -1033
  437. data/lib/wx/doc/gen/text_entry.rb +0 -441
  438. data/lib/wx/doc/gen/text_entry_dialog.rb +0 -220
  439. data/lib/wx/doc/gen/text_validator.rb +0 -245
  440. data/lib/wx/doc/gen/time_picker_ctrl.rb +0 -128
  441. data/lib/wx/doc/gen/timer.rb +0 -119
  442. data/lib/wx/doc/gen/timer_event.rb +0 -68
  443. data/lib/wx/doc/gen/tip_provider.rb +0 -63
  444. data/lib/wx/doc/gen/tip_window.rb +0 -51
  445. data/lib/wx/doc/gen/toggle_button.rb +0 -182
  446. data/lib/wx/doc/gen/tool_bar.rb +0 -890
  447. data/lib/wx/doc/gen/tool_tip.rb +0 -86
  448. data/lib/wx/doc/gen/toolbook.rb +0 -118
  449. data/lib/wx/doc/gen/top_level_window.rb +0 -516
  450. data/lib/wx/doc/gen/tree_ctrl.rb +0 -1052
  451. data/lib/wx/doc/gen/tree_event.rb +0 -127
  452. data/lib/wx/doc/gen/treebook.rb +0 -180
  453. data/lib/wx/doc/gen/ui_action_simulator.rb +0 -109
  454. data/lib/wx/doc/gen/utils.rb +0 -273
  455. data/lib/wx/doc/gen/v_list_box.rb +0 -272
  456. data/lib/wx/doc/gen/v_scrolled_canvas.rb +0 -195
  457. data/lib/wx/doc/gen/v_scrolled_window.rb +0 -191
  458. data/lib/wx/doc/gen/validator.rb +0 -68
  459. data/lib/wx/doc/gen/variant.rb +0 -294
  460. data/lib/wx/doc/gen/web/event_list.rb +0 -95
  461. data/lib/wx/doc/gen/web/web_view.rb +0 -1136
  462. data/lib/wx/doc/gen/web/web_view_event.rb +0 -210
  463. data/lib/wx/doc/gen/web/web_view_handler.rb +0 -318
  464. data/lib/wx/doc/gen/window.rb +0 -2917
  465. data/lib/wx/doc/gen/window_dc.rb +0 -38
  466. data/lib/wx/doc/gen/window_disabler.rb +0 -30
  467. data/lib/wx/doc/gen/with_images.rb +0 -84
  468. data/lib/wx/doc/gen/wizard.rb +0 -257
  469. data/lib/wx/doc/gen/wizard_event.rb +0 -113
  470. data/lib/wx/doc/gen/wizard_page.rb +0 -65
  471. data/lib/wx/doc/gen/wizard_page_simple.rb +0 -88
  472. data/lib/wx/doc/gen/wrap_sizer.rb +0 -79
  473. data/lib/wx/doc/gen/xml_node.rb +0 -316
  474. data/lib/wx/doc/gen/xml_resource.rb +0 -320
  475. data/lib/wx/grid/events/evt_list.rb +0 -166
  476. data/lib/wx/html/events/evt_list.rb +0 -27
  477. data/lib/wx/pg/events/evt_list.rb +0 -73
  478. data/lib/wx/rbn/events/evt_list.rb +0 -102
  479. data/lib/wx/rt/events/evt_list.rb +0 -8
  480. data/lib/wx/rtc/events/evt_list.rb +0 -98
  481. data/lib/wx/rtc/ext/rich_text_ctrl.rb +0 -24
  482. data/lib/wx/stc/events/evt_list.rb +0 -178
  483. data/lib/wx/web/events/evt_list.rb +0 -74
  484. data/samples/art/wxruby-512x512.png +0 -0
  485. data/tests/assets/test.css +0 -1
  486. data/tests/assets/test.html +0 -9
  487. /data/ext/wxruby3/swig/custom/{director.swg → common/director.swg} +0 -0
  488. /data/ext/wxruby3/swig/custom/{rubyapi.swg → common/rubyapi.swg} +0 -0
  489. /data/ext/wxruby3/swig/custom/{rubyerrors.swg → common/rubyerrors.swg} +0 -0
  490. /data/ext/wxruby3/swig/custom/{rubytracking.swg → common/rubytracking.swg} +0 -0
  491. /data/ext/wxruby3/swig/custom/{swiglabels.swg → common/swiglabels.swg} +0 -0
  492. /data/ext/wxruby3/swig/custom/{typemaps → common/typemaps}/swigtypemaps.swg +0 -0
  493. /data/ext/wxruby3/swig/custom/{wx_ruby_shared_ptr.i → common/wx_ruby_shared_ptr.i} +0 -0
  494. /data/ext/wxruby3/swig/custom/{wx_shared_ptr.i → common/wx_shared_ptr.i} +0 -0
  495. /data/ext/wxruby3/swig/custom/{rubyhead.swg → untyped_data/rubyhead.swg} +0 -0
  496. /data/ext/wxruby3/swig/custom/{rubyrun.swg → untyped_data/rubyrun.swg} +0 -0
  497. /data/ext/wxruby3/swig/custom/{swigrun.swg → untyped_data/swigrun.swg} +0 -0
  498. /data/rakelib/lib/core/include/{swigrubyrun.inc → untyped_data/swigrubyrun.inc} +0 -0
  499. /data/rakelib/lib/core/include/{swigrun.inc → untyped_data/swigrun.inc} +0 -0
@@ -1,1184 +0,0 @@
1
- # :stopdoc:
2
- # This file is automatically generated by the WXRuby3 documentation
3
- # generator. Do not alter this file.
4
- # :startdoc:
5
-
6
-
7
- module Wx
8
-
9
- # Anti-aliasing modes used by {Wx::GraphicsContext#set_antialias_mode}.
10
- #
11
- #
12
- #
13
- # @wxrb_require USE_GRAPHICS_CONTEXT
14
- class AntialiasMode < Wx::Enum
15
-
16
- # No anti-aliasing.
17
- #
18
- ANTIALIAS_NONE = Wx::AntialiasMode.new(0)
19
-
20
- # The default anti-aliasing.
21
- #
22
- ANTIALIAS_DEFAULT = Wx::AntialiasMode.new(1)
23
-
24
- end # AntialiasMode
25
-
26
- # Interpolation quality used by {Wx::GraphicsContext#set_interpolation_quality}.
27
- #
28
- #
29
- #
30
- # @wxrb_require USE_GRAPHICS_CONTEXT
31
- class InterpolationQuality < Wx::Enum
32
-
33
- # default interpolation, based on type of context, in general medium quality
34
- #
35
- INTERPOLATION_DEFAULT = Wx::InterpolationQuality.new(0)
36
-
37
- # no interpolation
38
- #
39
- INTERPOLATION_NONE = Wx::InterpolationQuality.new(1)
40
-
41
- # fast interpolation, suited for interactivity
42
- #
43
- INTERPOLATION_FAST = Wx::InterpolationQuality.new(2)
44
-
45
- # better quality
46
- #
47
- INTERPOLATION_GOOD = Wx::InterpolationQuality.new(3)
48
-
49
- # best quality, not suited for interactivity
50
- #
51
- INTERPOLATION_BEST = Wx::InterpolationQuality.new(4)
52
-
53
- end # InterpolationQuality
54
-
55
- # Compositing is done using Porter-Duff compositions (see http://keithp.com/~keithp/porterduff/p253-porter.pdf) with {Wx::GraphicsContext#set_composition_mode}.
56
- #
57
- # The description gives a short equation on how the values of a resulting pixel are calculated. R = Result, S = Source, D = Destination, colors premultiplied with alpha Ra, Sa, Da their alpha components
58
- #
59
- # @wxrb_require USE_GRAPHICS_CONTEXT
60
- class CompositionMode < Wx::Enum
61
-
62
- # Indicates invalid or unsupported composition mode.
63
- #
64
- COMPOSITION_INVALID = Wx::CompositionMode.new(-1)
65
-
66
- # R = 0
67
- #
68
- COMPOSITION_CLEAR = Wx::CompositionMode.new(0)
69
-
70
- # R = S
71
- #
72
- COMPOSITION_SOURCE = Wx::CompositionMode.new(1)
73
-
74
- # R = S + D*(1 - Sa)
75
- #
76
- COMPOSITION_OVER = Wx::CompositionMode.new(2)
77
-
78
- # R = S*Da
79
- #
80
- COMPOSITION_IN = Wx::CompositionMode.new(3)
81
-
82
- # R = S*(1 - Da)
83
- #
84
- COMPOSITION_OUT = Wx::CompositionMode.new(4)
85
-
86
- # R = S*Da + D*(1 - Sa)
87
- #
88
- COMPOSITION_ATOP = Wx::CompositionMode.new(5)
89
-
90
- # R = D, essentially a noop
91
- #
92
- COMPOSITION_DEST = Wx::CompositionMode.new(6)
93
-
94
- # R = S*(1 - Da) + D
95
- #
96
- COMPOSITION_DEST_OVER = Wx::CompositionMode.new(7)
97
-
98
- # R = D*Sa
99
- #
100
- COMPOSITION_DEST_IN = Wx::CompositionMode.new(8)
101
-
102
- # R = D*(1 - Sa)
103
- #
104
- COMPOSITION_DEST_OUT = Wx::CompositionMode.new(9)
105
-
106
- # R = S*(1 - Da) + D*Sa
107
- #
108
- COMPOSITION_DEST_ATOP = Wx::CompositionMode.new(10)
109
-
110
- # R = S*(1 - Da) + D*(1 - Sa)
111
- #
112
- COMPOSITION_XOR = Wx::CompositionMode.new(11)
113
-
114
- # R = S + D
115
- #
116
- COMPOSITION_ADD = Wx::CompositionMode.new(12)
117
-
118
- # Result is the absolute value of the difference between the source and the destination.
119
- #
120
- COMPOSITION_DIFF = Wx::CompositionMode.new(13)
121
-
122
- end # CompositionMode
123
-
124
- # Used to indicate what kind of gradient is set in a {Wx::GraphicsPenInfo} object.
125
- #
126
- #
127
- #
128
- # @wxrb_require USE_GRAPHICS_CONTEXT
129
- class GradientType < Wx::Enum
130
-
131
- # No gradient.
132
- #
133
- GRADIENT_NONE = Wx::GradientType.new(0)
134
-
135
- # A gradient that blends two or more colors along an axis.
136
- #
137
- GRADIENT_LINEAR = Wx::GradientType.new(1)
138
-
139
- # A gradient that blends two or more colors across an ellipse.
140
- #
141
- GRADIENT_RADIAL = Wx::GradientType.new(2)
142
-
143
- end # GradientType
144
-
145
- # An empty {Wx::GraphicsPen} object.
146
- #
147
- NULL_GRAPHICS_PEN = nil
148
-
149
- # An empty {Wx::GraphicsBrush} object.
150
- #
151
- NULL_GRAPHICS_BRUSH = nil
152
-
153
- # An empty {Wx::GraphicsFont} object.
154
- #
155
- NULL_GRAPHICS_FONT = nil
156
-
157
- # An empty {Wx::GraphicsBitmap} object.
158
- #
159
- NULL_GRAPHICS_BITMAP = nil
160
-
161
- # An empty {Wx::GraphicsMatrix} object.
162
- #
163
- NULL_GRAPHICS_MATRIX = nil
164
-
165
- # An empty {Wx::GraphicsPath} object.
166
- #
167
- NULL_GRAPHICS_PATH = nil
168
-
169
- # A {Wx::GraphicsContext} instance is the object that is drawn upon.
170
- #
171
- # It is created by a renderer using {Wx::GraphicsRenderer#create_context}. This can be either directly using a renderer instance, or indirectly using the static convenience {Wx::GraphicsContext.create} functions of {Wx::GraphicsContext} that always delegate the task to the default renderer.
172
- #
173
- # ```ruby
174
- # class MyCanvas < Wx::ScrolledWindow
175
- #
176
- # def on_paint(event)
177
- # # Create paint DC
178
- # self.paint do |dc|
179
- # # Create graphics context from it
180
- # Wx::GraphicsContext.draw_on(dc) do |gc|
181
- # # make a path that contains a circle and some lines
182
- # gc.set_pen(Wx::RED_PEN)
183
- # path = gc.create_path
184
- # path.add_circle(50.0, 50.0, 50.0)
185
- # path.move_to_point(0.0, 50.0)
186
- # path.add_line_to_point(100.0, 50.0)
187
- # path.move_to_point(50.0, 0.0)
188
- # path.add_line_to_point(50.0, 100.0)
189
- # path.close_sub_path
190
- # path.add_rectangle(25.0, 25.0, 50.0, 50.0)
191
- #
192
- # gc.stroke_path(path)
193
- # end
194
- # end
195
- # end
196
- # end
197
- # end
198
- # ```
199
- #
200
- # <div class="wxrb-remark">
201
- # <b>Remark:</b>
202
- # <p>For some renderers (like Direct2D or Cairo), the processing of drawing operations may be deferred. For example, Direct2D render targets normally build up a batch of rendering commands but defers processing them, while Cairo operates on a separate surface. To make drawing results visible, you need to update the context's content by either calling {Wx::GraphicsContext#flush} or by destroying the context.
203
- # </p>
204
- # </div>
205
- #
206
- # Category: Graphics Device Interface (GDI), Device Contexts
207
- # @see Wx::GraphicsRenderer#create_context
208
- # @see Wx::GCDC
209
- # @see Wx::DC
210
- #
211
- #
212
- #
213
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
214
- # @wxrb_require USE_GRAPHICS_CONTEXT
215
- class GraphicsContext < GraphicsObject
216
-
217
- # @overload self.create(window)
218
- # Creates a {Wx::GraphicsContext} from a {Wx::Window}.
219
- #
220
- #
221
- # @see Wx::GraphicsRenderer#create_context
222
- # @param window [Wx::Window]
223
- # @return [Wx::GraphicsContext]
224
- # @overload self.create(windowDC)
225
- # Creates a {Wx::GraphicsContext} from a {Wx::WindowDC}.
226
- #
227
- #
228
- # @see Wx::GraphicsRenderer#create_context
229
- # @param windowDC [Wx::WindowDC]
230
- # @return [Wx::GraphicsContext]
231
- # @overload self.create(memoryDC)
232
- # Creates a {Wx::GraphicsContext} from a {Wx::MemoryDC}.
233
- #
234
- #
235
- # @see Wx::GraphicsRenderer#create_context
236
- # @param memoryDC [Wx::MemoryDC]
237
- # @return [Wx::GraphicsContext]
238
- # @overload self.create(printerDC)
239
- # Creates a {Wx::GraphicsContext} from a {Wx::PRT::PrinterDC}.
240
- #
241
- # Under GTK+, this will only work when using the GtkPrint printing backend (which is available since GTK+ 2.10).
242
- # @see Wx::GraphicsRenderer#create_context
243
- # @see Printing Under Unix (GTK+)
244
- # @param printerDC [Wx::PRT::PrinterDC]
245
- # @return [Wx::GraphicsContext]
246
- # @wxrb_require WXMSW|WXOSX|USE_GTKPRINT
247
- # @overload self.create(image)
248
- # Creates a {Wx::GraphicsContext} associated with a {Wx::Image}.
249
- #
250
- # The image specifies the size of the context, as well as whether alpha is supported (if {Wx::Image#has_alpha}) or not and the initial contents of the context. The image object must have a life time greater than that of the new context as the context copies its contents back to the image when it is destroyed.
251
- # @param image [Wx::Image]
252
- # @return [Wx::GraphicsContext]
253
- # @overload self.create()
254
- # Create a lightweight context that can be used only for measuring text.
255
- # @return [Wx::GraphicsContext]
256
- def self.create(*args) end
257
-
258
- # Resets the clipping to original shape.
259
- #
260
- # <div class="wxrb-remark">
261
- # <b>Remark:</b>
262
- # <p>Use {Wx::GraphicsContext#get_clip_box} to cache and restore a previous clipping area.
263
- # </p>
264
- # </div>
265
- # @return [void]
266
- def reset_clip; end
267
-
268
- # @overload clip(region)
269
- # Sets the clipping region to the intersection of the given region and the previously set clipping region.
270
- #
271
- # The clipping region is an area to which drawing is restricted.
272
- #
273
- # <div class="wxrb-remark">
274
- # <b>Remark:</b>
275
- # <p>
276
- #
277
- # - Clipping region should be given in logical coordinates.
278
- # - Calling this function can only make the clipping region smaller, never larger.
279
- # - You need to call {Wx::GraphicsContext#reset_clip} first if you want to set the clipping region exactly to the region specified.
280
- # - If resulting clipping region is empty, then all drawing upon the context is clipped out (all changes made by drawing operations are masked out).
281
- #
282
- # </p>
283
- # </div>
284
- # @param region [Wx::Region]
285
- # @return [void]
286
- # @overload clip(x, y, w, h)
287
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
288
- # @param x [Float]
289
- # @param y [Float]
290
- # @param w [Float]
291
- # @param h [Float]
292
- # @return [void]
293
- # @overload clip(rect)
294
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
295
- # @param rect [Wx::Rect2DDouble]
296
- # @return [void]
297
- def clip(*args) end
298
-
299
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
300
- # @return [Wx::Rect2DDouble]
301
- def get_clip_box; end
302
- alias_method :clip_box, :get_clip_box
303
-
304
- # Creates a native affine transformation matrix from the passed-in values.
305
- #
306
- # The default parameters result in an identity matrix.
307
- # @param a [Float]
308
- # @param b [Float]
309
- # @param c [Float]
310
- # @param d [Float]
311
- # @param tx [Float]
312
- # @param ty [Float]
313
- # @return [Wx::GraphicsMatrix]
314
- def create_matrix(a=1.0, b=0.0, c=0.0, d=1.0, tx=0.0, ty=0.0) end
315
-
316
- # Concatenates the passed-in transform with the current transform of this context.
317
- # @param matrix [Wx::GraphicsMatrix]
318
- # @return [void]
319
- def concat_transform(matrix) end
320
-
321
- # Gets the current transformation matrix of this context.
322
- # @return [Wx::GraphicsMatrix]
323
- def get_transform; end
324
- alias_method :transform, :get_transform
325
-
326
- # Rotates the current transformation matrix (in radians).
327
- #
328
- # This can be useful for applying a tilt to your drawing commands or for drawing radial patterns.
329
- #
330
- # <div class="wxrb-note">
331
- # <b>Note:</b>
332
- # <p>A positive angle will rotate clockwise, negative counterclockwise.
333
- # </p>
334
- # </div>
335
- # @see deg_to_rad
336
- # @param angle [Float] Rotation angle in radians, clockwise.
337
- # @return [void]
338
- def rotate(angle) end
339
-
340
- # Scales (i.e., shrinks or grows) the current transformation matrix.
341
- # @param xScale [Float]
342
- # @param yScale [Float]
343
- # @return [void]
344
- def scale(xScale, yScale) end
345
-
346
- # Sets the current transformation matrix of this context.
347
- # @param matrix [Wx::GraphicsMatrix]
348
- # @return [void]
349
- def set_transform(matrix) end
350
- alias_method :transform=, :set_transform
351
-
352
- # @overload translate(dx, dy)
353
- # Translates (i.e., moves) the current transformation matrix.
354
- # @param dx [Float]
355
- # @param dy [Float]
356
- # @return [void]
357
- # @overload translate(pt)
358
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
359
- # @param pt [Wx::Point2DDouble]
360
- # @return [void]
361
- def translate(*args) end
362
-
363
- # Creates a native brush from a {Wx::Brush}.
364
- # @param brush [Wx::Brush]
365
- # @return [Wx::GraphicsBrush]
366
- def create_brush(brush) end
367
-
368
- # @overload create_linear_gradient_brush(x1, y1, x2, y2, c1, c2, matrix=Wx::NULL_GRAPHICS_MATRIX)
369
- # Creates a native brush with a linear gradient.
370
- #
371
- # The brush starts at (x1, y1) and ends at (x2, y2). Either just the start and end gradient colours (c1 and c2) or full set of gradient stops can be specified.
372
- # The version taking {Wx::GraphicsGradientStops} is new in wxWidgets 2.9.1.
373
- # The matrix parameter was added in wxWidgets 3.1.3.
374
- # @param x1 [Float]
375
- # @param y1 [Float]
376
- # @param x2 [Float]
377
- # @param y2 [Float]
378
- # @param c1 [Wx::Colour,String,Symbol]
379
- # @param c2 [Wx::Colour,String,Symbol]
380
- # @param matrix [Wx::GraphicsMatrix]
381
- # @return [Wx::GraphicsBrush]
382
- # @overload create_linear_gradient_brush(x1, y1, x2, y2, stops, matrix=Wx::NULL_GRAPHICS_MATRIX)
383
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
384
- # @param x1 [Float]
385
- # @param y1 [Float]
386
- # @param x2 [Float]
387
- # @param y2 [Float]
388
- # @param stops [Wx::GraphicsGradientStops]
389
- # @param matrix [Wx::GraphicsMatrix]
390
- # @return [Wx::GraphicsBrush]
391
- def create_linear_gradient_brush(*args) end
392
-
393
- # @overload create_radial_gradient_brush(startX, startY, endX, endY, radius, oColor, cColor, matrix=Wx::NULL_GRAPHICS_MATRIX)
394
- # Creates a native brush with a radial gradient.
395
- #
396
- # The brush originates at (startX, startY) and ends on a circle around (endX, endY) with the given radius.
397
- # The gradient may be specified either by its start and end colours, oColor and cColor, or by a full set of gradient stops.
398
- # The version taking {Wx::GraphicsGradientStops} is new in wxWidgets 2.9.1.
399
- # The ability to apply a transformation matrix to the gradient was added in 3.1.3.
400
- # @param startX [Float]
401
- # @param startY [Float]
402
- # @param endX [Float]
403
- # @param endY [Float]
404
- # @param radius [Float]
405
- # @param oColor [Wx::Colour,String,Symbol]
406
- # @param cColor [Wx::Colour,String,Symbol]
407
- # @param matrix [Wx::GraphicsMatrix]
408
- # @return [Wx::GraphicsBrush]
409
- # @overload create_radial_gradient_brush(startX, startY, endX, endY, radius, stops, matrix=Wx::NULL_GRAPHICS_MATRIX)
410
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
411
- # @param startX [Float]
412
- # @param startY [Float]
413
- # @param endX [Float]
414
- # @param endY [Float]
415
- # @param radius [Float]
416
- # @param stops [Wx::GraphicsGradientStops]
417
- # @param matrix [Wx::GraphicsMatrix]
418
- # @return [Wx::GraphicsBrush]
419
- def create_radial_gradient_brush(*args) end
420
-
421
- # @overload set_brush(brush)
422
- # Sets the brush for filling paths.
423
- # @param brush [Wx::Brush]
424
- # @return [void]
425
- # @overload set_brush(brush)
426
- # Sets the brush for filling paths.
427
- # @param brush [Wx::GraphicsBrush]
428
- # @return [void]
429
- def set_brush(*args) end
430
- alias_method :brush=, :set_brush
431
-
432
- # @overload create_pen(pen)
433
- # Creates a native pen from a {Wx::Pen}.
434
- #
435
- # Prefer to use the overload taking {Wx::GraphicsPenInfo} unless you already have a {Wx::Pen} as constructing one only to pass it to this method is wasteful.
436
- # @param pen [Wx::Pen]
437
- # @return [Wx::GraphicsPen]
438
- # @overload create_pen(info)
439
- # Creates a native pen from a {Wx::GraphicsPenInfo}.
440
- # @param info [Wx::GraphicsPenInfo]
441
- # @return [Wx::GraphicsPen]
442
- def create_pen(*args) end
443
-
444
- # @overload set_pen(pen)
445
- # Sets the pen used for stroking.
446
- # @param pen [Wx::Pen]
447
- # @return [void]
448
- # @overload set_pen(pen)
449
- # Sets the pen used for stroking.
450
- # @param pen [Wx::GraphicsPen]
451
- # @return [void]
452
- def set_pen(*args) end
453
- alias_method :pen=, :set_pen
454
-
455
- # @overload draw_bitmap(bmp, x, y, w, h)
456
- # Draws the bitmap.
457
- #
458
- # In case of a mono bitmap, this is treated as a mask and the current brushed is used for filling.
459
- # @param bmp [Wx::GraphicsBitmap]
460
- # @param x [Float]
461
- # @param y [Float]
462
- # @param w [Float]
463
- # @param h [Float]
464
- # @return [void]
465
- # @overload draw_bitmap(bmp, x, y, w, h)
466
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
467
- # @param bmp [Wx::Bitmap]
468
- # @param x [Float]
469
- # @param y [Float]
470
- # @param w [Float]
471
- # @param h [Float]
472
- # @return [void]
473
- # @overload draw_bitmap(bmp, rect)
474
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
475
- # @param bmp [Wx::GraphicsBitmap]
476
- # @param rect [Wx::Rect2DDouble]
477
- # @return [void]
478
- def draw_bitmap(*args) end
479
-
480
- # @overload draw_ellipse(x, y, w, h)
481
- # Draws an ellipse.
482
- # @param x [Float]
483
- # @param y [Float]
484
- # @param w [Float]
485
- # @param h [Float]
486
- # @return [void]
487
- # @overload draw_ellipse(rect)
488
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
489
- # @param rect [Wx::Rect2DDouble]
490
- # @return [void]
491
- def draw_ellipse(*args) end
492
-
493
- # @overload draw_icon(icon, x, y, w, h)
494
- # Draws the icon.
495
- # @param icon [Wx::Icon]
496
- # @param x [Float]
497
- # @param y [Float]
498
- # @param w [Float]
499
- # @param h [Float]
500
- # @return [void]
501
- # @overload draw_icon(icon, rect)
502
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
503
- # @param icon [Wx::Icon]
504
- # @param rect [Wx::Rect2DDouble]
505
- # @return [void]
506
- def draw_icon(*args) end
507
-
508
- # Draws the path by first filling and then stroking.
509
- # @param path [Wx::GraphicsPath]
510
- # @param fillStyle [Wx::PolygonFillMode]
511
- # @return [void]
512
- def draw_path(path, fillStyle=Wx::PolygonFillMode::ODDEVEN_RULE) end
513
-
514
- # @overload draw_rectangle(x, y, w, h)
515
- # Draws a rectangle.
516
- # @param x [Float]
517
- # @param y [Float]
518
- # @param w [Float]
519
- # @param h [Float]
520
- # @return [void]
521
- # @overload draw_rectangle(rect)
522
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
523
- # @param rect [Wx::Rect2DDouble]
524
- # @return [void]
525
- def draw_rectangle(*args) end
526
-
527
- # @overload draw_rounded_rectangle(x, y, w, h, radius)
528
- # Draws a rounded rectangle.
529
- # @param x [Float]
530
- # @param y [Float]
531
- # @param w [Float]
532
- # @param h [Float]
533
- # @param radius [Float]
534
- # @return [void]
535
- # @overload draw_rounded_rectangle(rect, radius)
536
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
537
- # @param rect [Wx::Rect2DDouble]
538
- # @param radius [Float]
539
- # @return [void]
540
- def draw_rounded_rectangle(*args) end
541
-
542
- # @overload draw_text(str, x, y)
543
- # Draws text at the defined position.
544
- # @param str [String]
545
- # @param x [Float]
546
- # @param y [Float]
547
- # @return [void]
548
- # @overload draw_text(str, pt)
549
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
550
- # @param str [String]
551
- # @param pt [Wx::Point2DDouble]
552
- # @return [void]
553
- # @overload draw_text(str, x, y, angle)
554
- # Draws text at the defined position.
555
- # @param str [String] The text to draw.
556
- # @param x [Float] The x coordinate position to draw the text at.
557
- # @param y [Float] The y coordinate position to draw the text at.
558
- # @param angle [Float] The angle, in radians, relative to the (default) horizontal direction to draw the string.
559
- # @return [void]
560
- # @overload draw_text(str, x, y, backgroundBrush)
561
- # Draws text at the defined position.
562
- # @param str [String] The text to draw.
563
- # @param x [Float] The x coordinate position to draw the text at.
564
- # @param y [Float] The y coordinate position to draw the text at.
565
- # @param backgroundBrush [Wx::GraphicsBrush] Brush to fill the text with.
566
- # @return [void]
567
- # @overload draw_text(str, x, y, angle, backgroundBrush)
568
- # Draws text at the defined position.
569
- # @param str [String] The text to draw.
570
- # @param x [Float] The x coordinate position to draw the text at.
571
- # @param y [Float] The y coordinate position to draw the text at.
572
- # @param angle [Float] The angle, in radians, relative to the (default) horizontal direction to draw the string.
573
- # @param backgroundBrush [Wx::GraphicsBrush] Brush to fill the text with.
574
- # @return [void]
575
- def draw_text(*args) end
576
-
577
- # @overload clear_rectangle(x, y, w, h)
578
- # Paints a transparent rectangle (only useful for bitmaps or windows).
579
- # @param x [Float]
580
- # @param y [Float]
581
- # @param w [Float]
582
- # @param h [Float]
583
- # @return [void]
584
- # @overload clear_rectangle(rect)
585
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
586
- # @param rect [Wx::Rect2DDouble]
587
- # @return [void]
588
- def clear_rectangle(*args) end
589
-
590
- # Creates a native graphics path which is initially empty.
591
- # @return [Wx::GraphicsPath]
592
- def create_path; end
593
-
594
- # Fills the path with the current brush.
595
- # @param path [Wx::GraphicsPath]
596
- # @param fillStyle [Wx::PolygonFillMode]
597
- # @return [void]
598
- def fill_path(path, fillStyle=Wx::PolygonFillMode::ODDEVEN_RULE) end
599
-
600
- # @overload stroke_line(x1, y1, x2, y2)
601
- # Strokes a single line.
602
- # @param x1 [Float]
603
- # @param y1 [Float]
604
- # @param x2 [Float]
605
- # @param y2 [Float]
606
- # @return [void]
607
- # @overload stroke_line(pt1, pt2)
608
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
609
- # @param pt1 [Wx::Point2DDouble]
610
- # @param pt2 [Wx::Point2DDouble]
611
- # @return [void]
612
- def stroke_line(*args) end
613
-
614
- # Strokes along a path with the current pen.
615
- # @param path [Wx::GraphicsPath]
616
- # @return [void]
617
- def stroke_path(path) end
618
-
619
- # @overload create_font(font, col=Wx::BLACK)
620
- # Creates a native graphics font from a {Wx::Font} and a text colour.
621
- #
622
- # <div class="wxrb-remark">
623
- # <b>Remark:</b>
624
- # <p>For Direct2D graphics, fonts can be created from TrueType fonts only.
625
- # </p>
626
- # </div>
627
- # @param font [Wx::Font,Wx::FontInfo]
628
- # @param col [Wx::Colour,String,Symbol]
629
- # @return [Wx::GraphicsFont]
630
- # @overload create_font(sizeInPixels, facename, flags=Wx::FontFlag::FONTFLAG_DEFAULT, col=Wx::BLACK)
631
- # Creates a font object with the specified attributes.
632
- #
633
- # The use of overload taking {Wx::Font} is preferred, see {Wx::GraphicsRenderer#create_font} for more details.
634
- #
635
- # <div class="wxrb-remark">
636
- # <b>Remark:</b>
637
- # <p>For Direct2D, graphics fonts can be created from TrueType fonts only.
638
- # </p>
639
- # </div>
640
- # @param sizeInPixels [Float]
641
- # @param facename [String]
642
- # @param flags [Integer]
643
- # @param col [Wx::Colour,String,Symbol]
644
- # @return [Wx::GraphicsFont]
645
- def create_font(*args) end
646
-
647
- # @overload set_font(font, colour)
648
- # Sets the font for drawing text.
649
- #
650
- # <div class="wxrb-remark">
651
- # <b>Remark:</b>
652
- # <p>For Direct2D, only TrueType fonts can be used.
653
- # </p>
654
- # </div>
655
- # @param font [Wx::Font,Wx::FontInfo]
656
- # @param colour [Wx::Colour,String,Symbol]
657
- # @return [void]
658
- # @overload set_font(font)
659
- # Sets the font for drawing text.
660
- # @param font [Wx::GraphicsFont]
661
- # @return [void]
662
- def set_font(*args) end
663
- alias_method :font=, :set_font
664
-
665
- # Fills the widths array with the widths from the beginning of text to the corresponding character of text.
666
- # @param text [String]
667
- # @return [Array<Float>]
668
- def get_partial_text_extents(text) end
669
- alias_method :partial_text_extents, :get_partial_text_extents
670
-
671
- # Gets the dimensions of the string using the currently selected font.
672
- # @param text [String] The text string to measure.
673
- # @return [Array(Float,Float,Float,Float)]
674
- def get_text_extent(text) end
675
- alias_method :text_extent, :get_text_extent
676
-
677
- # Begin a new document (relevant only for printing / pdf / etc.) If there is a progress dialog, message will be shown.
678
- # @param message [String]
679
- # @return [Boolean]
680
- def start_doc(message) end
681
-
682
- # Done with that document (relevant only for printing / pdf / etc.).
683
- # @return [void]
684
- def end_doc; end
685
-
686
- # Opens a new page (relevant only for printing / pdf etc.) with the given size in points.
687
- #
688
- # (If both are nil, then the default page size will be used.)
689
- # @param width [Float]
690
- # @param height [Float]
691
- # @return [void]
692
- def start_page(width=0, height=0) end
693
-
694
- # Ends the current page (relevant only for printing / pdf / etc.).
695
- # @return [void]
696
- def end_page; end
697
-
698
- # Creates {Wx::GraphicsBitmap} from an existing {Wx::Bitmap}.
699
- #
700
- # An invalid {Wx::NULL_GRAPHICS_BITMAP} on failure.
701
- # @param bitmap [Wx::Bitmap]
702
- # @return [Wx::GraphicsBitmap]
703
- def create_bitmap(bitmap) end
704
-
705
- # Creates {Wx::GraphicsBitmap} from an existing {Wx::Image}.
706
- #
707
- # This method is more efficient than converting {Wx::Image} to {Wx::Bitmap} first and then calling {Wx::GraphicsContext#create_bitmap}, but otherwise has the same effect.
708
- # An invalid {Wx::NULL_GRAPHICS_BITMAP} on failure.
709
- # @param image [Wx::Image]
710
- # @return [Wx::GraphicsBitmap]
711
- def create_bitmap_from_image(image) end
712
-
713
- # Extracts a sub-bitmap from an existing bitmap.
714
- # @param bitmap [Wx::GraphicsBitmap]
715
- # @param x [Float]
716
- # @param y [Float]
717
- # @param w [Float]
718
- # @param h [Float]
719
- # @return [Wx::GraphicsBitmap]
720
- def create_sub_bitmap(bitmap, x, y, w, h) end
721
-
722
- # All rendering will be done into a fully transparent, temporary context.
723
- #
724
- # Layers can be nested by making balanced calls to {Wx::GraphicsContext#begin_layer}/EndLayer().
725
- # @param opacity [Float]
726
- # @return [void]
727
- def begin_layer(opacity) end
728
-
729
- # Composites back the drawings into the context with the opacity given at the {Wx::GraphicsContext#begin_layer} call.
730
- # @return [void]
731
- def end_layer; end
732
-
733
- # Push the current state (like transformations, clipping region and quality settings) of the context on a stack.
734
- #
735
- # Multiple balanced calls to {Wx::GraphicsContext#push_state} and {Wx::GraphicsContext#pop_state} can be nested.
736
- # @see Wx::GraphicsContext#pop_state
737
- # @return [void]
738
- def push_state; end
739
-
740
- # Sets current state of the context to the state saved by a preceding call to {Wx::GraphicsContext#push_state} and removes that state from the stack of saved states.
741
- #
742
- #
743
- # @see Wx::GraphicsContext#push_state
744
- # @return [void]
745
- def pop_state; end
746
-
747
- # Make sure that the current content of this context is immediately visible.
748
- # @return [void]
749
- def flush; end
750
-
751
- # Sets the antialiasing mode; returns true if it supported.
752
- # @param antialias [Wx::AntialiasMode]
753
- # @return [Boolean]
754
- def set_antialias_mode(antialias) end
755
- alias_method :antialias_mode=, :set_antialias_mode
756
-
757
- # Returns the current shape antialiasing mode.
758
- # @return [Wx::AntialiasMode]
759
- def get_antialias_mode; end
760
- alias_method :antialias_mode, :get_antialias_mode
761
-
762
- # Sets the interpolation quality; returns true if it is supported.
763
- #
764
- # <div class="wxrb-remark">
765
- # <b>Remark:</b>
766
- # <p>Not implemented in the Cairo backend currently.
767
- # </p>
768
- # </div>
769
- # @param interpolation [Wx::InterpolationQuality]
770
- # @return [Boolean]
771
- def set_interpolation_quality(interpolation) end
772
- alias_method :interpolation_quality=, :set_interpolation_quality
773
-
774
- # Returns the current interpolation quality.
775
- # @return [Wx::InterpolationQuality]
776
- def get_interpolation_quality; end
777
- alias_method :interpolation_quality, :get_interpolation_quality
778
-
779
- # Sets the compositing operator, returns true if it supported.
780
- # @param op [Wx::CompositionMode]
781
- # @return [Boolean]
782
- def set_composition_mode(op) end
783
- alias_method :composition_mode=, :set_composition_mode
784
-
785
- # Returns the current compositing operator.
786
- # @return [Wx::CompositionMode]
787
- def get_composition_mode; end
788
- alias_method :composition_mode, :get_composition_mode
789
-
790
- # Returns the size of the graphics context in device coordinates.
791
- # @return [Array(Float,Float)]
792
- def get_size; end
793
- alias_method :size, :get_size
794
-
795
- # Returns the resolution of the graphics context in device points per inch.
796
- # @return [Array(Float,Float)]
797
- def get_dpi; end
798
- alias_method :dpi, :get_dpi
799
-
800
- # Returns the associated window, if any.
801
- #
802
- # If this context was created using {Wx::GraphicsContext.create} overload taking {Wx::Window} or {Wx::WindowDC}, this method returns the corresponding window. Otherwise, returns nil.
803
- # A possibly nil window pointer.
804
- # @return [Wx::Window]
805
- def get_window; end
806
- alias_method :window, :get_window
807
-
808
- # Helper to determine if a 0.5 offset should be applied for the drawing operation.
809
- # @return [Boolean]
810
- def should_offset; end
811
-
812
- # Indicates whether the context should try to offset for pixel boundaries.
813
- #
814
- # This only makes sense on bitmap devices like screen. By default, this is turned off.
815
- # @param enable [Boolean]
816
- # @return [void]
817
- def enable_offset(enable=true) end
818
-
819
- # Helper to determine if a 0.5 offset should be applied for the drawing operation.
820
- # @return [void]
821
- def disable_offset; end
822
-
823
- # Helper to determine if a 0.5 offset should be applied for the drawing operation.
824
- # @return [Boolean]
825
- def offset_enabled; end
826
-
827
- # @overload from_dip(sz)
828
- # Convert DPI-independent pixel values to the value in pixels appropriate for the graphics context.
829
- #
830
- # See {Wx::Window#from_dip} and {Wx::DC#from_dip} for more info about converting device independent pixel values.
831
- # @param sz [Array(Integer, Integer), Wx::Size]
832
- # @return [Wx::Size]
833
- # @overload from_dip(pt)
834
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
835
- # @param pt [Array(Integer, Integer), Wx::Point]
836
- # @return [Wx::Point]
837
- # @overload from_dip(d)
838
- # Convert DPI-independent value in pixels to the value in pixels appropriate for the graphics context.
839
- #
840
- # This is the same as the <code>Wx::GraphicsContext#from_dip(const Wx::Size&)</code> overload, but assumes that the resolution is the same in horizontal and vertical directions.
841
- # @param d [Integer]
842
- # @return [Integer]
843
- def from_dip(*args) end
844
-
845
- # @overload to_dip(sz)
846
- # Convert pixel values of the current graphics context to DPI-independent pixel values.
847
- #
848
- # See {Wx::Window#to_dip} and {Wx::DC#to_dip} for more info about converting device independent pixel values.
849
- # @param sz [Array(Integer, Integer), Wx::Size]
850
- # @return [Wx::Size]
851
- # @overload to_dip(pt)
852
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
853
- # @param pt [Array(Integer, Integer), Wx::Point]
854
- # @return [Wx::Point]
855
- # @overload to_dip(d)
856
- # Convert pixel values of the current graphics context to DPI-independent pixel values.
857
- #
858
- # This is the same as ToDIP(const {Wx::Size}&) overload, but assumes that the resolution is the same in horizontal and vertical directions.
859
- # @param d [Integer]
860
- # @return [Integer]
861
- def to_dip(*args) end
862
-
863
- end # GraphicsContext
864
-
865
- # Represents a single gradient stop in a collection of gradient stops as represented by {Wx::GraphicsGradientStops}.
866
- #
867
- # Category: Graphics Device Interface (GDI)
868
- #
869
- #
870
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
871
- # @wxrb_require USE_GRAPHICS_CONTEXT
872
- class GraphicsGradientStop < ::Object
873
-
874
- # Return the stop colour.
875
- # @return [Wx::Colour,String,Symbol]
876
- def get_colour; end
877
- alias_method :colour, :get_colour
878
-
879
- # Change the stop colour.
880
- # @param col [Wx::Colour,String,Symbol] The new colour.
881
- # @return [void]
882
- def set_colour(col) end
883
- alias_method :colour=, :set_colour
884
-
885
- # Return the stop position.
886
- # @return [Float]
887
- def get_position; end
888
- alias_method :position, :get_position
889
-
890
- # Change the stop position.
891
- # @param pos [Float] The new position, must always be in [0, 1] range.
892
- # @return [void]
893
- def set_position(pos) end
894
- alias_method :position=, :set_position
895
-
896
- end # GraphicsGradientStop
897
-
898
- # Represents a collection of {Wx::GraphicGradientStop} values for use with CreateLinearGradientBrush and CreateRadialGradientBrush.
899
- #
900
- # The stops are maintained in order of position. If two or more stops are added with the same position, then the one(s) added later come later. This can be useful for producing discontinuities in the colour gradient.
901
- # Notice that this class is write-once; you can't modify the stops once they had been added.
902
- #
903
- # Category: Graphics Device Interface (GDI)
904
- #
905
- #
906
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
907
- # @wxrb_require USE_GRAPHICS_CONTEXT
908
- class GraphicsGradientStops < ::Object
909
-
910
- # @overload add(stop)
911
- # Add a new stop.
912
- # @param stop [Wx::GraphicsGradientStop]
913
- # @return [void]
914
- # @overload add(col, pos)
915
- # Add a new stop.
916
- # @param col [Wx::Colour]
917
- # @param pos [Float]
918
- # @return [void]
919
- def add(*args) end
920
-
921
- # Initializes the gradient stops with the given boundary colours.
922
- #
923
- # Creates a {Wx::GraphicsGradientStops} instance with start colour given by startCol and end colour given by endCol.
924
- # @param startCol [Wx::Colour]
925
- # @param endCol [Wx::Colour]
926
- # @return [Wx::GraphicsGradientStops]
927
- def initialize(startCol=Wx::TRANSPARENT_COLOUR, endCol=Wx::TRANSPARENT_COLOUR) end
928
-
929
- #
930
- #
931
- # The stop at the given index.
932
- # @param n [unsigned] The index, must be in [0, {Wx::GraphicsGradientStops#get_count}) range.
933
- # @return [Wx::GraphicsGradientStop]
934
- def item(n) end
935
-
936
- #
937
- #
938
- # The number of stops.
939
- # @return [Integer]
940
- def get_count; end
941
- alias_method :count, :get_count
942
-
943
- # Set the start colour to col.
944
- # @param col [Wx::Colour]
945
- # @return [void]
946
- def set_start_colour(col) end
947
- alias_method :start_colour=, :set_start_colour
948
-
949
- #
950
- #
951
- # The start colour.
952
- # @return [Wx::Colour]
953
- def get_start_colour; end
954
- alias_method :start_colour, :get_start_colour
955
-
956
- # Set the end colour to col.
957
- # @param col [Wx::Colour]
958
- # @return [void]
959
- def set_end_colour(col) end
960
- alias_method :end_colour=, :set_end_colour
961
-
962
- #
963
- #
964
- # The end colour.
965
- # @return [Wx::Colour]
966
- def get_end_colour; end
967
- alias_method :end_colour, :get_end_colour
968
-
969
- end # GraphicsGradientStops
970
-
971
- # This class is a helper used for {Wx::GraphicsPen} creation using the named parameter idiom: it allows specifying various {Wx::GraphicsPen} attributes using the chained calls to its clearly named methods instead of passing them in the fixed order to {Wx::GraphicsPen} constructors.
972
- #
973
- # Typically, you would use {Wx::GraphicsPenInfo} with a {Wx::GraphicsContext}. For example, to start drawing with a dotted blue pen slightly wider than normal you could, write the following:
974
- # ```ruby
975
- # ctx = Wx::GraphicsContext.create(dc)
976
- #
977
- # ctx.set_pen(Wx::GraphicsPenInfo.new(Wx::BLUE).width(1.25).style(Wx::PENSTYLE_DOT))
978
- # ```
979
- #
980
- #
981
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
982
- # @wxrb_require USE_GRAPHICS_CONTEXT
983
- class GraphicsPenInfo < ::Object
984
-
985
- # Constructor, which can set the colour, width and style for the pen.
986
- # @param colour [Wx::Colour,String,Symbol]
987
- # @param width [Float]
988
- # @param style [Wx::PenStyle]
989
- # @return [Wx::GraphicsPenInfo]
990
- def initialize(colour=(Wx::Colour.new()), width=1.0, style=Wx::PenStyle::PENSTYLE_SOLID) end
991
-
992
- # Sets the colour for the pen.
993
- # @param col [Wx::Colour,String,Symbol]
994
- # @return [Wx::GraphicsPenInfo]
995
- def colour(col) end
996
-
997
- # Sets the line width for the pen.
998
- # @param width [Float]
999
- # @return [Wx::GraphicsPenInfo]
1000
- def width(width) end
1001
-
1002
- # Sets the style for the pen.
1003
- # @param style [Wx::PenStyle]
1004
- # @return [Wx::GraphicsPenInfo]
1005
- def style(style) end
1006
-
1007
- # Sets the bitmap used for stippling.
1008
- #
1009
- # When the pen is used, a repeating pattern of this bitmap will be drawn.
1010
- # @param stipple [Wx::Bitmap]
1011
- # @return [Wx::GraphicsPenInfo]
1012
- def stipple(stipple) end
1013
-
1014
- # Sets the join for the pen, which is the appearance of where two lines meet or overlap.
1015
- # @param join [Wx::PenJoin]
1016
- # @return [Wx::GraphicsPenInfo]
1017
- def join(join) end
1018
-
1019
- # Sets the cap (i.e., the end point) for the pen.
1020
- # @param cap [Wx::PenCap]
1021
- # @return [Wx::GraphicsPenInfo]
1022
- def cap(cap) end
1023
-
1024
- # @overload linear_gradient(x1, y1, x2, y2, c1, c2, matrix=Wx::NULL_GRAPHICS_MATRIX)
1025
- # Applies a linear gradient to the pen.
1026
- #
1027
- # <div class="wxrb-remark">
1028
- # <b>Remark:</b>
1029
- # <p>The starting and ending coordinates define the direction of the gradient. Along with north, south, east and west, diagonal directions can also be used.
1030
- # </p>
1031
- # </div>
1032
- # @param x1 [Float] The x coordinate of the starting point of the gradient.
1033
- # @param y1 [Float] The y coordinate of the starting point of the gradient.
1034
- # @param x2 [Float] The x coordinate of the ending point of the gradient.
1035
- # @param y2 [Float] The y coordinate of the ending point of the gradient.
1036
- # @param c1 [Wx::Colour,String,Symbol] The starting colour.
1037
- # @param c2 [Wx::Colour,String,Symbol] The ending colour.
1038
- # @param matrix [Wx::GraphicsMatrix] An optional transformation to apply to the gradient.
1039
- # @return [Wx::GraphicsPenInfo]
1040
- # @overload linear_gradient(x1, y1, x2, y2, stops, matrix=Wx::NULL_GRAPHICS_MATRIX)
1041
- # Applies a linear gradient to the pen, including discontinuous stops in the pattern.
1042
- #
1043
- # <div class="wxrb-remark">
1044
- # <b>Remark:</b>
1045
- # <p>The starting and ending coordinates define the direction of the gradient. Along with north, south, east and west, diagonal directions can also be used.
1046
- # </p>
1047
- # </div>
1048
- # @param x1 [Float] The x coordinate of the starting point of the gradient.
1049
- # @param y1 [Float] The y coordinate of the starting point of the gradient.
1050
- # @param x2 [Float] The x coordinate of the ending point of the gradient.
1051
- # @param y2 [Float] The y coordinate of the ending point of the gradient.
1052
- # @param stops [Wx::GraphicsGradientStops] A series of stops to include in the pattern.
1053
- # @param matrix [Wx::GraphicsMatrix] An optional transformation to apply to the gradient.
1054
- # @return [Wx::GraphicsPenInfo]
1055
- def linear_gradient(*args) end
1056
-
1057
- # @overload radial_gradient(startX, startY, endX, endY, radius, oColor, cColor, matrix=Wx::NULL_GRAPHICS_MATRIX)
1058
- # Applies a radial (i.e., circular) gradient to the pen.
1059
- #
1060
- # <div class="wxrb-remark">
1061
- # <b>Remark:</b>
1062
- # <p>The starting and ending coordinates define the direction of the gradient. Along with north, south, east and west, diagonal directions can also be used.
1063
- # </p>
1064
- # </div>
1065
- # @param startX [Float] The x coordinate of the starting point of the gradient.
1066
- # @param startY [Float] The startY coordinate of the starting point of the gradient.
1067
- # @param endX [Float] The endX coordinate of the end of the circle.
1068
- # @param endY [Float] The endY coordinate of the end of the circle.
1069
- # @param radius [Float] The radius of the circle of the gradient (around endX and endY).
1070
- # @param oColor [Wx::Colour,String,Symbol] The outer colour.
1071
- # @param cColor [Wx::Colour,String,Symbol] The center colour.
1072
- # @param matrix [Wx::GraphicsMatrix] An optional transformation to apply to the gradient.
1073
- # @return [Wx::GraphicsPenInfo]
1074
- # @overload radial_gradient(startX, startY, endX, endY, radius, stops, matrix=Wx::NULL_GRAPHICS_MATRIX)
1075
- # Applies a radial (i.e., circular) gradient to the pen, including discontinuous stops in the pattern.
1076
- #
1077
- # <div class="wxrb-remark">
1078
- # <b>Remark:</b>
1079
- # <p>The starting and ending coordinates define the direction of the gradient. Along with north, south, east and west, diagonal directions can also be used.
1080
- # </p>
1081
- # </div>
1082
- # @param startX [Float] The x coordinate of the starting point of the gradient.
1083
- # @param startY [Float] The startY coordinate of the starting point of the gradient.
1084
- # @param endX [Float] The endX coordinate of the end of the circle.
1085
- # @param endY [Float] The endY coordinate of the end of the circle.
1086
- # @param radius [Float] The radius of the circle of the gradient (around endX and endY).
1087
- # @param stops [Wx::GraphicsGradientStops] A series of stops to include in the pattern.
1088
- # @param matrix [Wx::GraphicsMatrix] An optional transformation to apply to the gradient.
1089
- # @return [Wx::GraphicsPenInfo]
1090
- def radial_gradient(*args) end
1091
-
1092
- # Returns the pen's colour.
1093
- # @return [Wx::Colour]
1094
- def get_colour; end
1095
-
1096
- # Returns the pen's stipple bitmap.
1097
- # @return [Wx::Bitmap]
1098
- def get_stipple; end
1099
-
1100
- # Returns the pen's style.
1101
- # @return [Wx::PenStyle]
1102
- def get_style; end
1103
-
1104
- # Returns the pen's joining method.
1105
- # @return [Wx::PenJoin]
1106
- def get_join; end
1107
-
1108
- # Returns the pen's cap (i.e., end-point style).
1109
- # @return [Wx::PenCap]
1110
- def get_cap; end
1111
-
1112
- # Returns the number of dashes in the pen's dash pattern.
1113
- # @return [Integer]
1114
- def get_dash_count; end
1115
- alias_method :dash_count, :get_dash_count
1116
-
1117
- # Returns whether the pen is transparent.
1118
- # @return [Boolean]
1119
- def is_transparent; end
1120
- alias_method :transparent?, :is_transparent
1121
-
1122
- # Returns the pen's line width.
1123
- # @return [Float]
1124
- def get_width; end
1125
-
1126
- # Returns the pen's gradient type.
1127
- # @return [Wx::GradientType]
1128
- def get_gradient_type; end
1129
- alias_method :gradient_type, :get_gradient_type
1130
-
1131
- # Returns the x coordinate of the starting point (if using a gradient).
1132
- # @return [Float]
1133
- def get_x1; end
1134
- alias_method :x1, :get_x1
1135
-
1136
- # Returns the y coordinate of the starting point (if using a gradient).
1137
- # @return [Float]
1138
- def get_y1; end
1139
- alias_method :y1, :get_y1
1140
-
1141
- # Returns the x coordinate of the ending point (if using a gradient).
1142
- # @return [Float]
1143
- def get_x2; end
1144
- alias_method :x2, :get_x2
1145
-
1146
- # Returns the y coordinate of the ending point (if using a gradient).
1147
- # @return [Float]
1148
- def get_y2; end
1149
- alias_method :y2, :get_y2
1150
-
1151
- # Returns the x coordinate of the starting point (if using a gradient).
1152
- # @return [Float]
1153
- def get_start_x; end
1154
- alias_method :start_x, :get_start_x
1155
-
1156
- # Returns the y coordinate of the starting point (if using a gradient).
1157
- # @return [Float]
1158
- def get_start_y; end
1159
- alias_method :start_y, :get_start_y
1160
-
1161
- # Returns the x coordinate of the ending point (if using a gradient).
1162
- # @return [Float]
1163
- def get_end_x; end
1164
- alias_method :end_x, :get_end_x
1165
-
1166
- # Returns the y coordinate of the ending point (if using a gradient).
1167
- # @return [Float]
1168
- def get_end_y; end
1169
- alias_method :end_y, :get_end_y
1170
-
1171
- # Returns the radius of the radial gradient.
1172
- # @return [Float]
1173
- def get_radius; end
1174
- alias_method :radius, :get_radius
1175
-
1176
- # Returns the stops of the gradient.
1177
- # @return [Wx::GraphicsGradientStops]
1178
- def get_stops; end
1179
- alias_method :stops, :get_stops
1180
-
1181
- end # GraphicsPenInfo
1182
-
1183
-
1184
- end