wxruby3 0.9.5-x64-mingw-ucrt → 0.9.7-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (386) hide show
  1. checksums.yaml +4 -4
  2. data/.wxconfig +9 -8
  3. data/INSTALL.md +315 -78
  4. data/README.md +31 -20
  5. data/ext/wxbase32u_gcc_custom.dll +0 -0
  6. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  7. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  8. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  9. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  10. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  11. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  12. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  13. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  14. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  19. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  20. data/lib/wx/core/ext.rb +22 -3
  21. data/lib/wx/doc/gen/about_dialog_info.rb +1 -1
  22. data/lib/wx/doc/gen/accelerator.rb +1 -1
  23. data/lib/wx/doc/gen/accessible.rb +1 -1
  24. data/lib/wx/doc/gen/activity_indicator.rb +1 -1
  25. data/lib/wx/doc/gen/animation.rb +1 -1
  26. data/lib/wx/doc/gen/animation_ctrl.rb +1 -1
  27. data/lib/wx/doc/gen/any_button.rb +1 -1
  28. data/lib/wx/doc/gen/app.rb +1 -1
  29. data/lib/wx/doc/gen/app_traits.rb +1 -1
  30. data/lib/wx/doc/gen/art_provider.rb +1 -1
  31. data/lib/wx/doc/gen/aui/aui_dock_art.rb +430 -426
  32. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +34 -30
  33. data/lib/wx/doc/gen/aui/aui_manager.rb +352 -348
  34. data/lib/wx/doc/gen/aui/aui_manager_event.rb +107 -103
  35. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +157 -153
  36. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +42 -38
  37. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +109 -105
  38. data/lib/wx/doc/gen/aui/aui_notebook.rb +438 -434
  39. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +145 -141
  40. data/lib/wx/doc/gen/aui/aui_pane_info.rb +689 -685
  41. data/lib/wx/doc/gen/aui/aui_tab_art.rb +369 -365
  42. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +100 -96
  43. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +445 -441
  44. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +268 -264
  45. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +179 -175
  46. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +219 -215
  47. data/lib/wx/doc/gen/banner_window.rb +1 -1
  48. data/lib/wx/doc/gen/bitmap.rb +1 -1
  49. data/lib/wx/doc/gen/bitmap_button.rb +1 -1
  50. data/lib/wx/doc/gen/bitmap_combo_box.rb +1 -1
  51. data/lib/wx/doc/gen/book_ctrl_base.rb +1 -1
  52. data/lib/wx/doc/gen/book_ctrl_event.rb +1 -1
  53. data/lib/wx/doc/gen/box_sizer.rb +1 -1
  54. data/lib/wx/doc/gen/brush.rb +1 -1
  55. data/lib/wx/doc/gen/busy_info.rb +1 -1
  56. data/lib/wx/doc/gen/button.rb +1 -1
  57. data/lib/wx/doc/gen/calculate_layout_event.rb +1 -1
  58. data/lib/wx/doc/gen/calendar_ctrl.rb +1 -1
  59. data/lib/wx/doc/gen/calendar_date_attr.rb +1 -1
  60. data/lib/wx/doc/gen/calendar_event.rb +1 -1
  61. data/lib/wx/doc/gen/caret.rb +1 -1
  62. data/lib/wx/doc/gen/check_box.rb +1 -1
  63. data/lib/wx/doc/gen/check_list_box.rb +1 -1
  64. data/lib/wx/doc/gen/choice.rb +1 -1
  65. data/lib/wx/doc/gen/choicebook.rb +1 -1
  66. data/lib/wx/doc/gen/client_dc.rb +1 -1
  67. data/lib/wx/doc/gen/clipboard.rb +1 -1
  68. data/lib/wx/doc/gen/collapsible_pane.rb +1 -1
  69. data/lib/wx/doc/gen/collapsible_pane_event.rb +1 -1
  70. data/lib/wx/doc/gen/colour.rb +1 -1
  71. data/lib/wx/doc/gen/colour_dialog.rb +1 -1
  72. data/lib/wx/doc/gen/colour_picker_ctrl.rb +1 -1
  73. data/lib/wx/doc/gen/colour_picker_event.rb +1 -1
  74. data/lib/wx/doc/gen/combo_box.rb +1 -1
  75. data/lib/wx/doc/gen/combo_ctrl.rb +1 -1
  76. data/lib/wx/doc/gen/command_link_button.rb +1 -1
  77. data/lib/wx/doc/gen/config_base.rb +1 -1
  78. data/lib/wx/doc/gen/context_help_button.rb +1 -1
  79. data/lib/wx/doc/gen/control.rb +1 -1
  80. data/lib/wx/doc/gen/control_with_items.rb +1 -1
  81. data/lib/wx/doc/gen/core.rb +5 -5
  82. data/lib/wx/doc/gen/cursor.rb +1 -1
  83. data/lib/wx/doc/gen/data_format.rb +1 -1
  84. data/lib/wx/doc/gen/data_object.rb +1 -1
  85. data/lib/wx/doc/gen/data_object_simple_base.rb +1 -1
  86. data/lib/wx/doc/gen/date_event.rb +1 -1
  87. data/lib/wx/doc/gen/date_picker_ctrl.rb +1 -1
  88. data/lib/wx/doc/gen/dc.rb +1 -1
  89. data/lib/wx/doc/gen/defs.rb +1 -1
  90. data/lib/wx/doc/gen/dial_up_event.rb +1 -1
  91. data/lib/wx/doc/gen/dial_up_manager.rb +1 -1
  92. data/lib/wx/doc/gen/dialog.rb +1 -1
  93. data/lib/wx/doc/gen/dir_dialog.rb +1 -1
  94. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +1 -1
  95. data/lib/wx/doc/gen/dir_picker_ctrl.rb +1 -1
  96. data/lib/wx/doc/gen/drag_drop.rb +1 -1
  97. data/lib/wx/doc/gen/drag_image.rb +1 -1
  98. data/lib/wx/doc/gen/editable_list_box.rb +1 -1
  99. data/lib/wx/doc/gen/event.rb +1 -1
  100. data/lib/wx/doc/gen/event_blocker.rb +1 -1
  101. data/lib/wx/doc/gen/event_filter.rb +1 -1
  102. data/lib/wx/doc/gen/events.rb +1 -1
  103. data/lib/wx/doc/gen/evt_handler.rb +1 -1
  104. data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
  105. data/lib/wx/doc/gen/file_ctrl.rb +1 -1
  106. data/lib/wx/doc/gen/file_ctrl_event.rb +1 -1
  107. data/lib/wx/doc/gen/file_dialog.rb +1 -1
  108. data/lib/wx/doc/gen/file_dialog_custom_control.rb +1 -1
  109. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +1 -1
  110. data/lib/wx/doc/gen/file_dir_picker_event.rb +1 -1
  111. data/lib/wx/doc/gen/file_picker_ctrl.rb +1 -1
  112. data/lib/wx/doc/gen/file_system.rb +1 -1
  113. data/lib/wx/doc/gen/find_dialog_event.rb +1 -1
  114. data/lib/wx/doc/gen/find_replace_data.rb +1 -1
  115. data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
  116. data/lib/wx/doc/gen/flex_grid_sizer.rb +1 -1
  117. data/lib/wx/doc/gen/font.rb +1 -1
  118. data/lib/wx/doc/gen/font_data.rb +1 -1
  119. data/lib/wx/doc/gen/font_dialog.rb +1 -1
  120. data/lib/wx/doc/gen/font_picker_ctrl.rb +1 -1
  121. data/lib/wx/doc/gen/font_picker_event.rb +1 -1
  122. data/lib/wx/doc/gen/frame.rb +1 -1
  123. data/lib/wx/doc/gen/fs_file.rb +1 -1
  124. data/lib/wx/doc/gen/functions.rb +1 -1
  125. data/lib/wx/doc/gen/gauge.rb +1 -1
  126. data/lib/wx/doc/gen/gb_sizer_item.rb +1 -1
  127. data/lib/wx/doc/gen/gcdc.rb +1 -1
  128. data/lib/wx/doc/gen/gdi_common.rb +3 -3
  129. data/lib/wx/doc/gen/gdi_object.rb +1 -1
  130. data/lib/wx/doc/gen/generic_dir_ctrl.rb +1 -1
  131. data/lib/wx/doc/gen/graphics_context.rb +1 -1
  132. data/lib/wx/doc/gen/graphics_object.rb +1 -1
  133. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +28 -24
  134. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +251 -247
  135. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +25 -21
  136. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +27 -23
  137. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +38 -34
  138. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +25 -21
  139. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +35 -31
  140. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +28 -24
  141. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +34 -30
  142. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +30 -26
  143. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +183 -179
  144. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +29 -25
  145. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +33 -29
  146. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +34 -30
  147. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +67 -63
  148. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +34 -30
  149. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +25 -21
  150. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +93 -89
  151. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +25 -21
  152. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +38 -34
  153. data/lib/wx/doc/gen/grid/grid_ctrl.rb +2722 -2718
  154. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +82 -78
  155. data/lib/wx/doc/gen/grid/grid_event.rb +106 -102
  156. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +93 -89
  157. data/lib/wx/doc/gen/grid/grid_size_event.rb +70 -66
  158. data/lib/wx/doc/gen/grid/grid_string_table.rb +130 -126
  159. data/lib/wx/doc/gen/grid/grid_table_base.rb +303 -299
  160. data/lib/wx/doc/gen/grid/grid_table_message.rb +70 -66
  161. data/lib/wx/doc/gen/grid_bag_sizer.rb +1 -1
  162. data/lib/wx/doc/gen/grid_sizer.rb +1 -1
  163. data/lib/wx/doc/gen/gui_event_loop.rb +1 -1
  164. data/lib/wx/doc/gen/header_ctrl.rb +1 -1
  165. data/lib/wx/doc/gen/header_ctrl_event.rb +1 -1
  166. data/lib/wx/doc/gen/help_controller.rb +1 -1
  167. data/lib/wx/doc/gen/help_provider.rb +1 -1
  168. data/lib/wx/doc/gen/html/html_cell.rb +515 -511
  169. data/lib/wx/doc/gen/html/html_cell_event.rb +58 -54
  170. data/lib/wx/doc/gen/html/html_easy_printing.rb +171 -167
  171. data/lib/wx/doc/gen/html/html_help_controller.rb +292 -288
  172. data/lib/wx/doc/gen/html/html_help_data.rb +147 -143
  173. data/lib/wx/doc/gen/html/html_help_window.rb +232 -228
  174. data/lib/wx/doc/gen/html/html_link_event.rb +30 -26
  175. data/lib/wx/doc/gen/html/html_list_box.rb +301 -297
  176. data/lib/wx/doc/gen/html/html_printout.rb +94 -90
  177. data/lib/wx/doc/gen/html/html_window.rb +406 -402
  178. data/lib/wx/doc/gen/hyperlink_ctrl.rb +1 -1
  179. data/lib/wx/doc/gen/hyperlink_event.rb +1 -1
  180. data/lib/wx/doc/gen/icon.rb +1 -1
  181. data/lib/wx/doc/gen/icon_location.rb +1 -1
  182. data/lib/wx/doc/gen/image.rb +1 -1
  183. data/lib/wx/doc/gen/image_list.rb +1 -1
  184. data/lib/wx/doc/gen/info_bar.rb +1 -1
  185. data/lib/wx/doc/gen/keyboard_state.rb +1 -1
  186. data/lib/wx/doc/gen/list_box.rb +1 -1
  187. data/lib/wx/doc/gen/list_ctrl.rb +1 -1
  188. data/lib/wx/doc/gen/list_event.rb +1 -1
  189. data/lib/wx/doc/gen/listbook.rb +1 -1
  190. data/lib/wx/doc/gen/locale.rb +1 -1
  191. data/lib/wx/doc/gen/log.rb +1 -1
  192. data/lib/wx/doc/gen/mdi_client_window.rb +1 -1
  193. data/lib/wx/doc/gen/mdi_frame.rb +1 -1
  194. data/lib/wx/doc/gen/media_ctrl.rb +1 -1
  195. data/lib/wx/doc/gen/media_event.rb +1 -1
  196. data/lib/wx/doc/gen/memory_dc.rb +1 -1
  197. data/lib/wx/doc/gen/menu.rb +1 -1
  198. data/lib/wx/doc/gen/menu_bar.rb +1 -1
  199. data/lib/wx/doc/gen/menu_item.rb +1 -1
  200. data/lib/wx/doc/gen/message_dialog.rb +1 -1
  201. data/lib/wx/doc/gen/mini_frame.rb +1 -1
  202. data/lib/wx/doc/gen/mirror_dc.rb +1 -1
  203. data/lib/wx/doc/gen/mouse_state.rb +1 -1
  204. data/lib/wx/doc/gen/multi_choice_dialog.rb +1 -1
  205. data/lib/wx/doc/gen/non_owned_window.rb +1 -1
  206. data/lib/wx/doc/gen/notebook.rb +1 -1
  207. data/lib/wx/doc/gen/num_validator.rb +1 -1
  208. data/lib/wx/doc/gen/number_entry_dialog.rb +1 -1
  209. data/lib/wx/doc/gen/object.rb +1 -1
  210. data/lib/wx/doc/gen/owner_drawn_combo_box.rb +1 -1
  211. data/lib/wx/doc/gen/paint_dc.rb +1 -1
  212. data/lib/wx/doc/gen/palette.rb +1 -1
  213. data/lib/wx/doc/gen/panel.rb +1 -1
  214. data/lib/wx/doc/gen/pen.rb +1 -1
  215. data/lib/wx/doc/gen/persistence_manager.rb +1 -1
  216. data/lib/wx/doc/gen/persistent_object.rb +1 -1
  217. data/lib/wx/doc/gen/persistent_window.rb +1 -1
  218. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +33 -29
  219. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +299 -295
  220. data/lib/wx/doc/gen/pg/pg_cell.rb +162 -158
  221. data/lib/wx/doc/gen/pg/pg_editor.rb +693 -689
  222. data/lib/wx/doc/gen/pg/pg_multi_button.rb +133 -129
  223. data/lib/wx/doc/gen/pg/pg_properties.rb +2662 -2658
  224. data/lib/wx/doc/gen/pg/pg_property.rb +1929 -1925
  225. data/lib/wx/doc/gen/pg/pg_validation_info.rb +275 -271
  226. data/lib/wx/doc/gen/pg/property_grid.rb +708 -704
  227. data/lib/wx/doc/gen/pg/property_grid_event.rb +168 -164
  228. data/lib/wx/doc/gen/pg/property_grid_interface.rb +1071 -1067
  229. data/lib/wx/doc/gen/pg/property_grid_manager.rb +386 -382
  230. data/lib/wx/doc/gen/pg/property_grid_page.rb +267 -263
  231. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +147 -143
  232. data/lib/wx/doc/gen/picker_base.rb +1 -1
  233. data/lib/wx/doc/gen/platform_info.rb +1 -1
  234. data/lib/wx/doc/gen/popup_window.rb +1 -1
  235. data/lib/wx/doc/gen/progress_dialog.rb +1 -1
  236. data/lib/wx/doc/gen/property_sheet_dialog.rb +1 -1
  237. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +32 -28
  238. data/lib/wx/doc/gen/prt/post_script_dc.rb +21 -17
  239. data/lib/wx/doc/gen/prt/preview_frame.rb +49 -45
  240. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +126 -122
  241. data/lib/wx/doc/gen/prt/print_data.rb +637 -633
  242. data/lib/wx/doc/gen/prt/print_dialog.rb +43 -39
  243. data/lib/wx/doc/gen/prt/printer.rb +484 -480
  244. data/lib/wx/doc/gen/prt/printer_dc.rb +26 -22
  245. data/lib/wx/doc/gen/query_layout_info_event.rb +1 -1
  246. data/lib/wx/doc/gen/radio_box.rb +1 -1
  247. data/lib/wx/doc/gen/radio_button.rb +1 -1
  248. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +1716 -1712
  249. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +239 -235
  250. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +34 -30
  251. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +439 -435
  252. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +52 -48
  253. data/lib/wx/doc/gen/rbn/ribbon_control.rb +116 -112
  254. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +205 -201
  255. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +44 -40
  256. data/lib/wx/doc/gen/rbn/ribbon_page.rb +129 -125
  257. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +229 -225
  258. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +34 -30
  259. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +329 -325
  260. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +31 -27
  261. data/lib/wx/doc/gen/rearrange_ctrl.rb +1 -1
  262. data/lib/wx/doc/gen/rearrange_list.rb +1 -1
  263. data/lib/wx/doc/gen/region.rb +1 -1
  264. data/lib/wx/doc/gen/region_iterator.rb +1 -1
  265. data/lib/wx/doc/gen/rtc/rich_text_box.rb +424 -420
  266. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +1148 -1144
  267. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +30 -26
  268. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +516 -512
  269. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +1991 -1987
  270. data/lib/wx/doc/gen/rtc/rich_text_event.rb +159 -155
  271. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +167 -163
  272. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +271 -267
  273. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +171 -167
  274. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +88 -84
  275. data/lib/wx/doc/gen/rtc/rich_text_image.rb +323 -319
  276. data/lib/wx/doc/gen/rtc/rich_text_object.rb +2819 -2815
  277. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1187 -1183
  278. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +242 -238
  279. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +286 -282
  280. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +181 -177
  281. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +47 -43
  282. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +145 -141
  283. data/lib/wx/doc/gen/sash_event.rb +1 -1
  284. data/lib/wx/doc/gen/sash_layout_window.rb +1 -1
  285. data/lib/wx/doc/gen/sash_window.rb +1 -1
  286. data/lib/wx/doc/gen/scaled_dc.rb +1 -1
  287. data/lib/wx/doc/gen/screen_dc.rb +1 -1
  288. data/lib/wx/doc/gen/scroll_bar.rb +1 -1
  289. data/lib/wx/doc/gen/scrolled_canvas.rb +1 -1
  290. data/lib/wx/doc/gen/scrolled_control.rb +1 -1
  291. data/lib/wx/doc/gen/scrolled_window.rb +1 -1
  292. data/lib/wx/doc/gen/search_ctrl.rb +1 -1
  293. data/lib/wx/doc/gen/simplebook.rb +1 -1
  294. data/lib/wx/doc/gen/single_choice_dialog.rb +1 -1
  295. data/lib/wx/doc/gen/sizer.rb +1 -1
  296. data/lib/wx/doc/gen/sizer_item.rb +1 -1
  297. data/lib/wx/doc/gen/slider.rb +1 -1
  298. data/lib/wx/doc/gen/spin_button.rb +1 -1
  299. data/lib/wx/doc/gen/spin_ctrl.rb +1 -1
  300. data/lib/wx/doc/gen/spin_ctrl_double.rb +1 -1
  301. data/lib/wx/doc/gen/spin_double_event.rb +1 -1
  302. data/lib/wx/doc/gen/spin_event.rb +1 -1
  303. data/lib/wx/doc/gen/splash_screen.rb +1 -1
  304. data/lib/wx/doc/gen/splitter_event.rb +1 -1
  305. data/lib/wx/doc/gen/splitter_window.rb +1 -1
  306. data/lib/wx/doc/gen/static_bitmap.rb +1 -1
  307. data/lib/wx/doc/gen/static_box.rb +1 -1
  308. data/lib/wx/doc/gen/static_box_sizer.rb +1 -1
  309. data/lib/wx/doc/gen/static_line.rb +1 -1
  310. data/lib/wx/doc/gen/static_text.rb +1 -1
  311. data/lib/wx/doc/gen/status_bar.rb +1 -1
  312. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4202 -4198
  313. data/lib/wx/doc/gen/stc/styled_text_event.rb +7511 -7507
  314. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +1 -1
  315. data/lib/wx/doc/gen/svg_file_dc.rb +1 -1
  316. data/lib/wx/doc/gen/system_options.rb +1 -1
  317. data/lib/wx/doc/gen/system_settings.rb +1 -1
  318. data/lib/wx/doc/gen/task_bar_button.rb +1 -1
  319. data/lib/wx/doc/gen/task_bar_icon.rb +1 -1
  320. data/lib/wx/doc/gen/task_bar_icon_event.rb +1 -1
  321. data/lib/wx/doc/gen/text_attr.rb +1 -1
  322. data/lib/wx/doc/gen/text_ctrl.rb +1 -1
  323. data/lib/wx/doc/gen/text_entry.rb +1 -1
  324. data/lib/wx/doc/gen/text_entry_dialog.rb +1 -1
  325. data/lib/wx/doc/gen/text_validator.rb +1 -1
  326. data/lib/wx/doc/gen/time_picker_ctrl.rb +1 -1
  327. data/lib/wx/doc/gen/timer.rb +1 -1
  328. data/lib/wx/doc/gen/timer_event.rb +1 -1
  329. data/lib/wx/doc/gen/tip_provider.rb +1 -1
  330. data/lib/wx/doc/gen/toggle_button.rb +1 -1
  331. data/lib/wx/doc/gen/tool_bar.rb +1 -1
  332. data/lib/wx/doc/gen/tool_tip.rb +1 -1
  333. data/lib/wx/doc/gen/toolbook.rb +1 -1
  334. data/lib/wx/doc/gen/top_level_window.rb +1 -1
  335. data/lib/wx/doc/gen/tree_ctrl.rb +1 -1
  336. data/lib/wx/doc/gen/tree_event.rb +1 -1
  337. data/lib/wx/doc/gen/treebook.rb +1 -1
  338. data/lib/wx/doc/gen/ui_action_simulator.rb +1 -1
  339. data/lib/wx/doc/gen/utils.rb +1 -1
  340. data/lib/wx/doc/gen/v_list_box.rb +1 -1
  341. data/lib/wx/doc/gen/v_scrolled_window.rb +1 -1
  342. data/lib/wx/doc/gen/validator.rb +1 -1
  343. data/lib/wx/doc/gen/variant.rb +1 -1
  344. data/lib/wx/doc/gen/window.rb +1 -1
  345. data/lib/wx/doc/gen/window_dc.rb +1 -1
  346. data/lib/wx/doc/gen/window_disabler.rb +1 -1
  347. data/lib/wx/doc/gen/with_images.rb +1 -1
  348. data/lib/wx/doc/gen/wizard.rb +1 -1
  349. data/lib/wx/doc/gen/wizard_event.rb +1 -1
  350. data/lib/wx/doc/gen/wizard_page.rb +1 -1
  351. data/lib/wx/doc/gen/wizard_page_simple.rb +1 -1
  352. data/lib/wx/doc/gen/wrap_sizer.rb +1 -1
  353. data/lib/wx/doc/gen/xml_node.rb +1 -1
  354. data/lib/wx/doc/gen/xml_resource.rb +1 -1
  355. data/lib/wx/rtc/ext/rich_text_ctrl.rb +5 -5
  356. data/lib/wx/version.rb +1 -1
  357. data/lib/wx/wxruby/base.rb +6 -4
  358. data/lib/wx/wxruby/cmd/sampler.rb +39 -29
  359. data/lib/wx/wxruby/cmd/setup.rb +122 -0
  360. data/lib/wx/wxruby/cmd/test.rb +56 -6
  361. data/lib/wxruby_aui.so +0 -0
  362. data/lib/wxruby_core.so +0 -0
  363. data/lib/wxruby_grid.so +0 -0
  364. data/lib/wxruby_html.so +0 -0
  365. data/lib/wxruby_pg.so +0 -0
  366. data/lib/wxruby_prt.so +0 -0
  367. data/lib/wxruby_rbn.so +0 -0
  368. data/lib/wxruby_rtc.so +0 -0
  369. data/lib/wxruby_stc.so +0 -0
  370. data/rakelib/install.rb +2 -0
  371. data/rakelib/lib/config/linux.rb +24 -2
  372. data/rakelib/lib/config/macosx.rb +16 -0
  373. data/rakelib/lib/config/mingw.rb +133 -9
  374. data/rakelib/lib/config/pkgman/arch.rb +53 -0
  375. data/rakelib/lib/config/pkgman/base.rb +169 -0
  376. data/rakelib/lib/config/pkgman/debian.rb +66 -0
  377. data/rakelib/lib/config/pkgman/macosx.rb +183 -0
  378. data/rakelib/lib/config/pkgman/rhel.rb +54 -0
  379. data/rakelib/lib/config/pkgman/suse.rb +54 -0
  380. data/rakelib/lib/config/unixish.rb +36 -19
  381. data/rakelib/lib/config.rb +254 -61
  382. data/rakelib/prepost.rake +9 -4
  383. data/rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css +14 -0
  384. data/rakelib/yard/templates/default/fulldoc/html/setup.rb +5 -5
  385. data/rakelib/yard/yard/relative_markdown_links.rb +7 -1
  386. metadata +23 -4
