wxruby3 1.8.0 → 1.8.1

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 (391) hide show
  1. checksums.yaml +4 -4
  2. data/lib/wx/doc/stream.rb +7 -3
  3. data/lib/wx/version.rb +1 -1
  4. data/lib/wx/wxruby/cmd/test.rb +8 -2
  5. data/rakelib/lib/config/pkgman/linux.rb +4 -2
  6. data/rakelib/lib/director/derived_dc.rb +41 -32
  7. data/rakelib/lib/director/editable_listbox.rb +10 -8
  8. data/rakelib/lib/director/fs_file.rb +23 -0
  9. data/rakelib/lib/director/ribbon_page.rb +11 -0
  10. data/rakelib/lib/director/top_level_window.rb +12 -4
  11. data/rakelib/lib/specs/interfaces.rb +2 -2
  12. data/tests/test_webview.rb +5 -5
  13. metadata +2 -380
  14. data/assets/repo-social-preview.odg +0 -0
  15. data/assets/repo-social-preview.xcf +0 -0
  16. data/lib/wx/aui/events/evt_list.rb +0 -148
  17. data/lib/wx/core/events/evt_list.rb +0 -1458
  18. data/lib/wx/core/font/encoding.rb +0 -113
  19. data/lib/wx/doc/gen/about_dialog_info.rb +0 -330
  20. data/lib/wx/doc/gen/accelerator.rb +0 -178
  21. data/lib/wx/doc/gen/activity_indicator.rb +0 -83
  22. data/lib/wx/doc/gen/affine_matrix2d.rb +0 -286
  23. data/lib/wx/doc/gen/animation.rb +0 -275
  24. data/lib/wx/doc/gen/animation_ctrl.rb +0 -300
  25. data/lib/wx/doc/gen/any_button.rb +0 -191
  26. data/lib/wx/doc/gen/app.rb +0 -463
  27. data/lib/wx/doc/gen/app_traits.rb +0 -396
  28. data/lib/wx/doc/gen/art_provider.rb +0 -617
  29. data/lib/wx/doc/gen/aui/aui_dock_art.rb +0 -455
  30. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +0 -54
  31. data/lib/wx/doc/gen/aui/aui_manager.rb +0 -847
  32. data/lib/wx/doc/gen/aui/aui_manager_event.rb +0 -131
  33. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +0 -180
  34. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +0 -59
  35. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +0 -130
  36. data/lib/wx/doc/gen/aui/aui_notebook.rb +0 -631
  37. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +0 -233
  38. data/lib/wx/doc/gen/aui/aui_pane_info.rb +0 -769
  39. data/lib/wx/doc/gen/aui/aui_tab_art.rb +0 -352
  40. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +0 -14
  41. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +0 -510
  42. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +0 -340
  43. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +0 -244
  44. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +0 -257
  45. data/lib/wx/doc/gen/aui/event_list.rb +0 -179
  46. data/lib/wx/doc/gen/banner_window.rb +0 -124
  47. data/lib/wx/doc/gen/bitmap.rb +0 -731
  48. data/lib/wx/doc/gen/bitmap_button.rb +0 -123
  49. data/lib/wx/doc/gen/bitmap_combo_box.rb +0 -221
  50. data/lib/wx/doc/gen/book_ctrl_base.rb +0 -274
  51. data/lib/wx/doc/gen/book_ctrl_event.rb +0 -66
  52. data/lib/wx/doc/gen/box_sizer.rb +0 -85
  53. data/lib/wx/doc/gen/brush.rb +0 -251
  54. data/lib/wx/doc/gen/busy_info.rb +0 -157
  55. data/lib/wx/doc/gen/button.rb +0 -182
  56. data/lib/wx/doc/gen/calculate_layout_event.rb +0 -62
  57. data/lib/wx/doc/gen/calendar_ctrl.rb +0 -505
  58. data/lib/wx/doc/gen/calendar_date_attr.rb +0 -138
  59. data/lib/wx/doc/gen/calendar_event.rb +0 -147
  60. data/lib/wx/doc/gen/caret.rb +0 -97
  61. data/lib/wx/doc/gen/check_box.rb +0 -175
  62. data/lib/wx/doc/gen/check_list_box.rb +0 -121
  63. data/lib/wx/doc/gen/choice.rb +0 -175
  64. data/lib/wx/doc/gen/choicebook.rb +0 -116
  65. data/lib/wx/doc/gen/client_dc.rb +0 -43
  66. data/lib/wx/doc/gen/clipboard.rb +0 -144
  67. data/lib/wx/doc/gen/collapsible_pane.rb +0 -138
  68. data/lib/wx/doc/gen/collapsible_pane_event.rb +0 -46
  69. data/lib/wx/doc/gen/colour.rb +0 -333
  70. data/lib/wx/doc/gen/colour_dialog.rb +0 -190
  71. data/lib/wx/doc/gen/colour_picker_ctrl.rb +0 -110
  72. data/lib/wx/doc/gen/colour_picker_event.rb +0 -77
  73. data/lib/wx/doc/gen/combo_box.rb +0 -292
  74. data/lib/wx/doc/gen/combo_ctrl.rb +0 -662
  75. data/lib/wx/doc/gen/command_link_button.rb +0 -134
  76. data/lib/wx/doc/gen/config_base.rb +0 -10
  77. data/lib/wx/doc/gen/context_help_button.rb +0 -56
  78. data/lib/wx/doc/gen/control.rb +0 -277
  79. data/lib/wx/doc/gen/control_with_items.rb +0 -253
  80. data/lib/wx/doc/gen/core.rb +0 -45
  81. data/lib/wx/doc/gen/credential_entry_dialog.rb +0 -137
  82. data/lib/wx/doc/gen/cursor.rb +0 -193
  83. data/lib/wx/doc/gen/data_format.rb +0 -85
  84. data/lib/wx/doc/gen/data_object.rb +0 -436
  85. data/lib/wx/doc/gen/data_object_simple_base.rb +0 -10
  86. data/lib/wx/doc/gen/date_event.rb +0 -49
  87. data/lib/wx/doc/gen/date_picker_ctrl.rb +0 -161
  88. data/lib/wx/doc/gen/dc.rb +0 -1631
  89. data/lib/wx/doc/gen/dc_overlay.rb +0 -102
  90. data/lib/wx/doc/gen/defs.rb +0 -2802
  91. data/lib/wx/doc/gen/dial_up_event.rb +0 -45
  92. data/lib/wx/doc/gen/dial_up_manager.rb +0 -149
  93. data/lib/wx/doc/gen/dialog.rb +0 -541
  94. data/lib/wx/doc/gen/dir_dialog.rb +0 -164
  95. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +0 -90
  96. data/lib/wx/doc/gen/dir_picker_ctrl.rb +0 -125
  97. data/lib/wx/doc/gen/display.rb +0 -238
  98. data/lib/wx/doc/gen/drag_drop.rb +0 -299
  99. data/lib/wx/doc/gen/drag_image.rb +0 -116
  100. data/lib/wx/doc/gen/editable_list_box.rb +0 -109
  101. data/lib/wx/doc/gen/event.rb +0 -990
  102. data/lib/wx/doc/gen/event_blocker.rb +0 -50
  103. data/lib/wx/doc/gen/event_filter.rb +0 -92
  104. data/lib/wx/doc/gen/event_list.rb +0 -1644
  105. data/lib/wx/doc/gen/events.rb +0 -2809
  106. data/lib/wx/doc/gen/evt_handler.rb +0 -229
  107. data/lib/wx/doc/gen/ext_help_controller.rb +0 -155
  108. data/lib/wx/doc/gen/file_ctrl.rb +0 -231
  109. data/lib/wx/doc/gen/file_ctrl_event.rb +0 -83
  110. data/lib/wx/doc/gen/file_dialog.rb +0 -353
  111. data/lib/wx/doc/gen/file_dialog_custom_control.rb +0 -165
  112. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +0 -158
  113. data/lib/wx/doc/gen/file_dir_picker_event.rb +0 -100
  114. data/lib/wx/doc/gen/file_picker_ctrl.rb +0 -132
  115. data/lib/wx/doc/gen/file_system.rb +0 -232
  116. data/lib/wx/doc/gen/find_dialog_event.rb +0 -126
  117. data/lib/wx/doc/gen/find_replace_data.rb +0 -60
  118. data/lib/wx/doc/gen/find_replace_dialog.rb +0 -58
  119. data/lib/wx/doc/gen/flex_grid_sizer.rb +0 -199
  120. data/lib/wx/doc/gen/font.rb +0 -1379
  121. data/lib/wx/doc/gen/font_data.rb +0 -151
  122. data/lib/wx/doc/gen/font_dialog.rb +0 -88
  123. data/lib/wx/doc/gen/font_picker_ctrl.rb +0 -143
  124. data/lib/wx/doc/gen/font_picker_event.rb +0 -65
  125. data/lib/wx/doc/gen/frame.rb +0 -352
  126. data/lib/wx/doc/gen/fs_file.rb +0 -337
  127. data/lib/wx/doc/gen/functions.rb +0 -10
  128. data/lib/wx/doc/gen/gauge.rb +0 -157
  129. data/lib/wx/doc/gen/gb_sizer_item.rb +0 -68
  130. data/lib/wx/doc/gen/gcdc.rb +0 -46
  131. data/lib/wx/doc/gen/gdi_common.rb +0 -1271
  132. data/lib/wx/doc/gen/gdi_object.rb +0 -31
  133. data/lib/wx/doc/gen/generic_about_dialog.rb +0 -140
  134. data/lib/wx/doc/gen/generic_dir_ctrl.rb +0 -223
  135. data/lib/wx/doc/gen/geometry.rb +0 -661
  136. data/lib/wx/doc/gen/graphics_context.rb +0 -1184
  137. data/lib/wx/doc/gen/graphics_object.rb +0 -750
  138. data/lib/wx/doc/gen/grid/event_list.rb +0 -191
  139. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +0 -40
  140. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +0 -280
  141. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +0 -35
  142. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +0 -37
  143. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +0 -49
  144. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +0 -35
  145. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +0 -46
  146. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +0 -38
  147. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +0 -45
  148. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +0 -40
  149. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +0 -197
  150. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +0 -39
  151. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +0 -44
  152. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +0 -45
  153. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +0 -79
  154. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +0 -46
  155. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +0 -35
  156. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +0 -108
  157. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +0 -35
  158. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +0 -49
  159. data/lib/wx/doc/gen/grid/grid_ctrl.rb +0 -3037
  160. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +0 -95
  161. data/lib/wx/doc/gen/grid/grid_event.rb +0 -129
  162. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +0 -104
  163. data/lib/wx/doc/gen/grid/grid_size_event.rb +0 -85
  164. data/lib/wx/doc/gen/grid/grid_string_table.rb +0 -142
  165. data/lib/wx/doc/gen/grid/grid_table_base.rb +0 -317
  166. data/lib/wx/doc/gen/grid/grid_table_message.rb +0 -81
  167. data/lib/wx/doc/gen/grid_bag_sizer.rb +0 -323
  168. data/lib/wx/doc/gen/grid_sizer.rb +0 -195
  169. data/lib/wx/doc/gen/gui_event_loop.rb +0 -159
  170. data/lib/wx/doc/gen/h_scrolled_window.rb +0 -562
  171. data/lib/wx/doc/gen/header_ctrl.rb +0 -880
  172. data/lib/wx/doc/gen/header_ctrl_event.rb +0 -133
  173. data/lib/wx/doc/gen/help_controller.rb +0 -238
  174. data/lib/wx/doc/gen/help_provider.rb +0 -98
  175. data/lib/wx/doc/gen/html/event_list.rb +0 -38
  176. data/lib/wx/doc/gen/html/html_cell.rb +0 -536
  177. data/lib/wx/doc/gen/html/html_cell_event.rb +0 -69
  178. data/lib/wx/doc/gen/html/html_data_object.rb +0 -42
  179. data/lib/wx/doc/gen/html/html_easy_printing.rb +0 -203
  180. data/lib/wx/doc/gen/html/html_help_controller.rb +0 -382
  181. data/lib/wx/doc/gen/html/html_help_data.rb +0 -159
  182. data/lib/wx/doc/gen/html/html_help_window.rb +0 -258
  183. data/lib/wx/doc/gen/html/html_link_event.rb +0 -41
  184. data/lib/wx/doc/gen/html/html_list_box.rb +0 -346
  185. data/lib/wx/doc/gen/html/html_printout.rb +0 -109
  186. data/lib/wx/doc/gen/html/html_window.rb +0 -461
  187. data/lib/wx/doc/gen/hyperlink_ctrl.rb +0 -311
  188. data/lib/wx/doc/gen/hyperlink_event.rb +0 -44
  189. data/lib/wx/doc/gen/icon.rb +0 -267
  190. data/lib/wx/doc/gen/icon_location.rb +0 -40
  191. data/lib/wx/doc/gen/image.rb +0 -1371
  192. data/lib/wx/doc/gen/image_list.rb +0 -168
  193. data/lib/wx/doc/gen/info_bar.rb +0 -195
  194. data/lib/wx/doc/gen/keyboard_state.rb +0 -140
  195. data/lib/wx/doc/gen/list_box.rb +0 -304
  196. data/lib/wx/doc/gen/list_ctrl.rb +0 -1774
  197. data/lib/wx/doc/gen/list_event.rb +0 -208
  198. data/lib/wx/doc/gen/listbook.rb +0 -116
  199. data/lib/wx/doc/gen/locale.rb +0 -4293
  200. data/lib/wx/doc/gen/log.rb +0 -603
  201. data/lib/wx/doc/gen/mb_conv.rb +0 -10
  202. data/lib/wx/doc/gen/mdi_client_window.rb +0 -47
  203. data/lib/wx/doc/gen/mdi_frame.rb +0 -324
  204. data/lib/wx/doc/gen/media_ctrl.rb +0 -269
  205. data/lib/wx/doc/gen/media_event.rb +0 -117
  206. data/lib/wx/doc/gen/memory_dc.rb +0 -174
  207. data/lib/wx/doc/gen/menu.rb +0 -509
  208. data/lib/wx/doc/gen/menu_bar.rb +0 -287
  209. data/lib/wx/doc/gen/menu_item.rb +0 -362
  210. data/lib/wx/doc/gen/message_dialog.rb +0 -238
  211. data/lib/wx/doc/gen/mini_frame.rb +0 -108
  212. data/lib/wx/doc/gen/mirror_dc.rb +0 -22
  213. data/lib/wx/doc/gen/mouse_state.rb +0 -150
  214. data/lib/wx/doc/gen/multi_choice_dialog.rb +0 -80
  215. data/lib/wx/doc/gen/non_owned_window.rb +0 -49
  216. data/lib/wx/doc/gen/notebook.rb +0 -278
  217. data/lib/wx/doc/gen/num_validator.rb +0 -37
  218. data/lib/wx/doc/gen/number_entry_dialog.rb +0 -93
  219. data/lib/wx/doc/gen/object.rb +0 -59
  220. data/lib/wx/doc/gen/owner_drawn_combo_box.rb +0 -395
  221. data/lib/wx/doc/gen/paint_dc.rb +0 -27
  222. data/lib/wx/doc/gen/palette.rb +0 -92
  223. data/lib/wx/doc/gen/panel.rb +0 -127
  224. data/lib/wx/doc/gen/pen.rb +0 -511
  225. data/lib/wx/doc/gen/persistence_manager.rb +0 -135
  226. data/lib/wx/doc/gen/persistent_object.rb +0 -52
  227. data/lib/wx/doc/gen/persistent_window.rb +0 -241
  228. data/lib/wx/doc/gen/pg/event_list.rb +0 -106
  229. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +0 -54
  230. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +0 -292
  231. data/lib/wx/doc/gen/pg/pg_cell.rb +0 -177
  232. data/lib/wx/doc/gen/pg/pg_editor.rb +0 -721
  233. data/lib/wx/doc/gen/pg/pg_multi_button.rb +0 -152
  234. data/lib/wx/doc/gen/pg/pg_properties.rb +0 -2829
  235. data/lib/wx/doc/gen/pg/pg_property.rb +0 -2078
  236. data/lib/wx/doc/gen/pg/pg_validation_info.rb +0 -344
  237. data/lib/wx/doc/gen/pg/property_grid.rb +0 -740
  238. data/lib/wx/doc/gen/pg/property_grid_event.rb +0 -184
  239. data/lib/wx/doc/gen/pg/property_grid_interface.rb +0 -1098
  240. data/lib/wx/doc/gen/pg/property_grid_manager.rb +0 -415
  241. data/lib/wx/doc/gen/pg/property_grid_page.rb +0 -354
  242. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +0 -165
  243. data/lib/wx/doc/gen/picker_base.rb +0 -152
  244. data/lib/wx/doc/gen/platform_info.rb +0 -622
  245. data/lib/wx/doc/gen/popup_window.rb +0 -107
  246. data/lib/wx/doc/gen/progress_dialog.rb +0 -100
  247. data/lib/wx/doc/gen/property_sheet_dialog.rb +0 -216
  248. data/lib/wx/doc/gen/prt/event_list.rb +0 -17
  249. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +0 -44
  250. data/lib/wx/doc/gen/prt/post_script_dc.rb +0 -30
  251. data/lib/wx/doc/gen/prt/preview_frame.rb +0 -78
  252. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +0 -151
  253. data/lib/wx/doc/gen/prt/print_data.rb +0 -804
  254. data/lib/wx/doc/gen/prt/print_dialog.rb +0 -55
  255. data/lib/wx/doc/gen/prt/printer.rb +0 -518
  256. data/lib/wx/doc/gen/prt/printer_dc.rb +0 -37
  257. data/lib/wx/doc/gen/query_layout_info_event.rb +0 -106
  258. data/lib/wx/doc/gen/radio_box.rb +0 -306
  259. data/lib/wx/doc/gen/radio_button.rb +0 -159
  260. data/lib/wx/doc/gen/rbn/event_list.rb +0 -136
  261. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +0 -1142
  262. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +0 -308
  263. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +0 -45
  264. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +0 -458
  265. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +0 -63
  266. data/lib/wx/doc/gen/rbn/ribbon_control.rb +0 -143
  267. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +0 -229
  268. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +0 -55
  269. data/lib/wx/doc/gen/rbn/ribbon_page.rb +0 -174
  270. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +0 -270
  271. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +0 -45
  272. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +0 -360
  273. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +0 -42
  274. data/lib/wx/doc/gen/rearrange_ctrl.rb +0 -78
  275. data/lib/wx/doc/gen/rearrange_list.rb +0 -123
  276. data/lib/wx/doc/gen/region.rb +0 -380
  277. data/lib/wx/doc/gen/region_iterator.rb +0 -76
  278. data/lib/wx/doc/gen/rich_tool_tip.rb +0 -154
  279. data/lib/wx/doc/gen/rt/event_list.rb +0 -17
  280. data/lib/wx/doc/gen/rt/shared_evt_handler.rb +0 -14
  281. data/lib/wx/doc/gen/rt/thread_event.rb +0 -71
  282. data/lib/wx/doc/gen/rtc/event_list.rb +0 -125
  283. data/lib/wx/doc/gen/rtc/rich_text_box.rb +0 -445
  284. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +0 -1188
  285. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +0 -41
  286. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +0 -538
  287. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +0 -2103
  288. data/lib/wx/doc/gen/rtc/rich_text_event.rb +0 -173
  289. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +0 -181
  290. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +0 -319
  291. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +0 -193
  292. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +0 -102
  293. data/lib/wx/doc/gen/rtc/rich_text_image.rb +0 -337
  294. data/lib/wx/doc/gen/rtc/rich_text_object.rb +0 -2922
  295. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +0 -1240
  296. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +0 -258
  297. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +0 -344
  298. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +0 -227
  299. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +0 -59
  300. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +0 -169
  301. data/lib/wx/doc/gen/sash_event.rb +0 -147
  302. data/lib/wx/doc/gen/sash_layout_window.rb +0 -232
  303. data/lib/wx/doc/gen/sash_window.rb +0 -171
  304. data/lib/wx/doc/gen/scaled_dc.rb +0 -10
  305. data/lib/wx/doc/gen/screen_dc.rb +0 -30
  306. data/lib/wx/doc/gen/scroll_bar.rb +0 -204
  307. data/lib/wx/doc/gen/scrolled_canvas.rb +0 -410
  308. data/lib/wx/doc/gen/scrolled_control.rb +0 -410
  309. data/lib/wx/doc/gen/scrolled_window.rb +0 -430
  310. data/lib/wx/doc/gen/search_ctrl.rb +0 -159
  311. data/lib/wx/doc/gen/secret_store.rb +0 -116
  312. data/lib/wx/doc/gen/simplebook.rb +0 -110
  313. data/lib/wx/doc/gen/single_choice_dialog.rb +0 -89
  314. data/lib/wx/doc/gen/sizer.rb +0 -945
  315. data/lib/wx/doc/gen/sizer_item.rb +0 -244
  316. data/lib/wx/doc/gen/slider.rb +0 -342
  317. data/lib/wx/doc/gen/spin_button.rb +0 -157
  318. data/lib/wx/doc/gen/spin_ctrl.rb +0 -231
  319. data/lib/wx/doc/gen/spin_ctrl_double.rb +0 -192
  320. data/lib/wx/doc/gen/spin_double_event.rb +0 -55
  321. data/lib/wx/doc/gen/spin_event.rb +0 -51
  322. data/lib/wx/doc/gen/splash_screen.rb +0 -113
  323. data/lib/wx/doc/gen/splitter_event.rb +0 -99
  324. data/lib/wx/doc/gen/splitter_window.rb +0 -498
  325. data/lib/wx/doc/gen/static_bitmap.rb +0 -256
  326. data/lib/wx/doc/gen/static_box.rb +0 -180
  327. data/lib/wx/doc/gen/static_box_sizer.rb +0 -85
  328. data/lib/wx/doc/gen/static_line.rb +0 -83
  329. data/lib/wx/doc/gen/static_text.rb +0 -127
  330. data/lib/wx/doc/gen/status_bar.rb +0 -290
  331. data/lib/wx/doc/gen/stc/event_list.rb +0 -221
  332. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +0 -4474
  333. data/lib/wx/doc/gen/stc/styled_text_event.rb +0 -8762
  334. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +0 -129
  335. data/lib/wx/doc/gen/svg_file_dc.rb +0 -164
  336. data/lib/wx/doc/gen/system_options.rb +0 -129
  337. data/lib/wx/doc/gen/system_settings.rb +0 -507
  338. data/lib/wx/doc/gen/task_bar_icon.rb +0 -127
  339. data/lib/wx/doc/gen/task_bar_icon_event.rb +0 -88
  340. data/lib/wx/doc/gen/text_attr.rb +0 -756
  341. data/lib/wx/doc/gen/text_ctrl.rb +0 -1033
  342. data/lib/wx/doc/gen/text_entry.rb +0 -441
  343. data/lib/wx/doc/gen/text_entry_dialog.rb +0 -220
  344. data/lib/wx/doc/gen/text_validator.rb +0 -245
  345. data/lib/wx/doc/gen/time_picker_ctrl.rb +0 -128
  346. data/lib/wx/doc/gen/timer.rb +0 -119
  347. data/lib/wx/doc/gen/timer_event.rb +0 -68
  348. data/lib/wx/doc/gen/tip_provider.rb +0 -63
  349. data/lib/wx/doc/gen/tip_window.rb +0 -51
  350. data/lib/wx/doc/gen/toggle_button.rb +0 -182
  351. data/lib/wx/doc/gen/tool_bar.rb +0 -890
  352. data/lib/wx/doc/gen/tool_tip.rb +0 -86
  353. data/lib/wx/doc/gen/toolbook.rb +0 -118
  354. data/lib/wx/doc/gen/top_level_window.rb +0 -516
  355. data/lib/wx/doc/gen/tree_ctrl.rb +0 -1052
  356. data/lib/wx/doc/gen/tree_event.rb +0 -127
  357. data/lib/wx/doc/gen/treebook.rb +0 -180
  358. data/lib/wx/doc/gen/ui_action_simulator.rb +0 -109
  359. data/lib/wx/doc/gen/utils.rb +0 -273
  360. data/lib/wx/doc/gen/v_list_box.rb +0 -272
  361. data/lib/wx/doc/gen/v_scrolled_canvas.rb +0 -195
  362. data/lib/wx/doc/gen/v_scrolled_window.rb +0 -191
  363. data/lib/wx/doc/gen/validator.rb +0 -68
  364. data/lib/wx/doc/gen/variant.rb +0 -294
  365. data/lib/wx/doc/gen/web/event_list.rb +0 -95
  366. data/lib/wx/doc/gen/web/web_view.rb +0 -1136
  367. data/lib/wx/doc/gen/web/web_view_event.rb +0 -210
  368. data/lib/wx/doc/gen/web/web_view_handler.rb +0 -318
  369. data/lib/wx/doc/gen/window.rb +0 -2917
  370. data/lib/wx/doc/gen/window_dc.rb +0 -38
  371. data/lib/wx/doc/gen/window_disabler.rb +0 -30
  372. data/lib/wx/doc/gen/with_images.rb +0 -84
  373. data/lib/wx/doc/gen/wizard.rb +0 -257
  374. data/lib/wx/doc/gen/wizard_event.rb +0 -113
  375. data/lib/wx/doc/gen/wizard_page.rb +0 -65
  376. data/lib/wx/doc/gen/wizard_page_simple.rb +0 -88
  377. data/lib/wx/doc/gen/wrap_sizer.rb +0 -79
  378. data/lib/wx/doc/gen/xml_node.rb +0 -316
  379. data/lib/wx/doc/gen/xml_resource.rb +0 -320
  380. data/lib/wx/grid/events/evt_list.rb +0 -166
  381. data/lib/wx/html/events/evt_list.rb +0 -27
  382. data/lib/wx/pg/events/evt_list.rb +0 -73
  383. data/lib/wx/rbn/events/evt_list.rb +0 -102
  384. data/lib/wx/rt/events/evt_list.rb +0 -8
  385. data/lib/wx/rtc/events/evt_list.rb +0 -98
  386. data/lib/wx/rtc/ext/rich_text_ctrl.rb +0 -24
  387. data/lib/wx/stc/events/evt_list.rb +0 -178
  388. data/lib/wx/web/events/evt_list.rb +0 -74
  389. data/samples/art/wxruby-512x512.png +0 -0
  390. data/tests/assets/test.css +0 -1
  391. data/tests/assets/test.html +0 -9
