wxruby3 1.6.0 → 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 (541) hide show
  1. checksums.yaml +4 -4
  2. data/CREDITS.md +32 -25
  3. data/INSTALL.md +21 -6
  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 +154 -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/core/variant.rb +6 -0
  30. data/lib/wx/doc/aui/auitabctrl.rb +35 -0
  31. data/lib/wx/doc/config.rb +2 -2
  32. data/lib/wx/doc/functions.rb +1 -1
  33. data/lib/wx/doc/gen/about_dialog_info.rb +330 -0
  34. data/lib/wx/doc/gen/accelerator.rb +178 -0
  35. data/lib/wx/doc/gen/activity_indicator.rb +83 -0
  36. data/lib/wx/doc/gen/affine_matrix2d.rb +284 -0
  37. data/lib/wx/doc/gen/animation.rb +275 -0
  38. data/lib/wx/doc/gen/animation_ctrl.rb +300 -0
  39. data/lib/wx/doc/gen/any_button.rb +191 -0
  40. data/lib/wx/doc/gen/app.rb +463 -0
  41. data/lib/wx/doc/gen/app_traits.rb +396 -0
  42. data/lib/wx/doc/gen/art_provider.rb +605 -0
  43. data/lib/wx/doc/gen/aui/aui_dock_art.rb +455 -0
  44. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +54 -0
  45. data/lib/wx/doc/gen/aui/aui_manager.rb +847 -0
  46. data/lib/wx/doc/gen/aui/aui_manager_event.rb +131 -0
  47. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +180 -0
  48. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +59 -0
  49. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +130 -0
  50. data/lib/wx/doc/gen/aui/aui_notebook.rb +631 -0
  51. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +233 -0
  52. data/lib/wx/doc/gen/aui/aui_pane_info.rb +769 -0
  53. data/lib/wx/doc/gen/aui/aui_tab_art.rb +352 -0
  54. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +14 -0
  55. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +510 -0
  56. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +340 -0
  57. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +244 -0
  58. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +257 -0
  59. data/lib/wx/doc/gen/aui/event_list.rb +179 -0
  60. data/lib/wx/doc/gen/banner_window.rb +124 -0
  61. data/lib/wx/doc/gen/bitmap.rb +731 -0
  62. data/lib/wx/doc/gen/bitmap_button.rb +123 -0
  63. data/lib/wx/doc/gen/bitmap_combo_box.rb +221 -0
  64. data/lib/wx/doc/gen/book_ctrl_base.rb +273 -0
  65. data/lib/wx/doc/gen/book_ctrl_event.rb +66 -0
  66. data/lib/wx/doc/gen/box_sizer.rb +85 -0
  67. data/lib/wx/doc/gen/brush.rb +251 -0
  68. data/lib/wx/doc/gen/busy_info.rb +157 -0
  69. data/lib/wx/doc/gen/button.rb +182 -0
  70. data/lib/wx/doc/gen/calculate_layout_event.rb +62 -0
  71. data/lib/wx/doc/gen/calendar_ctrl.rb +505 -0
  72. data/lib/wx/doc/gen/calendar_date_attr.rb +138 -0
  73. data/lib/wx/doc/gen/calendar_event.rb +147 -0
  74. data/lib/wx/doc/gen/caret.rb +97 -0
  75. data/lib/wx/doc/gen/check_box.rb +175 -0
  76. data/lib/wx/doc/gen/check_list_box.rb +121 -0
  77. data/lib/wx/doc/gen/choice.rb +175 -0
  78. data/lib/wx/doc/gen/choicebook.rb +116 -0
  79. data/lib/wx/doc/gen/client_dc.rb +43 -0
  80. data/lib/wx/doc/gen/clipboard.rb +144 -0
  81. data/lib/wx/doc/gen/collapsible_pane.rb +138 -0
  82. data/lib/wx/doc/gen/collapsible_pane_event.rb +46 -0
  83. data/lib/wx/doc/gen/colour.rb +333 -0
  84. data/lib/wx/doc/gen/colour_dialog.rb +190 -0
  85. data/lib/wx/doc/gen/colour_picker_ctrl.rb +110 -0
  86. data/lib/wx/doc/gen/colour_picker_event.rb +77 -0
  87. data/lib/wx/doc/gen/combo_box.rb +292 -0
  88. data/lib/wx/doc/gen/combo_ctrl.rb +662 -0
  89. data/lib/wx/doc/gen/command_link_button.rb +134 -0
  90. data/lib/wx/doc/gen/config_base.rb +10 -0
  91. data/lib/wx/doc/gen/context_help_button.rb +109 -0
  92. data/lib/wx/doc/gen/control.rb +277 -0
  93. data/lib/wx/doc/gen/control_with_items.rb +253 -0
  94. data/lib/wx/doc/gen/core.rb +45 -0
  95. data/lib/wx/doc/gen/credential_entry_dialog.rb +137 -0
  96. data/lib/wx/doc/gen/cursor.rb +193 -0
  97. data/lib/wx/doc/gen/data_format.rb +85 -0
  98. data/lib/wx/doc/gen/data_object.rb +436 -0
  99. data/lib/wx/doc/gen/data_object_simple_base.rb +10 -0
  100. data/lib/wx/doc/gen/date_event.rb +49 -0
  101. data/lib/wx/doc/gen/date_picker_ctrl.rb +161 -0
  102. data/lib/wx/doc/gen/dc.rb +1631 -0
  103. data/lib/wx/doc/gen/dc_overlay.rb +102 -0
  104. data/lib/wx/doc/gen/defs.rb +2802 -0
  105. data/lib/wx/doc/gen/dial_up_event.rb +45 -0
  106. data/lib/wx/doc/gen/dial_up_manager.rb +149 -0
  107. data/lib/wx/doc/gen/dialog.rb +541 -0
  108. data/lib/wx/doc/gen/dir_dialog.rb +164 -0
  109. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +90 -0
  110. data/lib/wx/doc/gen/dir_picker_ctrl.rb +125 -0
  111. data/lib/wx/doc/gen/display.rb +238 -0
  112. data/lib/wx/doc/gen/drag_drop.rb +299 -0
  113. data/lib/wx/doc/gen/drag_image.rb +116 -0
  114. data/lib/wx/doc/gen/editable_list_box.rb +109 -0
  115. data/lib/wx/doc/gen/event.rb +990 -0
  116. data/lib/wx/doc/gen/event_blocker.rb +50 -0
  117. data/lib/wx/doc/gen/event_filter.rb +92 -0
  118. data/lib/wx/doc/gen/event_list.rb +1644 -0
  119. data/lib/wx/doc/gen/events.rb +2809 -0
  120. data/lib/wx/doc/gen/evt_handler.rb +229 -0
  121. data/lib/wx/doc/gen/ext_help_controller.rb +109 -0
  122. data/lib/wx/doc/gen/file_ctrl.rb +231 -0
  123. data/lib/wx/doc/gen/file_ctrl_event.rb +83 -0
  124. data/lib/wx/doc/gen/file_dialog.rb +353 -0
  125. data/lib/wx/doc/gen/file_dialog_custom_control.rb +165 -0
  126. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +158 -0
  127. data/lib/wx/doc/gen/file_dir_picker_event.rb +100 -0
  128. data/lib/wx/doc/gen/file_picker_ctrl.rb +132 -0
  129. data/lib/wx/doc/gen/file_system.rb +232 -0
  130. data/lib/wx/doc/gen/find_dialog_event.rb +126 -0
  131. data/lib/wx/doc/gen/find_replace_data.rb +60 -0
  132. data/lib/wx/doc/gen/find_replace_dialog.rb +58 -0
  133. data/lib/wx/doc/gen/flex_grid_sizer.rb +199 -0
  134. data/lib/wx/doc/gen/font.rb +1379 -0
  135. data/lib/wx/doc/gen/font_data.rb +151 -0
  136. data/lib/wx/doc/gen/font_dialog.rb +88 -0
  137. data/lib/wx/doc/gen/font_picker_ctrl.rb +143 -0
  138. data/lib/wx/doc/gen/font_picker_event.rb +65 -0
  139. data/lib/wx/doc/gen/frame.rb +352 -0
  140. data/lib/wx/doc/gen/fs_file.rb +337 -0
  141. data/lib/wx/doc/gen/functions.rb +10 -0
  142. data/lib/wx/doc/gen/gauge.rb +157 -0
  143. data/lib/wx/doc/gen/gb_sizer_item.rb +68 -0
  144. data/lib/wx/doc/gen/gcdc.rb +46 -0
  145. data/lib/wx/doc/gen/gdi_common.rb +1271 -0
  146. data/lib/wx/doc/gen/gdi_object.rb +31 -0
  147. data/lib/wx/doc/gen/generic_about_dialog.rb +140 -0
  148. data/lib/wx/doc/gen/generic_dir_ctrl.rb +223 -0
  149. data/lib/wx/doc/gen/geometry.rb +661 -0
  150. data/lib/wx/doc/gen/graphics_context.rb +1184 -0
  151. data/lib/wx/doc/gen/graphics_object.rb +750 -0
  152. data/lib/wx/doc/gen/grid/event_list.rb +191 -0
  153. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +40 -0
  154. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +280 -0
  155. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +35 -0
  156. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +37 -0
  157. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +49 -0
  158. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +35 -0
  159. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +46 -0
  160. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +38 -0
  161. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +45 -0
  162. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +40 -0
  163. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +197 -0
  164. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +39 -0
  165. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +44 -0
  166. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +45 -0
  167. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +79 -0
  168. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +46 -0
  169. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +35 -0
  170. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +108 -0
  171. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +35 -0
  172. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +49 -0
  173. data/lib/wx/doc/gen/grid/grid_ctrl.rb +3002 -0
  174. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +95 -0
  175. data/lib/wx/doc/gen/grid/grid_event.rb +129 -0
  176. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +104 -0
  177. data/lib/wx/doc/gen/grid/grid_size_event.rb +85 -0
  178. data/lib/wx/doc/gen/grid/grid_string_table.rb +142 -0
  179. data/lib/wx/doc/gen/grid/grid_table_base.rb +317 -0
  180. data/lib/wx/doc/gen/grid/grid_table_message.rb +81 -0
  181. data/lib/wx/doc/gen/grid_bag_sizer.rb +323 -0
  182. data/lib/wx/doc/gen/grid_sizer.rb +195 -0
  183. data/lib/wx/doc/gen/gui_event_loop.rb +159 -0
  184. data/lib/wx/doc/gen/h_scrolled_window.rb +562 -0
  185. data/lib/wx/doc/gen/header_ctrl.rb +880 -0
  186. data/lib/wx/doc/gen/header_ctrl_event.rb +133 -0
  187. data/lib/wx/doc/gen/help_controller.rb +195 -0
  188. data/lib/wx/doc/gen/help_provider.rb +98 -0
  189. data/lib/wx/doc/gen/html/event_list.rb +38 -0
  190. data/lib/wx/doc/gen/html/html_cell.rb +536 -0
  191. data/lib/wx/doc/gen/html/html_cell_event.rb +69 -0
  192. data/lib/wx/doc/gen/html/html_data_object.rb +42 -0
  193. data/lib/wx/doc/gen/html/html_easy_printing.rb +203 -0
  194. data/lib/wx/doc/gen/html/html_help_controller.rb +340 -0
  195. data/lib/wx/doc/gen/html/html_help_data.rb +159 -0
  196. data/lib/wx/doc/gen/html/html_help_window.rb +258 -0
  197. data/lib/wx/doc/gen/html/html_link_event.rb +41 -0
  198. data/lib/wx/doc/gen/html/html_list_box.rb +346 -0
  199. data/lib/wx/doc/gen/html/html_printout.rb +109 -0
  200. data/lib/wx/doc/gen/html/html_window.rb +461 -0
  201. data/lib/wx/doc/gen/hyperlink_ctrl.rb +311 -0
  202. data/lib/wx/doc/gen/hyperlink_event.rb +44 -0
  203. data/lib/wx/doc/gen/icon.rb +267 -0
  204. data/lib/wx/doc/gen/icon_location.rb +40 -0
  205. data/lib/wx/doc/gen/image.rb +1371 -0
  206. data/lib/wx/doc/gen/image_list.rb +168 -0
  207. data/lib/wx/doc/gen/info_bar.rb +195 -0
  208. data/lib/wx/doc/gen/keyboard_state.rb +140 -0
  209. data/lib/wx/doc/gen/list_box.rb +304 -0
  210. data/lib/wx/doc/gen/list_ctrl.rb +1774 -0
  211. data/lib/wx/doc/gen/list_event.rb +208 -0
  212. data/lib/wx/doc/gen/listbook.rb +116 -0
  213. data/lib/wx/doc/gen/locale.rb +4293 -0
  214. data/lib/wx/doc/gen/log.rb +603 -0
  215. data/lib/wx/doc/gen/mdi_client_window.rb +47 -0
  216. data/lib/wx/doc/gen/mdi_frame.rb +324 -0
  217. data/lib/wx/doc/gen/media_ctrl.rb +269 -0
  218. data/lib/wx/doc/gen/media_event.rb +117 -0
  219. data/lib/wx/doc/gen/memory_dc.rb +174 -0
  220. data/lib/wx/doc/gen/menu.rb +509 -0
  221. data/lib/wx/doc/gen/menu_bar.rb +287 -0
  222. data/lib/wx/doc/gen/menu_item.rb +362 -0
  223. data/lib/wx/doc/gen/message_dialog.rb +238 -0
  224. data/lib/wx/doc/gen/mini_frame.rb +108 -0
  225. data/lib/wx/doc/gen/mirror_dc.rb +22 -0
  226. data/lib/wx/doc/gen/mouse_state.rb +150 -0
  227. data/lib/wx/doc/gen/multi_choice_dialog.rb +80 -0
  228. data/lib/wx/doc/gen/non_owned_window.rb +49 -0
  229. data/lib/wx/doc/gen/notebook.rb +278 -0
  230. data/lib/wx/doc/gen/num_validator.rb +37 -0
  231. data/lib/wx/doc/gen/number_entry_dialog.rb +93 -0
  232. data/lib/wx/doc/gen/object.rb +59 -0
  233. data/lib/wx/doc/gen/owner_drawn_combo_box.rb +395 -0
  234. data/lib/wx/doc/gen/paint_dc.rb +27 -0
  235. data/lib/wx/doc/gen/palette.rb +92 -0
  236. data/lib/wx/doc/gen/panel.rb +127 -0
  237. data/lib/wx/doc/gen/pen.rb +511 -0
  238. data/lib/wx/doc/gen/persistence_manager.rb +135 -0
  239. data/lib/wx/doc/gen/persistent_object.rb +52 -0
  240. data/lib/wx/doc/gen/persistent_window.rb +241 -0
  241. data/lib/wx/doc/gen/pg/event_list.rb +106 -0
  242. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +54 -0
  243. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +292 -0
  244. data/lib/wx/doc/gen/pg/pg_cell.rb +177 -0
  245. data/lib/wx/doc/gen/pg/pg_editor.rb +721 -0
  246. data/lib/wx/doc/gen/pg/pg_multi_button.rb +152 -0
  247. data/lib/wx/doc/gen/pg/pg_properties.rb +2829 -0
  248. data/lib/wx/doc/gen/pg/pg_property.rb +2078 -0
  249. data/lib/wx/doc/gen/pg/pg_validation_info.rb +344 -0
  250. data/lib/wx/doc/gen/pg/property_grid.rb +740 -0
  251. data/lib/wx/doc/gen/pg/property_grid_event.rb +184 -0
  252. data/lib/wx/doc/gen/pg/property_grid_interface.rb +1098 -0
  253. data/lib/wx/doc/gen/pg/property_grid_manager.rb +415 -0
  254. data/lib/wx/doc/gen/pg/property_grid_page.rb +354 -0
  255. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +165 -0
  256. data/lib/wx/doc/gen/picker_base.rb +152 -0
  257. data/lib/wx/doc/gen/platform_info.rb +622 -0
  258. data/lib/wx/doc/gen/popup_window.rb +107 -0
  259. data/lib/wx/doc/gen/progress_dialog.rb +100 -0
  260. data/lib/wx/doc/gen/property_sheet_dialog.rb +216 -0
  261. data/lib/wx/doc/gen/prt/event_list.rb +17 -0
  262. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +44 -0
  263. data/lib/wx/doc/gen/prt/post_script_dc.rb +30 -0
  264. data/lib/wx/doc/gen/prt/preview_frame.rb +78 -0
  265. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +151 -0
  266. data/lib/wx/doc/gen/prt/print_data.rb +804 -0
  267. data/lib/wx/doc/gen/prt/print_dialog.rb +55 -0
  268. data/lib/wx/doc/gen/prt/printer.rb +518 -0
  269. data/lib/wx/doc/gen/prt/printer_dc.rb +37 -0
  270. data/lib/wx/doc/gen/query_layout_info_event.rb +106 -0
  271. data/lib/wx/doc/gen/radio_box.rb +306 -0
  272. data/lib/wx/doc/gen/radio_button.rb +159 -0
  273. data/lib/wx/doc/gen/rbn/event_list.rb +136 -0
  274. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +1132 -0
  275. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +308 -0
  276. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +45 -0
  277. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +458 -0
  278. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +63 -0
  279. data/lib/wx/doc/gen/rbn/ribbon_control.rb +143 -0
  280. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +229 -0
  281. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +55 -0
  282. data/lib/wx/doc/gen/rbn/ribbon_page.rb +174 -0
  283. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +270 -0
  284. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +45 -0
  285. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +360 -0
  286. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +42 -0
  287. data/lib/wx/doc/gen/rearrange_ctrl.rb +78 -0
  288. data/lib/wx/doc/gen/rearrange_list.rb +123 -0
  289. data/lib/wx/doc/gen/region.rb +380 -0
  290. data/lib/wx/doc/gen/region_iterator.rb +76 -0
  291. data/lib/wx/doc/gen/rich_tool_tip.rb +154 -0
  292. data/lib/wx/doc/gen/rtc/event_list.rb +125 -0
  293. data/lib/wx/doc/gen/rtc/rich_text_box.rb +445 -0
  294. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +1188 -0
  295. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +41 -0
  296. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +538 -0
  297. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +2103 -0
  298. data/lib/wx/doc/gen/rtc/rich_text_event.rb +173 -0
  299. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +181 -0
  300. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +319 -0
  301. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +193 -0
  302. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +102 -0
  303. data/lib/wx/doc/gen/rtc/rich_text_image.rb +337 -0
  304. data/lib/wx/doc/gen/rtc/rich_text_object.rb +2922 -0
  305. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1240 -0
  306. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +258 -0
  307. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +344 -0
  308. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +227 -0
  309. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +59 -0
  310. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +169 -0
  311. data/lib/wx/doc/gen/sash_event.rb +147 -0
  312. data/lib/wx/doc/gen/sash_layout_window.rb +232 -0
  313. data/lib/wx/doc/gen/sash_window.rb +171 -0
  314. data/lib/wx/doc/gen/scaled_dc.rb +10 -0
  315. data/lib/wx/doc/gen/screen_dc.rb +30 -0
  316. data/lib/wx/doc/gen/scroll_bar.rb +204 -0
  317. data/lib/wx/doc/gen/scrolled_canvas.rb +410 -0
  318. data/lib/wx/doc/gen/scrolled_control.rb +410 -0
  319. data/lib/wx/doc/gen/scrolled_window.rb +430 -0
  320. data/lib/wx/doc/gen/search_ctrl.rb +159 -0
  321. data/lib/wx/doc/gen/secret_store.rb +116 -0
  322. data/lib/wx/doc/gen/simplebook.rb +110 -0
  323. data/lib/wx/doc/gen/single_choice_dialog.rb +89 -0
  324. data/lib/wx/doc/gen/sizer.rb +945 -0
  325. data/lib/wx/doc/gen/sizer_item.rb +244 -0
  326. data/lib/wx/doc/gen/slider.rb +342 -0
  327. data/lib/wx/doc/gen/spin_button.rb +157 -0
  328. data/lib/wx/doc/gen/spin_ctrl.rb +231 -0
  329. data/lib/wx/doc/gen/spin_ctrl_double.rb +192 -0
  330. data/lib/wx/doc/gen/spin_double_event.rb +55 -0
  331. data/lib/wx/doc/gen/spin_event.rb +51 -0
  332. data/lib/wx/doc/gen/splash_screen.rb +113 -0
  333. data/lib/wx/doc/gen/splitter_event.rb +99 -0
  334. data/lib/wx/doc/gen/splitter_window.rb +498 -0
  335. data/lib/wx/doc/gen/static_bitmap.rb +256 -0
  336. data/lib/wx/doc/gen/static_box.rb +180 -0
  337. data/lib/wx/doc/gen/static_box_sizer.rb +85 -0
  338. data/lib/wx/doc/gen/static_line.rb +83 -0
  339. data/lib/wx/doc/gen/static_text.rb +127 -0
  340. data/lib/wx/doc/gen/status_bar.rb +290 -0
  341. data/lib/wx/doc/gen/stc/event_list.rb +221 -0
  342. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4474 -0
  343. data/lib/wx/doc/gen/stc/styled_text_event.rb +8762 -0
  344. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +129 -0
  345. data/lib/wx/doc/gen/svg_file_dc.rb +164 -0
  346. data/lib/wx/doc/gen/system_options.rb +129 -0
  347. data/lib/wx/doc/gen/system_settings.rb +507 -0
  348. data/lib/wx/doc/gen/task_bar_icon.rb +127 -0
  349. data/lib/wx/doc/gen/task_bar_icon_event.rb +88 -0
  350. data/lib/wx/doc/gen/text_attr.rb +756 -0
  351. data/lib/wx/doc/gen/text_ctrl.rb +1033 -0
  352. data/lib/wx/doc/gen/text_entry.rb +441 -0
  353. data/lib/wx/doc/gen/text_entry_dialog.rb +220 -0
  354. data/lib/wx/doc/gen/text_validator.rb +245 -0
  355. data/lib/wx/doc/gen/time_picker_ctrl.rb +128 -0
  356. data/lib/wx/doc/gen/timer.rb +119 -0
  357. data/lib/wx/doc/gen/timer_event.rb +68 -0
  358. data/lib/wx/doc/gen/tip_provider.rb +63 -0
  359. data/lib/wx/doc/gen/tip_window.rb +51 -0
  360. data/lib/wx/doc/gen/toggle_button.rb +182 -0
  361. data/lib/wx/doc/gen/tool_bar.rb +890 -0
  362. data/lib/wx/doc/gen/tool_tip.rb +86 -0
  363. data/lib/wx/doc/gen/toolbook.rb +118 -0
  364. data/lib/wx/doc/gen/top_level_window.rb +497 -0
  365. data/lib/wx/doc/gen/tree_ctrl.rb +1052 -0
  366. data/lib/wx/doc/gen/tree_event.rb +127 -0
  367. data/lib/wx/doc/gen/treebook.rb +180 -0
  368. data/lib/wx/doc/gen/ui_action_simulator.rb +109 -0
  369. data/lib/wx/doc/gen/utils.rb +273 -0
  370. data/lib/wx/doc/gen/v_list_box.rb +272 -0
  371. data/lib/wx/doc/gen/v_scrolled_canvas.rb +195 -0
  372. data/lib/wx/doc/gen/v_scrolled_window.rb +191 -0
  373. data/lib/wx/doc/gen/validator.rb +68 -0
  374. data/lib/wx/doc/gen/variant.rb +294 -0
  375. data/lib/wx/doc/gen/window.rb +2917 -0
  376. data/lib/wx/doc/gen/window_dc.rb +38 -0
  377. data/lib/wx/doc/gen/window_disabler.rb +30 -0
  378. data/lib/wx/doc/gen/with_images.rb +84 -0
  379. data/lib/wx/doc/gen/wizard.rb +257 -0
  380. data/lib/wx/doc/gen/wizard_event.rb +113 -0
  381. data/lib/wx/doc/gen/wizard_page.rb +65 -0
  382. data/lib/wx/doc/gen/wizard_page_simple.rb +88 -0
  383. data/lib/wx/doc/gen/wrap_sizer.rb +79 -0
  384. data/lib/wx/doc/gen/xml_node.rb +316 -0
  385. data/lib/wx/doc/gen/xml_resource.rb +320 -0
  386. data/lib/wx/doc/generic_validator.rb +5 -0
  387. data/lib/wx/doc/pg/pg_property.rb +5 -0
  388. data/lib/wx/doc/tip_window.rb +18 -6
  389. data/lib/wx/doc/variant.rb +30 -0
  390. data/lib/wx/grid/events/evt_list.rb +166 -0
  391. data/lib/wx/html/events/evt_list.rb +27 -0
  392. data/lib/wx/html/simple_html_listbox.rb +46 -33
  393. data/lib/wx/keyword_defs.rb +9 -0
  394. data/lib/wx/pg/events/evt_list.rb +73 -0
  395. data/lib/wx/pg/pg_property.rb +85 -52
  396. data/lib/wx/pg/property_grid_interface.rb +12 -2
  397. data/lib/wx/rbn/events/evt_list.rb +102 -0
  398. data/lib/wx/rtc/events/evt_list.rb +98 -0
  399. data/lib/wx/rtc/ext/rich_text_ctrl.rb +24 -0
  400. data/lib/wx/stc/events/evt_list.rb +178 -0
  401. data/lib/wx/version.rb +1 -1
  402. data/lib/wx/wxruby/cmd/setup.rb +6 -0
  403. data/rakelib/configure.rb +9 -0
  404. data/rakelib/gem.rake +84 -66
  405. data/rakelib/gem.rb +4 -20
  406. data/rakelib/lib/config/linux.rb +1 -1
  407. data/rakelib/lib/config/macosx.rb +15 -1
  408. data/rakelib/lib/config/pkgman/linux.rb +7 -2
  409. data/rakelib/lib/config/unixish.rb +3 -3
  410. data/rakelib/lib/config.rb +19 -8
  411. data/rakelib/lib/core/include/swigdirector.inc +3 -3
  412. data/rakelib/lib/core/include/swigrubyerrors.inc +4 -8
  413. data/rakelib/lib/core/include/swigrubyrun.inc +20 -4
  414. data/rakelib/lib/core/include/swigrun.inc +189 -0
  415. data/rakelib/lib/core/package.rb +3 -1
  416. data/rakelib/lib/core/spec.rb +1 -1
  417. data/rakelib/lib/director/accelerator.rb +1 -1
  418. data/rakelib/lib/director/animation.rb +1 -0
  419. data/rakelib/lib/director/app_traits.rb +1 -1
  420. data/rakelib/lib/director/aui_manager.rb +21 -14
  421. data/rakelib/lib/director/aui_mdi_child_frame.rb +2 -0
  422. data/rakelib/lib/director/aui_mdi_parent_frame.rb +4 -0
  423. data/rakelib/lib/director/aui_notebook.rb +20 -3
  424. data/rakelib/lib/director/aui_tab_ctrl.rb +64 -106
  425. data/rakelib/lib/director/bitmap_combobox.rb +4 -2
  426. data/rakelib/lib/director/calendar_ctrl.rb +72 -14
  427. data/rakelib/lib/director/clipboard.rb +2 -0
  428. data/rakelib/lib/director/data_object.rb +15 -7
  429. data/rakelib/lib/director/date_picker_ctrl.rb +4 -1
  430. data/rakelib/lib/director/display.rb +81 -0
  431. data/rakelib/lib/director/event.rb +33 -16
  432. data/rakelib/lib/director/event_handler.rb +27 -2
  433. data/rakelib/lib/director/functions.rb +9 -0
  434. data/rakelib/lib/director/geometry.rb +5 -0
  435. data/rakelib/lib/director/grid_ctrl.rb +123 -28
  436. data/rakelib/lib/director/help_provider.rb +1 -1
  437. data/rakelib/lib/director/html_listbox.rb +30 -4
  438. data/rakelib/lib/director/hvscrolled.rb +154 -0
  439. data/rakelib/lib/director/image_list.rb +1 -0
  440. data/rakelib/lib/director/mdi_frame.rb +4 -0
  441. data/rakelib/lib/director/menu.rb +56 -15
  442. data/rakelib/lib/director/menu_bar.rb +62 -0
  443. data/rakelib/lib/director/menu_item.rb +7 -1
  444. data/rakelib/lib/director/num_validator.rb +27 -0
  445. data/rakelib/lib/director/numeric_property_validator.rb +9 -0
  446. data/rakelib/lib/director/persistent_window.rb +16 -0
  447. data/rakelib/lib/director/pgproperty.rb +3 -2
  448. data/rakelib/lib/director/popup_window.rb +2 -0
  449. data/rakelib/lib/director/preview_frame.rb +29 -6
  450. data/rakelib/lib/director/printer.rb +59 -5
  451. data/rakelib/lib/director/property_grid.rb +37 -18
  452. data/rakelib/lib/director/property_grid_interface.rb +10 -8
  453. data/rakelib/lib/director/property_grid_manager.rb +99 -39
  454. data/rakelib/lib/director/property_grid_page.rb +60 -0
  455. data/rakelib/lib/director/rich_tooltip.rb +22 -0
  456. data/rakelib/lib/director/richtext_ctrl.rb +5 -0
  457. data/rakelib/lib/director/richtext_object.rb +13 -4
  458. data/rakelib/lib/director/richtext_style_listbox.rb +11 -2
  459. data/rakelib/lib/director/scrolled_t.rb +3 -0
  460. data/rakelib/lib/director/searchctrl.rb +1 -0
  461. data/rakelib/lib/director/task_bar_icon.rb +14 -8
  462. data/rakelib/lib/director/text_validator.rb +9 -0
  463. data/rakelib/lib/director/tip_window.rb +117 -6
  464. data/rakelib/lib/director/tool_bar.rb +6 -0
  465. data/rakelib/lib/director/top_level_window.rb +0 -1
  466. data/rakelib/lib/director/utils.rb +3 -1
  467. data/rakelib/lib/director/validator.rb +12 -0
  468. data/rakelib/lib/director/variant.rb +64 -20
  469. data/rakelib/lib/director/vlistbox.rb +29 -22
  470. data/rakelib/lib/director/window.rb +12 -2
  471. data/rakelib/lib/director/xml_resource.rb +6 -0
  472. data/rakelib/lib/generate/doc/aui_manager.yaml +1 -1
  473. data/rakelib/lib/generate/doc/rich_tool_tip.yaml +26 -0
  474. data/rakelib/lib/generate/doc.rb +12 -7
  475. data/rakelib/lib/generate/interface.rb +16 -1
  476. data/rakelib/lib/specs/interfaces.rb +6 -2
  477. data/rakelib/lib/swig_runner.rb +12 -12
  478. data/rakelib/lib/typemap/aui_tabctrl.rb +46 -0
  479. data/rakelib/lib/typemap/common.rb +3 -3
  480. data/rakelib/lib/typemap/print_page_range.rb +32 -8
  481. data/samples/art/wxruby-512x512.png +0 -0
  482. data/samples/calendar/calendar.rb +64 -1
  483. data/samples/dialogs/dialogs.rb +172 -0
  484. data/samples/dialogs/tip.xpm +157 -0
  485. data/samples/drawing/maths_images.rb +1 -1
  486. data/samples/event/event.rb +1 -1
  487. data/samples/printing/printing2.rb +1 -1
  488. data/samples/sampler.rb +26 -8
  489. data/samples/text/textctrl.rb +2 -2
  490. data/samples/treectrl/treectrl.rb +2 -2
  491. data/tests/lib/leaked_process_event_exception_test.rb +1 -1
  492. data/tests/lib/leaked_queued_event_exception_test.rb +1 -1
  493. data/tests/lib/wxapp_runner.rb +31 -41
  494. data/tests/lib/wxframe_runner.rb +23 -11
  495. data/tests/lib/wxrb_test.rb +58 -0
  496. data/tests/test_app_event_filter.rb +1 -1
  497. data/tests/test_app_exit_exception.rb +3 -3
  498. data/tests/test_app_init_exception.rb +3 -3
  499. data/tests/test_app_traits.rb +24 -21
  500. data/tests/test_art.rb +7 -7
  501. data/tests/test_art_provider.rb +1 -1
  502. data/tests/test_basic.rb +2 -2
  503. data/tests/test_book_controls.rb +1 -1
  504. data/tests/test_box_sizer.rb +1 -1
  505. data/tests/test_clipboard.rb +5 -5
  506. data/tests/test_combo_ctrl.rb +2 -2
  507. data/tests/test_config.rb +11 -1
  508. data/tests/test_dc.rb +1 -1
  509. data/tests/test_dialog.rb +1 -1
  510. data/tests/test_event_handling.rb +1 -1
  511. data/tests/test_events.rb +1 -1
  512. data/tests/test_exceptions.rb +2 -2
  513. data/tests/test_ext_controls.rb +10 -10
  514. data/tests/test_file_dialog.rb +1 -1
  515. data/tests/test_font.rb +1 -1
  516. data/tests/test_gdi_object.rb +1 -1
  517. data/tests/test_geometry.rb +2 -2
  518. data/tests/test_grid_sizer.rb +2 -2
  519. data/tests/test_intl.rb +1 -1
  520. data/tests/test_item_data.rb +12 -12
  521. data/tests/test_list_ctrl.rb +1 -1
  522. data/tests/test_log.rb +2 -2
  523. data/tests/test_media_ctrl.rb +1 -1
  524. data/tests/test_menu.rb +114 -43
  525. data/tests/test_proof_check.rb +1 -1
  526. data/tests/test_propgrid.rb +857 -0
  527. data/tests/test_richtext.rb +10 -24
  528. data/tests/test_secret_store.rb +1 -1
  529. data/tests/test_sizer.rb +1 -1
  530. data/tests/test_std_controls.rb +8 -8
  531. data/tests/test_styled_text_ctrl.rb +1 -1
  532. data/tests/test_timer.rb +1 -1
  533. data/tests/test_tree_ctrl.rb +1 -1
  534. data/tests/test_validators.rb +79 -36
  535. data/tests/test_variant.rb +1 -1
  536. data/tests/test_window.rb +11 -11
  537. data/tests/testapp.rb +2 -2
  538. data/tests/testapp_noframe.rb +2 -2
  539. metadata +402 -12
  540. data/lib/wx/aui/aui_tab_ctrl.rb +0 -18
  541. data/rakelib/lib/director/hvscrolled_window.rb +0 -140
