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,731 +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
- #
10
- BITMAP_SCREEN_DEPTH = -1
11
-
12
- # An empty {Wx::Bitmap} object.
13
- #
14
- NULL_BITMAP = nil
15
-
16
- # This class encapsulates the concept of a platform-dependent bitmap, either monochrome or colour or colour with alpha channel support.
17
- #
18
- # If you need direct access the bitmap data instead going through drawing to it using {Wx::MemoryDC} you need to use the {Wx::PixelData} class (either {Wx::NativePixelData} for RGB bitmaps or {Wx::AlphaPixelData} for bitmaps with an additionally alpha channel).
19
- # Note that many {Wx::Bitmap} functions take a type parameter, which is a value of the {Wx::BitmapType} enumeration. The validity of those values depends however on the platform where your program is running and from the wxWidgets configuration. If all possible wxWidgets settings are used:
20
- #
21
- # - WXMSW supports BMP and ICO files, BMP and ICO resources;
22
- # - WXGTK supports any file supported by gdk-pixbuf;
23
- # - WXOSX supports PICT resources;
24
- # - WXX11 supports XPM files, XPM data, XBM data;
25
- #
26
- # In addition, {Wx::Bitmap} can load and save all formats that {Wx::Image} can; see {Wx::Image} for more info. Of course, you must have loaded the {Wx::Image} handlers (see {init_all_image_handlers} and {Wx::Image.add_handler}). Note that all available {Wx::BitmapHandlers} for a given wxWidgets port are automatically loaded at startup so you won't need to use {Wx::Bitmap.add_handler}.
27
- # More on the difference between {Wx::Image} and {Wx::Bitmap}: {Wx::Image} is just a buffer of RGB bytes with an optional buffer for the alpha bytes. It is all generic, platform independent and image file format independent code. It includes generic code for scaling, resizing, clipping, and other manipulations of the image data. OTOH, {Wx::Bitmap} is intended to be a wrapper of whatever is the native image format that is quickest/easiest to draw to a DC or to be the target of the drawing operations performed on a {Wx::MemoryDC}. By splitting the responsibilities between {Wx::Image}/{Wx::Bitmap} like this then it's easier to use generic code shared by all platforms and image types for generic operations and platform specific code where performance or compatibility is needed.
28
- #
29
- # Category: Graphics Device Interface (GDI)
30
- # Predefined objects/pointers: {Wx::NULL_BITMAP}
31
- # @see Bitmaps and Icons
32
- # @see Supported Bitmap File Formats
33
- # @see Wx::DC#blit
34
- # @see Wx::Icon
35
- # @see Wx::Cursor
36
- # @see Wx::MemoryDC
37
- # @see Wx::Image
38
- # @see Wx::PixelData
39
- #
40
- #
41
- #
42
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
43
- class Bitmap < GDIObject
44
-
45
- # @overload initialize()
46
- # Default constructor.
47
- #
48
- # Constructs a bitmap object with no data; an assignment or another member function such as {Wx::Bitmap#create} or {Wx::Bitmap#load_file} must be called subsequently.
49
- # @return [Wx::Bitmap]
50
- # @overload initialize(bitmap)
51
- # Copy constructor, uses reference counting.
52
- #
53
- # To make a real copy, you can use:
54
- # ```ruby
55
- # newBitmap = oldBitmap.get_sub_bitmap(
56
- # Wx::Rect.new(0, 0, oldBitmap.width, oldBitmap.height))
57
- # ```
58
- # @param bitmap [Wx::Bitmap]
59
- # @return [Wx::Bitmap]
60
- # @overload initialize(width, height, depth=Wx::BITMAP_SCREEN_DEPTH)
61
- # Creates a new bitmap.
62
- #
63
- # A depth of {Wx::BITMAP_SCREEN_DEPTH} indicates the depth of the current screen or visual.
64
- # Some platforms only support 1 for monochrome and {Wx::BITMAP_SCREEN_DEPTH} for the current colour setting.
65
- # A depth of 32 including an alpha channel is supported under MSW, Mac and GTK+.
66
- # @param width [Integer] The width of the bitmap in pixels, must be strictly positive.
67
- # @param height [Integer] The height of the bitmap in pixels, must be strictly positive.
68
- # @param depth [Integer] The number of bits used to represent each bitmap pixel.
69
- # @return [Wx::Bitmap]
70
- # @overload initialize(sz, depth=Wx::BITMAP_SCREEN_DEPTH)
71
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
72
- # @param sz [Array(Integer, Integer), Wx::Size]
73
- # @param depth [Integer]
74
- # @return [Wx::Bitmap]
75
- # @overload initialize(width, height, dc)
76
- # Create a bitmap compatible with the given DC, inheriting its magnification factor.
77
- # @param width [Integer] The width of the bitmap in pixels, must be strictly positive.
78
- # @param height [Integer] The height of the bitmap in pixels, must be strictly positive.
79
- # @param dc [Wx::DC] DC from which the scaling factor is inherited
80
- # @return [Wx::Bitmap]
81
- # @overload initialize(name, type=Wx::BITMAP_DEFAULT_TYPE)
82
- # Loads a bitmap from a file or resource.
83
- #
84
- #
85
- # @see Wx::Bitmap#load_file
86
- # @param name [String] This can refer to a resource name or a filename under MS Windows and X. Its meaning is determined by the type parameter.
87
- # @param type [Wx::BitmapType] May be one of the {Wx::BitmapType} values and indicates which type of bitmap should be loaded. See the note in the class detailed description. Note that the {Wx::BITMAP_DEFAULT_TYPE} constant has different value under different wxWidgets ports. See the bitmap.h header for the value it takes for a specific port.
88
- # @return [Wx::Bitmap]
89
- # @overload initialize(img, depth=Wx::BITMAP_SCREEN_DEPTH)
90
- # Creates this bitmap object from the given image.
91
- #
92
- # This has to be done to actually display an image as you cannot draw an image directly on a window.
93
- # The resulting bitmap will use the provided colour depth (or that of the current system if depth is {Wx::BITMAP_SCREEN_DEPTH}) which entails that a colour reduction may take place.
94
- # On Windows, if there is a palette present (set with SetPalette), it will be used when creating the {Wx::Bitmap} (most useful in 8-bit display mode). On other platforms, the palette is currently ignored.
95
- # @param img [Wx::Image] Platform-independent {Wx::Image} object.
96
- # @param depth [Integer] Specifies the depth of the bitmap. If this is omitted, the display depth of the screen is used.
97
- # @return [Wx::Bitmap]
98
- # @overload initialize(img, dc)
99
- # Creates a bitmap compatible with the given DC from the given image.
100
- #
101
- # This constructor initializes the bitmap with the data of the given image, which must be valid, but inherits the scaling factor from the given device context instead of simply using the default factor of 1.
102
- # @param img [Wx::Image] Platform-independent {Wx::Image} object.
103
- # @param dc [Wx::DC] DC from which the scaling factor is inherited
104
- # @return [Wx::Bitmap]
105
- # @overload initialize(cursor)
106
- # Creates bitmap corresponding to the given cursor.
107
- #
108
- # This can be useful to display a cursor as it cannot be drawn directly on a window.
109
- #
110
- # <div class="wxrb-note">
111
- # <b>Note:</b>
112
- # <p>This constructor creates invalid bitmap in WXGTK when using Wayland as there is no way to retrieve the cursor bitmap under this platform.
113
- # </p>
114
- # </div>
115
- # @param cursor [Wx::Cursor] A valid {Wx::Cursor}.
116
- # @return [Wx::Bitmap]
117
- def initialize(*args) end
118
-
119
- # Returns disabled (dimmed) version of the bitmap.
120
- #
121
- # This method is not available when <code>wxUSE_IMAGE == 0</code>.
122
- # @param brightness [Integer]
123
- # @return [Wx::Bitmap]
124
- def convert_to_disabled(brightness=255) end
125
-
126
- # Creates an image from a platform-dependent bitmap.
127
- #
128
- # This preserves mask information so that bitmaps and images can be converted back and forth without loss in that respect.
129
- # @return [Wx::Image]
130
- def convert_to_image; end
131
-
132
- # Creates the bitmap from an icon.
133
- # @param icon [Wx::Icon]
134
- # @return [Boolean]
135
- def copy_from_icon(icon) end
136
-
137
- # @overload create(width, height, depth=Wx::BITMAP_SCREEN_DEPTH)
138
- # Creates a fresh bitmap.
139
- #
140
- # If the final argument is omitted, the display depth of the screen is used.
141
- #
142
- # true if the creation was successful.
143
- # @param width [Integer] The width of the bitmap in pixels, must be strictly positive.
144
- # @param height [Integer] The height of the bitmap in pixels, must be strictly positive.
145
- # @param depth [Integer] The number of bits used to represent each bitmap pixel.
146
- # @return [Boolean]
147
- # @overload create(sz, depth=Wx::BITMAP_SCREEN_DEPTH)
148
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
149
- # @param sz [Array(Integer, Integer), Wx::Size]
150
- # @param depth [Integer]
151
- # @return [Boolean]
152
- # @overload create(width, height, dc)
153
- # Create a bitmap compatible with the given DC, inheriting its magnification factor.
154
- #
155
- # true if the creation was successful.
156
- # @param width [Integer] The width of the bitmap in pixels, must be strictly positive.
157
- # @param height [Integer] The height of the bitmap in pixels, must be strictly positive.
158
- # @param dc [Wx::DC] DC from which the scaling factor is inherited
159
- # @return [Boolean]
160
- def create(*args) end
161
-
162
- # @overload create_with_dip_size(size, scale, depth=Wx::BITMAP_SCREEN_DEPTH)
163
- # Create a bitmap specifying its size in DPI-independent pixels and the scale factor to use.
164
- #
165
- # This should be used when the bitmap size is fixed (e.g. at compile-time) and not if it comes from {Wx::Window#get_size} or other similar functions use {Wx::Bitmap#create_with_logical_size} in the latter case.
166
- # The physical size of the bitmap is obtained by multiplying the given size by scale and rounding it to the closest integer.
167
- # After using this function the following postconditions are true:
168
- #
169
- # - {Wx::Bitmap#get_size} returns size multiplied by scale
170
- # - {Wx::Bitmap#get_dip_size} returns size
171
- # - {Wx::Bitmap#get_scale_factor} returns scale
172
- #
173
- # true if the creation was successful.
174
- # @param size [Array(Integer, Integer), Wx::Size] The size of the bitmap in DPI-independent pixels. Both width and height must be strictly positive.
175
- # @param scale [Float] Scale factor used by the bitmap, see {Wx::Bitmap#set_scale_factor}.
176
- # @param depth [Integer] The number of bits used to represent each bitmap pixel.
177
- # @return [Boolean]
178
- # @overload create_with_dip_size(width, height, scale, depth=Wx::BITMAP_SCREEN_DEPTH)
179
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
180
- # @param width [Integer]
181
- # @param height [Integer]
182
- # @param scale [Float]
183
- # @param depth [Integer]
184
- # @return [Boolean]
185
- def create_with_dip_size(*args) end
186
-
187
- # @overload create_with_logical_size(size, scale, depth=Wx::BITMAP_SCREEN_DEPTH)
188
- # Create a bitmap specifying its size in logical pixels and the scale factor to use.
189
- #
190
- # This should be typically used when creating bitmaps associated to a window area, e.g. to create a bitmap covering the entire window the size parameter should be {Wx::Window#get_client_size} and scale should be the {Wx::Window#get_dpi_scale_factor}.
191
- # The physical size of the bitmap created by this function depends on the platform and will be the same as size on the platforms for which {Wx::HAS_DPI_INDEPENDENT_PIXELS} is not defined (e.g. WXMSW) or size multiplied by scale for those where it is (e.g. WXGTK3, WXOSX and {Wx::Qt}). In other words, this function is the same as {Wx::Bitmap#create_with_dip_size} if {Wx::HAS_DPI_INDEPENDENT_PIXELS} is defined, but not otherwise.
192
- #
193
- # true if the creation was successful.
194
- # @param size [Array(Integer, Integer), Wx::Size] The size of the bitmap in logical pixels. Both width and height must be strictly positive.
195
- # @param scale [Float] Scale factor used by the bitmap, see {Wx::Bitmap#set_scale_factor}.
196
- # @param depth [Integer] The number of bits used to represent each bitmap pixel.
197
- # @return [Boolean]
198
- # @overload create_with_logical_size(width, height, scale, depth=Wx::BITMAP_SCREEN_DEPTH)
199
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
200
- # @param width [Integer]
201
- # @param height [Integer]
202
- # @param scale [Float]
203
- # @param depth [Integer]
204
- # @return [Boolean]
205
- def create_with_logical_size(*args) end
206
-
207
- # Create a bitmap with a scale factor.
208
- #
209
- # This is an older synonym for {Wx::Bitmap#create_with_dip_size}, use the new function in the new code.
210
- #
211
- # true if the creation was successful.
212
- # @param width [Integer] The width of the bitmap in pixels, must be strictly positive.
213
- # @param height [Integer] The height of the bitmap in pixels, must be strictly positive.
214
- # @param depth [Integer] The number of bits used to represent each bitmap pixel.
215
- # @param logicalScale [Float] Scale factor used by the bitmap, see {Wx::Bitmap#set_scale_factor}.
216
- # @return [Boolean]
217
- def create_scaled(width, height, depth, logicalScale) end
218
-
219
- # Gets the colour depth of the bitmap.
220
- #
221
- # A value of 1 indicates a monochrome bitmap.
222
- # @return [Integer]
223
- def get_depth; end
224
- alias_method :depth, :get_depth
225
-
226
- # Returns the size of bitmap in DPI-independent units.
227
- #
228
- # This assumes that the bitmap was created using the value of scale factor corresponding to the current DPI (see {Wx::Bitmap#create_with_dip_size} and {Wx::Bitmap#set_scale_factor}) and returns its physical size divided by this scale factor.
229
- # Unlike {Wx::Bitmap#get_logical_size}, this function returns the same value under all platforms and so its result should not be used as window or device context coordinates.
230
- # @return [Wx::Size]
231
- def get_dip_size; end
232
- alias_method :dip_size, :get_dip_size
233
-
234
- # Returns the height of the bitmap in physical pixels.
235
- #
236
- #
237
- # @see Wx::Bitmap#get_width
238
- # @see Wx::Bitmap#get_size
239
- # @see Wx::Bitmap#get_logical_height
240
- # @return [Integer]
241
- def get_height; end
242
- alias_method :height, :get_height
243
-
244
- # Returns the height of the bitmap in logical pixels.
245
- #
246
- # See {Wx::Bitmap#get_logical_size} for more information.
247
- # @see Wx::Bitmap#get_logical_width
248
- # @see Wx::Bitmap#get_width
249
- # @return [Float]
250
- def get_logical_height; end
251
- alias_method :logical_height, :get_logical_height
252
-
253
- # Returns the size of the bitmap in logical pixels.
254
- #
255
- # For the platforms using DPI-independent pixels, i.e. those where {Wx::HAS_DPI_INDEPENDENT_PIXELS} is defined, such as WXOSX or WXGTK 3, this function returns the physical size of the bitmap, as returned by {Wx::Bitmap#get_size}, divided by its scale factor, as returned by {Wx::Bitmap#get_scale_factor}, while for the other platforms, it simply returns the same thing as {Wx::Bitmap#get_size}.
256
- # This ensures that the result of this function is always expressed in the pixel coordinates appropriate for the current platform, i.e. its return value is always in logical pixels, used for window and {Wx::DC} coordinates, whether these pixels are the same as physical pixels, which are returned by {Wx::Bitmap#get_size}, or not.
257
- # @see Wx::Bitmap#get_logical_width
258
- # @see Wx::Bitmap#get_logical_height
259
- # @see Wx::Bitmap#get_size
260
- # @return [Wx::Size]
261
- def get_logical_size; end
262
- alias_method :logical_size, :get_logical_size
263
-
264
- # Returns the width of the bitmap in logical pixels.
265
- #
266
- # See {Wx::Bitmap#get_logical_size} for more information.
267
- # @see Wx::Bitmap#get_logical_height
268
- # @see Wx::Bitmap#get_width
269
- # @return [Float]
270
- def get_logical_width; end
271
- alias_method :logical_width, :get_logical_width
272
-
273
- # Gets the associated mask (if any) which may have been loaded from a file or set for the bitmap.
274
- #
275
- #
276
- # @see Wx::Bitmap#set_mask
277
- # @see Wx::Mask
278
- # @return [Wx::Mask]
279
- def get_mask; end
280
- alias_method :mask, :get_mask
281
-
282
- # Returns a sub bitmap of the current one as long as the rect belongs entirely to the bitmap.
283
- #
284
- # This function preserves bit depth and mask information.
285
- # @param rect [Wx::Rect]
286
- # @return [Wx::Bitmap]
287
- def get_sub_bitmap(rect) end
288
- alias_method :sub_bitmap, :get_sub_bitmap
289
-
290
- # Returns the scale factor of this bitmap.
291
- #
292
- # Scale factor is 1 by default, but can be greater to indicate that the size of bitmap in logical, DPI-independent pixels is smaller than its actual size in physical pixels. Bitmaps with scale factor greater than 1 must be used in high DPI to appear sharp on the screen.
293
- # Note that the scale factor is only used in the ports where logical pixels are not the same as physical ones, such as WXOSX or WXGTK3, and this function always returns 1 under the other platforms.
294
- # @see Wx::Bitmap#set_scale_factor
295
- # @see Wx::Bitmap#get_logical_width
296
- # @see Wx::Bitmap#get_logical_height
297
- # @see Wx::Bitmap#get_logical_size
298
- # @return [Float]
299
- def get_scale_factor; end
300
- alias_method :scale_factor, :get_scale_factor
301
-
302
- # Returns the height of the bitmap in logical pixels.
303
- #
304
- # This is an older synonym for {Wx::Bitmap#get_logical_height}, use the new function in the new code.
305
- # @return [Float]
306
- def get_scaled_height; end
307
- alias_method :scaled_height, :get_scaled_height
308
-
309
- # Returns the size of the bitmap in logical pixels.
310
- #
311
- # This is an older synonym for {Wx::Bitmap#get_logical_size}, use the new function in the new code.
312
- # @return [Wx::Size]
313
- def get_scaled_size; end
314
- alias_method :scaled_size, :get_scaled_size
315
-
316
- # Returns the width of the bitmap in logical pixels.
317
- #
318
- # This is an older synonym for {Wx::Bitmap#get_logical_width}, use the new function in the new code.
319
- # @return [Float]
320
- def get_scaled_width; end
321
- alias_method :scaled_width, :get_scaled_width
322
-
323
- # Returns the size of the bitmap in physical pixels.
324
- #
325
- # The return value of this function doesn't depend on the scale factor, it is always the physical size of the bitmap, i.e. corresponding to the actual number of pixels in it.
326
- # @see Wx::Bitmap#get_height
327
- # @see Wx::Bitmap#get_width
328
- # @see Wx::Bitmap#get_logical_size
329
- # @return [Wx::Size]
330
- def get_size; end
331
- alias_method :size, :get_size
332
-
333
- # Returns the width of the bitmap in physical pixels.
334
- #
335
- #
336
- # @see Wx::Bitmap#get_height
337
- # @see Wx::Bitmap#get_size
338
- # @see Wx::Bitmap#get_logical_width
339
- # @return [Integer]
340
- def get_width; end
341
- alias_method :width, :get_width
342
-
343
- # Returns true if the bitmap has an alpha channel.
344
- #
345
- # Note that the fact that a bitmap has an alpha channel doesn't necessarily mean that it has any transparency, as all of its pixels could be using {Wx::ALPHA_OPAQUE} value. To actually examine the alpha values, the bitmap can be converted to {Wx::Image}.
346
- # @return [Boolean]
347
- def has_alpha; end
348
- alias_method :has_alpha?, :has_alpha
349
-
350
- # Returns true if bitmap data is present.
351
- # @return [Boolean]
352
- def is_ok; end
353
- alias_method :ok?, :is_ok
354
-
355
- # Loads a bitmap from a file or resource.
356
- #
357
- # true if the operation succeeded, false otherwise.
358
- #
359
- # <div class="wxrb-remark">
360
- # <b>Remark:</b>
361
- # <p>A palette may be associated with the bitmap if one exists (especially for colour Windows bitmaps), and if the code supports it. You can check if one has been created by using the {Wx::Bitmap#get_palette} member.
362
- # </p>
363
- # </div>
364
- # @see Wx::Bitmap#save_file
365
- # @param name [String] Either a filename or a Windows resource name. The meaning of name is determined by the type parameter.
366
- # @param type [Wx::BitmapType] One of the {Wx::BitmapType} values; see the note in the class detailed description. Note that the {Wx::BITMAP_DEFAULT_TYPE} constant has different value under different wxWidgets ports. See the bitmap.h header for the value it takes for a specific port.
367
- # @return [Boolean]
368
- def load_file(name, type=Wx::BITMAP_DEFAULT_TYPE) end
369
-
370
- # Remove alpha channel from the bitmap.
371
- #
372
- # This is the same as calling {Wx::Bitmap#use_alpha} with false argument.
373
- # @return [void]
374
- def reset_alpha; end
375
-
376
- # Saves a bitmap in the named file.
377
- #
378
- # true if the operation succeeded, false otherwise.
379
- #
380
- # <div class="wxrb-remark">
381
- # <b>Remark:</b>
382
- # <p>Depending on how wxWidgets has been configured, not all formats may be available.
383
- # </p>
384
- # </div>
385
- # @see Wx::Bitmap#load_file
386
- # @param name [String] A filename. The meaning of name is determined by the type parameter.
387
- # @param type [Wx::BitmapType] One of the {Wx::BitmapType} values; see the note in the class detailed description.
388
- # @param palette [Wx::Palette] An optional palette used for saving the bitmap.
389
- # @return [Boolean]
390
- def save_file(name, type, palette=nil) end
391
-
392
- # Sets the bitmap scale factor.
393
- #
394
- # This doesn't change the bitmap actual size or its contents, but changes its scale factor, so that it appears in a smaller size when it is drawn on screen: e.g. setting scale to 2 means that the bitmap will be twice smaller (in each direction) when drawn on screen in the ports in which logical and physical pixels differ (i.e. WXOSX and WXGTK3, but not WXMSW).
395
- # When creating a new bitmap, {Wx::Bitmap#create_with_dip_size} can be used to specify the correct scale factor from the beginning.
396
- # @param scale [Float]
397
- # @return [void]
398
- def set_scale_factor(scale) end
399
- alias_method :scale_factor=, :set_scale_factor
400
-
401
- # Sets the mask for this bitmap.
402
- #
403
- # <div class="wxrb-remark">
404
- # <b>Remark:</b>
405
- # <p>The bitmap object owns the mask once this has been called.
406
- # </p>
407
- # </div>
408
- #
409
- # <div class="wxrb-note">
410
- # <b>Note:</b>
411
- # <p>A mask can be set also for bitmap with an alpha channel but doing so under WXMSW is not recommended because performance of drawing such bitmap is not very good.
412
- # </p>
413
- # </div>
414
- # @see Wx::Bitmap#get_mask
415
- # @see Wx::Mask
416
- # @param mask [Wx::Mask]
417
- # @return [void]
418
- def set_mask(mask) end
419
- alias_method :mask=, :set_mask
420
-
421
- # Enable or disable use of alpha channel in this bitmap.
422
- #
423
- # This function is only useful for 32bpp bitmaps and changes their format to use, or not use, the fourth byte of the pixel data for the alpha channel.
424
- # It currently is only implemented in WXMSW and WXOSX and simply always returns false under the other platforms.
425
- # true if the operation succeeded, false otherwise, e.g. when trying to enable alpha channel support for a non-32bpp bitmap or if this operation is simply not supported by the current platform.
426
- # @see Wx::Bitmap#has_alpha
427
- # @see Wx::Bitmap#reset_alpha
428
- # @param use [Boolean]
429
- # @return [Boolean]
430
- def use_alpha(use=true) end
431
-
432
- # Rescale the given bitmap to the requested size.
433
- #
434
- # This function is just a convenient wrapper for {Wx::Image#rescale} used to resize the given bmp to the requested size. If you need more control over resizing, e.g. to specify the quality option different from {Wx::ImageResizeQuality::IMAGE_QUALITY_NEAREST} used by this function, please use the {Wx::Image} function directly instead.
435
- # Both the bitmap itself and size must be valid.
436
- # @param bmp [Wx::Bitmap]
437
- # @param sizeNeeded [Array(Integer, Integer), Wx::Size]
438
- # @return [void]
439
- def self.rescale(bmp, sizeNeeded) end
440
-
441
- end # Bitmap
442
-
443
- # Contains representations of the same bitmap in different resolutions.
444
- #
445
- # This class generalizes {Wx::Bitmap} for applications supporting multiple DPIs and allows to operate with multiple versions of the same bitmap, in the sizes appropriate to the currently used display resolution, as a single unit. Notably, an entire {Wx::BitmapBundle} can be passed to functions such as {Wx::ToolBar#add_tool} to allow toolbar to select the best available bitmap to be shown.
446
- # Objects of this class are typically created by the application and then passed to wxWidgets functions, but not used by the application itself. Currently bitmap bundles can be created from: - A vector of bitmaps, of any provenance.
447
- # - An SVG (as memory block, file, or resource) which will be rasterized at required resolutions.
448
- # - A custom bitmap source using {Wx::BitmapBundleImpl}.
449
- # - A single {Wx::Bitmap} or {Wx::Image} for backwards compatibility.
450
- #
451
- # Objects of {Wx::BitmapBundle} class have value-like semantics, i.e. they can be copied around freely (and cheaply) and don't need to be allocated on the heap. However they usually are created using static factory functions (known as "pseudo-constructors") such as {Wx::BitmapBundle.from_bitmaps} instead of using the real constructors.
452
- # ```ruby
453
- # class MyFrame < Wx::Frame
454
- #
455
- # def initialize
456
- # super(nil, Wx::ID_ANY, "My frame")
457
- # # ...
458
- # tool_bar = create_toolBar
459
- #
460
- # bitmaps = [
461
- # Wx::Bitmap(:open_32x32, Wx::BitmapType::BITMAP_TYPE_PNG),
462
- # Wx::Bitmap(:open_48x48, Wx::BitmapType::BITMAP_TYPE_PNG),
463
- # Wx::Bitmap(:open_64x64, Wx::BitmapType::BITMAP_TYPE_PNG)
464
- # ]
465
- #
466
- # tool_bar.add_tool(Wx::ID_OPEN, "Open", Wx::BitmapBundle.from_bitmaps(bitmaps))
467
- # end
468
- # ```
469
- #
470
- # The code shown above will use 32 pixel bitmap in normal DPI, 64 pixel bitmap in "high DPI", i.e. pixel-doubling or 200% resolution, and 48 pixel bitmap in 150% resolution. For all the other resolutions, the bitmap with the "best" matching size will be used, where "best" is deemed to be the bitmap with the closest size if it can be used without scaling (so that in this example the 64px bitmap will be used at 175% resolution because it typically looks much better than either downscaling it or upscaling the 48px bitmap to 56px) or, if there is no bitmap with close enough size, a bitmap upscaled by an integer scaling factor is used. Note that custom bitmap bundles can use a different algorithm for selecting the best match by overriding Wx::BitmapBundleImpl#get_preferred_bitmap_size_at_scale.
471
- # Of course, this code relies on actually having the resources with the corresponding names (i.e. open_NxN) in MSW .rc file or Mac application bundle and open_NxN_png arrays being defined in the program code, e.g. by including a file generated with bin2c (see {bitmap_png_from_data}), on the other platforms.
472
- #
473
- # Also note that the existing code using {Wx::Bitmap} is compatible with the functions taking {Wx::BitmapBundle} in wxWidgets 3.1.6 and later because bitmaps are implicitly convertible to the objects of this class, so just passing {Wx::Bitmap} to the functions taking {Wx::BitmapBundle} continues to work and if high resolution versions of bitmap are not (yet) available for the other toolbar tools, single bitmaps can continue to be used instead.
474
- #
475
- # Category: Graphics Device Interface (GDI)
476
- #
477
- #
478
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
479
- class BitmapBundle < ::Object
480
-
481
- # @overload initialize()
482
- # Default constructor constructs an empty bundle.
483
- #
484
- # An empty bundle can't be used for anything, but can be assigned something else later.
485
- # @return [Wx::BitmapBundle]
486
- # @overload initialize(bitmap)
487
- # Conversion constructor from a single bitmap.
488
- #
489
- # This constructor does the same thing as {Wx::BitmapBundle.from_bitmap} and only exists for interoperability with the existing code using {Wx::Bitmap}.
490
- # @param bitmap [Wx::Bitmap]
491
- # @return [Wx::BitmapBundle]
492
- # @overload initialize(icon)
493
- # Conversion constructor from a single icon.
494
- #
495
- # This constructor does the same thing as {Wx::BitmapBundle.from_bitmap} and only exists for interoperability with the existing code using {Wx::Icon}.
496
- # @param icon [Wx::Icon]
497
- # @return [Wx::BitmapBundle]
498
- # @overload initialize(image)
499
- # Conversion constructor from a single image.
500
- #
501
- # Similarly to the constructor from {Wx::Bitmap}, this constructor only exists for interoperability with the existing code using {Wx::Image} and can be replaced with more readable {Wx::BitmapBundle.from_image} in the new code.
502
- # @param image [Wx::Image]
503
- # @return [Wx::BitmapBundle]
504
- # @overload initialize(other)
505
- # Copy constructor creates a copy of another bundle.
506
- # @param other [Wx::BitmapBundle]
507
- # @return [Wx::BitmapBundle]
508
- def initialize(*args) end
509
-
510
- # Clear the existing bundle contents.
511
- #
512
- # After calling this function {Wx::BitmapBundle#is_ok} returns false.
513
- # This is the same as assigning a default-constructed bitmap bundle to this object but slightly more explicit.
514
- # @return [void]
515
- def clear; end
516
-
517
- # Check if bitmap bundle is non-empty.
518
- #
519
- # Return true if the bundle contains any bitmaps or false if it is empty.
520
- # @return [Boolean]
521
- def is_ok; end
522
- alias_method :ok?, :is_ok
523
-
524
- # Get the size of the bitmap represented by this bundle in default resolution or, equivalently, at 100% scaling.
525
- #
526
- # When creating the bundle from a number of bitmaps, this will be just the size of the smallest bitmap in it.
527
- # Note that this function is mostly used by wxWidgets itself and not the application.
528
- # @return [Wx::Size]
529
- def get_default_size; end
530
- alias_method :default_size, :get_default_size
531
-
532
- # Get the size that would be best to use for this bundle at the given DPI scaling factor.
533
- #
534
- # For bundles containing some number of the fixed-size bitmaps, this function returns the size of an existing bitmap closest to the ideal size at the given scale, i.e. {Wx::BitmapBundle#get_default_size} multiplied by scale.
535
- # Passing a size returned by this function to {Wx::BitmapBundle#get_bitmap} ensures that bitmap doesn't need to be rescaled, which typically significantly lowers its quality.
536
- # @param scale [Float]
537
- # @return [Wx::Size]
538
- def get_preferred_bitmap_size_at_scale(scale) end
539
- alias_method :preferred_bitmap_size_at_scale, :get_preferred_bitmap_size_at_scale
540
-
541
- # Get the size that would be best to use for this bundle at the DPI scaling factor used by the given window.
542
- #
543
- # This is just a convenient wrapper for {Wx::BitmapBundle#get_preferred_bitmap_size_at_scale} calling that function with the result of {Wx::Window#get_dpi_scale_factor}.
544
- # @param window [Wx::Window] Non-null and fully created window.
545
- # @return [Wx::Size]
546
- def get_preferred_bitmap_size_for(window) end
547
- alias_method :preferred_bitmap_size_for, :get_preferred_bitmap_size_for
548
-
549
- # Get the size that would be best to use for this bundle at the DPI scaling factor used by the given window in logical size.
550
- #
551
- # This is just call {Wx::BitmapBundle#get_preferred_bitmap_size_at_scale} with the result of {Wx::Window#get_dpi_scale_factor} and convert returned value with {Wx::Window#from_phys}.
552
- # @param window [Wx::Window] Non-null and fully created window.
553
- # @return [Wx::Size]
554
- def get_preferred_logical_size_for(window) end
555
- alias_method :preferred_logical_size_for, :get_preferred_logical_size_for
556
-
557
- # Get bitmap of the specified size, creating a new bitmap from the closest available size by rescaling it if necessary.
558
- #
559
- # This function is mostly used by wxWidgets itself and not the application. As all bitmaps created by it dynamically are currently cached, avoid calling it for many different sizes if you do use it, as this will create many bitmaps that will never be deleted and will consume resources until the application termination.
560
- # @param size [Array(Integer, Integer), Wx::Size] The size of the bitmap to return, in physical pixels. If this parameter is {Wx::DEFAULT_SIZE}, default bundle size is used.
561
- # @return [Wx::Bitmap]
562
- def get_bitmap(size) end
563
- alias_method :bitmap, :get_bitmap
564
-
565
- # Get bitmap of the size appropriate for the DPI scaling used by the given window.
566
- #
567
- # This helper function simply combines {Wx::BitmapBundle#get_preferred_bitmap_size_for} and {Wx::BitmapBundle#get_bitmap}, i.e. it returns a (normally unscaled) bitmap from the bundle of the closest size to the size that should be used at the DPI scaling of the provided window.
568
- # @param window [Wx::Window] Non-null and fully created window.
569
- # @return [Wx::Bitmap]
570
- def get_bitmap_for(window) end
571
- alias_method :bitmap_for, :get_bitmap_for
572
-
573
- # Get icon of the specified size.
574
- #
575
- # This is just a convenient wrapper for {Wx::BitmapBundle#get_bitmap} and simply converts the returned bitmap to {Wx::Icon}.
576
- # @param size [Array(Integer, Integer), Wx::Size]
577
- # @return [Wx::Icon]
578
- def get_icon(size) end
579
- alias_method :icon, :get_icon
580
-
581
- # Get icon of the size appropriate for the DPI scaling used by the given window.
582
- #
583
- # This is similar to {Wx::BitmapBundle#get_bitmap_for}, but returns a {Wx::Icon}, as {Wx::BitmapBundle#get_icon} does.
584
- # @param window [Wx::Window] Non-null and fully created window.
585
- # @return [Wx::Icon]
586
- def get_icon_for(window) end
587
- alias_method :icon_for, :get_icon_for
588
-
589
- # Check if the two bundles refer to the same object.
590
- #
591
- # Bundles are considered to be same only if they actually use the same underlying object, i.e. are copies of each other. If the two bundles were independently constructed, they're not considered to be the same, even if they were created from the same bitmap.
592
- # @param other [Wx::BitmapBundle]
593
- # @return [Boolean]
594
- def is_same_as(other) end
595
- alias_method :same_as?, :is_same_as
596
-
597
- # @overload self.from_bitmaps(bitmaps)
598
- # Create a bundle from the given collection of bitmaps.
599
- #
600
- # If the bitmaps vector is empty, an invalid, empty bundle is returned, otherwise initialize the bundle with all the bitmaps in this vector which must be themselves valid.
601
- # @param bitmaps [Array<Wx::Bitmap>]
602
- # @return [Wx::BitmapBundle]
603
- # @overload self.from_bitmaps(bitmap1, bitmap2)
604
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
605
- # @param bitmap1 [Wx::Bitmap]
606
- # @param bitmap2 [Wx::Bitmap]
607
- # @return [Wx::BitmapBundle]
608
- def self.from_bitmaps(*args) end
609
-
610
- # Create a bundle from a single bitmap.
611
- #
612
- # This is only useful for compatibility with the existing code using {Wx::Bitmap}.
613
- # If bitmap is invalid, empty bundle is returned.
614
- # @param bitmap [Wx::Bitmap]
615
- # @return [Wx::BitmapBundle]
616
- def self.from_bitmap(bitmap) end
617
-
618
- # Create a bundle from an icon bundle.
619
- #
620
- # If iconBundle is invalid or empty, empty bundle is returned.
621
- # @param iconBundle [Wx::IconBundle]
622
- # @return [Wx::BitmapBundle]
623
- def self.from_icon_bundle(iconBundle) end
624
-
625
- # Create a bundle from a single image.
626
- #
627
- # This is only useful for compatibility with the existing code using {Wx::Image}.
628
- # If image is invalid, empty bundle is returned.
629
- # @param image [Wx::Image]
630
- # @return [Wx::BitmapBundle]
631
- def self.from_image(image) end
632
-
633
- # @overload self.from_files(path, filename, extension=("PNG"))
634
- # Create a bundle from bitmaps stored as files.
635
- #
636
- # This function search in path for files using filename as prefix and potentially a suffix with scale, e.g. "_2x" or "@2x".
637
- # Additionally, since wxWidgets 3.3.2, it also looks for the file in the given name in the "2.0x" subdirectory (if it exists).
638
- # @param path [String] Path of the directory containing the files
639
- # @param filename [String] Bitmap's filename without any scale suffix
640
- # @param extension [String] File extension, without leading dot (png by default)
641
- # @return [Wx::BitmapBundle]
642
- # @overload self.from_files(fullpathname)
643
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
644
- # @param fullpathname [String]
645
- # @return [Wx::BitmapBundle]
646
- def self.from_files(*args) end
647
-
648
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
649
- # @param data [String]
650
- # @param sizeDef [Array(Integer, Integer), Wx::Size]
651
- # @return [Wx::BitmapBundle]
652
- def self.from_svg(data, sizeDef) end
653
-
654
- # Create a bundle from the SVG image loaded from the given file.
655
- #
656
- # This function loads the SVG data from the given path and calls {Wx::BitmapBundle.from_svg} with it. As it is just a wrapper for {Wx::BitmapBundle.from_svg}, please see that function documentation for more information about SVG support.
657
- # @param path [String] Path to the SVG file. Notice that it should a local file, not an URL.
658
- # @param sizeDef [Array(Integer, Integer), Wx::Size] The default size to return from {Wx::BitmapBundle#get_default_size} for this bundle. If an empty {Wx::Size} or {Wx::DEFAULT_SIZE} is provided, the size of the SVG will be the default size.
659
- # @return [Wx::BitmapBundle]
660
- def self.from_svg_file(path, sizeDef) end
661
-
662
- end # BitmapBundle
663
-
664
- # This class encapsulates a monochrome mask bitmap, where the masked area is black and the unmasked area is white.
665
- #
666
- # When associated with a bitmap and drawn in a device context, the unmasked area of the bitmap will be drawn, and the masked area will not be drawn.
667
- #
668
- # <div class="wxrb-note">
669
- # <b>Note:</b>
670
- # <p>A mask can be associated also with a bitmap with an alpha channel but drawing such bitmaps under WXMSW may be slow so using them should be avoided if drawing performance is an important factor.
671
- # </p>
672
- # </div>
673
- #
674
- # Category: Graphics Device Interface (GDI)
675
- # @see Wx::Bitmap
676
- # @see Wx::DC#blit
677
- # @see Wx::MemoryDC
678
- #
679
- #
680
- class Mask < Object
681
-
682
- # @overload initialize()
683
- # Default constructor.
684
- # @return [Wx::Mask]
685
- # @overload initialize(bitmap, index)
686
- # Constructs a mask from a bitmap and a palette index that indicates the background.
687
- #
688
- # Not implemented for GTK.
689
- # @param bitmap [Wx::Bitmap] A valid bitmap.
690
- # @param index [Integer] Index into a palette, specifying the transparency colour.
691
- # @return [Wx::Mask]
692
- # @overload initialize(bitmap)
693
- # Constructs a mask from a monochrome bitmap.
694
- # @param bitmap [Wx::Bitmap]
695
- # @return [Wx::Mask]
696
- # @overload initialize(bitmap, colour)
697
- # Constructs a mask from a bitmap and a colour that indicates the background.
698
- # @param bitmap [Wx::Bitmap]
699
- # @param colour [Wx::Colour,String,Symbol]
700
- # @return [Wx::Mask]
701
- def initialize(*args) end
702
-
703
- # @overload create(bitmap, index)
704
- # Constructs a mask from a bitmap and a palette index that indicates the background.
705
- #
706
- # Not implemented for GTK.
707
- # @param bitmap [Wx::Bitmap] A valid bitmap.
708
- # @param index [Integer] Index into a palette, specifying the transparency colour.
709
- # @return [Boolean]
710
- # @overload create(bitmap)
711
- # Constructs a mask from a monochrome bitmap.
712
- # @param bitmap [Wx::Bitmap]
713
- # @return [Boolean]
714
- # @overload create(bitmap, colour)
715
- # Constructs a mask from a bitmap and a colour that indicates the background.
716
- # @param bitmap [Wx::Bitmap]
717
- # @param colour [Wx::Colour,String,Symbol]
718
- # @return [Boolean]
719
- def create(*args) end
720
-
721
- # Returns the mask as a monochrome bitmap.
722
- #
723
- # Currently this method is implemented in WXMSW, WXGTK and WXOSX.
724
- # @return [Wx::Bitmap]
725
- def get_bitmap; end
726
- alias_method :bitmap, :get_bitmap
727
-
728
- end # Mask
729
-
730
-
731
- end