wxruby3 1.6.1 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (530) hide show
  1. checksums.yaml +4 -4
  2. data/CREDITS.md +32 -25
  3. data/INSTALL.md +19 -4
  4. data/README.md +5 -5
  5. data/assets/repo-social-preview.odg +0 -0
  6. data/assets/repo-social-preview.xcf +0 -0
  7. data/ext/wxruby3/include/wxRubyApp.h +58 -45
  8. data/ext/wxruby3/include/wxruby-runtime.h +78 -1
  9. data/ext/wxruby3/swig/common.i +2 -2
  10. data/ext/wxruby3/swig/custom/director.swg +2 -2
  11. data/ext/wxruby3/swig/custom/rubyprimtypes.swg +59 -15
  12. data/ext/wxruby3/swig/custom/rubyrun.swg +4 -0
  13. data/ext/wxruby3/swig/custom/rubytracking.swg +4 -0
  14. data/ext/wxruby3/swig/custom/swiglabels.swg +129 -0
  15. data/ext/wxruby3/swig/custom/swigrun.swg +15 -0
  16. data/ext/wxruby3/swig/custom/typemaps/swigtypemaps.swg +20 -0
  17. data/ext/wxruby3/swig/mark_free_impl.i +152 -88
  18. data/ext/wxruby3/swig/memory_management.i +1 -0
  19. data/ext/wxruby3/swig/wx.i +73 -44
  20. data/lib/wx/aui/events/evt_list.rb +148 -0
  21. data/lib/wx/aui/require.rb +0 -1
  22. data/lib/wx/core/calendar_ctrl.rb +15 -0
  23. data/lib/wx/core/clipboard.rb +9 -13
  24. data/lib/wx/core/config.rb +1 -1
  25. data/lib/wx/core/events/evt_list.rb +1458 -0
  26. data/lib/wx/core/font/encoding.rb +113 -0
  27. data/lib/wx/core/generic_validator.rb +83 -31
  28. data/lib/wx/core/tipwindow.rb +16 -0
  29. data/lib/wx/doc/aui/auitabctrl.rb +35 -0
  30. data/lib/wx/doc/config.rb +2 -2
  31. data/lib/wx/doc/functions.rb +1 -1
  32. data/lib/wx/doc/gen/about_dialog_info.rb +330 -0
  33. data/lib/wx/doc/gen/accelerator.rb +178 -0
  34. data/lib/wx/doc/gen/activity_indicator.rb +83 -0
  35. data/lib/wx/doc/gen/affine_matrix2d.rb +284 -0
  36. data/lib/wx/doc/gen/animation.rb +275 -0
  37. data/lib/wx/doc/gen/animation_ctrl.rb +300 -0
  38. data/lib/wx/doc/gen/any_button.rb +191 -0
  39. data/lib/wx/doc/gen/app.rb +463 -0
  40. data/lib/wx/doc/gen/app_traits.rb +396 -0
  41. data/lib/wx/doc/gen/art_provider.rb +605 -0
  42. data/lib/wx/doc/gen/aui/aui_dock_art.rb +455 -0
  43. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +54 -0
  44. data/lib/wx/doc/gen/aui/aui_manager.rb +847 -0
  45. data/lib/wx/doc/gen/aui/aui_manager_event.rb +131 -0
  46. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +180 -0
  47. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +59 -0
  48. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +130 -0
  49. data/lib/wx/doc/gen/aui/aui_notebook.rb +631 -0
  50. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +233 -0
  51. data/lib/wx/doc/gen/aui/aui_pane_info.rb +769 -0
  52. data/lib/wx/doc/gen/aui/aui_tab_art.rb +352 -0
  53. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +14 -0
  54. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +510 -0
  55. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +340 -0
  56. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +244 -0
  57. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +257 -0
  58. data/lib/wx/doc/gen/aui/event_list.rb +179 -0
  59. data/lib/wx/doc/gen/banner_window.rb +124 -0
  60. data/lib/wx/doc/gen/bitmap.rb +731 -0
  61. data/lib/wx/doc/gen/bitmap_button.rb +123 -0
  62. data/lib/wx/doc/gen/bitmap_combo_box.rb +221 -0
  63. data/lib/wx/doc/gen/book_ctrl_base.rb +273 -0
  64. data/lib/wx/doc/gen/book_ctrl_event.rb +66 -0
  65. data/lib/wx/doc/gen/box_sizer.rb +85 -0
  66. data/lib/wx/doc/gen/brush.rb +251 -0
  67. data/lib/wx/doc/gen/busy_info.rb +157 -0
  68. data/lib/wx/doc/gen/button.rb +182 -0
  69. data/lib/wx/doc/gen/calculate_layout_event.rb +62 -0
  70. data/lib/wx/doc/gen/calendar_ctrl.rb +505 -0
  71. data/lib/wx/doc/gen/calendar_date_attr.rb +138 -0
  72. data/lib/wx/doc/gen/calendar_event.rb +147 -0
  73. data/lib/wx/doc/gen/caret.rb +97 -0
  74. data/lib/wx/doc/gen/check_box.rb +175 -0
  75. data/lib/wx/doc/gen/check_list_box.rb +121 -0
  76. data/lib/wx/doc/gen/choice.rb +175 -0
  77. data/lib/wx/doc/gen/choicebook.rb +116 -0
  78. data/lib/wx/doc/gen/client_dc.rb +43 -0
  79. data/lib/wx/doc/gen/clipboard.rb +144 -0
  80. data/lib/wx/doc/gen/collapsible_pane.rb +138 -0
  81. data/lib/wx/doc/gen/collapsible_pane_event.rb +46 -0
  82. data/lib/wx/doc/gen/colour.rb +333 -0
  83. data/lib/wx/doc/gen/colour_dialog.rb +190 -0
  84. data/lib/wx/doc/gen/colour_picker_ctrl.rb +110 -0
  85. data/lib/wx/doc/gen/colour_picker_event.rb +77 -0
  86. data/lib/wx/doc/gen/combo_box.rb +292 -0
  87. data/lib/wx/doc/gen/combo_ctrl.rb +662 -0
  88. data/lib/wx/doc/gen/command_link_button.rb +134 -0
  89. data/lib/wx/doc/gen/config_base.rb +10 -0
  90. data/lib/wx/doc/gen/context_help_button.rb +109 -0
  91. data/lib/wx/doc/gen/control.rb +277 -0
  92. data/lib/wx/doc/gen/control_with_items.rb +253 -0
  93. data/lib/wx/doc/gen/core.rb +45 -0
  94. data/lib/wx/doc/gen/credential_entry_dialog.rb +137 -0
  95. data/lib/wx/doc/gen/cursor.rb +193 -0
  96. data/lib/wx/doc/gen/data_format.rb +85 -0
  97. data/lib/wx/doc/gen/data_object.rb +436 -0
  98. data/lib/wx/doc/gen/data_object_simple_base.rb +10 -0
  99. data/lib/wx/doc/gen/date_event.rb +49 -0
  100. data/lib/wx/doc/gen/date_picker_ctrl.rb +161 -0
  101. data/lib/wx/doc/gen/dc.rb +1631 -0
  102. data/lib/wx/doc/gen/dc_overlay.rb +102 -0
  103. data/lib/wx/doc/gen/defs.rb +2802 -0
  104. data/lib/wx/doc/gen/dial_up_event.rb +45 -0
  105. data/lib/wx/doc/gen/dial_up_manager.rb +149 -0
  106. data/lib/wx/doc/gen/dialog.rb +541 -0
  107. data/lib/wx/doc/gen/dir_dialog.rb +164 -0
  108. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +90 -0
  109. data/lib/wx/doc/gen/dir_picker_ctrl.rb +125 -0
  110. data/lib/wx/doc/gen/display.rb +238 -0
  111. data/lib/wx/doc/gen/drag_drop.rb +299 -0
  112. data/lib/wx/doc/gen/drag_image.rb +116 -0
  113. data/lib/wx/doc/gen/editable_list_box.rb +109 -0
  114. data/lib/wx/doc/gen/event.rb +990 -0
  115. data/lib/wx/doc/gen/event_blocker.rb +50 -0
  116. data/lib/wx/doc/gen/event_filter.rb +92 -0
  117. data/lib/wx/doc/gen/event_list.rb +1644 -0
  118. data/lib/wx/doc/gen/events.rb +2809 -0
  119. data/lib/wx/doc/gen/evt_handler.rb +229 -0
  120. data/lib/wx/doc/gen/ext_help_controller.rb +109 -0
  121. data/lib/wx/doc/gen/file_ctrl.rb +231 -0
  122. data/lib/wx/doc/gen/file_ctrl_event.rb +83 -0
  123. data/lib/wx/doc/gen/file_dialog.rb +353 -0
  124. data/lib/wx/doc/gen/file_dialog_custom_control.rb +165 -0
  125. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +158 -0
  126. data/lib/wx/doc/gen/file_dir_picker_event.rb +100 -0
  127. data/lib/wx/doc/gen/file_picker_ctrl.rb +132 -0
  128. data/lib/wx/doc/gen/file_system.rb +232 -0
  129. data/lib/wx/doc/gen/find_dialog_event.rb +126 -0
  130. data/lib/wx/doc/gen/find_replace_data.rb +60 -0
  131. data/lib/wx/doc/gen/find_replace_dialog.rb +58 -0
  132. data/lib/wx/doc/gen/flex_grid_sizer.rb +199 -0
  133. data/lib/wx/doc/gen/font.rb +1379 -0
  134. data/lib/wx/doc/gen/font_data.rb +151 -0
  135. data/lib/wx/doc/gen/font_dialog.rb +88 -0
  136. data/lib/wx/doc/gen/font_picker_ctrl.rb +143 -0
  137. data/lib/wx/doc/gen/font_picker_event.rb +65 -0
  138. data/lib/wx/doc/gen/frame.rb +352 -0
  139. data/lib/wx/doc/gen/fs_file.rb +337 -0
  140. data/lib/wx/doc/gen/functions.rb +10 -0
  141. data/lib/wx/doc/gen/gauge.rb +157 -0
  142. data/lib/wx/doc/gen/gb_sizer_item.rb +68 -0
  143. data/lib/wx/doc/gen/gcdc.rb +46 -0
  144. data/lib/wx/doc/gen/gdi_common.rb +1271 -0
  145. data/lib/wx/doc/gen/gdi_object.rb +31 -0
  146. data/lib/wx/doc/gen/generic_about_dialog.rb +140 -0
  147. data/lib/wx/doc/gen/generic_dir_ctrl.rb +223 -0
  148. data/lib/wx/doc/gen/geometry.rb +661 -0
  149. data/lib/wx/doc/gen/graphics_context.rb +1184 -0
  150. data/lib/wx/doc/gen/graphics_object.rb +750 -0
  151. data/lib/wx/doc/gen/grid/event_list.rb +191 -0
  152. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +40 -0
  153. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +280 -0
  154. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +35 -0
  155. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +37 -0
  156. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +49 -0
  157. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +35 -0
  158. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +46 -0
  159. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +38 -0
  160. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +45 -0
  161. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +40 -0
  162. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +197 -0
  163. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +39 -0
  164. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +44 -0
  165. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +45 -0
  166. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +79 -0
  167. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +46 -0
  168. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +35 -0
  169. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +108 -0
  170. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +35 -0
  171. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +49 -0
  172. data/lib/wx/doc/gen/grid/grid_ctrl.rb +3002 -0
  173. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +95 -0
  174. data/lib/wx/doc/gen/grid/grid_event.rb +129 -0
  175. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +104 -0
  176. data/lib/wx/doc/gen/grid/grid_size_event.rb +85 -0
  177. data/lib/wx/doc/gen/grid/grid_string_table.rb +142 -0
  178. data/lib/wx/doc/gen/grid/grid_table_base.rb +317 -0
  179. data/lib/wx/doc/gen/grid/grid_table_message.rb +81 -0
  180. data/lib/wx/doc/gen/grid_bag_sizer.rb +323 -0
  181. data/lib/wx/doc/gen/grid_sizer.rb +195 -0
  182. data/lib/wx/doc/gen/gui_event_loop.rb +159 -0
  183. data/lib/wx/doc/gen/h_scrolled_window.rb +562 -0
  184. data/lib/wx/doc/gen/header_ctrl.rb +880 -0
  185. data/lib/wx/doc/gen/header_ctrl_event.rb +133 -0
  186. data/lib/wx/doc/gen/help_controller.rb +195 -0
  187. data/lib/wx/doc/gen/help_provider.rb +98 -0
  188. data/lib/wx/doc/gen/html/event_list.rb +38 -0
  189. data/lib/wx/doc/gen/html/html_cell.rb +536 -0
  190. data/lib/wx/doc/gen/html/html_cell_event.rb +69 -0
  191. data/lib/wx/doc/gen/html/html_data_object.rb +42 -0
  192. data/lib/wx/doc/gen/html/html_easy_printing.rb +203 -0
  193. data/lib/wx/doc/gen/html/html_help_controller.rb +340 -0
  194. data/lib/wx/doc/gen/html/html_help_data.rb +159 -0
  195. data/lib/wx/doc/gen/html/html_help_window.rb +258 -0
  196. data/lib/wx/doc/gen/html/html_link_event.rb +41 -0
  197. data/lib/wx/doc/gen/html/html_list_box.rb +346 -0
  198. data/lib/wx/doc/gen/html/html_printout.rb +109 -0
  199. data/lib/wx/doc/gen/html/html_window.rb +461 -0
  200. data/lib/wx/doc/gen/hyperlink_ctrl.rb +311 -0
  201. data/lib/wx/doc/gen/hyperlink_event.rb +44 -0
  202. data/lib/wx/doc/gen/icon.rb +267 -0
  203. data/lib/wx/doc/gen/icon_location.rb +40 -0
  204. data/lib/wx/doc/gen/image.rb +1371 -0
  205. data/lib/wx/doc/gen/image_list.rb +168 -0
  206. data/lib/wx/doc/gen/info_bar.rb +195 -0
  207. data/lib/wx/doc/gen/keyboard_state.rb +140 -0
  208. data/lib/wx/doc/gen/list_box.rb +304 -0
  209. data/lib/wx/doc/gen/list_ctrl.rb +1774 -0
  210. data/lib/wx/doc/gen/list_event.rb +208 -0
  211. data/lib/wx/doc/gen/listbook.rb +116 -0
  212. data/lib/wx/doc/gen/locale.rb +4293 -0
  213. data/lib/wx/doc/gen/log.rb +603 -0
  214. data/lib/wx/doc/gen/mdi_client_window.rb +47 -0
  215. data/lib/wx/doc/gen/mdi_frame.rb +324 -0
  216. data/lib/wx/doc/gen/media_ctrl.rb +269 -0
  217. data/lib/wx/doc/gen/media_event.rb +117 -0
  218. data/lib/wx/doc/gen/memory_dc.rb +174 -0
  219. data/lib/wx/doc/gen/menu.rb +509 -0
  220. data/lib/wx/doc/gen/menu_bar.rb +287 -0
  221. data/lib/wx/doc/gen/menu_item.rb +362 -0
  222. data/lib/wx/doc/gen/message_dialog.rb +238 -0
  223. data/lib/wx/doc/gen/mini_frame.rb +108 -0
  224. data/lib/wx/doc/gen/mirror_dc.rb +22 -0
  225. data/lib/wx/doc/gen/mouse_state.rb +150 -0
  226. data/lib/wx/doc/gen/multi_choice_dialog.rb +80 -0
  227. data/lib/wx/doc/gen/non_owned_window.rb +49 -0
  228. data/lib/wx/doc/gen/notebook.rb +278 -0
  229. data/lib/wx/doc/gen/num_validator.rb +37 -0
  230. data/lib/wx/doc/gen/number_entry_dialog.rb +93 -0
  231. data/lib/wx/doc/gen/object.rb +59 -0
  232. data/lib/wx/doc/gen/owner_drawn_combo_box.rb +395 -0
  233. data/lib/wx/doc/gen/paint_dc.rb +27 -0
  234. data/lib/wx/doc/gen/palette.rb +92 -0
  235. data/lib/wx/doc/gen/panel.rb +127 -0
  236. data/lib/wx/doc/gen/pen.rb +511 -0
  237. data/lib/wx/doc/gen/persistence_manager.rb +135 -0
  238. data/lib/wx/doc/gen/persistent_object.rb +52 -0
  239. data/lib/wx/doc/gen/persistent_window.rb +241 -0
  240. data/lib/wx/doc/gen/pg/event_list.rb +106 -0
  241. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +54 -0
  242. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +292 -0
  243. data/lib/wx/doc/gen/pg/pg_cell.rb +177 -0
  244. data/lib/wx/doc/gen/pg/pg_editor.rb +721 -0
  245. data/lib/wx/doc/gen/pg/pg_multi_button.rb +152 -0
  246. data/lib/wx/doc/gen/pg/pg_properties.rb +2829 -0
  247. data/lib/wx/doc/gen/pg/pg_property.rb +2078 -0
  248. data/lib/wx/doc/gen/pg/pg_validation_info.rb +344 -0
  249. data/lib/wx/doc/gen/pg/property_grid.rb +740 -0
  250. data/lib/wx/doc/gen/pg/property_grid_event.rb +184 -0
  251. data/lib/wx/doc/gen/pg/property_grid_interface.rb +1098 -0
  252. data/lib/wx/doc/gen/pg/property_grid_manager.rb +415 -0
  253. data/lib/wx/doc/gen/pg/property_grid_page.rb +354 -0
  254. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +165 -0
  255. data/lib/wx/doc/gen/picker_base.rb +152 -0
  256. data/lib/wx/doc/gen/platform_info.rb +622 -0
  257. data/lib/wx/doc/gen/popup_window.rb +107 -0
  258. data/lib/wx/doc/gen/progress_dialog.rb +100 -0
  259. data/lib/wx/doc/gen/property_sheet_dialog.rb +216 -0
  260. data/lib/wx/doc/gen/prt/event_list.rb +17 -0
  261. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +44 -0
  262. data/lib/wx/doc/gen/prt/post_script_dc.rb +30 -0
  263. data/lib/wx/doc/gen/prt/preview_frame.rb +78 -0
  264. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +151 -0
  265. data/lib/wx/doc/gen/prt/print_data.rb +804 -0
  266. data/lib/wx/doc/gen/prt/print_dialog.rb +55 -0
  267. data/lib/wx/doc/gen/prt/printer.rb +518 -0
  268. data/lib/wx/doc/gen/prt/printer_dc.rb +37 -0
  269. data/lib/wx/doc/gen/query_layout_info_event.rb +106 -0
  270. data/lib/wx/doc/gen/radio_box.rb +306 -0
  271. data/lib/wx/doc/gen/radio_button.rb +159 -0
  272. data/lib/wx/doc/gen/rbn/event_list.rb +136 -0
  273. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +1132 -0
  274. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +308 -0
  275. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +45 -0
  276. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +458 -0
  277. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +63 -0
  278. data/lib/wx/doc/gen/rbn/ribbon_control.rb +143 -0
  279. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +229 -0
  280. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +55 -0
  281. data/lib/wx/doc/gen/rbn/ribbon_page.rb +174 -0
  282. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +270 -0
  283. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +45 -0
  284. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +360 -0
  285. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +42 -0
  286. data/lib/wx/doc/gen/rearrange_ctrl.rb +78 -0
  287. data/lib/wx/doc/gen/rearrange_list.rb +123 -0
  288. data/lib/wx/doc/gen/region.rb +380 -0
  289. data/lib/wx/doc/gen/region_iterator.rb +76 -0
  290. data/lib/wx/doc/gen/rich_tool_tip.rb +154 -0
  291. data/lib/wx/doc/gen/rtc/event_list.rb +125 -0
  292. data/lib/wx/doc/gen/rtc/rich_text_box.rb +445 -0
  293. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +1188 -0
  294. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +41 -0
  295. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +538 -0
  296. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +2103 -0
  297. data/lib/wx/doc/gen/rtc/rich_text_event.rb +173 -0
  298. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +181 -0
  299. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +319 -0
  300. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +193 -0
  301. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +102 -0
  302. data/lib/wx/doc/gen/rtc/rich_text_image.rb +337 -0
  303. data/lib/wx/doc/gen/rtc/rich_text_object.rb +2922 -0
  304. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1240 -0
  305. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +258 -0
  306. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +344 -0
  307. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +227 -0
  308. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +59 -0
  309. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +169 -0
  310. data/lib/wx/doc/gen/sash_event.rb +147 -0
  311. data/lib/wx/doc/gen/sash_layout_window.rb +232 -0
  312. data/lib/wx/doc/gen/sash_window.rb +171 -0
  313. data/lib/wx/doc/gen/scaled_dc.rb +10 -0
  314. data/lib/wx/doc/gen/screen_dc.rb +30 -0
  315. data/lib/wx/doc/gen/scroll_bar.rb +204 -0
  316. data/lib/wx/doc/gen/scrolled_canvas.rb +410 -0
  317. data/lib/wx/doc/gen/scrolled_control.rb +410 -0
  318. data/lib/wx/doc/gen/scrolled_window.rb +430 -0
  319. data/lib/wx/doc/gen/search_ctrl.rb +159 -0
  320. data/lib/wx/doc/gen/secret_store.rb +116 -0
  321. data/lib/wx/doc/gen/simplebook.rb +110 -0
  322. data/lib/wx/doc/gen/single_choice_dialog.rb +89 -0
  323. data/lib/wx/doc/gen/sizer.rb +945 -0
  324. data/lib/wx/doc/gen/sizer_item.rb +244 -0
  325. data/lib/wx/doc/gen/slider.rb +342 -0
  326. data/lib/wx/doc/gen/spin_button.rb +157 -0
  327. data/lib/wx/doc/gen/spin_ctrl.rb +231 -0
  328. data/lib/wx/doc/gen/spin_ctrl_double.rb +192 -0
  329. data/lib/wx/doc/gen/spin_double_event.rb +55 -0
  330. data/lib/wx/doc/gen/spin_event.rb +51 -0
  331. data/lib/wx/doc/gen/splash_screen.rb +113 -0
  332. data/lib/wx/doc/gen/splitter_event.rb +99 -0
  333. data/lib/wx/doc/gen/splitter_window.rb +498 -0
  334. data/lib/wx/doc/gen/static_bitmap.rb +256 -0
  335. data/lib/wx/doc/gen/static_box.rb +180 -0
  336. data/lib/wx/doc/gen/static_box_sizer.rb +85 -0
  337. data/lib/wx/doc/gen/static_line.rb +83 -0
  338. data/lib/wx/doc/gen/static_text.rb +127 -0
  339. data/lib/wx/doc/gen/status_bar.rb +290 -0
  340. data/lib/wx/doc/gen/stc/event_list.rb +221 -0
  341. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4474 -0
  342. data/lib/wx/doc/gen/stc/styled_text_event.rb +8762 -0
  343. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +129 -0
  344. data/lib/wx/doc/gen/svg_file_dc.rb +164 -0
  345. data/lib/wx/doc/gen/system_options.rb +129 -0
  346. data/lib/wx/doc/gen/system_settings.rb +507 -0
  347. data/lib/wx/doc/gen/task_bar_icon.rb +127 -0
  348. data/lib/wx/doc/gen/task_bar_icon_event.rb +88 -0
  349. data/lib/wx/doc/gen/text_attr.rb +756 -0
  350. data/lib/wx/doc/gen/text_ctrl.rb +1033 -0
  351. data/lib/wx/doc/gen/text_entry.rb +441 -0
  352. data/lib/wx/doc/gen/text_entry_dialog.rb +220 -0
  353. data/lib/wx/doc/gen/text_validator.rb +245 -0
  354. data/lib/wx/doc/gen/time_picker_ctrl.rb +128 -0
  355. data/lib/wx/doc/gen/timer.rb +119 -0
  356. data/lib/wx/doc/gen/timer_event.rb +68 -0
  357. data/lib/wx/doc/gen/tip_provider.rb +63 -0
  358. data/lib/wx/doc/gen/tip_window.rb +51 -0
  359. data/lib/wx/doc/gen/toggle_button.rb +182 -0
  360. data/lib/wx/doc/gen/tool_bar.rb +890 -0
  361. data/lib/wx/doc/gen/tool_tip.rb +86 -0
  362. data/lib/wx/doc/gen/toolbook.rb +118 -0
  363. data/lib/wx/doc/gen/top_level_window.rb +497 -0
  364. data/lib/wx/doc/gen/tree_ctrl.rb +1052 -0
  365. data/lib/wx/doc/gen/tree_event.rb +127 -0
  366. data/lib/wx/doc/gen/treebook.rb +180 -0
  367. data/lib/wx/doc/gen/ui_action_simulator.rb +109 -0
  368. data/lib/wx/doc/gen/utils.rb +273 -0
  369. data/lib/wx/doc/gen/v_list_box.rb +272 -0
  370. data/lib/wx/doc/gen/v_scrolled_canvas.rb +195 -0
  371. data/lib/wx/doc/gen/v_scrolled_window.rb +191 -0
  372. data/lib/wx/doc/gen/validator.rb +68 -0
  373. data/lib/wx/doc/gen/variant.rb +294 -0
  374. data/lib/wx/doc/gen/window.rb +2917 -0
  375. data/lib/wx/doc/gen/window_dc.rb +38 -0
  376. data/lib/wx/doc/gen/window_disabler.rb +30 -0
  377. data/lib/wx/doc/gen/with_images.rb +84 -0
  378. data/lib/wx/doc/gen/wizard.rb +257 -0
  379. data/lib/wx/doc/gen/wizard_event.rb +113 -0
  380. data/lib/wx/doc/gen/wizard_page.rb +65 -0
  381. data/lib/wx/doc/gen/wizard_page_simple.rb +88 -0
  382. data/lib/wx/doc/gen/wrap_sizer.rb +79 -0
  383. data/lib/wx/doc/gen/xml_node.rb +316 -0
  384. data/lib/wx/doc/gen/xml_resource.rb +320 -0
  385. data/lib/wx/doc/generic_validator.rb +5 -0
  386. data/lib/wx/doc/tip_window.rb +18 -6
  387. data/lib/wx/grid/events/evt_list.rb +166 -0
  388. data/lib/wx/html/events/evt_list.rb +27 -0
  389. data/lib/wx/html/simple_html_listbox.rb +46 -33
  390. data/lib/wx/keyword_defs.rb +9 -0
  391. data/lib/wx/pg/events/evt_list.rb +73 -0
  392. data/lib/wx/pg/pg_property.rb +26 -0
  393. data/lib/wx/pg/property_grid_interface.rb +2 -2
  394. data/lib/wx/rbn/events/evt_list.rb +102 -0
  395. data/lib/wx/rtc/events/evt_list.rb +98 -0
  396. data/lib/wx/rtc/ext/rich_text_ctrl.rb +24 -0
  397. data/lib/wx/stc/events/evt_list.rb +178 -0
  398. data/lib/wx/version.rb +1 -1
  399. data/lib/wx/wxruby/cmd/setup.rb +6 -0
  400. data/rakelib/configure.rb +9 -0
  401. data/rakelib/gem.rake +3 -2
  402. data/rakelib/lib/config/linux.rb +1 -1
  403. data/rakelib/lib/config/macosx.rb +15 -1
  404. data/rakelib/lib/config/pkgman/linux.rb +7 -2
  405. data/rakelib/lib/config/unixish.rb +3 -3
  406. data/rakelib/lib/config.rb +16 -5
  407. data/rakelib/lib/core/include/swigdirector.inc +3 -3
  408. data/rakelib/lib/core/include/swigrubyerrors.inc +4 -8
  409. data/rakelib/lib/core/include/swigrubyrun.inc +20 -4
  410. data/rakelib/lib/core/include/swigrun.inc +189 -0
  411. data/rakelib/lib/core/package.rb +3 -1
  412. data/rakelib/lib/director/accelerator.rb +1 -1
  413. data/rakelib/lib/director/animation.rb +1 -0
  414. data/rakelib/lib/director/app_traits.rb +1 -1
  415. data/rakelib/lib/director/aui_manager.rb +21 -14
  416. data/rakelib/lib/director/aui_mdi_child_frame.rb +2 -0
  417. data/rakelib/lib/director/aui_mdi_parent_frame.rb +4 -0
  418. data/rakelib/lib/director/aui_notebook.rb +20 -3
  419. data/rakelib/lib/director/aui_tab_ctrl.rb +64 -106
  420. data/rakelib/lib/director/calendar_ctrl.rb +72 -14
  421. data/rakelib/lib/director/clipboard.rb +2 -0
  422. data/rakelib/lib/director/data_object.rb +15 -7
  423. data/rakelib/lib/director/date_picker_ctrl.rb +4 -1
  424. data/rakelib/lib/director/display.rb +81 -0
  425. data/rakelib/lib/director/event.rb +33 -16
  426. data/rakelib/lib/director/event_handler.rb +27 -2
  427. data/rakelib/lib/director/functions.rb +9 -0
  428. data/rakelib/lib/director/geometry.rb +5 -0
  429. data/rakelib/lib/director/grid_ctrl.rb +123 -28
  430. data/rakelib/lib/director/help_provider.rb +1 -1
  431. data/rakelib/lib/director/html_listbox.rb +16 -3
  432. data/rakelib/lib/director/hvscrolled.rb +7 -106
  433. data/rakelib/lib/director/image_list.rb +1 -0
  434. data/rakelib/lib/director/mdi_frame.rb +4 -0
  435. data/rakelib/lib/director/menu.rb +56 -15
  436. data/rakelib/lib/director/menu_bar.rb +62 -0
  437. data/rakelib/lib/director/menu_item.rb +7 -1
  438. data/rakelib/lib/director/num_validator.rb +27 -0
  439. data/rakelib/lib/director/numeric_property_validator.rb +9 -0
  440. data/rakelib/lib/director/popup_window.rb +2 -0
  441. data/rakelib/lib/director/preview_frame.rb +29 -6
  442. data/rakelib/lib/director/printer.rb +59 -5
  443. data/rakelib/lib/director/property_grid.rb +37 -18
  444. data/rakelib/lib/director/property_grid_interface.rb +10 -8
  445. data/rakelib/lib/director/property_grid_manager.rb +99 -39
  446. data/rakelib/lib/director/property_grid_page.rb +60 -0
  447. data/rakelib/lib/director/rich_tooltip.rb +22 -0
  448. data/rakelib/lib/director/richtext_ctrl.rb +5 -0
  449. data/rakelib/lib/director/richtext_object.rb +13 -4
  450. data/rakelib/lib/director/richtext_style_listbox.rb +4 -1
  451. data/rakelib/lib/director/scrolled_t.rb +3 -0
  452. data/rakelib/lib/director/searchctrl.rb +1 -0
  453. data/rakelib/lib/director/task_bar_icon.rb +14 -8
  454. data/rakelib/lib/director/text_validator.rb +9 -0
  455. data/rakelib/lib/director/tip_window.rb +117 -6
  456. data/rakelib/lib/director/tool_bar.rb +6 -0
  457. data/rakelib/lib/director/validator.rb +12 -0
  458. data/rakelib/lib/director/variant.rb +36 -20
  459. data/rakelib/lib/director/vlistbox.rb +25 -22
  460. data/rakelib/lib/director/window.rb +10 -1
  461. data/rakelib/lib/director/xml_resource.rb +6 -0
  462. data/rakelib/lib/generate/doc/aui_manager.yaml +1 -1
  463. data/rakelib/lib/generate/doc/rich_tool_tip.yaml +26 -0
  464. data/rakelib/lib/generate/doc.rb +12 -7
  465. data/rakelib/lib/generate/interface.rb +16 -1
  466. data/rakelib/lib/specs/interfaces.rb +3 -1
  467. data/rakelib/lib/swig_runner.rb +10 -10
  468. data/rakelib/lib/typemap/aui_tabctrl.rb +46 -0
  469. data/rakelib/lib/typemap/common.rb +3 -3
  470. data/rakelib/lib/typemap/print_page_range.rb +32 -8
  471. data/samples/art/wxruby-512x512.png +0 -0
  472. data/samples/calendar/calendar.rb +64 -1
  473. data/samples/dialogs/dialogs.rb +172 -0
  474. data/samples/dialogs/tip.xpm +157 -0
  475. data/samples/drawing/maths_images.rb +1 -1
  476. data/samples/event/event.rb +1 -1
  477. data/samples/printing/printing2.rb +1 -1
  478. data/samples/sampler.rb +26 -8
  479. data/samples/text/textctrl.rb +2 -2
  480. data/samples/treectrl/treectrl.rb +2 -2
  481. data/tests/lib/leaked_process_event_exception_test.rb +1 -1
  482. data/tests/lib/leaked_queued_event_exception_test.rb +1 -1
  483. data/tests/lib/wxapp_runner.rb +31 -41
  484. data/tests/lib/wxframe_runner.rb +23 -11
  485. data/tests/lib/wxrb_test.rb +58 -0
  486. data/tests/test_app_event_filter.rb +1 -1
  487. data/tests/test_app_exit_exception.rb +3 -3
  488. data/tests/test_app_init_exception.rb +3 -3
  489. data/tests/test_app_traits.rb +24 -21
  490. data/tests/test_art.rb +7 -7
  491. data/tests/test_art_provider.rb +1 -1
  492. data/tests/test_basic.rb +2 -2
  493. data/tests/test_book_controls.rb +1 -1
  494. data/tests/test_box_sizer.rb +1 -1
  495. data/tests/test_clipboard.rb +5 -5
  496. data/tests/test_combo_ctrl.rb +2 -2
  497. data/tests/test_config.rb +11 -1
  498. data/tests/test_dc.rb +1 -1
  499. data/tests/test_dialog.rb +1 -1
  500. data/tests/test_event_handling.rb +1 -1
  501. data/tests/test_events.rb +1 -1
  502. data/tests/test_exceptions.rb +2 -2
  503. data/tests/test_ext_controls.rb +10 -10
  504. data/tests/test_file_dialog.rb +1 -1
  505. data/tests/test_font.rb +1 -1
  506. data/tests/test_gdi_object.rb +1 -1
  507. data/tests/test_geometry.rb +2 -2
  508. data/tests/test_grid_sizer.rb +2 -2
  509. data/tests/test_intl.rb +1 -1
  510. data/tests/test_item_data.rb +12 -12
  511. data/tests/test_list_ctrl.rb +1 -1
  512. data/tests/test_log.rb +2 -2
  513. data/tests/test_media_ctrl.rb +1 -1
  514. data/tests/test_menu.rb +114 -43
  515. data/tests/test_proof_check.rb +1 -1
  516. data/tests/test_propgrid.rb +31 -31
  517. data/tests/test_richtext.rb +10 -24
  518. data/tests/test_secret_store.rb +1 -1
  519. data/tests/test_sizer.rb +1 -1
  520. data/tests/test_std_controls.rb +8 -8
  521. data/tests/test_styled_text_ctrl.rb +1 -1
  522. data/tests/test_timer.rb +1 -1
  523. data/tests/test_tree_ctrl.rb +1 -1
  524. data/tests/test_validators.rb +79 -36
  525. data/tests/test_variant.rb +1 -1
  526. data/tests/test_window.rb +11 -11
  527. data/tests/testapp.rb +2 -2
  528. data/tests/testapp_noframe.rb +2 -2
  529. metadata +400 -11
  530. data/lib/wx/aui/aui_tab_ctrl.rb +0 -18