@@ -0,0 +1,1098 @@
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
+ module PG
10
+
11
+ # Most of the shared property manipulation interface shared by {Wx::PG::PropertyGrid}, {Wx::PG::PropertyGridPage}, and {Wx::PG::PropertyGridManager} is defined in this class.
12
+ #
13
+ # <div class="wxrb-remark">
14
+ # <b>Remark:</b>
15
+ # <p>
16
+ #
17
+ # - In separate {Wx::PG::PropertyGrid} component this class was known as {Wx::PropertyContainerMethods}.
18
+ # - {Wx::PG::PropertyGridInterface}'s property operation member functions all accept a special {Wx::PGPropArg} id argument, using which you can refer to properties either by their pointer (for performance) or by their name (for convenience).
19
+ #
20
+ # </p>
21
+ # </div>
22
+ #
23
+ # Category: {Wx::PG::PropertyGrid}
24
+ #
25
+ #
26
+ # @note In wxRuby this is a mixin module instead of a (base) class.
27
+ # @wxrb_require USE_PROPGRID
28
+ module PropertyGridInterface
29
+
30
+ #
31
+ #
32
+ # Flags for {Wx::PG::PropertyGridInterface#save_editable_state} and {Wx::PG::PropertyGridInterface#restore_editable_state}.
33
+ #
34
+ # @wxrb_require USE_PROPGRID
35
+ class EditableStateFlags < Wx::Enum
36
+
37
+ # Include selected property.
38
+ #
39
+ SelectionState = Wx::PG::PropertyGridInterface::EditableStateFlags.new(1)
40
+
41
+ # Include expanded/collapsed property information.
42
+ #
43
+ ExpandedState = Wx::PG::PropertyGridInterface::EditableStateFlags.new(2)
44
+
45
+ # Include scrolled position.
46
+ #
47
+ ScrollPosState = Wx::PG::PropertyGridInterface::EditableStateFlags.new(4)
48
+
49
+ # Include selected page information.
50
+ #
51
+ PageState = Wx::PG::PropertyGridInterface::EditableStateFlags.new(8)
52
+
53
+ # Include splitter position.
54
+ #
55
+ SplitterPosState = Wx::PG::PropertyGridInterface::EditableStateFlags.new(16)
56
+
57
+ # Include description box size.
58
+ #
59
+ DescBoxState = Wx::PG::PropertyGridInterface::EditableStateFlags.new(32)
60
+
61
+ # Include all supported user editable state information.
62
+ #
63
+ AllStates = Wx::PG::PropertyGridInterface::EditableStateFlags.new(63)
64
+
65
+ end # EditableStateFlags
66
+
67
+ # Appends property to the list.
68
+ #
69
+ # {Wx::PG::PropertyGrid} assumes ownership of the object. Becomes child of most recently added category.
70
+ #
71
+ # <div class="wxrb-remark">
72
+ # <b>Remark:</b>
73
+ # <p>
74
+ #
75
+ # - {Wx::PG::PropertyGrid} takes the ownership of the property pointer.
76
+ # - If appending a category with name identical to a category already in the {Wx::PG::PropertyGrid}, then newly created category is deleted, and most recently added category (under which properties are appended) is set to the one with same name. This allows easier adding of items to same categories in multiple passes.
77
+ # - Does not automatically redraw the control, so you may need to call {refresh} when calling this function after control has been shown for the first time.
78
+ # - This functions deselects selected property, if any. Validation failure option {Wx::PG::PGVFBFlags::StayInProperty} is not respected, i.e. selection is cleared even if editor had invalid value.
79
+ #
80
+ # </p>
81
+ # </div>
82
+ # @param property [Wx::PG::PGProperty]
83
+ # @return [Wx::PG::PGProperty]
84
+ def append(property) end
85
+
86
+ # Same as {Wx::PG::PropertyGridInterface#append}, but appends under given parent property.
87
+ # @param id [String,Wx::PG::PGProperty] Name or pointer to parent property.
88
+ # @param newProperty [Wx::PG::PGProperty] Property to be added.
89
+ # @return [Wx::PG::PGProperty]
90
+ def append_in(id, newProperty) end
91
+
92
+ # In order to add new items into a property with private children (for instance, {Wx::PG::FlagsProperty}), you need to call this method.
93
+ #
94
+ # After populating has been finished, you need to call {Wx::PG::PropertyGridInterface#end_add_children}.
95
+ # @see Wx::PG::PropertyGridInterface#end_add_children
96
+ # @param id [String,Wx::PG::PGProperty]
97
+ # @return [void]
98
+ def begin_add_children(id) end
99
+
100
+ # Deletes all properties.
101
+ #
102
+ # <div class="wxrb-remark">
103
+ # <b>Remark:</b>
104
+ # <p>This functions deselects selected property, if any. Validation failure option {Wx::PG::PGVFBFlags::StayInProperty} is not respected, i.e. selection is cleared even if editor had invalid value.
105
+ # </p>
106
+ # </div>
107
+ # @return [void]
108
+ def clear; end
109
+
110
+ # Clears current selection, if any.
111
+ #
112
+ # Returns true if successful or if there was no selection. May fail if validation was enabled and active editor had invalid value.
113
+ #
114
+ # <div class="wxrb-remark">
115
+ # <b>Remark:</b>
116
+ # <p>In wxWidgets 2.9 and later, this function no longer sends {Wx::PG_EVT_SELECTED}.
117
+ # </p>
118
+ # </div>
119
+ # @see Wx::PG::PropertyGrid#select_property
120
+ # @param validation [Boolean] If set to false, deselecting the property will always work, even if its editor had invalid value in it.
121
+ # @return [Boolean]
122
+ def clear_selection(validation=false) end
123
+
124
+ # Resets modified status of all properties.
125
+ # @return [void]
126
+ def clear_modified_status; end
127
+
128
+ # Collapses given category or property with children.
129
+ #
130
+ # Returns true if actually collapsed.
131
+ #
132
+ # <div class="wxrb-remark">
133
+ # <b>Remark:</b>
134
+ # <p>This function may deselect selected property, if any. Validation failure option {Wx::PG::PGVFBFlags::StayInProperty} is not respected, i.e. selection is cleared even if editor had invalid value.
135
+ # </p>
136
+ # </div>
137
+ # @param id [String,Wx::PG::PGProperty]
138
+ # @return [Boolean]
139
+ def collapse(id) end
140
+
141
+ # Collapses all items that can be collapsed.
142
+ #
143
+ # Return false if failed (may fail if editor value cannot be validated).
144
+ #
145
+ # <div class="wxrb-remark">
146
+ # <b>Remark:</b>
147
+ # <p>This functions clears selection. Validation failure option {Wx::PG::PGVFBFlags::StayInProperty} is not respected, i.e. selection is cleared even if editor had invalid value.
148
+ # </p>
149
+ # </div>
150
+ # @return [Boolean]
151
+ def collapse_all; end
152
+
153
+ # Changes value of a property, as if by user.
154
+ #
155
+ # Use this instead of {Wx::PG::PropertyGridInterface#set_property_value} if you need the value to run through validation process, and also send {Wx::PG::EVT_PG_CHANGED}.
156
+ #
157
+ # <div class="wxrb-remark">
158
+ # <b>Remark:</b>
159
+ # <p>Since this function sends {Wx::PG::EVT_PG_CHANGED}, it should not be called from EVT_PG_CHANGED handler.
160
+ # </p>
161
+ # </div>
162
+ #
163
+ # Returns true if value was successfully changed.
164
+ # @param id [String,Wx::PG::PGProperty]
165
+ # @param newValue [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue]
166
+ # @return [Boolean]
167
+ def change_property_value(id, newValue) end
168
+
169
+ # Removes and deletes a property and any children.
170
+ #
171
+ # <div class="wxrb-remark">
172
+ # <b>Remark:</b>
173
+ # <p>If you delete a property in a {Wx::PG::PropertyGrid} event handler, the actual deletion is postponed until the next idle event.
174
+ # </p>
175
+ # </div>
176
+ #
177
+ # This functions deselects selected property, if any. Validation failure option {Wx::PG::PGVFBFlags::StayInProperty} is not respected, i.e. selection is cleared even if editor had invalid value.
178
+ # @param id [String,Wx::PG::PGProperty] Pointer or name of a property.
179
+ # @return [void]
180
+ def delete_property(id) end
181
+
182
+ # Disables a property.
183
+ #
184
+ # <div class="wxrb-remark">
185
+ # <b>Remark:</b>
186
+ # <p>Property is refreshed with new settings.
187
+ # </p>
188
+ # </div>
189
+ # @see Wx::PG::PropertyGridInterface#enable_property
190
+ # @see Wx::PG::PGProperty#enable
191
+ # @param id [String,Wx::PG::PGProperty]
192
+ # @return [Boolean]
193
+ def disable_property(id) end
194
+
195
+ # Returns true if all property grid data changes have been committed.
196
+ #
197
+ # Usually only returns false if value in active editor has been invalidated by a {Wx::Validator}.
198
+ # @return [Boolean]
199
+ def editor_validate; end
200
+
201
+ # Enables or disables property.
202
+ #
203
+ # Disabled property usually appears as having grey text.
204
+ #
205
+ # <div class="wxrb-remark">
206
+ # <b>Remark:</b>
207
+ # <p>Property is refreshed with new settings.
208
+ # </p>
209
+ # </div>
210
+ # @see Wx::PG::PGProperty#enable
211
+ # @param id [String,Wx::PG::PGProperty] Name or pointer to a property.
212
+ # @param enable [Boolean] If false, property is disabled instead.
213
+ # @return [Boolean]
214
+ def enable_property(id, enable=true) end
215
+
216
+ # Called after population of property with fixed children has finished.
217
+ #
218
+ #
219
+ # @see Wx::PG::PropertyGridInterface#begin_add_children
220
+ # @param id [String,Wx::PG::PGProperty]
221
+ # @return [void]
222
+ def end_add_children(id) end
223
+
224
+ # Expands given category or property with children.
225
+ #
226
+ # Returns true if actually expanded.
227
+ #
228
+ # <div class="wxrb-remark">
229
+ # <b>Remark:</b>
230
+ # <p>This function may deselect selected property, if any. Validation failure option {Wx::PG::PGVFBFlags::StayInProperty} is not respected, i.e. selection is cleared even if editor had invalid value.
231
+ # </p>
232
+ # </div>
233
+ # @param id [String,Wx::PG::PGProperty]
234
+ # @return [Boolean]
235
+ def expand(id) end
236
+
237
+ # Expands all items that can be expanded.
238
+ #
239
+ # <div class="wxrb-remark">
240
+ # <b>Remark:</b>
241
+ # <p>This functions clears selection. Validation failure option {Wx::PG::PGVFBFlags::StayInProperty} is not respected, i.e. selection is cleared even if editor had invalid value.
242
+ # </p>
243
+ # </div>
244
+ # @param expand [Boolean]
245
+ # @return [Boolean]
246
+ def expand_all(expand=true) end
247
+
248
+ # Returns auto-resize proportion of the given column.
249
+ #
250
+ #
251
+ # @see Wx::PG::PropertyGridInterface#set_column_proportion
252
+ # @param column [Integer]
253
+ # @return [Integer]
254
+ def get_column_proportion(column) end
255
+ alias_method :column_proportion, :get_column_proportion
256
+
257
+ # Returns id of first child of given property.
258
+ #
259
+ # <div class="wxrb-remark">
260
+ # <b>Remark:</b>
261
+ # <p>Does not return private children!
262
+ # </p>
263
+ # </div>
264
+ # @param id [String,Wx::PG::PGProperty]
265
+ # @return [Wx::PG::PGProperty]
266
+ def get_first_child(id) end
267
+ alias_method :first_child, :get_first_child
268
+
269
+ # @param flags [Integer]
270
+ # @return [Wx::PG::PGProperty]
271
+ def get_first(flags=Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_ALL) end
272
+ alias_method :first, :get_first
273
+
274
+ # Returns pointer to a property with given name (case-sensitive).
275
+ #
276
+ # If there is no property with such name, nil pointer is returned.
277
+ #
278
+ # <div class="wxrb-remark">
279
+ # <b>Remark:</b>
280
+ # <p>Properties which have non-category, non-root parent cannot be accessed globally by their name. Instead, use "<property>.<subproperty>" instead of "<subproperty>".
281
+ # </p>
282
+ # </div>
283
+ # @param name [String]
284
+ # @return [Wx::PG::PGProperty]
285
+ def get_property(name) end
286
+ alias_method :property, :get_property
287
+
288
+ # Adds to targetArr pointers to properties that have given flags set.
289
+ #
290
+ # However, if inverse is set to true, then only properties without given flags are stored.
291
+ # @param flags [Wx::PGFlags] Property flags to use.
292
+ # @param inverse [Boolean] If false, properties that have given flags are stored, otherwise there are stored only properties without given flags.
293
+ # @param iterFlags [Integer] Iterator flags to use. Default is everything expect private children. See wxPropertyGridIterator Flags.
294
+ # @return [Array<Wx::PG::PGProperty>]
295
+ def get_properties_with_flag(flags, inverse=false, iterFlags=((Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_PROPERTIES|Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_HIDDEN|Wx::PG::PG_ITERATOR_FLAGS::PG_ITERATE_CATEGORIES))) end
296
+ alias_method :properties_with_flag, :get_properties_with_flag
297
+
298
+ # Returns value of given attribute.
299
+ #
300
+ # If none found, returns null {Wx::Variant}.
301
+ # @param id [String,Wx::PG::PGProperty]
302
+ # @param attrName [String]
303
+ # @return [Wx::Variant]
304
+ def get_property_attribute(id, attrName) end
305
+ alias_method :property_attribute, :get_property_attribute
306
+
307
+ # Returns background colour of first cell of a property.
308
+ # @param id [String,Wx::PG::PGProperty]
309
+ # @return [Wx::Colour]
310
+ def get_property_background_colour(id) end
311
+ alias_method :property_background_colour, :get_property_background_colour
312
+
313
+ # Returns pointer of property's nearest parent category.
314
+ #
315
+ # If no category found, returns nil.
316
+ # @param id [String,Wx::PG::PGProperty]
317
+ # @return [Wx::PG::PropertyCategory]
318
+ def get_property_category(id) end
319
+ alias_method :property_category, :get_property_category
320
+
321
+ # Returns client data (void*) of a property.
322
+ # @param id [String,Wx::PG::PGProperty]
323
+ # @return [Object]
324
+ def get_property_client_data(id) end
325
+ alias_method :property_client_data, :get_property_client_data
326
+
327
+ # Returns first property which label matches given string.
328
+ #
329
+ # nil if none found. Note that this operation is very slow when compared to {Wx::PG::PropertyGridInterface#get_property_by_name}.
330
+ # @param label [String]
331
+ # @return [Wx::PG::PGProperty]
332
+ def get_property_by_label(label) end
333
+ alias_method :property_by_label, :get_property_by_label
334
+
335
+ # @overload get_property_by_name(name)
336
+ # Returns pointer to a property with given name (case-sensitive).
337
+ #
338
+ # If there is no property with such name, nil pointer is returned.
339
+ #
340
+ # <div class="wxrb-remark">
341
+ # <b>Remark:</b>
342
+ # <p>Properties which have non-category, non-root parent cannot be accessed globally by their name. Instead, use "<property>.<subproperty>" instead of "<subproperty>".
343
+ # </p>
344
+ # </div>
345
+ # @param name [String]
346
+ # @return [Wx::PG::PGProperty]
347
+ # @overload get_property_by_name(name, subname)
348
+ # Returns child property subname of property name.
349
+ #
350
+ # Same as calling GetPropertyByName("name.subname"), albeit slightly faster.
351
+ # @param name [String]
352
+ # @param subname [String]
353
+ # @return [Wx::PG::PGProperty]
354
+ def get_property_by_name(*args) end
355
+ alias_method :property_by_name, :get_property_by_name
356
+
357
+ # Returns property's editor.
358
+ # @param id [String,Wx::PG::PGProperty]
359
+ # @return [Wx::PG::PGEditor]
360
+ def get_property_editor(id) end
361
+ alias_method :property_editor, :get_property_editor
362
+
363
+ # Returns help string associated with a property.
364
+ # @param id [String,Wx::PG::PGProperty]
365
+ # @return [String]
366
+ def get_property_help_string(id) end
367
+ alias_method :property_help_string, :get_property_help_string
368
+
369
+ # Returns property's custom value image (nil of none).
370
+ # @param id [String,Wx::PG::PGProperty]
371
+ # @return [Wx::Bitmap]
372
+ def get_property_image(id) end
373
+ alias_method :property_image, :get_property_image
374
+
375
+ # Returns label of a property.
376
+ # @param id [String,Wx::PG::PGProperty]
377
+ # @return [Wx::String]
378
+ def get_property_label(id) end
379
+ alias_method :property_label, :get_property_label
380
+
381
+ # Returns property's name, by which it is globally accessible.
382
+ # @param property [Wx::PG::PGProperty]
383
+ # @return [String]
384
+ def get_property_name(property) end
385
+ alias_method :property_name, :get_property_name
386
+
387
+ # Returns parent item of a property.
388
+ # @param id [String,Wx::PG::PGProperty]
389
+ # @return [Wx::PG::PGProperty]
390
+ def get_property_parent(id) end
391
+ alias_method :property_parent, :get_property_parent
392
+
393
+ # Returns text colour of first cell of a property.
394
+ # @param id [String,Wx::PG::PGProperty]
395
+ # @return [Wx::Colour]
396
+ def get_property_text_colour(id) end
397
+ alias_method :property_text_colour, :get_property_text_colour
398
+
399
+ # Returns validator of a property as a reference, which you can pass to any number of SetPropertyValidator.
400
+ # @param id [String,Wx::PG::PGProperty]
401
+ # @return [Wx::Validator]
402
+ # @wxrb_require USE_VALIDATORS
403
+ def get_property_validator(id) end
404
+ alias_method :property_validator, :get_property_validator
405
+
406
+ # Returns property's value as {Wx::Variant}.
407
+ #
408
+ # If property value is unspecified, null {Wx::Variant} is returned.
409
+ # @param id [String,Wx::PG::PGProperty]
410
+ # @return [Wx::Variant]
411
+ def get_property_value(id) end
412
+ alias_method :property_value, :get_property_value
413
+
414
+ # Returns property's value as {Wx::ArrayInt}.
415
+ # @param id [String,Wx::PG::PGProperty]
416
+ # @return [Array<Integer>]
417
+ def get_property_value_as_array_int(id) end
418
+ alias_method :property_value_as_array_int, :get_property_value_as_array_int
419
+
420
+ # Returns property's value as {Wx::ArrayString}.
421
+ # @param id [String,Wx::PG::PGProperty]
422
+ # @return [Array<String>]
423
+ def get_property_value_as_array_string(id) end
424
+ alias_method :property_value_as_array_string, :get_property_value_as_array_string
425
+
426
+ # Returns property's value as bool.
427
+ # @param id [String,Wx::PG::PGProperty]
428
+ # @return [Boolean]
429
+ def get_property_value_as_bool(id) end
430
+ alias_method :property_value_as_bool, :get_property_value_as_bool
431
+
432
+ # Returns property's value as {Wx::DateTime}.
433
+ # @param id [String,Wx::PG::PGProperty]
434
+ # @return [Time,Date,DateTime]
435
+ # @wxrb_require USE_DATETIME
436
+ def get_property_value_as_date_time(id) end
437
+ alias_method :property_value_as_date_time, :get_property_value_as_date_time
438
+
439
+ # Returns property's value as double-precision floating point number.
440
+ # @param id [String,Wx::PG::PGProperty]
441
+ # @return [Float]
442
+ def get_property_value_as_double(id) end
443
+ alias_method :property_value_as_double, :get_property_value_as_double
444
+
445
+ # Returns property's value as integer.
446
+ # @param id [String,Wx::PG::PGProperty]
447
+ # @return [Integer]
448
+ def get_property_value_as_int(id) end
449
+ alias_method :property_value_as_int, :get_property_value_as_int
450
+
451
+ # Returns property's value as integer.
452
+ # @param id [String,Wx::PG::PGProperty]
453
+ # @return [Integer]
454
+ def get_property_value_as_long(id) end
455
+ alias_method :property_value_as_long, :get_property_value_as_long
456
+
457
+ # Returns property's value as native signed 64-bit integer.
458
+ # @param id [String,Wx::PG::PGProperty]
459
+ # @return [Integer]
460
+ def get_property_value_as_long_long(id) end
461
+ alias_method :property_value_as_long_long, :get_property_value_as_long_long
462
+
463
+ # Returns property's value as {Wx::String}.
464
+ #
465
+ # If property does not use string value type, then its value is converted using {Wx::PG::PGProperty#get_value_as_string}.
466
+ # @param id [String,Wx::PG::PGProperty]
467
+ # @return [String]
468
+ def get_property_value_as_string(id) end
469
+ alias_method :property_value_as_string, :get_property_value_as_string
470
+
471
+ # Returns property's value as unsigned integer.
472
+ # @param id [String,Wx::PG::PGProperty]
473
+ # @return [Integer]
474
+ def get_property_value_as_u_long(id) end
475
+ alias_method :property_value_as_u_long, :get_property_value_as_u_long
476
+
477
+ # Returns property's value as native unsigned 64-bit integer.
478
+ # @param id [String,Wx::PG::PGProperty]
479
+ # @return [Integer]
480
+ def get_property_value_as_u_long_long(id) end
481
+ alias_method :property_value_as_u_long_long, :get_property_value_as_u_long_long
482
+
483
+ # Returns a {Wx::Variant} list containing {Wx::Variant} versions of all property values.
484
+ #
485
+ # Order is not guaranteed.
486
+ # @param listname [String] Name of the returned {Wx::Variant} list.
487
+ # @param baseparent [Wx::PG::PGProperty] The base property which children properties will be queried for values.
488
+ # @param flags [Wx::PGPropertyValuesFlags] Use {Wx::PG::PGPropertyValuesFlags::KeepStructure} to retain category structure; each sub category will be its own {Wx::VariantList} of {Wx::Variant}. Use {Wx::PG::PGPropertyValuesFlags::IncAttributes} to include property attributes as well. Each attribute will be stored as list variant named "@<propname>@attr."
489
+ # @return [Wx::Variant]
490
+ def get_property_values(listname=(''), baseparent=nil, flags=PGPropertyValuesFlags::DontRecurse) end
491
+ alias_method :property_values, :get_property_values
492
+
493
+ # Returns list of currently selected properties.
494
+ #
495
+ # <div class="wxrb-remark">
496
+ # <b>Remark:</b>
497
+ # <p>{Wx::ArrayPGProperty} should be compatible with std::vector API.
498
+ # </p>
499
+ # </div>
500
+ # @return [Array<Wx::PG::PGProperty>]
501
+ def get_selected_properties; end
502
+ alias_method :selected_properties, :get_selected_properties
503
+
504
+ # Returns currently selected property.
505
+ #
506
+ # nil if none.
507
+ #
508
+ # <div class="wxrb-remark">
509
+ # <b>Remark:</b>
510
+ # <p>When {Wx::PG::PG_EX_WINDOW_STYLES::PG_EX_MULTIPLE_SELECTION} extra style is used, this member function returns the focused property, that is the one which can have active editor.
511
+ # </p>
512
+ # </div>
513
+ # @return [Wx::PG::PGProperty]
514
+ def get_selection; end
515
+ alias_method :selection, :get_selection
516
+
517
+ # Hides or reveals a property.
518
+ # @param id [String,Wx::PG::PGProperty] Name or pointer to a property.
519
+ # @param hide [Boolean] If true, hides property, otherwise reveals it.
520
+ # @param flags [Wx::PGPropertyValuesFlags] By default changes are applied recursively. Set this parameter {Wx::PG::PGPropertyValuesFlags::DontRecurse} to prevent this.
521
+ # @return [Boolean]
522
+ def hide_property(id, hide=true, flags=PGPropertyValuesFlags::Recurse) end
523
+
524
+ # @overload insert(priorThis, newProperty)
525
+ # Inserts property to the property container.
526
+ #
527
+ # Returns newProperty.
528
+ #
529
+ # <div class="wxrb-remark">
530
+ # <b>Remark:</b>
531
+ # <p>
532
+ # </p>
533
+ # </div>
534
+ #
535
+ # - {Wx::PG::PropertyGrid} takes the ownership of the property pointer.
536
+ # - While Append may be faster way to add items, make note that when both types of data storage (categoric and non-categoric) are active, Insert becomes even more slow. This is especially true if current mode is non-categoric.
537
+ # - This functions deselects selected property, if any. Validation failure option {Wx::PG::PGVFBFlags::StayInProperty} is not respected, i.e. selection is cleared even if editor had invalid value.
538
+ #
539
+ # Example of use:
540
+ #
541
+ # ```ruby
542
+ # # append category
543
+ # my_cat_id = propertygrid.append(Wx::PG::PropertyCategory.new("My Category"))
544
+ #
545
+ # ...
546
+ #
547
+ # # insert into category - using second overload
548
+ # my_item_id_1 = propertygrid.insert(my_cat_id, 0, Wx::PG::StringProperty.new("My String 1"))
549
+ #
550
+ # # insert before to first item - using first overload
551
+ # my_item_id_2 = propertygrid.insert(my_item_id, Wx::PG::StringProperty.new("My String 2"))
552
+ # ```
553
+ # @param priorThis [String,Wx::PG::PGProperty] New property is inserted just prior to this. Available only in the first variant. There are two versions of this function to allow this parameter to be either an id or name to a property.
554
+ # @param newProperty [Wx::PG::PGProperty] Pointer to the inserted property. {Wx::PG::PropertyGrid} will take ownership of this object.
555
+ # @return [Wx::PG::PGProperty]
556
+ # @overload insert(parent, index, newProperty)
557
+ # Inserts property to the property container.
558
+ #
559
+ # See the other overload for more details.
560
+ #
561
+ # Returns newProperty.
562
+ # @param parent [String,Wx::PG::PGProperty] New property is inserted under this category. Available only in the second variant. There are two versions of this function to allow this parameter to be either an id or name to a property.
563
+ # @param index [Integer] Index under category. Available only in the second variant. If index is < 0, property is appended in category.
564
+ # @param newProperty [Wx::PG::PGProperty] Pointer to the inserted property. {Wx::PG::PropertyGrid} will take ownership of this object.
565
+ # @return [Wx::PG::PGProperty]
566
+ def insert(*args) end
567
+
568
+ # Returns true if property is a category.
569
+ # @param id [String,Wx::PG::PGProperty]
570
+ # @return [Boolean]
571
+ def is_property_category(id) end
572
+ alias_method :property_category?, :is_property_category
573
+
574
+ # Returns true if property is enabled.
575
+ # @param id [String,Wx::PG::PGProperty]
576
+ # @return [Boolean]
577
+ def is_property_enabled(id) end
578
+ alias_method :property_enabled?, :is_property_enabled
579
+
580
+ # Returns true if given property is expanded.
581
+ #
582
+ # Naturally, always returns false for properties that cannot be expanded.
583
+ # @param id [String,Wx::PG::PGProperty]
584
+ # @return [Boolean]
585
+ def is_property_expanded(id) end
586
+ alias_method :property_expanded?, :is_property_expanded
587
+
588
+ # Returns true if property has been modified after value set or modify flag clear by software.
589
+ # @param id [String,Wx::PG::PGProperty]
590
+ # @return [Boolean]
591
+ def is_property_modified(id) end
592
+ alias_method :property_modified?, :is_property_modified
593
+
594
+ # Returns true if property is selected.
595
+ # @param id [String,Wx::PG::PGProperty]
596
+ # @return [Boolean]
597
+ def is_property_selected(id) end
598
+ alias_method :property_selected?, :is_property_selected
599
+
600
+ # Returns true if property is shown (i.e.
601
+ #
602
+ # {Wx::PG::PropertyGridInterface#hide_property} with true not called for it).
603
+ # @param id [String,Wx::PG::PGProperty]
604
+ # @return [Boolean]
605
+ def is_property_shown(id) end
606
+ alias_method :property_shown?, :is_property_shown
607
+
608
+ # Returns true if property value is set to unspecified.
609
+ # @param id [String,Wx::PG::PGProperty]
610
+ # @return [Boolean]
611
+ def is_property_value_unspecified(id) end
612
+ alias_method :property_value_unspecified?, :is_property_value_unspecified
613
+
614
+ # Disables (limit = true) or enables (limit = false) {Wx::TextCtrl} editor of a property, if it is not the sole mean to edit the value.
615
+ #
616
+ # <div class="wxrb-remark">
617
+ # <b>Remark:</b>
618
+ # <p>Property is refreshed with new settings.
619
+ # </p>
620
+ # </div>
621
+ # @param id [String,Wx::PG::PGProperty]
622
+ # @param limit [Boolean]
623
+ # @return [void]
624
+ def limit_property_editing(id, limit=true) end
625
+
626
+ # If state is shown in its grid, refresh it now.
627
+ # @param state [Wx::PG::PropertyGridPage,Wx::PG::PropertyGridPageState]
628
+ # @return [void]
629
+ def refresh_grid(state=nil) end
630
+
631
+ # Replaces property with id with newly created one.
632
+ #
633
+ # For example, this code replaces existing property named "Flags" with one that will have different set of items:
634
+ #
635
+ # ```ruby
636
+ # pg.replace_property("Flags", Wx::PG::FlagsProperty.new("Flags", Wx::PG::PG_LABEL, newItems))
637
+ # ```
638
+ # @see Wx::PG::PropertyGridInterface#insert
639
+ # @param id [String,Wx::PG::PGProperty]
640
+ # @param property [Wx::PG::PGProperty]
641
+ # @return [Wx::PG::PGProperty]
642
+ def replace_property(id, property) end
643
+
644
+ # Restores user-editable state.
645
+ #
646
+ # See also {Wx::PG::PropertyGridInterface#save_editable_state}.
647
+ #
648
+ # Returns false if there was problem reading the string.
649
+ #
650
+ # <div class="wxrb-remark">
651
+ # <b>Remark:</b>
652
+ # <p>If some parts of state (such as scrolled or splitter position) fail to restore correctly, please make sure that you call this function after {Wx::PG::PropertyGrid} size has been set (this may sometimes be tricky when sizers are used).
653
+ # </p>
654
+ # </div>
655
+ # @param src [String] String generated by SaveEditableState.
656
+ # @param restoreStates [Integer] Which parts to restore from source string. See list of editable state flags.
657
+ # @return [Boolean]
658
+ def restore_editable_state(src, restoreStates=Wx::PG::PropertyGrid::EditableStateFlags::AllStates) end
659
+
660
+ # Used to acquire user-editable state (selected property, expanded properties, scrolled position, splitter positions).
661
+ # @param includedStates [Integer] Which parts of state to include. See list of editable state flags.
662
+ # @return [String]
663
+ def save_editable_state(includedStates=Wx::PG::PropertyGrid::EditableStateFlags::AllStates) end
664
+
665
+ # Set proportion of an auto-stretchable column.
666
+ #
667
+ # {Wx::PG::PG_WINDOW_STYLES::PG_SPLITTER_AUTO_CENTER} window style needs to be used to indicate that columns are auto- resizeable.
668
+ # Returns false on failure.
669
+ #
670
+ # <div class="wxrb-remark">
671
+ # <b>Remark:</b>
672
+ # <p>You should call this for individual pages of {Wx::PG::PropertyGridManager} (if used).
673
+ # </p>
674
+ # </div>
675
+ # @see Wx::PG::PropertyGridInterface#get_column_proportion
676
+ # @param column [Integer]
677
+ # @param proportion [Integer]
678
+ # @return [Boolean]
679
+ def set_column_proportion(column, proportion) end
680
+
681
+ # Sets an attribute for this property.
682
+ #
683
+ # <div class="wxrb-remark">
684
+ # <b>Remark:</b>
685
+ # <p>
686
+ #
687
+ # - Setting attribute's value to null {Wx::Variant} will simply remove it from property's set of attributes.
688
+ # - Property is refreshed with new settings.
689
+ #
690
+ # </p>
691
+ # </div>
692
+ # @param id [String,Wx::PG::PGProperty] Name or pointer to a property.
693
+ # @param attrName [String] Text identifier of attribute. See wxPropertyGrid Property Attribute Identifiers.
694
+ # @param value [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue] Value of attribute.
695
+ # @param flags [Wx::PGPropertyValuesFlags] Optional. Use {Wx::PG::PGPropertyValuesFlags::Recurse} to set the attribute to child properties recursively.
696
+ # @return [void]
697
+ def set_property_attribute(id, attrName, value, flags=PGPropertyValuesFlags::DontRecurse) end
698
+
699
+ # Sets property attribute for all applicable properties.
700
+ #
701
+ # Be sure to use this method only after all properties have been added to the grid.
702
+ #
703
+ # <div class="wxrb-remark">
704
+ # <b>Remark:</b>
705
+ # <p>Properties are refreshed with new settings.
706
+ # </p>
707
+ # </div>
708
+ # @param attrName [String]
709
+ # @param value [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue]
710
+ # @return [void]
711
+ def set_property_attribute_all(attrName, value) end
712
+
713
+ # Sets background colour of given property.
714
+ #
715
+ # <div class="wxrb-remark">
716
+ # <b>Remark:</b>
717
+ # <p>
718
+ #
719
+ # - If category is tried to set recursively, only its children are affected.
720
+ # - Property is redrawn with new colour.
721
+ #
722
+ # </p>
723
+ # </div>
724
+ # @param id [String,Wx::PG::PGProperty] Property name or pointer.
725
+ # @param colour [Wx::Colour,String,Symbol] New background colour.
726
+ # @param flags [Wx::PGPropertyValuesFlags] Default is {Wx::PG::PGPropertyValuesFlags::Recurse} which causes colour to be set recursively. Omit this flag to only set colour for the property in question and not any of its children.
727
+ # @return [void]
728
+ def set_property_background_colour(id, colour, flags=PGPropertyValuesFlags::Recurse) end
729
+
730
+ # Sets text, bitmap, and colours for given column's cell.
731
+ #
732
+ # <div class="wxrb-remark">
733
+ # <b>Remark:</b>
734
+ # <p>
735
+ #
736
+ # - You can set label cell by using column 0.
737
+ # - You can use {Wx::PG::PG_LABEL} as text to use default text for column.
738
+ #
739
+ # </p>
740
+ # </div>
741
+ # @param id [String,Wx::PG::PGProperty]
742
+ # @param column [Integer]
743
+ # @param text [String]
744
+ # @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
745
+ # @param fgCol [Wx::Colour,String,Symbol]
746
+ # @param bgCol [Wx::Colour,String,Symbol]
747
+ # @return [void]
748
+ def set_property_cell(id, column, text=(''), bitmap=(Wx::BitmapBundle.new()), fgCol=Wx::NULL_COLOUR, bgCol=Wx::NULL_COLOUR) end
749
+
750
+ # Sets client data (void*) of a property.
751
+ #
752
+ # <div class="wxrb-remark">
753
+ # <b>Remark:</b>
754
+ # <p>This untyped client data has to be deleted manually.
755
+ # </p>
756
+ # </div>
757
+ # @param id [String,Wx::PG::PGProperty]
758
+ # @param clientData [Object]
759
+ # @return [void]
760
+ def set_property_client_data(id, clientData) end
761
+
762
+ # Resets text and background colours of given property.
763
+ #
764
+ # <div class="wxrb-remark">
765
+ # <b>Remark:</b>
766
+ # <p>
767
+ #
768
+ # - If category is tried to set recursively, only its children are affected.
769
+ # - Property is redrawn with new colours.
770
+ #
771
+ # </p>
772
+ # </div>
773
+ # @param id [String,Wx::PG::PGProperty] Property name or pointer.
774
+ # @param flags [Wx::PGPropertyValuesFlags] Default is {Wx::PG::PGPropertyValuesFlags::DontRecurse} which causes colour to be reset only for the property in question (for backward compatibility).
775
+ # @return [void]
776
+ def set_property_colours_to_default(id, flags=PGPropertyValuesFlags::DontRecurse) end
777
+ alias_method :property_colours_to_default=, :set_property_colours_to_default
778
+
779
+ # @overload set_property_editor(id, editor)
780
+ # Sets editor for a property.
781
+ #
782
+ # For custom editors, use pointer you received from {Wx::PG::PropertyGrid.register_editor_class}.
783
+ # @param id [String,Wx::PG::PGProperty] Property name or pointer to a property.
784
+ # @param editor [Wx::PG::PGEditor] For builtin editors, use {Wx::PGEditor_X}, where X is builtin editor's name (TextCtrl, Choice, etc. see {Wx::PG::PGEditor} documentation for full list).
785
+ # @return [void]
786
+ # @overload set_property_editor(id, editorName)
787
+ # Sets editor control of a property.
788
+ #
789
+ # As editor argument, use editor name string, such as "TextCtrl" or "Choice".
790
+ # @param id [String,Wx::PG::PGProperty]
791
+ # @param editorName [String]
792
+ # @return [void]
793
+ def set_property_editor(*args) end
794
+
795
+ # Sets label of a property.
796
+ #
797
+ # <div class="wxrb-remark">
798
+ # <b>Remark:</b>
799
+ # <p>
800
+ #
801
+ # - Properties under same parent may have same labels. However, property names must still remain unique.
802
+ #
803
+ # </p>
804
+ # </div>
805
+ # @param id [String,Wx::PG::PGProperty]
806
+ # @param newproplabel [String]
807
+ # @return [void]
808
+ def set_property_label(id, newproplabel) end
809
+
810
+ # Sets name of a property.
811
+ # @param id [String,Wx::PG::PGProperty] Name or pointer of property which name to change.
812
+ # @param newName [String] New name for property.
813
+ # @return [void]
814
+ def set_property_name(id, newName) end
815
+
816
+ # Sets property (and, recursively, its children) to have read-only value.
817
+ #
818
+ # In other words, user cannot change the value in the editor, but they can still copy it.
819
+ #
820
+ # <div class="wxrb-remark">
821
+ # <b>Remark:</b>
822
+ # <p>
823
+ #
824
+ # - This is mainly for use with TextCtrl editor. Only some other editors fully support it.
825
+ # - Property is refreshed with new settings.
826
+ #
827
+ # </p>
828
+ # </div>
829
+ # @param id [String,Wx::PG::PGProperty] Property name or pointer.
830
+ # @param set [Boolean] Use true to enable read-only, false to disable it.
831
+ # @param flags [Wx::PGPropertyValuesFlags] By default changes are applied recursively. Set this parameter to {Wx::PG::PGPropertyValuesFlags::DontRecurse} to prevent this.
832
+ # @return [void]
833
+ def set_property_read_only(id, set=true, flags=PGPropertyValuesFlags::Recurse) end
834
+ alias_method :property_read_only=, :set_property_read_only
835
+
836
+ # Sets property's value to unspecified.
837
+ #
838
+ # If it has children (it may be category), then the same thing is done to them.
839
+ # @param id [String,Wx::PG::PGProperty]
840
+ # @return [void]
841
+ def set_property_value_unspecified(id) end
842
+ alias_method :property_value_unspecified=, :set_property_value_unspecified
843
+
844
+ # @overload set_property_values(list, defaultCategory=Wx::PG::NullProperty)
845
+ # Sets property values from a list of {Wx::Variants}.
846
+ # @param list [Wx::VariantList]
847
+ # @param defaultCategory [String,Wx::PG::PGProperty]
848
+ # @return [void]
849
+ # @overload set_property_values(list, defaultCategory=Wx::PG::NullProperty)
850
+ # Sets property values from a list of {Wx::Variants}.
851
+ # @param list [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue]
852
+ # @param defaultCategory [String,Wx::PG::PGProperty]
853
+ # @return [void]
854
+ def set_property_values(*args) end
855
+ alias_method :property_values=, :set_property_values
856
+
857
+ # Associates the help string with property.
858
+ #
859
+ # <div class="wxrb-remark">
860
+ # <b>Remark:</b>
861
+ # <p>By default, text is shown either in the manager's "description" text box or in the status bar. If extra window style {Wx::PG::PG_EX_WINDOW_STYLES::PG_EX_HELP_AS_TOOLTIPS} is used, then the text will appear as a tooltip.
862
+ # </p>
863
+ # </div>
864
+ # @param id [String,Wx::PG::PGProperty]
865
+ # @param helpString [String]
866
+ # @return [void]
867
+ def set_property_help_string(id, helpString) end
868
+
869
+ # Set {Wx::Bitmap} taken from {Wx::BitmapBundle} in front of the value.
870
+ #
871
+ # <div class="wxrb-remark">
872
+ # <b>Remark:</b>
873
+ # <p>Bitmap will be scaled to a size returned by {Wx::PG::PropertyGrid#get_image_size};
874
+ # </p>
875
+ # </div>
876
+ # @param id [String,Wx::PG::PGProperty]
877
+ # @param bmp [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
878
+ # @return [void]
879
+ def set_property_image(id, bmp) end
880
+
881
+ # Sets maximum length of text in property text editor.
882
+ #
883
+ # Returns true if maximum length was set.
884
+ # @see Wx::PG::PGProperty#set_max_length.
885
+ # @param id [String,Wx::PG::PGProperty] Property name or pointer.
886
+ # @param maxLen [Integer] Maximum number of characters of the text the user can enter in the text editor. If it is 0, the length is not limited and the text can be as long as it is supported by the underlying native text control widget.
887
+ # @return [Boolean]
888
+ def set_property_max_length(id, maxLen) end
889
+
890
+ # Sets text colour of given property.
891
+ #
892
+ # <div class="wxrb-remark">
893
+ # <b>Remark:</b>
894
+ # <p>
895
+ #
896
+ # - If category is tried to set recursively, only its children are affected.
897
+ # - Property is redrawn with new colour.
898
+ #
899
+ # </p>
900
+ # </div>
901
+ # @param id [String,Wx::PG::PGProperty] Property name or pointer.
902
+ # @param colour [Wx::Colour,String,Symbol] New text colour.
903
+ # @param flags [Wx::PGPropertyValuesFlags] Default is {Wx::PG::PGPropertyValuesFlags::Recurse} which causes colour to be set recursively. Omit this flag to only set colour for the property in question and not any of its children.
904
+ # @return [void]
905
+ def set_property_text_colour(id, colour, flags=PGPropertyValuesFlags::Recurse) end
906
+
907
+ # Sets validator of a property.
908
+ # @param id [String,Wx::PG::PGProperty]
909
+ # @param validator [Wx::Validator]
910
+ # @return [void]
911
+ def set_property_validator(id, validator) end
912
+
913
+ # @overload set_property_value(id, value)
914
+ # Sets value (long integer) of a property.
915
+ # @param id [String,Wx::PG::PGProperty]
916
+ # @param value [Integer]
917
+ # @return [void]
918
+ # @overload set_property_value(id, value)
919
+ # Sets value (integer) of a property.
920
+ # @param id [String,Wx::PG::PGProperty]
921
+ # @param value [Integer]
922
+ # @return [void]
923
+ # @overload set_property_value(id, value)
924
+ # Sets value (floating point) of a property.
925
+ # @param id [String,Wx::PG::PGProperty]
926
+ # @param value [Float]
927
+ # @return [void]
928
+ # @overload set_property_value(id, value)
929
+ # Sets value (bool) of a property.
930
+ # @param id [String,Wx::PG::PGProperty]
931
+ # @param value [Boolean]
932
+ # @return [void]
933
+ # @overload set_property_value(id, value)
934
+ # Sets value (wchar_t*) of a property.
935
+ # @param id [String,Wx::PG::PGProperty]
936
+ # @param value [String]
937
+ # @return [void]
938
+ # @overload set_property_value(id, value)
939
+ # Sets value (char*) of a property.
940
+ # @param id [String,Wx::PG::PGProperty]
941
+ # @param value [String]
942
+ # @return [void]
943
+ # @overload set_property_value(id, value)
944
+ # Sets value (string) of a property.
945
+ # @param id [String,Wx::PG::PGProperty]
946
+ # @param value [String]
947
+ # @return [void]
948
+ # @overload set_property_value(id, value)
949
+ # Sets value ({Wx::ArrayString}) of a property.
950
+ # @param id [String,Wx::PG::PGProperty]
951
+ # @param value [Array<String>]
952
+ # @return [void]
953
+ # @overload set_property_value(id, value)
954
+ # Sets value ({Wx::DateTime}) of a property.
955
+ # @param id [String,Wx::PG::PGProperty]
956
+ # @param value [Time,Date,DateTime]
957
+ # @return [void]
958
+ # @overload set_property_value(id, value)
959
+ # Sets value ({Wx::Object}*) of a property.
960
+ # @param id [String,Wx::PG::PGProperty]
961
+ # @param value [Wx::Object]
962
+ # @return [void]
963
+ # @overload set_property_value(id, value)
964
+ # Sets value ({Wx::Object}&) of a property.
965
+ # @param id [String,Wx::PG::PGProperty]
966
+ # @param value [Wx::Object]
967
+ # @return [void]
968
+ # @overload set_property_value(id, value)
969
+ # Sets value (native 64-bit int) of a property.
970
+ # @param id [String,Wx::PG::PGProperty]
971
+ # @param value [Integer]
972
+ # @return [void]
973
+ # @overload set_property_value(id, value)
974
+ # Sets value ({Wx::LongLong}) of a property.
975
+ # @param id [String,Wx::PG::PGProperty]
976
+ # @param value [Wx::LongLong]
977
+ # @return [void]
978
+ # @overload set_property_value(id, value)
979
+ # Sets value (native 64-bit unsigned int) of a property.
980
+ # @param id [String,Wx::PG::PGProperty]
981
+ # @param value [Integer]
982
+ # @return [void]
983
+ # @overload set_property_value(id, value)
984
+ # Sets value ({Wx::ULongLong}) of a property.
985
+ # @param id [String,Wx::PG::PGProperty]
986
+ # @param value [Wx::ULongLong]
987
+ # @return [void]
988
+ # @overload set_property_value(id, value)
989
+ # Sets value ({Wx::ArrayInt}&) of a property.
990
+ # @param id [String,Wx::PG::PGProperty]
991
+ # @param value [Array<Integer>]
992
+ # @return [void]
993
+ # @overload set_property_value(id, value)
994
+ # Sets value ({Wx::Variant}) of a property.
995
+ #
996
+ # <div class="wxrb-remark">
997
+ # <b>Remark:</b>
998
+ # <p>Use {Wx::PG::PropertyGridInterface#change_property_value} instead if you need to run through validation process and send property change event.
999
+ # </p>
1000
+ # </div>
1001
+ # @param id [String,Wx::PG::PGProperty]
1002
+ # @param value [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue]
1003
+ # @return [void]
1004
+ def set_property_value(*args) end
1005
+
1006
+ # Sets value ({Wx::String}) of a property.
1007
+ #
1008
+ # <div class="wxrb-remark">
1009
+ # <b>Remark:</b>
1010
+ # <p>This method uses {Wx::PG::PGProperty#set_value_from_string}, which all properties should implement. This means that there should not be a type error, and instead the string is converted to property's actual value type.
1011
+ # </p>
1012
+ # </div>
1013
+ # @param id [String,Wx::PG::PGProperty]
1014
+ # @param value [String]
1015
+ # @return [void]
1016
+ def set_property_value_string(id, value) end
1017
+
1018
+ # Sets value ({Wx::Variant}&) of a property.
1019
+ #
1020
+ # Same as SetPropertyValue, but accepts reference.
1021
+ # @param id [String,Wx::PG::PGProperty]
1022
+ # @param value [Wx::Variant]
1023
+ # @return [void]
1024
+ def set_prop_val(id, value) end
1025
+
1026
+ # Adjusts how {Wx::PG::PropertyGrid} behaves when invalid value is entered in a property.
1027
+ # @param vfbFlags [Wx::PGVFBFlags] See wxPropertyGrid Validation Failure behaviour Flags for possible values.
1028
+ # @return [void]
1029
+ def set_validation_failure_behavior(vfbFlags) end
1030
+ alias_method :validation_failure_behavior=, :set_validation_failure_behavior
1031
+
1032
+ # Sorts all properties recursively.
1033
+ #
1034
+ #
1035
+ # @see Wx::PG::PropertyGridInterface#sort_children
1036
+ # @see Wx::PG::PropertyGrid#set_sort_function
1037
+ # @param flags [Wx::PGPropertyValuesFlags] This can contain any of the following options: {Wx::PG::PGPropertyValuesFlags::SortTopLevelOnly}: Only sort categories and their immediate children. Sorting done by {Wx::PG::PG_WINDOW_STYLES::PG_AUTO_SORT} option uses this.
1038
+ # @return [void]
1039
+ def sort(flags=PGPropertyValuesFlags::DontRecurse) end
1040
+
1041
+ # Sorts children of a property.
1042
+ #
1043
+ #
1044
+ # @see Wx::PG::PropertyGridInterface#sort
1045
+ # @see Wx::PG::PropertyGrid#set_sort_function
1046
+ # @param id [String,Wx::PG::PGProperty] Name or pointer to a property.
1047
+ # @param flags [Wx::PGPropertyValuesFlags] This can contain any of the following options: {Wx::PG::PGPropertyValuesFlags::Recurse}: Sorts recursively.
1048
+ # @return [void]
1049
+ def sort_children(id, flags=PGPropertyValuesFlags::DontRecurse) end
1050
+
1051
+ # {Wx::PG::PropertyGridInterface#get_property_by_name} with assertion error message.
1052
+ # @param name [String]
1053
+ # @return [Wx::PG::PGProperty]
1054
+ def get_property_by_name_a(name) end
1055
+ alias_method :property_by_name_a, :get_property_by_name_a
1056
+
1057
+ #
1058
+ #
1059
+ # <div class="wxrb-remark">
1060
+ # <b>Remark:</b>
1061
+ # <p>This function reselects the property and may cause excess flicker, so to just call {refresh} on a rectangle of a single property, call DrawItem() instead.
1062
+ # </p>
1063
+ # </div>
1064
+ # @param p [Wx::PG::PGProperty]
1065
+ # @return [void]
1066
+ def refresh_property(p) end
1067
+
1068
+ # Initializes all property types.
1069
+ #
1070
+ # Causes references to most object files in the library, so calling this may cause significant increase in executable size when linking with static library.
1071
+ # @return [void]
1072
+ def self.init_all_type_handlers; end
1073
+
1074
+ # Initializes additional property editors (SpinCtrl etc.).
1075
+ #
1076
+ # Causes references to most object files in the library, so calling this may cause significant increase in executable size when linking with static library.
1077
+ # @return [void]
1078
+ def self.register_additional_editors; end
1079
+
1080
+ # Sets strings listed in the choice drop-down of a {Wx::PG::BoolProperty}.
1081
+ #
1082
+ # Defaults are "True" and "False", so changing them to, say, "Yes" and "No" may be useful in some less technical applications.
1083
+ # @param trueChoice [String]
1084
+ # @param falseChoice [String]
1085
+ # @return [void]
1086
+ def self.set_bool_choices(trueChoice, falseChoice) end
1087
+
1088
+ # Returns editor pointer of editor with given name.
1089
+ # @param editorName [String]
1090
+ # @return [Wx::PG::PGEditor]
1091
+ def self.get_editor_by_name(editorName) end
1092
+
1093
+ end # PropertyGridInterface
1094
+
1095
+
1096
+ end
1097
+
1098
+ end