@@ -1,1271 +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
- # Bitmap type flags.
10
- #
11
- # See {Wx::Bitmap} and {Wx::Image} classes.
12
- #
13
- class BitmapType < Wx::Enum
14
-
15
- #
16
- #
17
- BITMAP_TYPE_INVALID = Wx::BitmapType.new(0)
18
-
19
- #
20
- #
21
- BITMAP_TYPE_BMP = Wx::BitmapType.new(1)
22
-
23
- #
24
- #
25
- BITMAP_TYPE_ICO = Wx::BitmapType.new(3)
26
-
27
- #
28
- #
29
- BITMAP_TYPE_CUR = Wx::BitmapType.new(5)
30
-
31
- #
32
- #
33
- BITMAP_TYPE_XBM = Wx::BitmapType.new(7)
34
-
35
- #
36
- #
37
- BITMAP_TYPE_XBM_DATA = Wx::BitmapType.new(8)
38
-
39
- #
40
- #
41
- BITMAP_TYPE_XPM = Wx::BitmapType.new(9)
42
-
43
- #
44
- #
45
- BITMAP_TYPE_XPM_DATA = Wx::BitmapType.new(10)
46
-
47
- #
48
- #
49
- BITMAP_TYPE_TIFF = Wx::BitmapType.new(11)
50
-
51
- #
52
- #
53
- BITMAP_TYPE_TIF = Wx::BitmapType.new(11)
54
-
55
- #
56
- #
57
- BITMAP_TYPE_GIF = Wx::BitmapType.new(13)
58
-
59
- #
60
- #
61
- BITMAP_TYPE_PNG = Wx::BitmapType.new(15)
62
-
63
- #
64
- #
65
- BITMAP_TYPE_JPEG = Wx::BitmapType.new(17)
66
-
67
- #
68
- #
69
- BITMAP_TYPE_PNM = Wx::BitmapType.new(19)
70
-
71
- #
72
- #
73
- BITMAP_TYPE_PCX = Wx::BitmapType.new(21)
74
-
75
- #
76
- #
77
- BITMAP_TYPE_PICT = Wx::BitmapType.new(23)
78
-
79
- #
80
- #
81
- BITMAP_TYPE_ICON = Wx::BitmapType.new(25)
82
-
83
- #
84
- #
85
- BITMAP_TYPE_ANI = Wx::BitmapType.new(27)
86
-
87
- #
88
- #
89
- BITMAP_TYPE_IFF = Wx::BitmapType.new(28)
90
-
91
- #
92
- #
93
- BITMAP_TYPE_TGA = Wx::BitmapType.new(29)
94
-
95
- #
96
- #
97
- BITMAP_TYPE_MACCURSOR = Wx::BitmapType.new(30)
98
-
99
- #
100
- #
101
- BITMAP_TYPE_WEBP = Wx::BitmapType.new(32)
102
-
103
- #
104
- #
105
- BITMAP_TYPE_ANY = Wx::BitmapType.new(50)
106
-
107
- end # BitmapType
108
-
109
- # Polygon filling mode.
110
- #
111
- # See {Wx::DC#draw_polygon}.
112
- #
113
- class PolygonFillMode < Wx::Enum
114
-
115
- #
116
- #
117
- ODDEVEN_RULE = Wx::PolygonFillMode.new(1)
118
-
119
- #
120
- #
121
- WINDING_RULE = Wx::PolygonFillMode.new(2)
122
-
123
- end # PolygonFillMode
124
-
125
- # Standard cursors.
126
- #
127
- # Notice that under WXMSW some of these cursors are defined in wx.rc file and not by the system itself so you should include this file from your own resource file (possibly creating a trivial resource file just containing a single include line if you don't need it otherwise) to be able to use them.
128
- # See {Wx::Cursor}.
129
- #
130
- class StockCursor < Wx::Enum
131
-
132
- #
133
- #
134
- CURSOR_NONE = Wx::StockCursor.new(0)
135
-
136
- # A standard arrow cursor.
137
- #
138
- CURSOR_ARROW = Wx::StockCursor.new(1)
139
-
140
- # A standard arrow cursor pointing to the right.
141
- #
142
- CURSOR_RIGHT_ARROW = Wx::StockCursor.new(2)
143
-
144
- # Bullseye cursor.
145
- #
146
- CURSOR_BULLSEYE = Wx::StockCursor.new(3)
147
-
148
- # Rectangular character cursor.
149
- #
150
- CURSOR_CHAR = Wx::StockCursor.new(4)
151
-
152
- # A cross cursor.
153
- #
154
- CURSOR_CROSS = Wx::StockCursor.new(5)
155
-
156
- # A hand cursor.
157
- #
158
- CURSOR_HAND = Wx::StockCursor.new(6)
159
-
160
- # An I-beam cursor (vertical line).
161
- #
162
- CURSOR_IBEAM = Wx::StockCursor.new(7)
163
-
164
- # Represents a mouse with the left button depressed.
165
- #
166
- CURSOR_LEFT_BUTTON = Wx::StockCursor.new(8)
167
-
168
- # A magnifier icon.
169
- #
170
- CURSOR_MAGNIFIER = Wx::StockCursor.new(9)
171
-
172
- # Represents a mouse with the middle button depressed.
173
- #
174
- CURSOR_MIDDLE_BUTTON = Wx::StockCursor.new(10)
175
-
176
- # A no-entry sign cursor.
177
- #
178
- CURSOR_NO_ENTRY = Wx::StockCursor.new(11)
179
-
180
- # A paintbrush cursor.
181
- #
182
- CURSOR_PAINT_BRUSH = Wx::StockCursor.new(12)
183
-
184
- # A pencil cursor.
185
- #
186
- CURSOR_PENCIL = Wx::StockCursor.new(13)
187
-
188
- # A cursor that points left.
189
- #
190
- CURSOR_POINT_LEFT = Wx::StockCursor.new(14)
191
-
192
- # A cursor that points right.
193
- #
194
- CURSOR_POINT_RIGHT = Wx::StockCursor.new(15)
195
-
196
- # An arrow and question mark.
197
- #
198
- CURSOR_QUESTION_ARROW = Wx::StockCursor.new(16)
199
-
200
- # Represents a mouse with the right button depressed.
201
- #
202
- CURSOR_RIGHT_BUTTON = Wx::StockCursor.new(17)
203
-
204
- # A sizing cursor pointing NE-SW.
205
- #
206
- CURSOR_SIZENESW = Wx::StockCursor.new(18)
207
-
208
- # A sizing cursor pointing N-S.
209
- #
210
- CURSOR_SIZENS = Wx::StockCursor.new(19)
211
-
212
- # A sizing cursor pointing NW-SE.
213
- #
214
- CURSOR_SIZENWSE = Wx::StockCursor.new(20)
215
-
216
- # A sizing cursor pointing W-E.
217
- #
218
- CURSOR_SIZEWE = Wx::StockCursor.new(21)
219
-
220
- # A general sizing cursor.
221
- #
222
- CURSOR_SIZING = Wx::StockCursor.new(22)
223
-
224
- # A spraycan cursor.
225
- #
226
- CURSOR_SPRAYCAN = Wx::StockCursor.new(23)
227
-
228
- # A wait cursor.
229
- #
230
- CURSOR_WAIT = Wx::StockCursor.new(24)
231
-
232
- # A watch cursor.
233
- #
234
- CURSOR_WATCH = Wx::StockCursor.new(25)
235
-
236
- # Transparent cursor.
237
- #
238
- CURSOR_BLANK = Wx::StockCursor.new(26)
239
-
240
- # Standard X11 cursor (only in WXGTK).
241
- #
242
- CURSOR_DEFAULT = Wx::StockCursor.new(27)
243
-
244
- # A wait cursor with a standard arrow.
245
- #
246
- CURSOR_ARROWWAIT = Wx::StockCursor.new(28)
247
-
248
- #
249
- #
250
- CURSOR_MAX = Wx::StockCursor.new(29)
251
-
252
- end # StockCursor
253
-
254
- # Flags used by {Wx::Control.ellipsize} function.
255
- #
256
- #
257
- #
258
- class EllipsizeFlags < Wx::Enum
259
-
260
- # No special flags.
261
- #
262
- ELLIPSIZE_FLAGS_NONE = Wx::EllipsizeFlags.new(0)
263
-
264
- # Take mnemonics into account when calculating the text width.
265
- #
266
- ELLIPSIZE_FLAGS_PROCESS_MNEMONICS = Wx::EllipsizeFlags.new(1)
267
-
268
- # Expand tabs in spaces when calculating the text width.
269
- #
270
- ELLIPSIZE_FLAGS_EXPAND_TABS = Wx::EllipsizeFlags.new(2)
271
-
272
- # The default flags for {Wx::Control.ellipsize}.
273
- #
274
- ELLIPSIZE_FLAGS_DEFAULT = Wx::EllipsizeFlags.new(3)
275
-
276
- end # EllipsizeFlags
277
-
278
- # The different ellipsization modes supported by the {Wx::Control.ellipsize} and Wx::RendererNative#draw_item_text functions.
279
- #
280
- #
281
- #
282
- class EllipsizeMode < Wx::Enum
283
-
284
- # Don't ellipsize the text at all.
285
- #
286
- ELLIPSIZE_NONE = Wx::EllipsizeMode.new(0)
287
-
288
- # Put the ellipsis at the start of the string, if the string needs ellipsization.
289
- #
290
- ELLIPSIZE_START = Wx::EllipsizeMode.new(1)
291
-
292
- # Put the ellipsis in the middle of the string, if the string needs ellipsization.
293
- #
294
- ELLIPSIZE_MIDDLE = Wx::EllipsizeMode.new(2)
295
-
296
- # Put the ellipsis at the end of the string, if the string needs ellipsization.
297
- #
298
- ELLIPSIZE_END = Wx::EllipsizeMode.new(3)
299
-
300
- end # EllipsizeMode
301
-
302
- # Global instance of a {Wx::Point} initialized with values (-1,-1).
303
- #
304
- DEFAULT_POSITION = Wx::Point.new(-1, -1)
305
-
306
- # Global instance of a {Wx::Size} object initialized to (-1,-1).
307
- #
308
- DEFAULT_SIZE = Wx::Size.new(-1, -1)
309
-
310
- # Returns true if the display is colour, false otherwise.
311
- #
312
- # <div class="wxrb-note">
313
- # <b>Note:</b>
314
- # <p>Use of this function is not recommended in the new code as it only works for the primary display. Use {Wx::Display#get_depth} to retrieve the depth of the appropriate display and compare it with 1 instead.
315
- # </p>
316
- # </div>
317
- # @return [Boolean]
318
- def self.colour_display; end
319
-
320
- # Returns the depth of the display (a value of 1 denotes a monochrome display).
321
- #
322
- # <div class="wxrb-note">
323
- # <b>Note:</b>
324
- # <p>Use of this function is not recommended in the new code as it only works for the primary display. Use {Wx::Display#get_depth} to retrieve the depth of the appropriate display instead.
325
- # </p>
326
- # </div>
327
- # @return [Integer]
328
- def self.display_depth; end
329
-
330
- # Globally sets the cursor.
331
- #
332
- # The globally set cursor overrides any cursor set for the individual windows, i.e. the specified cursor will be used for all windows of the application until this function is called again with an empty cursor bundle to restore the default behaviour of using the window-specific cursors.
333
- # Note that this function won't update the cursor size if the DPI or user preferred cursor size changes, as this is considered unlikely to happen while this temporary cursor is shown. If you do want to update the cursor size, you need to handle {Wx::EVT_DPI_CHANGED} and {Wx::EVT_SYS_METRIC_CHANGED} events and call this function again from their handlers.
334
- # @see Wx::Cursor
335
- # @see Wx::Window#set_cursor
336
- # @see Wx::Window#set_cursor_bundle
337
- # @param cursors [Wx::CursorBundle]
338
- # @return [void]
339
- def self.set_cursor(cursors) end
340
-
341
- # Returns the dimensions of the work area on the display.
342
- #
343
- # On Windows this means the area not covered by the taskbar, etc. Other platforms are currently defaulting to the whole display until a way is found to provide this info for all window managers, etc.
344
- # @see Wx::Display
345
- # @return [Wx::Rect]
346
- def self.get_client_display_rect; end
347
-
348
- # Returns the display resolution in pixels per inch.
349
- #
350
- # The x component of the returned {Wx::Size} object contains the horizontal resolution and the y one the vertical resolution.
351
- #
352
- # <div class="wxrb-note">
353
- # <b>Note:</b>
354
- # <p>Use of this function is not recommended in the new code as it only works for the primary display. Use {Wx::Display#get_ppi} to retrieve the resolution of the appropriate display instead.
355
- # </p>
356
- # </div>
357
- # @see Wx::Display
358
- # @return [Wx::Size]
359
- def self.get_display_ppi; end
360
-
361
- # Returns the display size in pixels.
362
- #
363
- # <div class="wxrb-note">
364
- # <b>Note:</b>
365
- # <p>Use of this function is not recommended in the new code as it only works for the primary display. Use {Wx::Display#get_geometry} to retrieve the size of the appropriate display instead.
366
- # </p>
367
- # </div>
368
- # @see Wx::Display
369
- # @return [Wx::Size]
370
- def self.get_display_size; end
371
-
372
- # Returns the display size in millimeters.
373
- #
374
- #
375
- # @see Wx::Display
376
- # @return [Wx::Size]
377
- def self.get_display_size_mm; end
378
-
379
- # A {Wx::Point} is a useful data structure for graphics operations.
380
- #
381
- # It contains integer x and y members. See {Wx::RealPoint} for a floating point version.
382
- # Note that the width and height stored inside a {Wx::Point} object may be negative and that {Wx::Point} functions do not perform any check against negative values (this is used to e.g. store the special -1 value in {Wx::DEFAULT_POSITION} instance).
383
- #
384
- # Category: Data Structures
385
- # Predefined objects/pointers: {Wx::DEFAULT_POSITION}
386
- # @see Wx::RealPoint
387
- #
388
- #
389
- #
390
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
391
- class Point < ::Object
392
-
393
- # Returns true if neither of the point components is equal to {Wx::DEFAULT_COORD}.
394
- #
395
- # This method is typically used before calling {Wx::Point#set_defaults}.
396
- # @return [Boolean]
397
- def is_fully_specified; end
398
- alias_method :fully_specified?, :is_fully_specified
399
-
400
- # Combine this object with another one replacing the uninitialized values.
401
- #
402
- # It is typically used like this:
403
- #
404
- # ```ruby
405
- # if !pos.is_fully_specified
406
- # pos.set_defaults(get_default_position)
407
- # end
408
- # ```
409
- # @see Wx::Point#is_fully_specified
410
- # @param pt [Array(Integer, Integer), Wx::Point]
411
- # @return [void]
412
- def set_defaults(pt) end
413
- alias_method :defaults=, :set_defaults
414
-
415
- # x member.
416
- #
417
- #
418
- # @return [Integer]
419
- def x; end
420
- # x member.
421
- #
422
- #
423
- # @param val [Integer]
424
- # @return [void]
425
- def x=(val); end
426
-
427
- # y member.
428
- #
429
- #
430
- # @return [Integer]
431
- def y; end
432
- # y member.
433
- #
434
- #
435
- # @param val [Integer]
436
- # @return [void]
437
- def y=(val); end
438
-
439
- # @overload initialize()
440
- # Constructs a point.
441
- #
442
- # Initializes the internal x and y coordinates to zero.
443
- # @return [Wx::Point]
444
- # @overload initialize(x, y)
445
- # Initializes the point object with the given x and y coordinates.
446
- # @param x [Integer]
447
- # @param y [Integer]
448
- # @return [Wx::Point]
449
- # @overload initialize(pt)
450
- # Converts the given {Wx::RealPoint} (with floating point coordinates) to a {Wx::Point} instance.
451
- #
452
- # Notice that since v3.1.2 the behaviour of this constructor has changed to round the floating point values of pt components, if you want to truncate them instead, please use {Wx::Point.truncate}.
453
- # @param pt [Wx::RealPoint]
454
- # @return [Wx::Point]
455
- def initialize(*args) end
456
-
457
- # Creates a {Wx::Point} by rounding the coordinates of the given {Wx::RealPoint}.
458
- #
459
- # This is equivalent to using the constructor taking {Wx::RealPoint} but is more explicit about the fact that rounding is performed.
460
- # @param pt [Wx::RealPoint]
461
- # @return [Wx::Point]
462
- def self.round(pt) end
463
-
464
- # Creates a {Wx::Point} by truncating the coordinates of the given {Wx::RealPoint}.
465
- #
466
- # This is similar to {Wx::Point.round} but instead of rounding the coordinates, they are simply truncated to integers.
467
- # @param pt [Wx::RealPoint]
468
- # @return [Wx::Point]
469
- def self.truncate(pt) end
470
-
471
- end # Point
472
-
473
- # A {Wx::Size} is a useful data structure for graphics operations.
474
- #
475
- # It simply contains integer x and y members.
476
- # Note that the width and height stored inside a {Wx::Size} object may be negative and that {Wx::Size} functions do not perform any check against negative values (this is used to e.g. store the special -1 value in {Wx::DEFAULT_SIZE} instance). See also {Wx::Size#is_fully_specified} and {Wx::Size#set_defaults} for utility functions regarding the special -1 value.
477
- # {Wx::Size} is used throughout wxWidgets as well as {Wx::Point} which, although almost equivalent to {Wx::Size}, has a different meaning: {Wx::Point} represents a position while {Wx::Size} represents the size.
478
- #
479
- # Category: Data Structures
480
- # Predefined objects/pointers: {Wx::DEFAULT_SIZE}
481
- # @see Wx::Point
482
- # @see Wx::RealPoint
483
- #
484
- #
485
- #
486
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
487
- class Size < ::Object
488
-
489
- # @overload dec_by(pt)
490
- # Decreases the size in both x and y directions.
491
- #
492
- #
493
- # @see Wx::Size#inc_by
494
- # @param pt [Array(Integer, Integer), Wx::Point]
495
- # @return [void]
496
- # @overload dec_by(size)
497
- # Decreases the size in both x and y directions.
498
- #
499
- #
500
- # @see Wx::Size#inc_by
501
- # @param size [Array(Integer, Integer), Wx::Size]
502
- # @return [void]
503
- # @overload dec_by(dx, dy)
504
- # Decreases the size in both x and y directions.
505
- #
506
- #
507
- # @see Wx::Size#inc_by
508
- # @param dx [Integer]
509
- # @param dy [Integer]
510
- # @return [void]
511
- # @overload dec_by(d)
512
- # Decreases the size in both x and y directions.
513
- #
514
- #
515
- # @see Wx::Size#inc_by
516
- # @param d [Integer]
517
- # @return [void]
518
- def dec_by(*args) end
519
-
520
- # @overload inc_by(pt)
521
- # Increases the size in both x and y directions.
522
- #
523
- #
524
- # @see Wx::Size#dec_by
525
- # @param pt [Array(Integer, Integer), Wx::Point]
526
- # @return [void]
527
- # @overload inc_by(size)
528
- # Increases the size in both x and y directions.
529
- #
530
- #
531
- # @see Wx::Size#dec_by
532
- # @param size [Array(Integer, Integer), Wx::Size]
533
- # @return [void]
534
- # @overload inc_by(dx, dy)
535
- # Increases the size in both x and y directions.
536
- #
537
- #
538
- # @see Wx::Size#dec_by
539
- # @param dx [Integer]
540
- # @param dy [Integer]
541
- # @return [void]
542
- # @overload inc_by(d)
543
- # Increases the size in both x and y directions.
544
- #
545
- #
546
- # @see Wx::Size#dec_by
547
- # @param d [Integer]
548
- # @return [void]
549
- def inc_by(*args) end
550
-
551
- # @overload initialize()
552
- # Initializes this size object with zero width and height.
553
- # @return [Wx::Size]
554
- # @overload initialize(width, height)
555
- # Initializes this size object with the given width and height.
556
- # @param width [Integer]
557
- # @param height [Integer]
558
- # @return [Wx::Size]
559
- def initialize(*args) end
560
-
561
- # Decrements this object so that both of its dimensions are not greater than the corresponding dimensions of the size.
562
- #
563
- #
564
- # @see Wx::Size#inc_to
565
- # @param size [Array(Integer, Integer), Wx::Size]
566
- # @return [void]
567
- def dec_to(size) end
568
-
569
- # Decrements this object to be not bigger than the given size ignoring non-specified components.
570
- #
571
- # This is similar to {Wx::Size#dec_to} but doesn't do anything for x or y component if the same component of size is not specified, i.e. set to {Wx::DEFAULT_COORD}.
572
- # @param size [Array(Integer, Integer), Wx::Size]
573
- # @return [void]
574
- def dec_to_if_specified(size) end
575
-
576
- # Gets the height member.
577
- # @return [Integer]
578
- def get_height; end
579
- alias_method :height, :get_height
580
-
581
- # Gets the width member.
582
- # @return [Integer]
583
- def get_width; end
584
- alias_method :width, :get_width
585
-
586
- # Increments this object so that both of its dimensions are not less than the corresponding dimensions of the size.
587
- #
588
- #
589
- # @see Wx::Size#dec_to
590
- # @param size [Array(Integer, Integer), Wx::Size]
591
- # @return [void]
592
- def inc_to(size) end
593
-
594
- # Returns true if this size is at least as big as the other one in both directions.
595
- # @param size [Array(Integer, Integer), Wx::Size]
596
- # @return [Boolean]
597
- def is_at_least(size) end
598
- alias_method :at_least?, :is_at_least
599
-
600
- # Returns true if either of the size object components is 0 or -1/.
601
- #
602
- # Empty {Wx::Size} objects don't define a valid size in the geometric sense.
603
- # @see Wx::Rect#is_empty
604
- # @return [Boolean]
605
- def is_empty; end
606
- alias_method :empty?, :is_empty
607
-
608
- # Returns true if neither of the size object components is equal to -1, which is used as default for the size values in wxWidgets (hence the predefined {Wx::DEFAULT_SIZE} has both of its components equal to -1).
609
- #
610
- # This method is typically used before calling {Wx::Size#set_defaults}.
611
- # @return [Boolean]
612
- def is_fully_specified; end
613
- alias_method :fully_specified?, :is_fully_specified
614
-
615
- # Scales the dimensions of this object by the given factors.
616
- #
617
- # If you want to scale both dimensions by the same factor you can also use {Wx::operator*=()}.
618
- # A reference to this object (so that you can concatenate other operations in the same line).
619
- # @param xscale [Float]
620
- # @param yscale [Float]
621
- # @return [Wx::Size]
622
- def scale(xscale, yscale) end
623
-
624
- # Sets the width and height members.
625
- # @param width [Integer]
626
- # @param height [Integer]
627
- # @return [void]
628
- def set(width, height) end
629
-
630
- # Combine this size object with another one replacing the default (i.e. equal to -1) components of this object with those of the other.
631
- #
632
- # It is typically used like this:
633
- #
634
- # ```ruby
635
- # if !size.is_fully_specified
636
- # size.set_defaults(get_default_size)
637
- # end
638
- # ```
639
- # @see Wx::Size#is_fully_specified
640
- # @param sizeDefault [Array(Integer, Integer), Wx::Size]
641
- # @return [void]
642
- def set_defaults(sizeDefault) end
643
- alias_method :defaults=, :set_defaults
644
-
645
- # Sets the height.
646
- # @param height [Integer]
647
- # @return [void]
648
- def set_height(height) end
649
- alias_method :height=, :set_height
650
-
651
- # Sets the width.
652
- # @param width [Integer]
653
- # @return [void]
654
- def set_width(width) end
655
- alias_method :width=, :set_width
656
-
657
- end # Size
658
-
659
- # Represents a rectangle with integer coordinates.
660
- #
661
- # x and y members specify the coordinates of the rectangle top-left corner and width and height specify its width and height respectively. The usual C++ semi-open interval convention is used: point p lies inside the rectangle if and only if both conditions below are satisfied:
662
- # ```
663
- # x <= p.x < x + width
664
- # y <= p.y < y + height
665
- # ```
666
- #
667
- # In other words, the rectangle left and right boundaries are at x and <code>x+width-1</code> and its top and bottom boundaries are at y and <code>y+height-1</code> respectively.
668
- # Note that the x and y coordinates may be negative, but width and height are always strictly positive for non-empty rectangles.
669
- #
670
- # Category: Data Structures
671
- # @see Wx::Point
672
- # @see Wx::Size
673
- #
674
- #
675
- #
676
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
677
- class Rect < ::Object
678
-
679
- # Returns the rectangle having the same size as this one but centered relatively to the given rectangle r.
680
- #
681
- # By default, rectangle is centred in both directions but if dir includes only {Wx::Orientation::VERTICAL} or only {Wx::Orientation::HORIZONTAL}, then it is only centered in this direction while the other component of its position remains unchanged.
682
- # @see Wx::Rect#make_centered_in
683
- # @param r [Wx::Rect]
684
- # @param dir [Integer]
685
- # @return [Wx::Rect]
686
- def centre_in(r, dir=Wx::Orientation::BOTH) end
687
-
688
- # Returns the rectangle having the same size as this one but centered relatively to the given rectangle r.
689
- #
690
- # By default, rectangle is centred in both directions but if dir includes only {Wx::Orientation::VERTICAL} or only {Wx::Orientation::HORIZONTAL}, then it is only centered in this direction while the other component of its position remains unchanged.
691
- # @see Wx::Rect#make_centered_in
692
- # @param r [Wx::Rect]
693
- # @param dir [Integer]
694
- # @return [Wx::Rect]
695
- def center_in(r, dir=Wx::Orientation::BOTH) end
696
-
697
- # @overload deflate(dx, dy)
698
- # Decrease the rectangle size.
699
- #
700
- # This method is the opposite from {Wx::Rect#inflate}: Deflate(a, b) is equivalent to Inflate(-a, -b). Please refer to {Wx::Rect#inflate} for full description.
701
- # @param dx [Integer]
702
- # @param dy [Integer]
703
- # @return [Wx::Rect]
704
- # @overload deflate(diff)
705
- # Decrease the rectangle size.
706
- #
707
- # This method is the opposite from {Wx::Rect#inflate}: Deflate(a, b) is equivalent to Inflate(-a, -b). Please refer to {Wx::Rect#inflate} for full description.
708
- # @param diff [Array(Integer, Integer), Wx::Size]
709
- # @return [Wx::Rect]
710
- # @overload deflate(diff)
711
- # Decrease the rectangle size.
712
- #
713
- # This method is the opposite from {Wx::Rect#inflate}: Deflate(a, b) is equivalent to Inflate(-a, -b). Please refer to {Wx::Rect#inflate} for full description.
714
- # @param diff [Integer]
715
- # @return [Wx::Rect]
716
- def deflate(*args) end
717
-
718
- # @overload inflate(dx, dy)
719
- # Increases the size of the rectangle.
720
- #
721
- # The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
722
- # Inflating and deflating behaves "naturally". Defined more precisely, that means:
723
- #
724
- # - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)
725
- # - Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
726
- # @see Wx::Rect#deflate
727
- # @param dx [Integer]
728
- # @param dy [Integer]
729
- # @return [Wx::Rect]
730
- # @overload inflate(diff)
731
- # Increases the size of the rectangle.
732
- #
733
- # The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
734
- # Inflating and deflating behaves "naturally". Defined more precisely, that means:
735
- #
736
- # - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)
737
- # - Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
738
- # @see Wx::Rect#deflate
739
- # @param diff [Array(Integer, Integer), Wx::Size]
740
- # @return [Wx::Rect]
741
- # @overload inflate(diff)
742
- # Increases the size of the rectangle.
743
- #
744
- # The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
745
- # Inflating and deflating behaves "naturally". Defined more precisely, that means:
746
- #
747
- # - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)
748
- # - Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
749
- # @see Wx::Rect#deflate
750
- # @param diff [Integer]
751
- # @return [Wx::Rect]
752
- def inflate(*args) end
753
-
754
- # Modifies the rectangle to contain the bounding box of this rectangle and the one passed in as parameter.
755
- # @param rect [Wx::Rect]
756
- # @return [Wx::Rect]
757
- def union(rect) end
758
-
759
- # @overload initialize()
760
- # Default constructor.
761
- #
762
- # Initializes to zero the internal x, y, width and height members.
763
- # @return [Wx::Rect]
764
- # @overload initialize(x, y, width, height)
765
- # Creates a {Wx::Rect} object from x, y, width and height values.
766
- # @param x [Integer]
767
- # @param y [Integer]
768
- # @param width [Integer]
769
- # @param height [Integer]
770
- # @return [Wx::Rect]
771
- # @overload initialize(topLeft, bottomRight)
772
- # Creates a {Wx::Rect} object from top-left and bottom-right points.
773
- #
774
- # The width of the rectangle will be <code>bottomRight.x-topLeft.x+1</code> and the height will be <code>bottomRight.y-topLeft.y+1</code>.
775
- # @param topLeft [Wx::Point]
776
- # @param bottomRight [Wx::Point]
777
- # @return [Wx::Rect]
778
- # @overload initialize(pos, size)
779
- # Creates a {Wx::Rect} object from position pos and size values.
780
- # @param pos [Array(Integer, Integer), Wx::Point]
781
- # @param size [Array(Integer, Integer), Wx::Size]
782
- # @return [Wx::Rect]
783
- # @overload initialize(size)
784
- # Creates a {Wx::Rect} object from size values at the origin.
785
- # @param size [Array(Integer, Integer), Wx::Size]
786
- # @return [Wx::Rect]
787
- def initialize(*args) end
788
-
789
- # @overload contains(x, y)
790
- # Returns true if the given point is inside the rectangle (or on its boundary) and false otherwise.
791
- # @param x [Integer]
792
- # @param y [Integer]
793
- # @return [Boolean]
794
- # @overload contains(pt)
795
- # Returns true if the given point is inside the rectangle (or on its boundary) and false otherwise.
796
- # @param pt [Array(Integer, Integer), Wx::Point]
797
- # @return [Boolean]
798
- # @overload contains(rect)
799
- # Returns true if the given rectangle is completely inside this rectangle (or touches its boundary) and false otherwise.
800
- # @param rect [Wx::Rect]
801
- # @return [Boolean]
802
- def contains(*args) end
803
-
804
- # Gets the bottom point of the rectangle.
805
- # @return [Integer]
806
- def get_bottom; end
807
- alias_method :bottom, :get_bottom
808
-
809
- # Gets the position of the bottom left corner.
810
- # @return [Wx::Point]
811
- def get_bottom_left; end
812
- alias_method :bottom_left, :get_bottom_left
813
-
814
- # Gets the position of the bottom right corner.
815
- # @return [Wx::Point]
816
- def get_bottom_right; end
817
- alias_method :bottom_right, :get_bottom_right
818
-
819
- # Gets the height member.
820
- # @return [Integer]
821
- def get_height; end
822
- alias_method :height, :get_height
823
-
824
- # Gets the left point of the rectangle (the same as {Wx::Rect#get_x}).
825
- # @return [Integer]
826
- def get_left; end
827
- alias_method :left, :get_left
828
-
829
- # Gets the position.
830
- # @return [Wx::Point]
831
- def get_position; end
832
- alias_method :position, :get_position
833
-
834
- # Gets the right point of the rectangle.
835
- # @return [Integer]
836
- def get_right; end
837
- alias_method :right, :get_right
838
-
839
- # Gets the size.
840
- #
841
- #
842
- # @see Wx::Rect#set_size
843
- # @return [Wx::Size]
844
- def get_size; end
845
- alias_method :size, :get_size
846
-
847
- # Gets the top point of the rectangle (the same as {Wx::Rect#get_y}).
848
- # @return [Integer]
849
- def get_top; end
850
- alias_method :top, :get_top
851
-
852
- # Gets the position of the top left corner of the rectangle, same as {Wx::Rect#get_position}.
853
- # @return [Wx::Point]
854
- def get_top_left; end
855
- alias_method :top_left, :get_top_left
856
-
857
- # Gets the position of the top right corner.
858
- # @return [Wx::Point]
859
- def get_top_right; end
860
- alias_method :top_right, :get_top_right
861
-
862
- # Gets the width member.
863
- # @return [Integer]
864
- def get_width; end
865
- alias_method :width, :get_width
866
-
867
- # Gets the x member.
868
- # @return [Integer]
869
- def get_x; end
870
- alias_method :x, :get_x
871
-
872
- # Gets the y member.
873
- # @return [Integer]
874
- def get_y; end
875
- alias_method :y, :get_y
876
-
877
- # Returns the overlapping portion of this rectangle and the one passed in as parameter.
878
- # @param rect [Wx::Rect]
879
- # @return [Wx::Rect]
880
- def intersect(rect) end
881
-
882
- # Returns true if this rectangle has a non-empty intersection with the rectangle rect and false otherwise.
883
- # @param rect [Wx::Rect]
884
- # @return [Boolean]
885
- def intersects(rect) end
886
-
887
- # Returns true if this rectangle has a width or height less than or equal to 0 and false otherwise.
888
- #
889
- # This is equivalent to using <code>Wx::Rect#get_size.Wx::Rect#is_empty</code>.
890
- # @see Wx::Size#is_empty
891
- # @return [Boolean]
892
- def is_empty; end
893
- alias_method :empty?, :is_empty
894
-
895
- # Center this rectangle inside the given rectangle r.
896
- #
897
- # By default, rectangle is centred in both directions but if dir includes only {Wx::Orientation::VERTICAL} or only {Wx::Orientation::HORIZONTAL}, then it is only centered in this direction while the other component of its position remains unchanged.
898
- # @see Wx::Rect#center_in
899
- # @param r [Wx::Rect]
900
- # @param dir [Integer]
901
- # @return [void]
902
- def make_centered_in(r, dir=Wx::Orientation::BOTH) end
903
-
904
- # Sets the height.
905
- # @param height [Integer]
906
- # @return [void]
907
- def set_height(height) end
908
- alias_method :height=, :set_height
909
-
910
- # Sets the position.
911
- # @param pos [Array(Integer, Integer), Wx::Point]
912
- # @return [void]
913
- def set_position(pos) end
914
- alias_method :position=, :set_position
915
-
916
- # Sets the size.
917
- #
918
- #
919
- # @see Wx::Rect#get_size
920
- # @param s [Array(Integer, Integer), Wx::Size]
921
- # @return [void]
922
- def set_size(s) end
923
- alias_method :size=, :set_size
924
-
925
- # Sets the width.
926
- # @param width [Integer]
927
- # @return [void]
928
- def set_width(width) end
929
- alias_method :width=, :set_width
930
-
931
- # Sets the x position.
932
- # @param x [Integer]
933
- # @return [void]
934
- def set_x(x) end
935
- alias_method :x=, :set_x
936
-
937
- # Sets the y position.
938
- # @param y [Integer]
939
- # @return [void]
940
- def set_y(y) end
941
- alias_method :y=, :set_y
942
-
943
- # Set the left side of the rectangle.
944
- #
945
- # Notice that because the rectangle stores its left side and width, calling {Wx::Rect#set_left} changes the right side position too but does preserve the width.
946
- # @param left [Integer]
947
- # @return [void]
948
- def set_left(left) end
949
- alias_method :left=, :set_left
950
-
951
- # Set the right side of the rectangle.
952
- #
953
- # Notice that this doesn't affect {Wx::Rect#get_left} return value but changes the rectangle width to set its right side to the given position.
954
- # @param right [Integer]
955
- # @return [void]
956
- def set_right(right) end
957
- alias_method :right=, :set_right
958
-
959
- # Set the top edge of the rectangle.
960
- #
961
- # Notice that because the rectangle stores its top side and height, calling {Wx::Rect#set_top} changes the bottom side position too but does preserve the height.
962
- # @param top [Integer]
963
- # @return [void]
964
- def set_top(top) end
965
- alias_method :top=, :set_top
966
-
967
- # Set the bottom edge of the rectangle.
968
- #
969
- # Notice that this doesn't affect {Wx::Rect#get_top} return value but changes the rectangle height to set its bottom side to the given position.
970
- # @param bottom [Integer]
971
- # @return [void]
972
- def set_bottom(bottom) end
973
- alias_method :bottom=, :set_bottom
974
-
975
- # Set the top-left point of the rectangle.
976
- # @param p [Array(Integer, Integer), Wx::Point]
977
- # @return [void]
978
- def set_top_left(p) end
979
- alias_method :top_left=, :set_top_left
980
-
981
- # Set the bottom-right point of the rectangle.
982
- # @param p [Array(Integer, Integer), Wx::Point]
983
- # @return [void]
984
- def set_bottom_right(p) end
985
- alias_method :bottom_right=, :set_bottom_right
986
-
987
- # Set the top-right point of the rectangle.
988
- # @param p [Array(Integer, Integer), Wx::Point]
989
- # @return [void]
990
- def set_top_right(p) end
991
- alias_method :top_right=, :set_top_right
992
-
993
- # Set the bottom-left point of the rectangle.
994
- # @param p [Array(Integer, Integer), Wx::Point]
995
- # @return [void]
996
- def set_bottom_left(p) end
997
- alias_method :bottom_left=, :set_bottom_left
998
-
999
- end # Rect
1000
-
1001
- # A {Wx::RealPoint} is a useful data structure for graphics operations.
1002
- #
1003
- # It contains floating point x and y members. See {Wx::Point} for an integer version.
1004
- # Note that the coordinates stored inside a {Wx::RealPoint} object may be negative and that {Wx::RealPoint} functions do not perform any check against negative values.
1005
- #
1006
- # Category: Data Structures
1007
- # @see Wx::Point
1008
- #
1009
- #
1010
- #
1011
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
1012
- class RealPoint < ::Object
1013
-
1014
- # X coordinate of this point.
1015
- #
1016
- #
1017
- # @return [Float]
1018
- def x; end
1019
- # X coordinate of this point.
1020
- #
1021
- #
1022
- # @param val [Float]
1023
- # @return [void]
1024
- def x=(val); end
1025
-
1026
- # Y coordinate of this point.
1027
- #
1028
- #
1029
- # @return [Float]
1030
- def y; end
1031
- # Y coordinate of this point.
1032
- #
1033
- #
1034
- # @param val [Float]
1035
- # @return [void]
1036
- def y=(val); end
1037
-
1038
- # @overload initialize()
1039
- # Initializes to zero the x and y members.
1040
- # @return [Wx::RealPoint]
1041
- # @overload initialize(x, y)
1042
- # Initializes the point with the given coordinates.
1043
- # @param x [Float]
1044
- # @param y [Float]
1045
- # @return [Wx::RealPoint]
1046
- # @overload initialize(pt)
1047
- # Converts the given {Wx::Point} (with integer coordinates) to a {Wx::RealPoint}.
1048
- # @param pt [Array(Integer, Integer), Wx::Point]
1049
- # @return [Wx::RealPoint]
1050
- def initialize(*args) end
1051
-
1052
- end # RealPoint
1053
-
1054
- # wxWidgets maintains a database of standard RGB colours for a predefined set of named colours.
1055
- #
1056
- # The application may add to this set if desired by using {Wx::ColourDatabase#add_colour} and may use it to look up colours by names using {Wx::ColourDatabase#find} or find the names for the standard colour using {Wx::ColourDatabase#find_name}.
1057
- # It is also possible to switch between the colour values defined in the CSS standard (see https://www.w3.org/TR/css-color-4/\#named-colors) and the traditional colour values which were used by wxWidgets versions earlier than 3.3.0, which may be useful to preserve the appearance of the existing code: if you need to do this, please call {Wx::ColourDatabase#use_scheme} with Traditional argument, but the use of new, standard colours is recommended.
1058
- # There is one predefined, global instance of this class called {Wx::TheColourDatabase}.
1059
- # The standard database contains at least the following colours:
1060
- #
1061
- # AQUAMARINE
1062
- #
1063
- # BLACK
1064
- #
1065
- # BLUE
1066
- #
1067
- # BLUE VIOLET
1068
- #
1069
- # BROWN
1070
- #
1071
- # CADET BLUE
1072
- #
1073
- # CORAL
1074
- #
1075
- # CORNFLOWER BLUE
1076
- #
1077
- # CYAN
1078
- #
1079
- # DARK GREY
1080
- #
1081
- # DARK GREEN
1082
- #
1083
- # DARK OLIVE GREEN
1084
- #
1085
- # DARK ORCHID
1086
- #
1087
- # DARK SLATE BLUE
1088
- #
1089
- # DARK SLATE GREY
1090
- #
1091
- # DARK TURQUOISE
1092
- #
1093
- # DIM GREY
1094
- # FIREBRICK
1095
- #
1096
- # FOREST GREEN
1097
- #
1098
- # GOLD
1099
- #
1100
- # GOLDENROD
1101
- #
1102
- # GREY
1103
- #
1104
- # GREEN
1105
- #
1106
- # GREEN YELLOW
1107
- #
1108
- # INDIAN RED
1109
- #
1110
- # KHAKI
1111
- #
1112
- # LIGHT BLUE
1113
- #
1114
- # LIGHT GREY
1115
- #
1116
- # LIGHT STEEL BLUE
1117
- #
1118
- # LIME GREEN
1119
- #
1120
- # MAGENTA
1121
- #
1122
- # MAROON
1123
- #
1124
- # MEDIUM AQUAMARINE
1125
- #
1126
- # MEDIUM BLUE
1127
- # MEDIUM FOREST GREEN
1128
- #
1129
- # MEDIUM GOLDENROD
1130
- #
1131
- # MEDIUM ORCHID
1132
- #
1133
- # MEDIUM SEA GREEN
1134
- #
1135
- # MEDIUM SLATE BLUE
1136
- #
1137
- # MEDIUM SPRING GREEN
1138
- #
1139
- # MEDIUM TURQUOISE
1140
- #
1141
- # MEDIUM VIOLET RED
1142
- #
1143
- # MIDNIGHT BLUE
1144
- #
1145
- # NAVY
1146
- #
1147
- # ORANGE
1148
- #
1149
- # ORANGE RED
1150
- #
1151
- # ORCHID
1152
- #
1153
- # PALE GREEN
1154
- #
1155
- # PINK
1156
- #
1157
- # PLUM
1158
- #
1159
- # PURPLE
1160
- # RED
1161
- #
1162
- # SALMON
1163
- #
1164
- # SEA GREEN
1165
- #
1166
- # SIENNA
1167
- #
1168
- # SKY BLUE
1169
- #
1170
- # SLATE BLUE
1171
- #
1172
- # SPRING GREEN
1173
- #
1174
- # STEEL BLUE
1175
- #
1176
- # TAN
1177
- #
1178
- # THISTLE
1179
- #
1180
- # TURQUOISE
1181
- #
1182
- # VIOLET
1183
- #
1184
- # VIOLET RED
1185
- #
1186
- # WHEAT
1187
- #
1188
- # WHITE
1189
- #
1190
- # YELLOW
1191
- #
1192
- # YELLOW GREEN
1193
- #
1194
- # See the "Database colours" page of the page_samples_drawing to see how all these colours look like.
1195
- #
1196
- # Category: Graphics Device Interface (GDI)
1197
- # @see Wx::Colour
1198
- #
1199
- #
1200
- #
1201
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
1202
- class ColourDatabase < ::Object
1203
-
1204
- # Possible colour schemes for {Wx::ColourDatabase#use_scheme}.
1205
- #
1206
- #
1207
- #
1208
- class Scheme < Wx::Enum
1209
-
1210
- # Use CSS standard colours, default since 3.3.0.
1211
- #
1212
- CSS = Wx::ColourDatabase::Scheme.new(0)
1213
-
1214
- # Use traditional wxWidgets colours for compatibility.
1215
- #
1216
- Traditional = Wx::ColourDatabase::Scheme.new(1)
1217
-
1218
- end # Scheme
1219
-
1220
- # Constructs the colour database.
1221
- #
1222
- # It will be initialized at the first use.
1223
- # @return [Wx::ColourDatabase]
1224
- def initialize; end
1225
-
1226
- # Adds a colour to the database.
1227
- #
1228
- # If a colour with the same name already exists, it is replaced.
1229
- # @param colourName [String]
1230
- # @param colour [Wx::Colour,String,Symbol]
1231
- # @return [void]
1232
- def add_colour(colourName, colour) end
1233
-
1234
- # Finds a colour given the name.
1235
- #
1236
- # Returns an invalid colour object (that is, {Wx::Colour#is_ok} will return false) if the colour wasn't found in the database.
1237
- # @param colourName [String]
1238
- # @return [Wx::Colour]
1239
- def find(colourName) end
1240
-
1241
- # Finds a colour name given the colour.
1242
- #
1243
- # Returns an empty string if the colour is not found in the database.
1244
- # @param colour [Wx::Colour,String,Symbol]
1245
- # @return [String]
1246
- def find_name(colour) end
1247
-
1248
- # List all known colours by name.
1249
- # @return [Array<String>]
1250
- def get_all_names; end
1251
- alias_method :all_names, :get_all_names
1252
-
1253
- # Select the colour scheme to use.
1254
- #
1255
- # By default, {Wx::ColourDatabase} uses CSS scheme which returns the standard values for the colours defined in the CSS specification, see https://www.w3.org/TR/css-color-4/\#named-colors
1256
- # If preserving compatibility with the behaviour and appearance of the previous wxWidgets versions is important, you may switch to the traditional colour scheme by using this function with Traditional argument, e.g. call
1257
- #
1258
- # ```
1259
- # wxTheColourDatabase->UseScheme(wxColourDatabase::Traditional);
1260
- # ```
1261
- #
1262
- # during the application initialization. Please note that in the previous versions WXGTK already used CSS colour values, unlike all the other ports, so Traditional is not actually backwards compatible for WXGTK, but does make the colour values consistent across all platforms and the same as had been used by WXMSW and WXOSX before. In other words, to obtain 100% compatibility with the previous versions, the {Wx::ColourDatabase#use_scheme} call above should be made for all ports except WXGTK.
1263
- # Note that the colour names defined only by wxWidgets, which notably includes all colour variants with spaces in their names, are still available in the default CSS colour scheme, with their traditional values but the names of colours defined by CSS standard are taken from it, e.g. "GREEN" corresponds to <code>\#00ff00</code> in the traditional scheme but to <code>\#008000</code> in the CSS scheme. Similarly, CSS colour names that were not defined by the previous wxWidgets versions are available even when using the traditional scheme, the scheme choice only affects the values of the colours defined by both wxWidgets and CSS with different values.
1264
- # @param scheme [Wx::ColourDatabase::Scheme]
1265
- # @return [void]
1266
- def use_scheme(scheme) end
1267
-
1268
- end # ColourDatabase
1269
-
1270
-
1271
- end