@@ -0,0 +1,890 @@
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
+ #
11
+ #
12
+ #
13
+ # @wxrb_require USE_TOOLBAR
14
+ class ToolBarToolStyle < Wx::Enum
15
+
16
+ #
17
+ #
18
+ TOOL_STYLE_BUTTON = Wx::ToolBarToolStyle.new(1)
19
+
20
+ #
21
+ #
22
+ TOOL_STYLE_SEPARATOR = Wx::ToolBarToolStyle.new(2)
23
+
24
+ #
25
+ #
26
+ TOOL_STYLE_CONTROL = Wx::ToolBarToolStyle.new(3)
27
+
28
+ end # ToolBarToolStyle
29
+
30
+ # lay out the toolbar horizontally
31
+ #
32
+ TB_HORIZONTAL = 4
33
+
34
+ #
35
+ #
36
+ TB_TOP = 4
37
+
38
+ # lay out the toolbar vertically
39
+ #
40
+ TB_VERTICAL = 8
41
+
42
+ #
43
+ #
44
+ TB_LEFT = 8
45
+
46
+ # "flat" buttons (Win32/GTK only)
47
+ #
48
+ TB_FLAT = 32
49
+
50
+ # dockable toolbar (GTK only)
51
+ #
52
+ TB_DOCKABLE = 64
53
+
54
+ # don't show the icons (they're shown by default)
55
+ #
56
+ TB_NOICONS = 128
57
+
58
+ # show the text (not shown by default)
59
+ #
60
+ TB_TEXT = 256
61
+
62
+ # don't show the divider between toolbar and the window (Win32 only)
63
+ #
64
+ TB_NODIVIDER = 512
65
+
66
+ # no automatic alignment (Win32 only, useless)
67
+ #
68
+ TB_NOALIGN = 1024
69
+
70
+ # show the text and the icons alongside, not vertically stacked (Win32/GTK)
71
+ #
72
+ TB_HORZ_LAYOUT = 2048
73
+
74
+ #
75
+ #
76
+ TB_HORZ_TEXT = 2304
77
+
78
+ # don't show the toolbar short help tooltips
79
+ #
80
+ TB_NO_TOOLTIPS = 4096
81
+
82
+ # lay out toolbar at the bottom of the window
83
+ #
84
+ TB_BOTTOM = 8192
85
+
86
+ # lay out toolbar at the right edge of the window
87
+ #
88
+ TB_RIGHT = 16384
89
+
90
+ # flags that are closest to the native look
91
+ #
92
+ TB_DEFAULT_STYLE = 4
93
+
94
+ # A toolbar is a bar of buttons and/or other controls usually placed below the menu bar in a {Wx::Frame}.
95
+ #
96
+ # You may create a toolbar that is managed by a frame calling {Wx::Frame#create_tool_bar}. Where you manage your own toolbars, create {Wx::ToolBar} as usual.
97
+ # There are several different types of tools you can add to a toolbar. These types are controlled by the {Wx::ItemKind} enumeration.
98
+ # Note that many methods in {Wx::ToolBar} such as {Wx::ToolBar#add_tool} return a <code>wxToolBarToolBase*</code> object. This should be regarded as an opaque handle representing the newly added toolbar item, providing access to its id and position within the toolbar. Changes to the item's state should be made through calls to {Wx::ToolBar} methods, for example {Wx::ToolBar#enable_tool}. Calls to {Wx::ToolBarToolBase} methods (undocumented by purpose) will not change the visible state of the item within the tool bar.
99
+ # After you have added all the tools you need, you must call {Wx::ToolBar#realize} to effectively construct and display the toolbar.
100
+ # <b>WXMSW note</b>: Note that under WXMSW toolbar paints tools to reflect system-wide colours. If you use more than 16 colours in your tool bitmaps, you may wish to suppress this behaviour, otherwise system colours in your bitmaps will inadvertently be mapped to system colours. To do this, set the msw.remap system option before creating the toolbar:
101
+ # ```ruby
102
+ # Wx::SystemOptions.set_option('msw.remap', 0)
103
+ # ```
104
+ # If you wish to use 32-bit images (which include an alpha channel for transparency) use:
105
+ # ```ruby
106
+ # Wx::SystemOptions.set_option('msw.remap', 2)
107
+ # ```
108
+ # Then colour remapping is switched off, and a transparent background used.
109
+ # ### Styles
110
+ #
111
+ # This class supports the following styles:
112
+ #
113
+ # - {Wx::TB_FLAT}: Gives the toolbar a flat look (Windows and GTK only).
114
+ #
115
+ # - {Wx::TB_DOCKABLE}: Makes the toolbar floatable and dockable (GTK only).
116
+ #
117
+ # - {Wx::TB_HORIZONTAL}: Specifies horizontal layout (default).
118
+ #
119
+ # - {Wx::TB_VERTICAL}: Specifies vertical layout.
120
+ #
121
+ # - {Wx::TB_TEXT}: Shows the text in the toolbar buttons; by default only icons are shown.
122
+ #
123
+ # - {Wx::TB_NOICONS}: Specifies no icons in the toolbar buttons; by default they are shown.
124
+ #
125
+ # - {Wx::TB_NODIVIDER}: Specifies no divider (border) above the toolbar (Windows only)
126
+ #
127
+ # - {Wx::TB_NOALIGN}: Specifies no alignment with the parent window (Windows only, not very useful).
128
+ #
129
+ # - {Wx::TB_HORZ_LAYOUT}: Shows the text and the icons alongside, not vertically stacked (Windows and GTK 2 only). This style must be used with {Wx::TB_TEXT}.
130
+ #
131
+ # - {Wx::TB_HORZ_TEXT}: Combination of {Wx::TB_HORZ_LAYOUT} and {Wx::TB_TEXT}.
132
+ #
133
+ # - {Wx::TB_NO_TOOLTIPS}: Don't show the short help tooltips for the tools when the mouse hovers over them.
134
+ #
135
+ # - {Wx::TB_BOTTOM}: Align the toolbar at the bottom of parent window.
136
+ #
137
+ # - {Wx::TB_RIGHT}: Align the toolbar at the right side of parent window.
138
+ #
139
+ # - {Wx::TB_DEFAULT_STYLE}: The {Wx::TB_HORIZONTAL} style. This style is new since wxWidgets 2.9.5.
140
+ #
141
+ # See also Window Styles. Note that the WXMSW native toolbar ignores {Wx::TB_NOICONS} style. Also, toggling the {Wx::TB_TEXT} works only if the style was initially on.
142
+ # ### Events emitted by this class
143
+ #
144
+ # The following event-handler methods redirect the events to member method or handler blocks for {Wx::CommandEvent} events.
145
+ # Event handler methods for events emitted by this class:
146
+ #
147
+ # - {Wx::EvtHandler#evt_tool}(id, meth = nil, &block): Process a {Wx::EVT_TOOL} event (a synonym for {Wx::EVT_MENU}). Pass the id of the tool.
148
+ #
149
+ # - {Wx::EvtHandler#evt_menu}(id, meth = nil, &block): The same as EVT_TOOL().
150
+ #
151
+ # - {Wx::EvtHandler#evt_tool_range}(id1, id2, meth = nil, &block): Process a {Wx::EVT_TOOL} event for a range of identifiers. Pass the ids of the tools.
152
+ #
153
+ # - {Wx::EvtHandler#evt_menu_range}(id1, id2, meth = nil, &block): The same as EVT_TOOL_RANGE().
154
+ #
155
+ # - {Wx::EvtHandler#evt_tool_rclicked}(id, meth = nil, &block): Process a {Wx::EVT_TOOL_RCLICKED} event. Pass the id of the tool. (Not available on WXOSX.)
156
+ #
157
+ # - {Wx::EvtHandler#evt_tool_rclicked_range}(id1, id2, meth = nil, &block): Process a {Wx::EVT_TOOL_RCLICKED} event for a range of ids. Pass the ids of the tools. (Not available on WXOSX.)
158
+ #
159
+ # - {Wx::EvtHandler#evt_tool_enter}(id, meth = nil, &block): Process a {Wx::EVT_TOOL_ENTER} event. Pass the id of the toolbar itself. The value of {Wx::CommandEvent#get_selection} is the tool id, or -1 if the mouse cursor has moved off a tool. (Not available on WXOSX.)
160
+ #
161
+ # - {Wx::EvtHandler#evt_tool_dropdown}(id, meth = nil, &block): Process a {Wx::EVT_TOOL_DROPDOWN} event. If unhandled, displays the default dropdown menu set using {Wx::ToolBar#set_dropdown_menu}.
162
+ #
163
+ # The toolbar class emits menu commands in the same way that a frame menubar does, so you can use one EVT_MENU() macro for both a menu item and a toolbar button. The event handler functions take a {Wx::CommandEvent} argument. For most event macros, the identifier of the tool is passed, but for EVT_TOOL_ENTER() the toolbar window identifier is passed and the tool identifier is retrieved from the {Wx::CommandEvent}. This is because the identifier may be {Wx::StandardID::ID_ANY} when the mouse moves off a tool, and {Wx::StandardID::ID_ANY} is not allowed as an identifier in the event system.
164
+ #
165
+ # Category: Miscellaneous Windows
166
+ # @see Toolbar Overview
167
+ #
168
+ #
169
+ # @wxrb_require USE_TOOLBAR
170
+ class ToolBar < Control
171
+
172
+ # @overload add_tool(toolId, label, bitmap, shortHelp=(''), kind=Wx::ItemKind::ITEM_NORMAL)
173
+ # Adds a tool to the toolbar.
174
+ #
175
+ # This most commonly used version has fewer parameters than the full version below which specifies the more rarely used button features.
176
+ #
177
+ # <div class="wxrb-remark">
178
+ # <b>Remark:</b>
179
+ # <p>After you have added tools to a toolbar, you must call {Wx::ToolBar#realize} in order to have the tools appear.
180
+ # </p>
181
+ # </div>
182
+ # @see Wx::ToolBar#add_separator
183
+ # @see Wx::ToolBar#add_check_tool
184
+ # @see Wx::ToolBar#add_radio_tool
185
+ # @see Wx::ToolBar#insert_tool
186
+ # @see Wx::ToolBar#delete_tool
187
+ # @see Wx::ToolBar#realize
188
+ # @see Wx::ToolBar#set_dropdown_menu
189
+ # @param toolId [Integer] An integer by which the tool may be identified in subsequent operations.
190
+ # @param label [String] The string to be displayed with the tool. This string may include mnemonics, i.e. characters prefixed by an ampersand ("&"), but they are stripped from it and not actually shown in the toolbar as tools can't be activated from keyboard.
191
+ # @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image] The primary tool bitmap.
192
+ # @param shortHelp [String] This string is used for the tools tooltip.
193
+ # @param kind [Wx::ItemKind] May be {Wx::ItemKind::ITEM_NORMAL} for a normal button (default), {Wx::ItemKind::ITEM_CHECK} for a checkable tool (such tool stays pressed after it had been toggled) or {Wx::ItemKind::ITEM_RADIO} for a checkable tool which makes part of a radio group of tools each of which is automatically unchecked whenever another button in the group is checked. {Wx::ItemKind::ITEM_DROPDOWN} specifies that a drop-down menu button will appear next to the tool button (only GTK+ and MSW). Call {Wx::ToolBar#set_dropdown_menu} afterwards.
194
+ # @return [Wx::ToolBarToolBase]
195
+ # @overload add_tool(toolId, label, bitmap, bmpDisabled, kind=Wx::ItemKind::ITEM_NORMAL, shortHelp=(''), longHelp=(''), clientData=nil)
196
+ # Adds a tool to the toolbar.
197
+ #
198
+ # <div class="wxrb-remark">
199
+ # <b>Remark:</b>
200
+ # <p>After you have added tools to a toolbar, you must call {Wx::ToolBar#realize} in order to have the tools appear.
201
+ # </p>
202
+ # </div>
203
+ # @see Wx::ToolBar#add_separator
204
+ # @see Wx::ToolBar#add_check_tool
205
+ # @see Wx::ToolBar#add_radio_tool
206
+ # @see Wx::ToolBar#insert_tool
207
+ # @see Wx::ToolBar#delete_tool
208
+ # @see Wx::ToolBar#realize
209
+ # @see Wx::ToolBar#set_dropdown_menu
210
+ # @param toolId [Integer] An integer by which the tool may be identified in subsequent operations.
211
+ # @param label [String] The string to be displayed with the tool.
212
+ # @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image] The primary tool bitmap.
213
+ # @param bmpDisabled [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image] The bitmap used when the tool is disabled. If it is equal to {Wx::NULL_BITMAP} (default), the disabled bitmap is automatically generated by greying the normal one.
214
+ # @param kind [Wx::ItemKind] May be {Wx::ItemKind::ITEM_NORMAL} for a normal button (default), {Wx::ItemKind::ITEM_CHECK} for a checkable tool (such tool stays pressed after it had been toggled) or {Wx::ItemKind::ITEM_RADIO} for a checkable tool which makes part of a radio group of tools each of which is automatically unchecked whenever another button in the group is checked. {Wx::ItemKind::ITEM_DROPDOWN} specifies that a drop-down menu button will appear next to the tool button (only GTK+ and MSW). Call {Wx::ToolBar#set_dropdown_menu} afterwards.
215
+ # @param shortHelp [String] This string is used for the tools tooltip.
216
+ # @param longHelp [String] This string is shown in the statusbar (if any) of the parent frame when the mouse pointer is inside the tool.
217
+ # @param clientData [Wx::Object] An optional pointer to client data which can be retrieved later using {Wx::ToolBar#get_tool_client_data}.
218
+ # @return [Wx::ToolBarToolBase]
219
+ def add_tool(*args) end
220
+
221
+ # Inserts the tool with the specified attributes into the toolbar at the given position.
222
+ #
223
+ # You must call {Wx::ToolBar#realize} for the change to take place.
224
+ #
225
+ # The newly inserted tool or nil on failure. Notice that with the overload taking tool parameter the caller is responsible for deleting the tool in the latter case.
226
+ # @see Wx::ToolBar#add_tool
227
+ # @see Wx::ToolBar#insert_control
228
+ # @see Wx::ToolBar#insert_separator
229
+ # @param pos [Integer]
230
+ # @param toolId [Integer]
231
+ # @param label [String]
232
+ # @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
233
+ # @param bmpDisabled [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
234
+ # @param kind [Wx::ItemKind]
235
+ # @param shortHelp [String]
236
+ # @param longHelp [String]
237
+ # @param clientData [Wx::Object]
238
+ # @return [Wx::ToolBarToolBase]
239
+ def insert_tool(pos, toolId, label, bitmap, bmpDisabled=Wx::NULL_BITMAP, kind=Wx::ItemKind::ITEM_NORMAL, shortHelp=(''), longHelp=(''), clientData=nil) end
240
+
241
+ # @overload set_margins(x, y)
242
+ # Set the values to be used as margins for the toolbar.
243
+ #
244
+ # <div class="wxrb-remark">
245
+ # <b>Remark:</b>
246
+ # <p>This must be called before the tools are added if absolute positioning is to be used, and the default (zero-size) margins are to be overridden.
247
+ # </p>
248
+ # </div>
249
+ # @see Wx::ToolBar#get_margins
250
+ # @param x [Integer] Left margin, right margin and inter-tool separation value.
251
+ # @param y [Integer] Top margin, bottom margin and inter-tool separation value.
252
+ # @return [void]
253
+ # @overload set_margins(size)
254
+ # Set the margins for the toolbar.
255
+ #
256
+ # <div class="wxrb-remark">
257
+ # <b>Remark:</b>
258
+ # <p>This must be called before the tools are added if absolute positioning is to be used, and the default (zero-size) margins are to be overridden.
259
+ # </p>
260
+ # </div>
261
+ # @see Wx::ToolBar#get_margins
262
+ # @see Wx::Size
263
+ # @param size [Array(Integer, Integer), Wx::Size] Margin size.
264
+ # @return [void]
265
+ def set_margins(*args) end
266
+ alias_method :margins=, :set_margins
267
+
268
+ # @overload initialize()
269
+ # Default constructor.
270
+ # @return [Wx::ToolBar]
271
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TB_HORIZONTAL, name=Wx::TOOL_BAR_NAME_STR)
272
+ # Constructs a toolbar.
273
+ #
274
+ # <div class="wxrb-remark">
275
+ # <b>Remark:</b>
276
+ # <p>After a toolbar is created, you use {Wx::ToolBar#add_tool} and perhaps {Wx::ToolBar#add_separator}, and then you must call {Wx::ToolBar#realize} to construct and display the toolbar tools.
277
+ # </p>
278
+ # </div>
279
+ # @param parent [Wx::Window] Pointer to a parent window.
280
+ # @param id [Integer] Window identifier. If -1, will automatically create an identifier.
281
+ # @param pos [Array(Integer, Integer), Wx::Point] Window position. {Wx::DEFAULT_POSITION} indicates that wxWidgets should generate a default position for the window. If using the {Wx::Window} class directly, supply an actual position.
282
+ # @param size [Array(Integer, Integer), Wx::Size] Window size. {Wx::DEFAULT_SIZE} indicates that wxWidgets should generate a default size for the window.
283
+ # @param style [Integer] Window style. See {Wx::ToolBar} initial description for details.
284
+ # @param name [String] Window name.
285
+ # @return [Wx::ToolBar]
286
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::TB_HORIZONTAL, name=Wx::TOOL_BAR_NAME_STR, &block)
287
+ # Constructs a toolbar.
288
+ #
289
+ # <div class="wxrb-remark">
290
+ # <b>Remark:</b>
291
+ # <p>After a toolbar is created, you use {Wx::ToolBar#add_tool} and perhaps {Wx::ToolBar#add_separator}, and then you must call {Wx::ToolBar#realize} to construct and display the toolbar tools.
292
+ # </p>
293
+ # </div>
294
+ # @param parent [Wx::Window] Pointer to a parent window.
295
+ # @param id [Integer] Window identifier. If -1, will automatically create an identifier.
296
+ # @param pos [Array(Integer, Integer), Wx::Point] Window position. {Wx::DEFAULT_POSITION} indicates that wxWidgets should generate a default position for the window. If using the {Wx::Window} class directly, supply an actual position.
297
+ # @param size [Array(Integer, Integer), Wx::Size] Window size. {Wx::DEFAULT_SIZE} indicates that wxWidgets should generate a default size for the window.
298
+ # @param style [Integer] Window style. See {Wx::ToolBar} initial description for details.
299
+ # @param name [String] Window name.
300
+ # @yieldparam [Wx::ToolBar] win new instance
301
+ # @return [Wx::ToolBar]
302
+ def initialize(*args) end
303
+
304
+ # Adds a new check (or toggle) tool to the toolbar.
305
+ #
306
+ # The parameters are the same as in {Wx::ToolBar#add_tool}.
307
+ # @see Wx::ToolBar#add_tool
308
+ # @param toolId [Integer]
309
+ # @param label [String]
310
+ # @param bitmap1 [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
311
+ # @param bmpDisabled [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
312
+ # @param shortHelp [String]
313
+ # @param longHelp [String]
314
+ # @param clientData [Wx::Object]
315
+ # @return [Wx::ToolBarToolBase]
316
+ def add_check_tool(toolId, label, bitmap1, bmpDisabled=Wx::NULL_BITMAP, shortHelp=(''), longHelp=(''), clientData=nil) end
317
+
318
+ # Adds any control to the toolbar, typically e.g. a {Wx::ComboBox}.
319
+ #
320
+ # <div class="wxrb-remark">
321
+ # <b>Remark:</b>
322
+ # <p>WXOSX: labels are only displayed if wxWidgets is built with WXOSX_USE_NATIVE_TOOLBAR set to 1 (which is the default).
323
+ # </p>
324
+ # </div>
325
+ # @param control [Wx::Control] The control to be added.
326
+ # @param label [String] Text to be displayed near the control.
327
+ # @return [Wx::ToolBarToolBase]
328
+ def add_control(control, label=('')) end
329
+
330
+ # Adds a new radio tool to the toolbar.
331
+ #
332
+ # Consecutive radio tools form a radio group such that exactly one button in the group is pressed at any moment, in other words whenever a button in the group is pressed the previously pressed button is automatically released. You should avoid having the radio groups of only one element as it would be impossible for the user to use such button.
333
+ # By default, the first button in the radio group is initially pressed, the others are not.
334
+ # @see Wx::ToolBar#add_tool
335
+ # @param toolId [Integer]
336
+ # @param label [String]
337
+ # @param bitmap1 [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
338
+ # @param bmpDisabled [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
339
+ # @param shortHelp [String]
340
+ # @param longHelp [String]
341
+ # @param clientData [Wx::Object]
342
+ # @return [Wx::ToolBarToolBase]
343
+ def add_radio_tool(toolId, label, bitmap1, bmpDisabled=Wx::NULL_BITMAP, shortHelp=(''), longHelp=(''), clientData=nil) end
344
+
345
+ # Adds a separator for spacing groups of tools.
346
+ #
347
+ # Notice that the separator uses the look appropriate for the current platform so it can be a vertical line (MSW, some versions of GTK) or just an empty space or something else.
348
+ # @see Wx::ToolBar#add_tool
349
+ # @see Wx::ToolBar#set_tool_separation
350
+ # @see Wx::ToolBar#add_stretchable_space
351
+ # @return [Wx::ToolBarToolBase]
352
+ def add_separator; end
353
+
354
+ # Adds a stretchable space to the toolbar.
355
+ #
356
+ # Any space not taken up by the fixed items (all items except for stretchable spaces) is distributed in equal measure between the stretchable spaces in the toolbar. The most common use for this method is to add a single stretchable space before the items which should be right-aligned in the toolbar, but more exotic possibilities are possible, e.g. a stretchable space may be added in the beginning and the end of the toolbar to centre all toolbar items.
357
+ # @see Wx::ToolBar#add_tool
358
+ # @see Wx::ToolBar#add_separator
359
+ # @see Wx::ToolBar#insert_stretchable_space
360
+ # @return [Wx::ToolBarToolBase]
361
+ def add_stretchable_space; end
362
+
363
+ # Deletes all the tools in the toolbar.
364
+ # @return [void]
365
+ def clear_tools; end
366
+
367
+ # Removes the specified tool from the toolbar and deletes it.
368
+ #
369
+ # If you don't want to delete the tool, but just to remove it from the toolbar (to possibly add it back later), you may use {Wx::ToolBar#remove_tool} instead.
370
+ #
371
+ # <div class="wxrb-note">
372
+ # <b>Note:</b>
373
+ # <p>It is unnecessary to call {Wx::ToolBar#realize} for the change to take place, it will happen immediately.
374
+ # </p>
375
+ # </div>
376
+ #
377
+ # true if the tool was deleted, false otherwise.
378
+ # @see Wx::ToolBar#delete_tool_by_pos
379
+ # @param toolId [Integer]
380
+ # @return [Boolean]
381
+ def delete_tool(toolId) end
382
+
383
+ # This function behaves like {Wx::ToolBar#delete_tool} but it deletes the tool at the specified position and not the one with the given id.
384
+ # @param pos [Integer]
385
+ # @return [Boolean]
386
+ def delete_tool_by_pos(pos) end
387
+
388
+ # Enables or disables the tool.
389
+ #
390
+ # <div class="wxrb-remark">
391
+ # <b>Remark:</b>
392
+ # <p>Some implementations will change the visible state of the tool to indicate that it is disabled.
393
+ # </p>
394
+ # </div>
395
+ # @see Wx::ToolBar#get_tool_enabled
396
+ # @see Wx::ToolBar#toggle_tool
397
+ # @param toolId [Integer] ID of the tool to enable or disable, as passed to {Wx::ToolBar#add_tool}.
398
+ # @param enable [Boolean] If true, enables the tool, otherwise disables it.
399
+ # @return [void]
400
+ def enable_tool(toolId, enable) end
401
+
402
+ # Returns a pointer to the tool identified by id or nil if no corresponding tool is found.
403
+ # @param id [Integer]
404
+ # @return [Wx::ToolBarToolBase]
405
+ def find_by_id(id) end
406
+
407
+ # Returns a pointer to the control identified by id or nil if no corresponding control is found.
408
+ # @param id [Integer]
409
+ # @return [Wx::Control]
410
+ def find_control(id) end
411
+
412
+ # Finds a tool for the given mouse position.
413
+ #
414
+ # A pointer to a tool if a tool is found, or nil otherwise.
415
+ #
416
+ # <div class="wxrb-remark">
417
+ # <b>Remark:</b>
418
+ # <p>Currently not implemented in WXGTK (always returns nil there).
419
+ # </p>
420
+ # </div>
421
+ # @param x [Integer] X position.
422
+ # @param y [Integer] Y position.
423
+ # @return [Wx::ToolBarToolBase]
424
+ def find_tool_for_position(x, y) end
425
+
426
+ # Returns the left/right and top/bottom margins, which are also used for inter-toolspacing.
427
+ #
428
+ #
429
+ # @see Wx::ToolBar#set_margins
430
+ # @return [Wx::Size]
431
+ def get_margins; end
432
+ alias_method :margins, :get_margins
433
+
434
+ # Returns the size of bitmap that the toolbar expects to have.
435
+ #
436
+ # The default bitmap size is platform-dependent: for example, it is 16*15 for MSW and 24*24 for GTK. This size does not necessarily indicate the best size to use for the toolbars on the given platform, for this you should use <code>wxArtProvider::GetNativeSizeHint(wxART_TOOLBAR)</code> but in any case, as the bitmap size is deduced automatically from the size of the bitmaps associated with the tools added to the toolbar, it is usually unnecessary to call either this function or {Wx::ToolBar#set_tool_bitmap_size} at all.
437
+ # This function returns the size in logical pixels, for consistency with {Wx::ToolBar#set_tool_bitmap_size} which takes size in logical pixels. See High DPI Support in wxWidgets for more information about the different pixel types and how to convert between them.
438
+ #
439
+ # <div class="wxrb-remark">
440
+ # <b>Remark:</b>
441
+ # <p>Note that this is the size of the bitmap you pass to {Wx::ToolBar#add_tool}, and not the eventual size of the tool button.
442
+ # </p>
443
+ # </div>
444
+ # @see Wx::ToolBar#set_tool_bitmap_size
445
+ # @see Wx::ToolBar#get_tool_size
446
+ # @return [Wx::Size]
447
+ def get_tool_bitmap_size; end
448
+ alias_method :tool_bitmap_size, :get_tool_bitmap_size
449
+
450
+ # @param pos [Integer]
451
+ # @return [Wx::ToolBarToolBase]
452
+ def get_tool_by_pos(pos) end
453
+ alias_method :tool_by_pos, :get_tool_by_pos
454
+
455
+ # Get any client data associated with the tool.
456
+ #
457
+ # Client data, or nil if there is none.
458
+ # @param toolId [Integer] ID of the tool in question, as passed to {Wx::ToolBar#add_tool}.
459
+ # @return [Wx::Object]
460
+ def get_tool_client_data(toolId) end
461
+ alias_method :tool_client_data, :get_tool_client_data
462
+
463
+ # Called to determine whether a tool is enabled (responds to user input).
464
+ #
465
+ # true if the tool is enabled, false otherwise.
466
+ # @see Wx::ToolBar#enable_tool
467
+ # @param toolId [Integer] ID of the tool in question, as passed to {Wx::ToolBar#add_tool}.
468
+ # @return [Boolean]
469
+ def get_tool_enabled(toolId) end
470
+ alias_method :tool_enabled, :get_tool_enabled
471
+
472
+ # Returns the long help for the given tool.
473
+ #
474
+ #
475
+ # @see Wx::ToolBar#set_tool_long_help
476
+ # @see Wx::ToolBar#set_tool_short_help
477
+ # @param toolId [Integer] ID of the tool in question, as passed to {Wx::ToolBar#add_tool}.
478
+ # @return [String]
479
+ def get_tool_long_help(toolId) end
480
+ alias_method :tool_long_help, :get_tool_long_help
481
+
482
+ # Returns the value used for packing tools.
483
+ #
484
+ #
485
+ # @see Wx::ToolBar#set_tool_packing
486
+ # @return [Integer]
487
+ def get_tool_packing; end
488
+ alias_method :tool_packing, :get_tool_packing
489
+
490
+ # Returns the tool position in the toolbar, or {Wx::NOT_FOUND} if the tool is not found.
491
+ # @param toolId [Integer] ID of the tool in question, as passed to {Wx::ToolBar#add_tool}.
492
+ # @return [Integer]
493
+ def get_tool_pos(toolId) end
494
+ alias_method :tool_pos, :get_tool_pos
495
+
496
+ # Returns the default separator size.
497
+ #
498
+ #
499
+ # @see Wx::ToolBar#set_tool_separation
500
+ # @return [Integer]
501
+ def get_tool_separation; end
502
+ alias_method :tool_separation, :get_tool_separation
503
+
504
+ # Returns the short help for the given tool.
505
+ #
506
+ #
507
+ # @see Wx::ToolBar#get_tool_long_help
508
+ # @see Wx::ToolBar#set_tool_short_help
509
+ # @param toolId [Integer] ID of the tool in question, as passed to {Wx::ToolBar#add_tool}.
510
+ # @return [String]
511
+ def get_tool_short_help(toolId) end
512
+ alias_method :tool_short_help, :get_tool_short_help
513
+
514
+ # Returns the size of a whole button, which is usually larger than a tool bitmap because of added 3D effects.
515
+ #
516
+ #
517
+ # @see Wx::ToolBar#set_tool_bitmap_size
518
+ # @see Wx::ToolBar#get_tool_bitmap_size
519
+ # @return [Wx::Size]
520
+ def get_tool_size; end
521
+ alias_method :tool_size, :get_tool_size
522
+
523
+ # Gets the on/off state of a toggle tool.
524
+ #
525
+ # true if the tool is toggled on, false otherwise.
526
+ # @see Wx::ToolBar#toggle_tool
527
+ # @param toolId [Integer] ID of the tool in question, as passed to {Wx::ToolBar#add_tool}.
528
+ # @return [Boolean]
529
+ def get_tool_state(toolId) end
530
+ alias_method :tool_state, :get_tool_state
531
+
532
+ # Returns the number of tools in the toolbar.
533
+ # @return [Integer]
534
+ def get_tools_count; end
535
+ alias_method :tools_count, :get_tools_count
536
+
537
+ # Inserts the control into the toolbar at the given position.
538
+ #
539
+ # You must call {Wx::ToolBar#realize} for the change to take place.
540
+ # @see Wx::ToolBar#add_control
541
+ # @see Wx::ToolBar#insert_tool
542
+ # @param pos [Integer]
543
+ # @param control [Wx::Control]
544
+ # @param label [String]
545
+ # @return [Wx::ToolBarToolBase]
546
+ def insert_control(pos, control, label=('')) end
547
+
548
+ # Inserts the separator into the toolbar at the given position.
549
+ #
550
+ # You must call {Wx::ToolBar#realize} for the change to take place.
551
+ # @see Wx::ToolBar#add_separator
552
+ # @see Wx::ToolBar#insert_tool
553
+ # @param pos [Integer]
554
+ # @return [Wx::ToolBarToolBase]
555
+ def insert_separator(pos) end
556
+
557
+ # Inserts a stretchable space at the given position.
558
+ #
559
+ # See {Wx::ToolBar#add_stretchable_space} for details about stretchable spaces.
560
+ # @see Wx::ToolBar#insert_tool
561
+ # @see Wx::ToolBar#insert_separator
562
+ # @param pos [Integer]
563
+ # @return [Wx::ToolBarToolBase]
564
+ def insert_stretchable_space(pos) end
565
+
566
+ # Called when the user clicks on a tool with the left mouse button.
567
+ #
568
+ # This is the old way of detecting tool clicks; although it will still work, you should use the EVT_MENU() or EVT_TOOL() macro instead.
569
+ #
570
+ # If the tool is a toggle and this function returns false, the toggle state (internal and visual) will not be changed. This provides a way of specifying that toggle operations are not permitted in some circumstances.
571
+ # @see Wx::ToolBar#on_mouse_enter
572
+ # @see Wx::ToolBar#on_right_click
573
+ # @param toolId [Integer] The identifier passed to {Wx::ToolBar#add_tool}.
574
+ # @param toggleDown [Boolean] true if the tool is a toggle and the toggle is down, otherwise is false.
575
+ # @return [Boolean]
576
+ def on_left_click(toolId, toggleDown) end
577
+
578
+ # This is called when the mouse cursor moves into a tool or out of the toolbar.
579
+ #
580
+ # This is the old way of detecting mouse enter events; although it will still work, you should use the EVT_TOOL_ENTER() macro instead.
581
+ #
582
+ # <div class="wxrb-remark">
583
+ # <b>Remark:</b>
584
+ # <p>With some derived toolbar classes, if the mouse moves quickly out of the toolbar, wxWidgets may not be able to detect it. Therefore this function may not always be called when expected.
585
+ # </p>
586
+ # </div>
587
+ # @param toolId [Integer] Greater than -1 if the mouse cursor has moved into the tool, or -1 if the mouse cursor has moved. The programmer can override this to provide extra information about the tool, such as a short description on the status line.
588
+ # @return [void]
589
+ def on_mouse_enter(toolId) end
590
+
591
+ # This function should be called after you have added tools.
592
+ # @return [Boolean]
593
+ def realize; end
594
+
595
+ # Removes the given tool from the toolbar but doesn't delete it.
596
+ #
597
+ # This allows inserting/adding this tool back to this (or another) toolbar later.
598
+ #
599
+ # <div class="wxrb-note">
600
+ # <b>Note:</b>
601
+ # <p>It is unnecessary to call {Wx::ToolBar#realize} for the change to take place, it will happen immediately.
602
+ # </p>
603
+ # </div>
604
+ # @see Wx::ToolBar#delete_tool
605
+ # @param id [Integer]
606
+ # @return [Wx::ToolBarToolBase]
607
+ def remove_tool(id) end
608
+
609
+ # Sets the dropdown menu for the tool given by its id.
610
+ #
611
+ # The tool itself will delete the menu when it's no longer needed. Only supported under GTK+ and MSW.
612
+ # If you define a EVT_TOOL_DROPDOWN() handler in your program, you must call {Wx::Event#skip} from it or the menu won't be displayed.
613
+ # @param id [Integer]
614
+ # @param menu [Wx::Menu]
615
+ # @return [Boolean]
616
+ def set_dropdown_menu(id, menu) end
617
+
618
+ # Sets the default size of each tool bitmap.
619
+ #
620
+ # It is usually unnecessary to call this function, as the tools will always be made big enough to fit the size of the bitmaps used in them. Moreover, calling it forces {Wx::ToolBar} to scale its images in high DPI using the provided size, instead of letting {Wx::BitmapBundle} used for the tool bitmaps determine the best suitable bitmap size, which may result in suboptimal appearance.
621
+ # If you do call it, it must be done before toolbar is {Wx::ToolBar#realize}'d.
622
+ # Example of using this function to force the bitmaps to be at least 32 pixels wide and tall (at normal DPI):
623
+ # ```ruby
624
+ # toolbar.set_tool_bitmap_size(from_dip(Wx::Size.new(32, 32)))
625
+ # toolbar.add_tool(Wx::ID_NEW, 'New', Wx::BitmapBundle.from_XXX(...))
626
+ # ...
627
+ # toolbar.realize
628
+ # ```
629
+ # @see Wx::ToolBar#get_tool_bitmap_size
630
+ # @see Wx::ToolBar#get_tool_size
631
+ # @param size [Array(Integer, Integer), Wx::Size] The size of the bitmaps in the toolbar in logical pixels.
632
+ # @return [void]
633
+ def set_tool_bitmap_size(size) end
634
+ alias_method :tool_bitmap_size=, :set_tool_bitmap_size
635
+
636
+ # Sets the client data associated with the tool.
637
+ # @param id [Integer] ID of the tool in question, as passed to {Wx::ToolBar#add_tool}.
638
+ # @param clientData [Wx::Object] The client data to use.
639
+ # @return [void]
640
+ def set_tool_client_data(id, clientData) end
641
+
642
+ # Sets the bitmap to be used by the tool with the given ID when the tool is in a disabled state.
643
+ #
644
+ # This can only be used on Button tools, not controls.
645
+ #
646
+ # <div class="wxrb-note">
647
+ # <b>Note:</b>
648
+ # <p>The native toolbar classes on the main platforms all synthesize the disabled bitmap from the normal bitmap, so this function will have no effect on those platforms.
649
+ # </p>
650
+ # </div>
651
+ # @param id [Integer] ID of the tool in question, as passed to {Wx::ToolBar#add_tool}.
652
+ # @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image] Bitmap to use for disabled tools.
653
+ # @return [void]
654
+ def set_tool_disabled_bitmap(id, bitmap) end
655
+
656
+ # Sets the long help for the given tool.
657
+ #
658
+ # <div class="wxrb-remark">
659
+ # <b>Remark:</b>
660
+ # <p>You might use the long help for displaying the tool purpose on the status line.
661
+ # </p>
662
+ # </div>
663
+ # @see Wx::ToolBar#get_tool_long_help
664
+ # @see Wx::ToolBar#set_tool_short_help
665
+ # @see
666
+ # @param toolId [Integer] ID of the tool in question, as passed to {Wx::ToolBar#add_tool}.
667
+ # @param helpString [String] A string for the long help.
668
+ # @return [void]
669
+ def set_tool_long_help(toolId, helpString) end
670
+
671
+ # Sets the bitmap to be used by the tool with the given ID.
672
+ #
673
+ # This can only be used on Button tools, not controls.
674
+ # @param id [Integer] ID of the tool in question, as passed to {Wx::ToolBar#add_tool}.
675
+ # @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image] Bitmap to use for normals tools.
676
+ # @return [void]
677
+ def set_tool_normal_bitmap(id, bitmap) end
678
+
679
+ # Sets the value used for spacing tools.
680
+ #
681
+ # The default value is 1.
682
+ #
683
+ # <div class="wxrb-remark">
684
+ # <b>Remark:</b>
685
+ # <p>The packing is used for spacing in the vertical direction if the toolbar is horizontal, and for spacing in the horizontal direction if the toolbar is vertical.
686
+ # </p>
687
+ # </div>
688
+ # @see Wx::ToolBar#get_tool_packing
689
+ # @param packing [Integer] The value for packing.
690
+ # @return [void]
691
+ def set_tool_packing(packing) end
692
+ alias_method :tool_packing=, :set_tool_packing
693
+
694
+ # Sets the default separator size.
695
+ #
696
+ # The default value is 5.
697
+ # @see Wx::ToolBar#add_separator
698
+ # @param separation [Integer] The separator size.
699
+ # @return [void]
700
+ def set_tool_separation(separation) end
701
+ alias_method :tool_separation=, :set_tool_separation
702
+
703
+ # Sets the short help for the given tool.
704
+ #
705
+ # <div class="wxrb-remark">
706
+ # <b>Remark:</b>
707
+ # <p>An application might use short help for identifying the tool purpose in a tooltip.
708
+ # </p>
709
+ # </div>
710
+ # @see Wx::ToolBar#get_tool_short_help
711
+ # @see Wx::ToolBar#set_tool_long_help
712
+ # @param toolId [Integer] ID of the tool in question, as passed to {Wx::ToolBar#add_tool}.
713
+ # @param helpString [String] The string for the short help.
714
+ # @return [void]
715
+ def set_tool_short_help(toolId, helpString) end
716
+
717
+ # Toggles a tool on or off.
718
+ #
719
+ # This does not cause any event to get emitted.
720
+ #
721
+ # <div class="wxrb-remark">
722
+ # <b>Remark:</b>
723
+ # <p>Only applies to a tool that has been specified as a toggle tool.
724
+ # </p>
725
+ # </div>
726
+ # @param toolId [Integer] ID of the tool in question, as passed to {Wx::ToolBar#add_tool}.
727
+ # @param toggle [Boolean] If true, toggles the tool on, otherwise toggles it off.
728
+ # @return [void]
729
+ def toggle_tool(toolId, toggle) end
730
+
731
+ # @overload create_tool(toolId, label, bmpNormal, bmpDisabled=Wx::NULL_BITMAP, kind=Wx::ItemKind::ITEM_NORMAL, clientData=nil, shortHelp=(''), longHelp=(''))
732
+ # Factory function to create a new toolbar tool.
733
+ # @param toolId [Integer]
734
+ # @param label [String]
735
+ # @param bmpNormal [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
736
+ # @param bmpDisabled [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
737
+ # @param kind [Wx::ItemKind]
738
+ # @param clientData [Wx::Object]
739
+ # @param shortHelp [String]
740
+ # @param longHelp [String]
741
+ # @return [Wx::ToolBarToolBase]
742
+ # @overload create_tool(control, label)
743
+ # Factory function to create a new control toolbar tool.
744
+ # @param control [Wx::Control]
745
+ # @param label [String]
746
+ # @return [Wx::ToolBarToolBase]
747
+ def create_tool(*args) end
748
+
749
+ # Factory function to create a new separator toolbar tool.
750
+ # @return [Wx::ToolBarToolBase]
751
+ def create_separator; end
752
+
753
+ end # ToolBar
754
+
755
+ # A toolbar tool represents one item on the toolbar.
756
+ #
757
+ # It has a unique id (except for the separators), the style (telling whether it is a normal button, separator or a control), the state (toggled or not, enabled or not) and short and long help strings. The default implementations use the short help string for the tooltip text which is popped up when the mouse pointer enters the tool and the long help string for the applications status bar.
758
+ # Notice that the toolbar can not be modified by changing its tools via the (intentionally undocumented here) setter methods of this class, all the modifications must be done using the methods of {Wx::ToolBar} itself.
759
+ #
760
+ # @wxrb_require USE_TOOLBAR
761
+ class ToolBarToolBase < Object
762
+
763
+ # @overload initialize(tbar=nil, toolid=Wx::StandardID::ID_SEPARATOR, label=(''), bmpNormal=Wx::NULL_BITMAP, bmpDisabled=Wx::NULL_BITMAP, kind=Wx::ItemKind::ITEM_NORMAL, clientData=nil, shortHelpString=(''), longHelpString=(''))
764
+ # @param tbar [Wx::ToolBar]
765
+ # @param toolid [Integer]
766
+ # @param label [String]
767
+ # @param bmpNormal [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
768
+ # @param bmpDisabled [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
769
+ # @param kind [Wx::ItemKind]
770
+ # @param clientData [Wx::Object]
771
+ # @param shortHelpString [String]
772
+ # @param longHelpString [String]
773
+ # @return [Wx::ToolBarToolBase]
774
+ # @overload initialize(tbar, control, label)
775
+ # @param tbar [Wx::ToolBar]
776
+ # @param control [Wx::Control]
777
+ # @param label [String]
778
+ # @return [Wx::ToolBarToolBase]
779
+ def initialize(*args) end
780
+
781
+ # @return [Integer]
782
+ def get_id; end
783
+ alias_method :id, :get_id
784
+
785
+ # @return [Wx::Control]
786
+ def get_control; end
787
+ alias_method :control, :get_control
788
+
789
+ # @return [Wx::ToolBar]
790
+ def get_tool_bar; end
791
+ alias_method :tool_bar, :get_tool_bar
792
+
793
+ # @return [Boolean]
794
+ def is_stretchable; end
795
+ alias_method :stretchable?, :is_stretchable
796
+
797
+ # @return [Boolean]
798
+ def is_button; end
799
+ alias_method :button?, :is_button
800
+
801
+ # @return [Boolean]
802
+ def is_control; end
803
+ alias_method :control?, :is_control
804
+
805
+ # @return [Boolean]
806
+ def is_separator; end
807
+ alias_method :separator?, :is_separator
808
+
809
+ # @return [Boolean]
810
+ def is_stretchable_space; end
811
+ alias_method :stretchable_space?, :is_stretchable_space
812
+
813
+ # @return [Integer]
814
+ def get_style; end
815
+ alias_method :style, :get_style
816
+
817
+ # @return [Wx::ItemKind]
818
+ def get_kind; end
819
+ alias_method :kind, :get_kind
820
+
821
+ # @return [void]
822
+ def make_stretchable; end
823
+
824
+ # @return [Boolean]
825
+ def is_enabled; end
826
+ alias_method :enabled?, :is_enabled
827
+
828
+ # @return [Boolean]
829
+ def is_toggled; end
830
+ alias_method :toggled?, :is_toggled
831
+
832
+ # @return [Boolean]
833
+ def can_be_toggled; end
834
+ alias_method :can_be_toggled?, :can_be_toggled
835
+
836
+ # Return the bundle containing normal tool bitmaps.
837
+ #
838
+ # This bundle may be invalid if the tool doesn't show a bitmap.
839
+ # @return [Wx::BitmapBundle]
840
+ def get_normal_bitmap_bundle; end
841
+ alias_method :normal_bitmap_bundle, :get_normal_bitmap_bundle
842
+
843
+ # Return the bundle containing disabled tool bitmaps.
844
+ #
845
+ # This bundle may be invalid if the tool doesn't show a bitmap or doesn't have a specific disabled bitmap creates one automatically from the normal bitmap.
846
+ # @return [Wx::BitmapBundle]
847
+ def get_disabled_bitmap_bundle; end
848
+ alias_method :disabled_bitmap_bundle, :get_disabled_bitmap_bundle
849
+
850
+ # @return [Wx::Bitmap]
851
+ def get_normal_bitmap; end
852
+ alias_method :normal_bitmap, :get_normal_bitmap
853
+
854
+ # @return [Wx::Bitmap]
855
+ def get_disabled_bitmap; end
856
+ alias_method :disabled_bitmap, :get_disabled_bitmap
857
+
858
+ # @return [Wx::Bitmap]
859
+ def get_bitmap; end
860
+ alias_method :bitmap, :get_bitmap
861
+
862
+ # @return [Wx::String]
863
+ def get_label; end
864
+ alias_method :label, :get_label
865
+
866
+ # @return [Wx::String]
867
+ def get_short_help; end
868
+ alias_method :short_help, :get_short_help
869
+
870
+ # @return [Wx::String]
871
+ def get_long_help; end
872
+ alias_method :long_help, :get_long_help
873
+
874
+ # @return [Wx::Object]
875
+ def get_client_data; end
876
+ alias_method :client_data, :get_client_data
877
+
878
+ # @param menu [Wx::Menu]
879
+ # @return [void]
880
+ def set_dropdown_menu(menu) end
881
+ alias_method :dropdown_menu=, :set_dropdown_menu
882
+
883
+ # @return [Wx::Menu]
884
+ def get_dropdown_menu; end
885
+ alias_method :dropdown_menu, :get_dropdown_menu
886
+
887
+ end # ToolBarToolBase
888
+
889
+
890
+ end