@@ -6,440 +6,444 @@
6
6
 
7
7
  module Wx::RBN
8
8
 
9
- # Flags for button bar button size and state.
10
- #
11
- # Buttons on a ribbon button bar can each come in three sizes: small, medium, and large. In some places this is called the size class, and the term size used for the pixel width and height associated with a particular size class.
12
- # A button can also be in zero or more hovered or active states, or in the disabled state.
13
- #
14
- # @wxrb_require USE_RIBBON
15
- class RibbonButtonBarButtonState < Wx::Enum
16
-
17
- # Button is small (the interpretation of small is dependent upon the art provider, but it will be smaller than medium).
18
- #
19
- RIBBON_BUTTONBAR_BUTTON_SMALL = Wx::RBN::RibbonButtonBarButtonState.new(0)
20
-
21
- # Button is medium sized (the interpretation of medium is dependent upon the art provider, but it will be between small and large).
22
- #
23
- RIBBON_BUTTONBAR_BUTTON_MEDIUM = Wx::RBN::RibbonButtonBarButtonState.new(1)
24
-
25
- # Button is large (the interpretation of large is dependent upon the art provider, but it will be larger than medium).
26
- #
27
- RIBBON_BUTTONBAR_BUTTON_LARGE = Wx::RBN::RibbonButtonBarButtonState.new(2)
28
-
29
- # A mask to extract button size from a combination of flags.
30
- #
31
- RIBBON_BUTTONBAR_BUTTON_SIZE_MASK = Wx::RBN::RibbonButtonBarButtonState.new(3)
32
-
33
- # The normal (non-dropdown) region of the button is being hovered over by the mouse cursor.
34
- #
35
- RIBBON_BUTTONBAR_BUTTON_NORMAL_HOVERED = Wx::RBN::RibbonButtonBarButtonState.new(8)
36
-
37
- # The dropdown region of the button is being hovered over by the mouse cursor.
38
- #
39
- RIBBON_BUTTONBAR_BUTTON_DROPDOWN_HOVERED = Wx::RBN::RibbonButtonBarButtonState.new(16)
40
-
41
- # A mask to extract button hover state from a combination of flags.
42
- #
43
- RIBBON_BUTTONBAR_BUTTON_HOVER_MASK = Wx::RBN::RibbonButtonBarButtonState.new(24)
44
-
45
- # The normal (non-dropdown) region of the button is being pressed.
46
- #
47
- RIBBON_BUTTONBAR_BUTTON_NORMAL_ACTIVE = Wx::RBN::RibbonButtonBarButtonState.new(32)
48
-
49
- # The dropdown region of the button is being pressed.
50
- #
51
- RIBBON_BUTTONBAR_BUTTON_DROPDOWN_ACTIVE = Wx::RBN::RibbonButtonBarButtonState.new(64)
52
-
53
- # A mask to extract active flags.
54
- #
55
- RIBBON_BUTTONBAR_BUTTON_ACTIVE_MASK = Wx::RBN::RibbonButtonBarButtonState.new(96)
56
-
57
- # The button is disabled.
58
- #
59
- RIBBON_BUTTONBAR_BUTTON_DISABLED = Wx::RBN::RibbonButtonBarButtonState.new(128)
60
-
61
- # The button is a toggle button which is currently in the toggled state.
62
- #
63
- RIBBON_BUTTONBAR_BUTTON_TOGGLED = Wx::RBN::RibbonButtonBarButtonState.new(256)
64
-
65
- # A mask to extract button state from a combination of flags.
66
- #
67
- RIBBON_BUTTONBAR_BUTTON_STATE_MASK = Wx::RBN::RibbonButtonBarButtonState.new(504)
68
-
69
- end # RibbonButtonBarButtonState
70
-
71
- #
72
- #
73
- EVT_RIBBONBUTTONBAR_CLICKED = 10440
74
-
75
- #
76
- #
77
- EVT_RIBBONBUTTONBAR_DROPDOWN_CLICKED = 10441
78
-
79
- # A ribbon button bar is similar to a traditional toolbar.
80
- #
81
- # It contains one or more buttons (button bar buttons, not {Wx::Buttons}), each of which has a label and an icon. It differs from a {Wx::RBN::RibbonToolBar} in several ways:
82
- #
83
- # - Individual buttons can grow and contract.
84
- #
85
- # - Buttons have labels as well as bitmaps.
86
- #
87
- # - Bitmaps are typically larger (at least 32x32 pixels) on a button bar compared to a tool bar (which typically has 16x15).
88
- #
89
- # - There is no grouping of buttons on a button bar
90
- #
91
- # - A button bar typically has a border around each individual button, whereas a tool bar typically has a border around each group of buttons.
92
- #
93
- # ### Events emitted by this class
94
- #
95
- # The following event-handler methods redirect the events to member method or handler blocks for {Wx::RBN::RibbonButtonBarEvent} events.
96
- # Event handler methods for events emitted by this class:
97
- #
98
- # - {Wx::EvtHandler#evt_ribbonbuttonbar_clicked}(id, meth = nil, &block): Triggered when the normal (non-dropdown) region of a button on the button bar is clicked.
99
- #
100
- # - {Wx::EvtHandler#evt_ribbonbuttonbar_dropdown_clicked}(id, meth = nil, &block): Triggered when the dropdown region of a button on the button bar is clicked. {Wx::RBN::RibbonButtonBarEvent#popup_menu} should be called by the event handler if it wants to display a popup menu (which is what most dropdown buttons should be doing).
101
- #
102
- # Category: Ribbon User Interface
103
- #
104
- # @wxrb_require USE_RIBBON
105
- class RibbonButtonBar < RibbonControl
106
-
107
- # @overload initialize()
108
- # Default constructor.
109
- #
110
- # With this constructor, {Wx::RBN::RibbonButtonBar#create} should be called in order to create the button bar.
111
- # @return [Wx::RBN::RibbonButtonBar]
112
- # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0)
113
- # Construct a ribbon button bar with the given parameters.
114
- # @param parent [Wx::Window] Parent window for the button bar (typically a {Wx::RBN::RibbonPanel}).
115
- # @param id [Integer] An identifier for the button bar. {Wx::StandardID::ID_ANY} is taken to mean a default.
116
- # @param pos [Array(Integer, Integer), Wx::Point] Initial position of the button bar.
117
- # @param size [Array(Integer, Integer), Wx::Size] Initial size of the button bar.
118
- # @param style [Integer] Button bar style, currently unused.
119
- # @return [Wx::RBN::RibbonButtonBar]
120
- def initialize(*args) end
121
-
122
- # Create a button bar in two-step button bar construction.
123
- #
124
- # Should only be called when the default constructor is used, and arguments have the same meaning as in the full constructor.
125
- # @param parent [Wx::Window]
126
- # @param id [Integer]
127
- # @param pos [Array(Integer, Integer), Wx::Point]
128
- # @param size [Array(Integer, Integer), Wx::Size]
129
- # @param style [Integer]
130
- # @return [Boolean]
131
- def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
132
-
133
- # @overload add_button(button_id, label, bitmap, help_string, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL)
134
- # Add a button to the button bar (simple version).
135
- # @param button_id [Integer]
136
- # @param label [String]
137
- # @param bitmap [Wx::Bitmap]
138
- # @param help_string [String]
139
- # @param kind [Wx::RibbonButtonKind]
140
- # @return [Integer]
141
- # @overload add_button(button_id, label, bitmap, bitmap_small=Wx::NULL_BITMAP, bitmap_disabled=Wx::NULL_BITMAP, bitmap_small_disabled=Wx::NULL_BITMAP, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL, help_string=(''))
142
- # Add a button to the button bar.
143
- #
144
- # An opaque pointer which can be used only with other button bar methods.
145
- # @see Wx::RBN::RibbonButtonBar#add_dropdown_button
146
- #
147
- # @see Wx::RBN::RibbonButtonBar#add_hybrid_button
148
- #
149
- # @see Wx::RBN::RibbonButtonBar#add_toggle_button
150
- # @param button_id [Integer] ID of the new button (used for event callbacks).
151
- # @param label [String] Label of the new button.
152
- # @param bitmap [Wx::Bitmap] Large bitmap of the new button. Must be the same size as all other large bitmaps used on the button bar.
153
- # @param bitmap_small [Wx::Bitmap] Small bitmap of the new button. If left as null, then a small bitmap will be automatically generated. Must be the same size as all other small bitmaps used on the button bar.
154
- # @param bitmap_disabled [Wx::Bitmap] Large bitmap of the new button when it is disabled. If left as null, then a bitmap will be automatically generated from bitmap.
155
- # @param bitmap_small_disabled [Wx::Bitmap] Small bitmap of the new button when it is disabled. If left as null, then a bitmap will be automatically generated from bitmap_small.
156
- # @param kind [Wx::RibbonButtonKind] The kind of button to add.
157
- # @param help_string [String] The UI help string to associate with the new button.
158
- # @return [Integer]
159
- def add_button(*args) end
160
-
161
- # Add a dropdown button to the button bar (simple version).
162
- #
163
- #
164
- # @see Wx::RBN::RibbonButtonBar#add_button
165
- # @param button_id [Integer]
166
- # @param label [String]
167
- # @param bitmap [Wx::Bitmap]
168
- # @param help_string [String]
169
- # @return [Integer]
170
- def add_dropdown_button(button_id, label, bitmap, help_string=('')) end
171
-
172
- # Add a hybrid button to the button bar (simple version).
173
- #
174
- #
175
- # @see Wx::RBN::RibbonButtonBar#add_button
176
- # @param button_id [Integer]
177
- # @param label [String]
178
- # @param bitmap [Wx::Bitmap]
179
- # @param help_string [String]
180
- # @return [Integer]
181
- def add_hybrid_button(button_id, label, bitmap, help_string=('')) end
182
-
183
- # Add a toggle button to the button bar (simple version).
184
- #
185
- #
186
- # @see Wx::RBN::RibbonButtonBar#add_button
187
- # @param button_id [Integer]
188
- # @param label [String]
189
- # @param bitmap [Wx::Bitmap]
190
- # @param help_string [String]
191
- # @return [Integer]
192
- def add_toggle_button(button_id, label, bitmap, help_string=('')) end
193
-
194
- # @overload insert_button(pos, button_id, label, bitmap, help_string, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL)
195
- # Inserts a button to the button bar (simple version) at the given position.
196
- #
197
- #
198
- # @see Wx::RBN::RibbonButtonBar#add_button
199
- # @param pos [Integer]
200
- # @param button_id [Integer]
201
- # @param label [String]
202
- # @param bitmap [Wx::Bitmap]
203
- # @param help_string [String]
204
- # @param kind [Wx::RibbonButtonKind]
205
- # @return [Integer]
206
- # @overload insert_button(pos, button_id, label, bitmap, bitmap_small=Wx::NULL_BITMAP, bitmap_disabled=Wx::NULL_BITMAP, bitmap_small_disabled=Wx::NULL_BITMAP, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL, help_string=(''))
207
- # Insert a button to the button bar at the given position.
208
- #
209
- # An opaque pointer which can be used only with other button bar methods.
210
- # @see Wx::RBN::RibbonButtonBar#insert_dropdown_button
211
- #
212
- # @see Wx::RBN::RibbonButtonBar#insert_hybrid_button
213
- #
214
- # @see Wx::RBN::RibbonButtonBar#insert_toggle_button
215
- #
216
- # @see Wx::RBN::RibbonButtonBar#add_button
217
- # @param pos [Integer] Position of the new button in the button bar.
218
- # @param button_id [Integer] ID of the new button (used for event callbacks).
219
- # @param label [String] Label of the new button.
220
- # @param bitmap [Wx::Bitmap] Large bitmap of the new button. Must be the same size as all other large bitmaps used on the button bar.
221
- # @param bitmap_small [Wx::Bitmap] Small bitmap of the new button. If left as null, then a small bitmap will be automatically generated. Must be the same size as all other small bitmaps used on the button bar.
222
- # @param bitmap_disabled [Wx::Bitmap] Large bitmap of the new button when it is disabled. If left as null, then a bitmap will be automatically generated from bitmap.
223
- # @param bitmap_small_disabled [Wx::Bitmap] Small bitmap of the new button when it is disabled. If left as null, then a bitmap will be automatically generated from bitmap_small.
224
- # @param kind [Wx::RibbonButtonKind] The kind of button to add.
225
- # @param help_string [String] The UI help string to associate with the new button.
226
- # @return [Integer]
227
- def insert_button(*args) end
228
-
229
- # Inserts a dropdown button to the button bar (simple version) at the given position.
230
- #
231
- #
232
- # @see Wx::RBN::RibbonButtonBar#insert_button
233
- #
234
- # @see Wx::RBN::RibbonButtonBar#add_dropdown_button
235
- #
236
- # @see Wx::RBN::RibbonButtonBar#add_button
237
- # @param pos [Integer]
238
- # @param button_id [Integer]
239
- # @param label [String]
240
- # @param bitmap [Wx::Bitmap]
241
- # @param help_string [String]
242
- # @return [Integer]
243
- def insert_dropdown_button(pos, button_id, label, bitmap, help_string=('')) end
244
-
245
- # Inserts a hybrid button to the button bar (simple version) at the given position.
246
- #
247
- #
248
- # @see Wx::RBN::RibbonButtonBar#insert_button
249
- #
250
- # @see Wx::RBN::RibbonButtonBar#add_hybrid_button
251
- #
252
- # @see Wx::RBN::RibbonButtonBar#add_button
253
- # @param pos [Integer]
254
- # @param button_id [Integer]
255
- # @param label [String]
256
- # @param bitmap [Wx::Bitmap]
257
- # @param help_string [String]
258
- # @return [Integer]
259
- def insert_hybrid_button(pos, button_id, label, bitmap, help_string=('')) end
260
-
261
- # Inserts a toggle button to the button bar (simple version) at the given position.
262
- #
263
- #
264
- # @see Wx::RBN::RibbonButtonBar#insert_button
265
- #
266
- # @see Wx::RBN::RibbonButtonBar#add_toggle_button
267
- #
268
- # @see Wx::RBN::RibbonButtonBar#add_button
269
- # @param pos [Integer]
270
- # @param button_id [Integer]
271
- # @param label [String]
272
- # @param bitmap [Wx::Bitmap]
273
- # @param help_string [String]
274
- # @return [Integer]
275
- def insert_toggle_button(pos, button_id, label, bitmap, help_string=('')) end
276
-
277
- # Returns the number of buttons in this button bar.
278
- # @return [Integer]
279
- def get_button_count; end
280
- alias_method :button_count, :get_button_count
281
-
282
- # Set the client object associated with a button.
283
- #
284
- # The button bar owns the given object and takes care of its deletion. Please, note that you cannot use both client object and client data.
285
- # @param item [Integer]
286
- # @param data [Object]
287
- # @return [void]
288
- def set_item_client_object(item, data) end
289
-
290
- # Get the client object associated with a button.
291
- # @param item [Integer]
292
- # @return [Object]
293
- def get_item_client_object(item) end
294
- alias_method :item_client_object, :get_item_client_object
295
-
296
- # Returns the N-th button of the bar.
297
- #
298
- #
299
- # @see Wx::RBN::RibbonButtonBar#get_button_count
300
- # @param n [Integer]
301
- # @return [Integer]
302
- def get_item(n) end
303
- alias_method :item, :get_item
304
-
305
- # Returns the items's rect with coordinates relative to the button bar's parent, or a default-constructed rect if the tool is not found.
306
- # @param button_id [Integer] ID of the button in question.
307
- # @return [Wx::Rect]
308
- def get_item_rect(button_id) end
309
- alias_method :item_rect, :get_item_rect
310
-
311
- # Calculate button layouts and positions.
312
- #
313
- # Must be called after buttons are added to the button bar, as otherwise the newly added buttons will not be displayed. In normal situations, it will be called automatically when {Wx::RBN::RibbonBar#realize} is called.
314
- # @return [Boolean]
315
- def realize; end
316
-
317
- # Delete all buttons from the button bar.
318
- #
319
- #
320
- # @see Wx::RBN::RibbonButtonBar#delete_button
321
- # @return [void]
322
- def clear_buttons; end
323
-
324
- # Delete a single button from the button bar.
325
- #
326
- # The corresponding button is deleted by this function, so any pointers to it previously obtained by {Wx::RBN::RibbonButtonBar#get_item} or {Wx::RBN::RibbonButtonBar#get_item_by_id} become invalid.
327
- # @see Wx::RBN::RibbonButtonBar#clear_buttons
328
- # @param button_id [Integer]
329
- # @return [Boolean]
330
- def delete_button(button_id) end
331
-
332
- # Enable or disable a single button on the bar.
333
- # @param button_id [Integer] ID of the button to enable or disable.
334
- # @param enable [Boolean] true to enable the button, false to disable it.
335
- # @return [void]
336
- def enable_button(button_id, enable=true) end
337
-
338
- # Set a toggle button to the checked or unchecked state.
339
- # @param button_id [Integer] ID of the toggle button to manipulate.
340
- # @param checked [Boolean] true to set the button to the toggled/pressed/checked state, false to set it to the untoggled/unpressed/unchecked state.
341
- # @return [void]
342
- def toggle_button(button_id, checked) end
343
-
344
- # Changes the bitmap of an existing button.
345
- # @param button_id [Integer] ID of the button to manipulate.
346
- # @param bitmap [Wx::Bitmap] Large bitmap of the new button. Must be the same size as all other large bitmaps used on the button bar.
347
- # @param bitmap_small [Wx::Bitmap] Small bitmap of the new button. If left as null, then a small bitmap will be automatically generated. Must be the same size as all other small bitmaps used on the button bar.
348
- # @param bitmap_disabled [Wx::Bitmap] Large bitmap of the new button when it is disabled. If left as null, then a bitmap will be automatically generated from bitmap.
349
- # @param bitmap_small_disabled [Wx::Bitmap] Small bitmap of the new button when it is disabled. If left as null, then a bitmap will be automatically generated from bitmap_small.
350
- # @return [void]
351
- def set_button_icon(button_id, bitmap, bitmap_small=Wx::NULL_BITMAP, bitmap_disabled=Wx::NULL_BITMAP, bitmap_small_disabled=Wx::NULL_BITMAP) end
352
-
353
- # Changes the label text of an existing button.
354
- #
355
- # <div class="wxrb-remark">
356
- # <b>Remark:</b>
357
- # <p>If text size has changed, {Wx::RBN::RibbonButtonBar#realize} must be called on the top level {Wx::RBN::RibbonBar} object to recalculate panel sizes. Use {Wx::RBN::RibbonButtonBar#set_button_text_min_width} to avoid calling {Wx::RBN::RibbonButtonBar#realize} after every change.
358
- # </p>
359
- # </div>
360
- # @see Wx::RBN::RibbonButtonBar#set_button_text_min_width
361
- # @param button_id [Integer] ID of the button to manipulate.
362
- # @param label [String] New label of the button.
363
- # @return [void]
364
- def set_button_text(button_id, label) end
365
-
366
- # @overload set_button_text_min_width(button_id, min_width_medium, min_width_large)
367
- # Sets the minimum width of the button label, to indicate to the {Wx::RBN::RibbonArtProvider} layout mechanism that this is the minimum required size.
368
- #
369
- # You have to call {Wx::RBN::RibbonButtonBar#realize} after calling this function to apply the given minimum width.
370
- #
371
- # <div class="wxrb-remark">
372
- # <b>Remark:</b>
373
- # <p>This function is used together with {Wx::RBN::RibbonButtonBar#set_button_text} to change button labels on the fly without modifying the button bar layout.
374
- # </p>
375
- # </div>
376
- # @see Wx::RBN::RibbonButtonBar#set_button_text
377
- # @param button_id [Integer] ID of the button to manipulate.
378
- # @param min_width_medium [Integer] Requested minimum width of the button text in pixel if the button is medium size.
379
- # @param min_width_large [Integer] Requested minimum width of the button text in pixel if the button is large size.
380
- # @return [void]
381
- # @overload set_button_text_min_width(button_id, label)
382
- # Sets the minimum width of the button label, to indicate to the {Wx::RBN::RibbonArtProvider} layout mechanism that this is the minimum required size.
383
- #
384
- # You have to call {Wx::RBN::RibbonButtonBar#realize} after calling this function to apply the given minimum width.
385
- #
386
- # <div class="wxrb-remark">
387
- # <b>Remark:</b>
388
- # <p>This function is used together with {Wx::RBN::RibbonButtonBar#set_button_text} to change button labels on the fly without modifying the button bar layout.
389
- # </p>
390
- # </div>
391
- # @see Wx::RBN::RibbonButtonBar#set_button_text
392
- # @param button_id [Integer] ID of the button to manipulate.
393
- # @param label [String] The minimum width is set to the width of this label.
394
- # @return [void]
395
- def set_button_text_min_width(*args) end
396
-
397
- # Sets the minimum size class of a ribbon button.
398
- #
399
- # You have to call {Wx::RBN::RibbonButtonBar#realize} after calling this function to apply the given minimum size.
400
- # @param button_id [Integer] ID of the button to manipulate.
401
- # @param min_size_class [Wx::RibbonButtonBarButtonState] The minimum size-class of the button. Buttons on a button bar can have three distinct sizes: {Wx::RBN::RibbonButtonBarButtonState::RIBBON_BUTTONBAR_BUTTON_SMALL}, {Wx::RBN::RibbonButtonBarButtonState::RIBBON_BUTTONBAR_BUTTON_MEDIUM}, and {Wx::RBN::RibbonButtonBarButtonState::RIBBON_BUTTONBAR_BUTTON_LARGE}.
402
- # @return [void]
403
- def set_button_min_size_class(button_id, min_size_class) end
404
-
405
- # Sets the maximum size class of a ribbon button.
406
- #
407
- # You have to call {Wx::RBN::RibbonButtonBar#realize} after calling this function to apply the given maximum size.
408
- # @param button_id [Integer] ID of the button to manipulate.
409
- # @param max_size_class [Wx::RibbonButtonBarButtonState] The maximum size-class of the button. Buttons on a button bar can have three distinct sizes: {Wx::RBN::RibbonButtonBarButtonState::RIBBON_BUTTONBAR_BUTTON_SMALL}, {Wx::RBN::RibbonButtonBarButtonState::RIBBON_BUTTONBAR_BUTTON_MEDIUM}, and {Wx::RBN::RibbonButtonBarButtonState::RIBBON_BUTTONBAR_BUTTON_LARGE}.
410
- # @return [void]
411
- def set_button_max_size_class(button_id, max_size_class) end
412
-
413
- # Returns the active item of the button bar or NULL if there is none.
414
- #
415
- # The active button is the one being clicked.
416
- # @return [Integer]
417
- def get_active_item; end
418
- alias_method :active_item, :get_active_item
419
-
420
- # Returns the hovered item of the button bar or NULL if there is none.
421
- #
422
- # The hovered button is the one the mouse is over.
423
- # @return [Integer]
424
- def get_hovered_item; end
425
- alias_method :hovered_item, :get_hovered_item
426
-
427
- # Indicates whether tooltips are shown for disabled buttons.
428
- #
429
- # By default they are not shown.
430
- # @param show [Boolean]
431
- # @return [void]
432
- def set_show_tool_tips_for_disabled(show) end
433
- alias_method :show_tool_tips_for_disabled=, :set_show_tool_tips_for_disabled
434
-
435
- # Sets whether tooltips should be shown for disabled buttons or not.
436
- #
437
- # You may wish to show it to explain why a button is disabled or what it normally does when enabled.
438
- # @return [Boolean]
439
- def get_show_tool_tips_for_disabled; end
440
- alias_method :show_tool_tips_for_disabled, :get_show_tool_tips_for_disabled
9
+ module Wx::RBN
10
+
11
+ # Flags for button bar button size and state.
12
+ #
13
+ # Buttons on a ribbon button bar can each come in three sizes: small, medium, and large. In some places this is called the size class, and the term size used for the pixel width and height associated with a particular size class.
14
+ # A button can also be in zero or more hovered or active states, or in the disabled state.
15
+ #
16
+ # @wxrb_require USE_RIBBON
17
+ class RibbonButtonBarButtonState < Wx::Enum
18
+
19
+ # Button is small (the interpretation of small is dependent upon the art provider, but it will be smaller than medium).
20
+ #
21
+ RIBBON_BUTTONBAR_BUTTON_SMALL = Wx::RBN::RibbonButtonBarButtonState.new(0)
22
+
23
+ # Button is medium sized (the interpretation of medium is dependent upon the art provider, but it will be between small and large).
24
+ #
25
+ RIBBON_BUTTONBAR_BUTTON_MEDIUM = Wx::RBN::RibbonButtonBarButtonState.new(1)
26
+
27
+ # Button is large (the interpretation of large is dependent upon the art provider, but it will be larger than medium).
28
+ #
29
+ RIBBON_BUTTONBAR_BUTTON_LARGE = Wx::RBN::RibbonButtonBarButtonState.new(2)
30
+
31
+ # A mask to extract button size from a combination of flags.
32
+ #
33
+ RIBBON_BUTTONBAR_BUTTON_SIZE_MASK = Wx::RBN::RibbonButtonBarButtonState.new(3)
34
+
35
+ # The normal (non-dropdown) region of the button is being hovered over by the mouse cursor.
36
+ #
37
+ RIBBON_BUTTONBAR_BUTTON_NORMAL_HOVERED = Wx::RBN::RibbonButtonBarButtonState.new(8)
38
+
39
+ # The dropdown region of the button is being hovered over by the mouse cursor.
40
+ #
41
+ RIBBON_BUTTONBAR_BUTTON_DROPDOWN_HOVERED = Wx::RBN::RibbonButtonBarButtonState.new(16)
42
+
43
+ # A mask to extract button hover state from a combination of flags.
44
+ #
45
+ RIBBON_BUTTONBAR_BUTTON_HOVER_MASK = Wx::RBN::RibbonButtonBarButtonState.new(24)
46
+
47
+ # The normal (non-dropdown) region of the button is being pressed.
48
+ #
49
+ RIBBON_BUTTONBAR_BUTTON_NORMAL_ACTIVE = Wx::RBN::RibbonButtonBarButtonState.new(32)
50
+
51
+ # The dropdown region of the button is being pressed.
52
+ #
53
+ RIBBON_BUTTONBAR_BUTTON_DROPDOWN_ACTIVE = Wx::RBN::RibbonButtonBarButtonState.new(64)
54
+
55
+ # A mask to extract active flags.
56
+ #
57
+ RIBBON_BUTTONBAR_BUTTON_ACTIVE_MASK = Wx::RBN::RibbonButtonBarButtonState.new(96)
58
+
59
+ # The button is disabled.
60
+ #
61
+ RIBBON_BUTTONBAR_BUTTON_DISABLED = Wx::RBN::RibbonButtonBarButtonState.new(128)
62
+
63
+ # The button is a toggle button which is currently in the toggled state.
64
+ #
65
+ RIBBON_BUTTONBAR_BUTTON_TOGGLED = Wx::RBN::RibbonButtonBarButtonState.new(256)
66
+
67
+ # A mask to extract button state from a combination of flags.
68
+ #
69
+ RIBBON_BUTTONBAR_BUTTON_STATE_MASK = Wx::RBN::RibbonButtonBarButtonState.new(504)
70
+
71
+ end # RibbonButtonBarButtonState
72
+
73
+ #
74
+ #
75
+ EVT_RIBBONBUTTONBAR_CLICKED = 10440
76
+
77
+ #
78
+ #
79
+ EVT_RIBBONBUTTONBAR_DROPDOWN_CLICKED = 10441
80
+
81
+ # A ribbon button bar is similar to a traditional toolbar.
82
+ #
83
+ # It contains one or more buttons (button bar buttons, not {Wx::Buttons}), each of which has a label and an icon. It differs from a {Wx::RBN::RibbonToolBar} in several ways:
84
+ #
85
+ # - Individual buttons can grow and contract.
86
+ #
87
+ # - Buttons have labels as well as bitmaps.
88
+ #
89
+ # - Bitmaps are typically larger (at least 32x32 pixels) on a button bar compared to a tool bar (which typically has 16x15).
90
+ #
91
+ # - There is no grouping of buttons on a button bar
92
+ #
93
+ # - A button bar typically has a border around each individual button, whereas a tool bar typically has a border around each group of buttons.
94
+ #
95
+ # ### Events emitted by this class
96
+ #
97
+ # The following event-handler methods redirect the events to member method or handler blocks for {Wx::RBN::RibbonButtonBarEvent} events.
98
+ # Event handler methods for events emitted by this class:
99
+ #
100
+ # - {Wx::EvtHandler#evt_ribbonbuttonbar_clicked}(id, meth = nil, &block): Triggered when the normal (non-dropdown) region of a button on the button bar is clicked.
101
+ #
102
+ # - {Wx::EvtHandler#evt_ribbonbuttonbar_dropdown_clicked}(id, meth = nil, &block): Triggered when the dropdown region of a button on the button bar is clicked. {Wx::RBN::RibbonButtonBarEvent#popup_menu} should be called by the event handler if it wants to display a popup menu (which is what most dropdown buttons should be doing).
103
+ #
104
+ # Category: Ribbon User Interface
105
+ #
106
+ # @wxrb_require USE_RIBBON
107
+ class RibbonButtonBar < RibbonControl
108
+
109
+ # @overload initialize()
110
+ # Default constructor.
111
+ #
112
+ # With this constructor, {Wx::RBN::RibbonButtonBar#create} should be called in order to create the button bar.
113
+ # @return [Wx::RBN::RibbonButtonBar]
114
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0)
115
+ # Construct a ribbon button bar with the given parameters.
116
+ # @param parent [Wx::Window] Parent window for the button bar (typically a {Wx::RBN::RibbonPanel}).
117
+ # @param id [Integer] An identifier for the button bar. {Wx::StandardID::ID_ANY} is taken to mean a default.
118
+ # @param pos [Array(Integer, Integer), Wx::Point] Initial position of the button bar.
119
+ # @param size [Array(Integer, Integer), Wx::Size] Initial size of the button bar.
120
+ # @param style [Integer] Button bar style, currently unused.
121
+ # @return [Wx::RBN::RibbonButtonBar]
122
+ def initialize(*args) end
123
+
124
+ # Create a button bar in two-step button bar construction.
125
+ #
126
+ # Should only be called when the default constructor is used, and arguments have the same meaning as in the full constructor.
127
+ # @param parent [Wx::Window]
128
+ # @param id [Integer]
129
+ # @param pos [Array(Integer, Integer), Wx::Point]
130
+ # @param size [Array(Integer, Integer), Wx::Size]
131
+ # @param style [Integer]
132
+ # @return [Boolean]
133
+ def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
134
+
135
+ # @overload add_button(button_id, label, bitmap, help_string, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL)
136
+ # Add a button to the button bar (simple version).
137
+ # @param button_id [Integer]
138
+ # @param label [String]
139
+ # @param bitmap [Wx::Bitmap]
140
+ # @param help_string [String]
141
+ # @param kind [Wx::RibbonButtonKind]
142
+ # @return [Integer]
143
+ # @overload add_button(button_id, label, bitmap, bitmap_small=Wx::NULL_BITMAP, bitmap_disabled=Wx::NULL_BITMAP, bitmap_small_disabled=Wx::NULL_BITMAP, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL, help_string=(''))
144
+ # Add a button to the button bar.
145
+ #
146
+ # An opaque pointer which can be used only with other button bar methods.
147
+ # @see Wx::RBN::RibbonButtonBar#add_dropdown_button
148
+ #
149
+ # @see Wx::RBN::RibbonButtonBar#add_hybrid_button
150
+ #
151
+ # @see Wx::RBN::RibbonButtonBar#add_toggle_button
152
+ # @param button_id [Integer] ID of the new button (used for event callbacks).
153
+ # @param label [String] Label of the new button.
154
+ # @param bitmap [Wx::Bitmap] Large bitmap of the new button. Must be the same size as all other large bitmaps used on the button bar.
155
+ # @param bitmap_small [Wx::Bitmap] Small bitmap of the new button. If left as null, then a small bitmap will be automatically generated. Must be the same size as all other small bitmaps used on the button bar.
156
+ # @param bitmap_disabled [Wx::Bitmap] Large bitmap of the new button when it is disabled. If left as null, then a bitmap will be automatically generated from bitmap.
157
+ # @param bitmap_small_disabled [Wx::Bitmap] Small bitmap of the new button when it is disabled. If left as null, then a bitmap will be automatically generated from bitmap_small.
158
+ # @param kind [Wx::RibbonButtonKind] The kind of button to add.
159
+ # @param help_string [String] The UI help string to associate with the new button.
160
+ # @return [Integer]
161
+ def add_button(*args) end
162
+
163
+ # Add a dropdown button to the button bar (simple version).
164
+ #
165
+ #
166
+ # @see Wx::RBN::RibbonButtonBar#add_button
167
+ # @param button_id [Integer]
168
+ # @param label [String]
169
+ # @param bitmap [Wx::Bitmap]
170
+ # @param help_string [String]
171
+ # @return [Integer]
172
+ def add_dropdown_button(button_id, label, bitmap, help_string=('')) end
173
+
174
+ # Add a hybrid button to the button bar (simple version).
175
+ #
176
+ #
177
+ # @see Wx::RBN::RibbonButtonBar#add_button
178
+ # @param button_id [Integer]
179
+ # @param label [String]
180
+ # @param bitmap [Wx::Bitmap]
181
+ # @param help_string [String]
182
+ # @return [Integer]
183
+ def add_hybrid_button(button_id, label, bitmap, help_string=('')) end
184
+
185
+ # Add a toggle button to the button bar (simple version).
186
+ #
187
+ #
188
+ # @see Wx::RBN::RibbonButtonBar#add_button
189
+ # @param button_id [Integer]
190
+ # @param label [String]
191
+ # @param bitmap [Wx::Bitmap]
192
+ # @param help_string [String]
193
+ # @return [Integer]
194
+ def add_toggle_button(button_id, label, bitmap, help_string=('')) end
195
+
196
+ # @overload insert_button(pos, button_id, label, bitmap, help_string, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL)
197
+ # Inserts a button to the button bar (simple version) at the given position.
198
+ #
199
+ #
200
+ # @see Wx::RBN::RibbonButtonBar#add_button
201
+ # @param pos [Integer]
202
+ # @param button_id [Integer]
203
+ # @param label [String]
204
+ # @param bitmap [Wx::Bitmap]
205
+ # @param help_string [String]
206
+ # @param kind [Wx::RibbonButtonKind]
207
+ # @return [Integer]
208
+ # @overload insert_button(pos, button_id, label, bitmap, bitmap_small=Wx::NULL_BITMAP, bitmap_disabled=Wx::NULL_BITMAP, bitmap_small_disabled=Wx::NULL_BITMAP, kind=Wx::RBN::RibbonButtonKind::RIBBON_BUTTON_NORMAL, help_string=(''))
209
+ # Insert a button to the button bar at the given position.
210
+ #
211
+ # An opaque pointer which can be used only with other button bar methods.
212
+ # @see Wx::RBN::RibbonButtonBar#insert_dropdown_button
213
+ #
214
+ # @see Wx::RBN::RibbonButtonBar#insert_hybrid_button
215
+ #
216
+ # @see Wx::RBN::RibbonButtonBar#insert_toggle_button
217
+ #
218
+ # @see Wx::RBN::RibbonButtonBar#add_button
219
+ # @param pos [Integer] Position of the new button in the button bar.
220
+ # @param button_id [Integer] ID of the new button (used for event callbacks).
221
+ # @param label [String] Label of the new button.
222
+ # @param bitmap [Wx::Bitmap] Large bitmap of the new button. Must be the same size as all other large bitmaps used on the button bar.
223
+ # @param bitmap_small [Wx::Bitmap] Small bitmap of the new button. If left as null, then a small bitmap will be automatically generated. Must be the same size as all other small bitmaps used on the button bar.
224
+ # @param bitmap_disabled [Wx::Bitmap] Large bitmap of the new button when it is disabled. If left as null, then a bitmap will be automatically generated from bitmap.
225
+ # @param bitmap_small_disabled [Wx::Bitmap] Small bitmap of the new button when it is disabled. If left as null, then a bitmap will be automatically generated from bitmap_small.
226
+ # @param kind [Wx::RibbonButtonKind] The kind of button to add.
227
+ # @param help_string [String] The UI help string to associate with the new button.
228
+ # @return [Integer]
229
+ def insert_button(*args) end
230
+
231
+ # Inserts a dropdown button to the button bar (simple version) at the given position.
232
+ #
233
+ #
234
+ # @see Wx::RBN::RibbonButtonBar#insert_button
235
+ #
236
+ # @see Wx::RBN::RibbonButtonBar#add_dropdown_button
237
+ #
238
+ # @see Wx::RBN::RibbonButtonBar#add_button
239
+ # @param pos [Integer]
240
+ # @param button_id [Integer]
241
+ # @param label [String]
242
+ # @param bitmap [Wx::Bitmap]
243
+ # @param help_string [String]
244
+ # @return [Integer]
245
+ def insert_dropdown_button(pos, button_id, label, bitmap, help_string=('')) end
246
+
247
+ # Inserts a hybrid button to the button bar (simple version) at the given position.
248
+ #
249
+ #
250
+ # @see Wx::RBN::RibbonButtonBar#insert_button
251
+ #
252
+ # @see Wx::RBN::RibbonButtonBar#add_hybrid_button
253
+ #
254
+ # @see Wx::RBN::RibbonButtonBar#add_button
255
+ # @param pos [Integer]
256
+ # @param button_id [Integer]
257
+ # @param label [String]
258
+ # @param bitmap [Wx::Bitmap]
259
+ # @param help_string [String]
260
+ # @return [Integer]
261
+ def insert_hybrid_button(pos, button_id, label, bitmap, help_string=('')) end
262
+
263
+ # Inserts a toggle button to the button bar (simple version) at the given position.
264
+ #
265
+ #
266
+ # @see Wx::RBN::RibbonButtonBar#insert_button
267
+ #
268
+ # @see Wx::RBN::RibbonButtonBar#add_toggle_button
269
+ #
270
+ # @see Wx::RBN::RibbonButtonBar#add_button
271
+ # @param pos [Integer]
272
+ # @param button_id [Integer]
273
+ # @param label [String]
274
+ # @param bitmap [Wx::Bitmap]
275
+ # @param help_string [String]
276
+ # @return [Integer]
277
+ def insert_toggle_button(pos, button_id, label, bitmap, help_string=('')) end
278
+
279
+ # Returns the number of buttons in this button bar.
280
+ # @return [Integer]
281
+ def get_button_count; end
282
+ alias_method :button_count, :get_button_count
283
+
284
+ # Set the client object associated with a button.
285
+ #
286
+ # The button bar owns the given object and takes care of its deletion. Please, note that you cannot use both client object and client data.
287
+ # @param item [Integer]
288
+ # @param data [Object]
289
+ # @return [void]
290
+ def set_item_client_object(item, data) end
291
+
292
+ # Get the client object associated with a button.
293
+ # @param item [Integer]
294
+ # @return [Object]
295
+ def get_item_client_object(item) end
296
+ alias_method :item_client_object, :get_item_client_object
297
+
298
+ # Returns the N-th button of the bar.
299
+ #
300
+ #
301
+ # @see Wx::RBN::RibbonButtonBar#get_button_count
302
+ # @param n [Integer]
303
+ # @return [Integer]
304
+ def get_item(n) end
305
+ alias_method :item, :get_item
306
+
307
+ # Returns the items's rect with coordinates relative to the button bar's parent, or a default-constructed rect if the tool is not found.
308
+ # @param button_id [Integer] ID of the button in question.
309
+ # @return [Wx::Rect]
310
+ def get_item_rect(button_id) end
311
+ alias_method :item_rect, :get_item_rect
312
+
313
+ # Calculate button layouts and positions.
314
+ #
315
+ # Must be called after buttons are added to the button bar, as otherwise the newly added buttons will not be displayed. In normal situations, it will be called automatically when {Wx::RBN::RibbonBar#realize} is called.
316
+ # @return [Boolean]
317
+ def realize; end
318
+
319
+ # Delete all buttons from the button bar.
320
+ #
321
+ #
322
+ # @see Wx::RBN::RibbonButtonBar#delete_button
323
+ # @return [void]
324
+ def clear_buttons; end
325
+
326
+ # Delete a single button from the button bar.
327
+ #
328
+ # The corresponding button is deleted by this function, so any pointers to it previously obtained by {Wx::RBN::RibbonButtonBar#get_item} or {Wx::RBN::RibbonButtonBar#get_item_by_id} become invalid.
329
+ # @see Wx::RBN::RibbonButtonBar#clear_buttons
330
+ # @param button_id [Integer]
331
+ # @return [Boolean]
332
+ def delete_button(button_id) end
333
+
334
+ # Enable or disable a single button on the bar.
335
+ # @param button_id [Integer] ID of the button to enable or disable.
336
+ # @param enable [Boolean] true to enable the button, false to disable it.
337
+ # @return [void]
338
+ def enable_button(button_id, enable=true) end
339
+
340
+ # Set a toggle button to the checked or unchecked state.
341
+ # @param button_id [Integer] ID of the toggle button to manipulate.
342
+ # @param checked [Boolean] true to set the button to the toggled/pressed/checked state, false to set it to the untoggled/unpressed/unchecked state.
343
+ # @return [void]
344
+ def toggle_button(button_id, checked) end
345
+
346
+ # Changes the bitmap of an existing button.
347
+ # @param button_id [Integer] ID of the button to manipulate.
348
+ # @param bitmap [Wx::Bitmap] Large bitmap of the new button. Must be the same size as all other large bitmaps used on the button bar.
349
+ # @param bitmap_small [Wx::Bitmap] Small bitmap of the new button. If left as null, then a small bitmap will be automatically generated. Must be the same size as all other small bitmaps used on the button bar.
350
+ # @param bitmap_disabled [Wx::Bitmap] Large bitmap of the new button when it is disabled. If left as null, then a bitmap will be automatically generated from bitmap.
351
+ # @param bitmap_small_disabled [Wx::Bitmap] Small bitmap of the new button when it is disabled. If left as null, then a bitmap will be automatically generated from bitmap_small.
352
+ # @return [void]
353
+ def set_button_icon(button_id, bitmap, bitmap_small=Wx::NULL_BITMAP, bitmap_disabled=Wx::NULL_BITMAP, bitmap_small_disabled=Wx::NULL_BITMAP) end
354
+
355
+ # Changes the label text of an existing button.
356
+ #
357
+ # <div class="wxrb-remark">
358
+ # <b>Remark:</b>
359
+ # <p>If text size has changed, {Wx::RBN::RibbonButtonBar#realize} must be called on the top level {Wx::RBN::RibbonBar} object to recalculate panel sizes. Use {Wx::RBN::RibbonButtonBar#set_button_text_min_width} to avoid calling {Wx::RBN::RibbonButtonBar#realize} after every change.
360
+ # </p>
361
+ # </div>
362
+ # @see Wx::RBN::RibbonButtonBar#set_button_text_min_width
363
+ # @param button_id [Integer] ID of the button to manipulate.
364
+ # @param label [String] New label of the button.
365
+ # @return [void]
366
+ def set_button_text(button_id, label) end
367
+
368
+ # @overload set_button_text_min_width(button_id, min_width_medium, min_width_large)
369
+ # Sets the minimum width of the button label, to indicate to the {Wx::RBN::RibbonArtProvider} layout mechanism that this is the minimum required size.
370
+ #
371
+ # You have to call {Wx::RBN::RibbonButtonBar#realize} after calling this function to apply the given minimum width.
372
+ #
373
+ # <div class="wxrb-remark">
374
+ # <b>Remark:</b>
375
+ # <p>This function is used together with {Wx::RBN::RibbonButtonBar#set_button_text} to change button labels on the fly without modifying the button bar layout.
376
+ # </p>
377
+ # </div>
378
+ # @see Wx::RBN::RibbonButtonBar#set_button_text
379
+ # @param button_id [Integer] ID of the button to manipulate.
380
+ # @param min_width_medium [Integer] Requested minimum width of the button text in pixel if the button is medium size.
381
+ # @param min_width_large [Integer] Requested minimum width of the button text in pixel if the button is large size.
382
+ # @return [void]
383
+ # @overload set_button_text_min_width(button_id, label)
384
+ # Sets the minimum width of the button label, to indicate to the {Wx::RBN::RibbonArtProvider} layout mechanism that this is the minimum required size.
385
+ #
386
+ # You have to call {Wx::RBN::RibbonButtonBar#realize} after calling this function to apply the given minimum width.
387
+ #
388
+ # <div class="wxrb-remark">
389
+ # <b>Remark:</b>
390
+ # <p>This function is used together with {Wx::RBN::RibbonButtonBar#set_button_text} to change button labels on the fly without modifying the button bar layout.
391
+ # </p>
392
+ # </div>
393
+ # @see Wx::RBN::RibbonButtonBar#set_button_text
394
+ # @param button_id [Integer] ID of the button to manipulate.
395
+ # @param label [String] The minimum width is set to the width of this label.
396
+ # @return [void]
397
+ def set_button_text_min_width(*args) end
398
+
399
+ # Sets the minimum size class of a ribbon button.
400
+ #
401
+ # You have to call {Wx::RBN::RibbonButtonBar#realize} after calling this function to apply the given minimum size.
402
+ # @param button_id [Integer] ID of the button to manipulate.
403
+ # @param min_size_class [Wx::RibbonButtonBarButtonState] The minimum size-class of the button. Buttons on a button bar can have three distinct sizes: {Wx::RBN::RibbonButtonBarButtonState::RIBBON_BUTTONBAR_BUTTON_SMALL}, {Wx::RBN::RibbonButtonBarButtonState::RIBBON_BUTTONBAR_BUTTON_MEDIUM}, and {Wx::RBN::RibbonButtonBarButtonState::RIBBON_BUTTONBAR_BUTTON_LARGE}.
404
+ # @return [void]
405
+ def set_button_min_size_class(button_id, min_size_class) end
406
+
407
+ # Sets the maximum size class of a ribbon button.
408
+ #
409
+ # You have to call {Wx::RBN::RibbonButtonBar#realize} after calling this function to apply the given maximum size.
410
+ # @param button_id [Integer] ID of the button to manipulate.
411
+ # @param max_size_class [Wx::RibbonButtonBarButtonState] The maximum size-class of the button. Buttons on a button bar can have three distinct sizes: {Wx::RBN::RibbonButtonBarButtonState::RIBBON_BUTTONBAR_BUTTON_SMALL}, {Wx::RBN::RibbonButtonBarButtonState::RIBBON_BUTTONBAR_BUTTON_MEDIUM}, and {Wx::RBN::RibbonButtonBarButtonState::RIBBON_BUTTONBAR_BUTTON_LARGE}.
412
+ # @return [void]
413
+ def set_button_max_size_class(button_id, max_size_class) end
414
+
415
+ # Returns the active item of the button bar or NULL if there is none.
416
+ #
417
+ # The active button is the one being clicked.
418
+ # @return [Integer]
419
+ def get_active_item; end
420
+ alias_method :active_item, :get_active_item
421
+
422
+ # Returns the hovered item of the button bar or NULL if there is none.
423
+ #
424
+ # The hovered button is the one the mouse is over.
425
+ # @return [Integer]
426
+ def get_hovered_item; end
427
+ alias_method :hovered_item, :get_hovered_item
428
+
429
+ # Indicates whether tooltips are shown for disabled buttons.
430
+ #
431
+ # By default they are not shown.
432
+ # @param show [Boolean]
433
+ # @return [void]
434
+ def set_show_tool_tips_for_disabled(show) end
435
+ alias_method :show_tool_tips_for_disabled=, :set_show_tool_tips_for_disabled
436
+
437
+ # Sets whether tooltips should be shown for disabled buttons or not.
438
+ #
439
+ # You may wish to show it to explain why a button is disabled or what it normally does when enabled.
440
+ # @return [Boolean]
441
+ def get_show_tool_tips_for_disabled; end
442
+ alias_method :show_tool_tips_for_disabled, :get_show_tool_tips_for_disabled
443
+
444
+ end # RibbonButtonBar
441
445
 
442
- end # RibbonButtonBar
443
-
444
446
 
445
- end
447
+ end
448
+
449
+ end