wxruby3 0.9.0.pre.beta.1-x64-mingw-ucrt-3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (822) hide show
  1. checksums.yaml +7 -0
  2. data/.wxconfig +17 -0
  3. data/.yardopts +13 -0
  4. data/CREDITS.md +52 -0
  5. data/LICENSE +21 -0
  6. data/README.md +138 -0
  7. data/bin/wxruby +9 -0
  8. data/bin/wxruby.bat +20 -0
  9. data/ext/mkrf_conf_bingem.rb +18 -0
  10. data/lib/wx/accessors.rb +63 -0
  11. data/lib/wx/aui/auimanager.rb +17 -0
  12. data/lib/wx/aui/auinotebook.rb +9 -0
  13. data/lib/wx/aui/events/evt_list.rb +143 -0
  14. data/lib/wx/aui/require.rb +9 -0
  15. data/lib/wx/aui.rb +14 -0
  16. data/lib/wx/core/acceleratortable.rb +28 -0
  17. data/lib/wx/core/animation.rb +18 -0
  18. data/lib/wx/core/app.rb +89 -0
  19. data/lib/wx/core/artprovider.rb +31 -0
  20. data/lib/wx/core/bitmap.rb +59 -0
  21. data/lib/wx/core/busycursor.rb +12 -0
  22. data/lib/wx/core/choice.rb +4 -0
  23. data/lib/wx/core/choicedlg.rb +54 -0
  24. data/lib/wx/core/clientdc.rb +13 -0
  25. data/lib/wx/core/clipboard.rb +56 -0
  26. data/lib/wx/core/collapsible_pane.rb +12 -0
  27. data/lib/wx/core/colour.rb +34 -0
  28. data/lib/wx/core/combobox.rb +4 -0
  29. data/lib/wx/core/controlwithitems.rb +10 -0
  30. data/lib/wx/core/data_object.rb +10 -0
  31. data/lib/wx/core/dataformat.rb +26 -0
  32. data/lib/wx/core/dc.rb +68 -0
  33. data/lib/wx/core/dialog.rb +50 -0
  34. data/lib/wx/core/event.rb +16 -0
  35. data/lib/wx/core/events/evt_list.rb +1378 -0
  36. data/lib/wx/core/evthandler.rb +240 -0
  37. data/lib/wx/core/ext.rb +58 -0
  38. data/lib/wx/core/font/encoding.rb +113 -0
  39. data/lib/wx/core/font.rb +22 -0
  40. data/lib/wx/core/functions.rb +44 -0
  41. data/lib/wx/core/gauge.rb +12 -0
  42. data/lib/wx/core/genericdirctrl.rb +36 -0
  43. data/lib/wx/core/hboxsizer.rb +6 -0
  44. data/lib/wx/core/helpcontroller.rb +5 -0
  45. data/lib/wx/core/helpcontrollerhelpprovider.rb +24 -0
  46. data/lib/wx/core/helpprovider.rb +15 -0
  47. data/lib/wx/core/icon.rb +40 -0
  48. data/lib/wx/core/image.rb +68 -0
  49. data/lib/wx/core/imagelist.rb +3 -0
  50. data/lib/wx/core/listbox.rb +4 -0
  51. data/lib/wx/core/listctrl.rb +33 -0
  52. data/lib/wx/core/locale.rb +73 -0
  53. data/lib/wx/core/log.rb +20 -0
  54. data/lib/wx/core/menu.rb +78 -0
  55. data/lib/wx/core/menu_bar.rb +20 -0
  56. data/lib/wx/core/menuitem.rb +7 -0
  57. data/lib/wx/core/notebook.rb +9 -0
  58. data/lib/wx/core/object.rb +14 -0
  59. data/lib/wx/core/pen_info.rb +11 -0
  60. data/lib/wx/core/platform_info.rb +13 -0
  61. data/lib/wx/core/point.rb +92 -0
  62. data/lib/wx/core/real_point.rb +92 -0
  63. data/lib/wx/core/rect.rb +57 -0
  64. data/lib/wx/core/simplehelpprovider.rb +38 -0
  65. data/lib/wx/core/size.rb +86 -0
  66. data/lib/wx/core/sizer.rb +43 -0
  67. data/lib/wx/core/splash_screen.rb +44 -0
  68. data/lib/wx/core/textctrl.rb +8 -0
  69. data/lib/wx/core/timer.rb +105 -0
  70. data/lib/wx/core/toolbar.rb +37 -0
  71. data/lib/wx/core/toolbartool.rb +4 -0
  72. data/lib/wx/core/treectrl.rb +46 -0
  73. data/lib/wx/core/validator.rb +8 -0
  74. data/lib/wx/core/variant.rb +62 -0
  75. data/lib/wx/core/vboxsizer.rb +6 -0
  76. data/lib/wx/core/window.rb +95 -0
  77. data/lib/wx/core/window_update_locker.rb +12 -0
  78. data/lib/wx/core/xmlresource.rb +56 -0
  79. data/lib/wx/core.rb +61 -0
  80. data/lib/wx/doc/aui/auimanager.rb +12 -0
  81. data/lib/wx/doc/aui/auinotebook.rb +9 -0
  82. data/lib/wx/doc/colour_dialog.rb +15 -0
  83. data/lib/wx/doc/dc.rb +49 -0
  84. data/lib/wx/doc/enum.rb +66 -0
  85. data/lib/wx/doc/evthandler.rb +84 -0
  86. data/lib/wx/doc/extra/00_starting.md +154 -0
  87. data/lib/wx/doc/extra/01_packages.md +179 -0
  88. data/lib/wx/doc/extra/02_lifecycles.md +116 -0
  89. data/lib/wx/doc/extra/03_dialogs.md +57 -0
  90. data/lib/wx/doc/extra/04_enums.md +143 -0
  91. data/lib/wx/doc/extra/05_event-handling.md +166 -0
  92. data/lib/wx/doc/extra/06_geometry.md +56 -0
  93. data/lib/wx/doc/extra/07_colour_and_font.md +52 -0
  94. data/lib/wx/doc/extra/08_extensions.md +144 -0
  95. data/lib/wx/doc/extra/09_exceptions.md +54 -0
  96. data/lib/wx/doc/functions.rb +221 -0
  97. data/lib/wx/doc/gdi_common.rb +181 -0
  98. data/lib/wx/doc/gen/about_dialog_info.rb +315 -0
  99. data/lib/wx/doc/gen/accelerator.rb +172 -0
  100. data/lib/wx/doc/gen/accessible.rb +817 -0
  101. data/lib/wx/doc/gen/animation.rb +253 -0
  102. data/lib/wx/doc/gen/animation_ctrl.rb +129 -0
  103. data/lib/wx/doc/gen/any_button.rb +170 -0
  104. data/lib/wx/doc/gen/app.rb +363 -0
  105. data/lib/wx/doc/gen/art_provider.rb +497 -0
  106. data/lib/wx/doc/gen/aui/aui_dock_art.rb +421 -0
  107. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +39 -0
  108. data/lib/wx/doc/gen/aui/aui_manager.rb +323 -0
  109. data/lib/wx/doc/gen/aui/aui_manager_event.rb +112 -0
  110. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +163 -0
  111. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +46 -0
  112. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +109 -0
  113. data/lib/wx/doc/gen/aui/aui_notebook.rb +329 -0
  114. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +179 -0
  115. data/lib/wx/doc/gen/aui/aui_pane_info.rb +665 -0
  116. data/lib/wx/doc/gen/aui/aui_tab_art.rb +372 -0
  117. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +147 -0
  118. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +437 -0
  119. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +272 -0
  120. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +195 -0
  121. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +224 -0
  122. data/lib/wx/doc/gen/aui/event_list.rb +162 -0
  123. data/lib/wx/doc/gen/auto_buffered_paint_dc.rb +47 -0
  124. data/lib/wx/doc/gen/bitmap.rb +638 -0
  125. data/lib/wx/doc/gen/bitmap_button.rb +91 -0
  126. data/lib/wx/doc/gen/book_ctrl_base.rb +240 -0
  127. data/lib/wx/doc/gen/book_ctrl_event.rb +60 -0
  128. data/lib/wx/doc/gen/box_sizer.rb +66 -0
  129. data/lib/wx/doc/gen/brush.rb +219 -0
  130. data/lib/wx/doc/gen/buffered_dc.rb +95 -0
  131. data/lib/wx/doc/gen/buffered_paint_dc.rb +55 -0
  132. data/lib/wx/doc/gen/busy_info.rb +141 -0
  133. data/lib/wx/doc/gen/button.rb +133 -0
  134. data/lib/wx/doc/gen/calculate_layout_event.rb +59 -0
  135. data/lib/wx/doc/gen/calendar_ctrl.rb +236 -0
  136. data/lib/wx/doc/gen/calendar_date_attr.rb +137 -0
  137. data/lib/wx/doc/gen/calendar_event.rb +150 -0
  138. data/lib/wx/doc/gen/caret.rb +99 -0
  139. data/lib/wx/doc/gen/check_box.rb +145 -0
  140. data/lib/wx/doc/gen/check_list_box.rb +96 -0
  141. data/lib/wx/doc/gen/choice.rb +143 -0
  142. data/lib/wx/doc/gen/choicebook.rb +100 -0
  143. data/lib/wx/doc/gen/client_dc.rb +49 -0
  144. data/lib/wx/doc/gen/clipboard.rb +128 -0
  145. data/lib/wx/doc/gen/collapsible_pane.rb +120 -0
  146. data/lib/wx/doc/gen/collapsible_pane_event.rb +45 -0
  147. data/lib/wx/doc/gen/colour.rb +289 -0
  148. data/lib/wx/doc/gen/colour_data.rb +96 -0
  149. data/lib/wx/doc/gen/colour_dialog.rb +84 -0
  150. data/lib/wx/doc/gen/colour_picker_ctrl.rb +89 -0
  151. data/lib/wx/doc/gen/colour_picker_event.rb +74 -0
  152. data/lib/wx/doc/gen/combo_box.rb +228 -0
  153. data/lib/wx/doc/gen/context_help_button.rb +34 -0
  154. data/lib/wx/doc/gen/control.rb +245 -0
  155. data/lib/wx/doc/gen/control_with_items.rb +339 -0
  156. data/lib/wx/doc/gen/core.rb +42 -0
  157. data/lib/wx/doc/gen/cursor.rb +127 -0
  158. data/lib/wx/doc/gen/data_format.rb +94 -0
  159. data/lib/wx/doc/gen/data_object.rb +439 -0
  160. data/lib/wx/doc/gen/date_event.rb +48 -0
  161. data/lib/wx/doc/gen/date_picker_ctrl.rb +127 -0
  162. data/lib/wx/doc/gen/dc.rb +1278 -0
  163. data/lib/wx/doc/gen/defs.rb +2832 -0
  164. data/lib/wx/doc/gen/dialog.rb +426 -0
  165. data/lib/wx/doc/gen/dir_dialog.rb +134 -0
  166. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +80 -0
  167. data/lib/wx/doc/gen/dir_picker_ctrl.rb +103 -0
  168. data/lib/wx/doc/gen/drag_drop.rb +292 -0
  169. data/lib/wx/doc/gen/drag_image.rb +123 -0
  170. data/lib/wx/doc/gen/editable_list_box.rb +89 -0
  171. data/lib/wx/doc/gen/event.rb +911 -0
  172. data/lib/wx/doc/gen/event_list.rb +1512 -0
  173. data/lib/wx/doc/gen/events.rb +2499 -0
  174. data/lib/wx/doc/gen/evt_handler.rb +224 -0
  175. data/lib/wx/doc/gen/ext_help_controller.rb +100 -0
  176. data/lib/wx/doc/gen/file_dialog.rb +294 -0
  177. data/lib/wx/doc/gen/file_dir_picker_event.rb +98 -0
  178. data/lib/wx/doc/gen/file_picker_ctrl.rb +107 -0
  179. data/lib/wx/doc/gen/find_dialog_event.rb +119 -0
  180. data/lib/wx/doc/gen/find_replace_data.rb +59 -0
  181. data/lib/wx/doc/gen/find_replace_dialog.rb +44 -0
  182. data/lib/wx/doc/gen/flex_grid_sizer.rb +145 -0
  183. data/lib/wx/doc/gen/font.rb +1282 -0
  184. data/lib/wx/doc/gen/font_data.rb +132 -0
  185. data/lib/wx/doc/gen/font_dialog.rb +71 -0
  186. data/lib/wx/doc/gen/font_picker_ctrl.rb +120 -0
  187. data/lib/wx/doc/gen/font_picker_event.rb +64 -0
  188. data/lib/wx/doc/gen/frame.rb +276 -0
  189. data/lib/wx/doc/gen/fs_file.rb +269 -0
  190. data/lib/wx/doc/gen/functions.rb +10 -0
  191. data/lib/wx/doc/gen/gauge.rb +127 -0
  192. data/lib/wx/doc/gen/gb_sizer_item.rb +78 -0
  193. data/lib/wx/doc/gen/gcdc.rb +61 -0
  194. data/lib/wx/doc/gen/gdi_common.rb +1108 -0
  195. data/lib/wx/doc/gen/gdi_object.rb +29 -0
  196. data/lib/wx/doc/gen/generic_dir_ctrl.rb +198 -0
  197. data/lib/wx/doc/gen/graphics_context.rb +764 -0
  198. data/lib/wx/doc/gen/graphics_object.rb +494 -0
  199. data/lib/wx/doc/gen/grid/event_list.rb +173 -0
  200. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +33 -0
  201. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +279 -0
  202. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +31 -0
  203. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +32 -0
  204. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +44 -0
  205. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +31 -0
  206. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +48 -0
  207. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +33 -0
  208. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +40 -0
  209. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +35 -0
  210. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +181 -0
  211. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +34 -0
  212. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +39 -0
  213. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +41 -0
  214. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +74 -0
  215. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +41 -0
  216. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +31 -0
  217. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +98 -0
  218. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +31 -0
  219. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +45 -0
  220. data/lib/wx/doc/gen/grid/grid_ctrl.rb +2381 -0
  221. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +87 -0
  222. data/lib/wx/doc/gen/grid/grid_event.rb +96 -0
  223. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +96 -0
  224. data/lib/wx/doc/gen/grid/grid_size_event.rb +71 -0
  225. data/lib/wx/doc/gen/grid/grid_string_table.rb +130 -0
  226. data/lib/wx/doc/gen/grid/grid_table_base.rb +288 -0
  227. data/lib/wx/doc/gen/grid/grid_table_message.rb +73 -0
  228. data/lib/wx/doc/gen/grid_bag_sizer.rb +298 -0
  229. data/lib/wx/doc/gen/grid_sizer.rb +135 -0
  230. data/lib/wx/doc/gen/help_controller.rb +136 -0
  231. data/lib/wx/doc/gen/help_provider.rb +80 -0
  232. data/lib/wx/doc/gen/html/event_list.rb +46 -0
  233. data/lib/wx/doc/gen/html/html_cell.rb +441 -0
  234. data/lib/wx/doc/gen/html/html_cell_event.rb +62 -0
  235. data/lib/wx/doc/gen/html/html_easy_printing.rb +169 -0
  236. data/lib/wx/doc/gen/html/html_help_controller.rb +256 -0
  237. data/lib/wx/doc/gen/html/html_help_data.rb +144 -0
  238. data/lib/wx/doc/gen/html/html_help_frame.rb +112 -0
  239. data/lib/wx/doc/gen/html/html_help_window.rb +230 -0
  240. data/lib/wx/doc/gen/html/html_link_event.rb +36 -0
  241. data/lib/wx/doc/gen/html/html_list_box.rb +150 -0
  242. data/lib/wx/doc/gen/html/html_printout.rb +87 -0
  243. data/lib/wx/doc/gen/html/html_window.rb +386 -0
  244. data/lib/wx/doc/gen/icon.rb +267 -0
  245. data/lib/wx/doc/gen/icon_location.rb +38 -0
  246. data/lib/wx/doc/gen/image.rb +1144 -0
  247. data/lib/wx/doc/gen/image_list.rb +181 -0
  248. data/lib/wx/doc/gen/keyboard_state.rb +124 -0
  249. data/lib/wx/doc/gen/list_box.rb +260 -0
  250. data/lib/wx/doc/gen/list_ctrl.rb +1542 -0
  251. data/lib/wx/doc/gen/list_event.rb +177 -0
  252. data/lib/wx/doc/gen/listbook.rb +100 -0
  253. data/lib/wx/doc/gen/locale.rb +4143 -0
  254. data/lib/wx/doc/gen/log.rb +505 -0
  255. data/lib/wx/doc/gen/mdi_client_window.rb +38 -0
  256. data/lib/wx/doc/gen/mdi_frame.rb +235 -0
  257. data/lib/wx/doc/gen/media_ctrl.rb +225 -0
  258. data/lib/wx/doc/gen/media_event.rb +109 -0
  259. data/lib/wx/doc/gen/memory_dc.rb +95 -0
  260. data/lib/wx/doc/gen/menu.rb +493 -0
  261. data/lib/wx/doc/gen/menu_bar.rb +247 -0
  262. data/lib/wx/doc/gen/menu_item.rb +333 -0
  263. data/lib/wx/doc/gen/message_dialog.rb +195 -0
  264. data/lib/wx/doc/gen/mini_frame.rb +72 -0
  265. data/lib/wx/doc/gen/mirror_dc.rb +29 -0
  266. data/lib/wx/doc/gen/mouse_state.rb +108 -0
  267. data/lib/wx/doc/gen/multi_choice_dialog.rb +58 -0
  268. data/lib/wx/doc/gen/non_owned_window.rb +46 -0
  269. data/lib/wx/doc/gen/notebook.rb +220 -0
  270. data/lib/wx/doc/gen/number_entry_dialog.rb +75 -0
  271. data/lib/wx/doc/gen/object.rb +69 -0
  272. data/lib/wx/doc/gen/paint_dc.rb +34 -0
  273. data/lib/wx/doc/gen/palette.rb +90 -0
  274. data/lib/wx/doc/gen/panel.rb +96 -0
  275. data/lib/wx/doc/gen/pen.rb +484 -0
  276. data/lib/wx/doc/gen/pg/event_list.rb +102 -0
  277. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +47 -0
  278. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +295 -0
  279. data/lib/wx/doc/gen/pg/pg_cell.rb +166 -0
  280. data/lib/wx/doc/gen/pg/pg_editor.rb +569 -0
  281. data/lib/wx/doc/gen/pg/pg_multi_button.rb +161 -0
  282. data/lib/wx/doc/gen/pg/pg_properties.rb +2193 -0
  283. data/lib/wx/doc/gen/pg/pg_property.rb +1852 -0
  284. data/lib/wx/doc/gen/pg/pg_validation_info.rb +327 -0
  285. data/lib/wx/doc/gen/pg/property_grid.rb +619 -0
  286. data/lib/wx/doc/gen/pg/property_grid_event.rb +135 -0
  287. data/lib/wx/doc/gen/pg/property_grid_interface.rb +847 -0
  288. data/lib/wx/doc/gen/pg/property_grid_manager.rb +349 -0
  289. data/lib/wx/doc/gen/pg/property_grid_page.rb +265 -0
  290. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +155 -0
  291. data/lib/wx/doc/gen/picker_base.rb +143 -0
  292. data/lib/wx/doc/gen/platform_info.rb +379 -0
  293. data/lib/wx/doc/gen/popup_window.rb +93 -0
  294. data/lib/wx/doc/gen/progress_dialog.rb +106 -0
  295. data/lib/wx/doc/gen/property_sheet_dialog.rb +185 -0
  296. data/lib/wx/doc/gen/prt/event_list.rb +13 -0
  297. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +38 -0
  298. data/lib/wx/doc/gen/prt/post_script_dc.rb +32 -0
  299. data/lib/wx/doc/gen/prt/preview_frame.rb +39 -0
  300. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +127 -0
  301. data/lib/wx/doc/gen/prt/print_data.rb +598 -0
  302. data/lib/wx/doc/gen/prt/print_dialog.rb +47 -0
  303. data/lib/wx/doc/gen/prt/printer.rb +428 -0
  304. data/lib/wx/doc/gen/prt/printer_dc.rb +35 -0
  305. data/lib/wx/doc/gen/query_layout_info_event.rb +98 -0
  306. data/lib/wx/doc/gen/radio_box.rb +258 -0
  307. data/lib/wx/doc/gen/radio_button.rb +128 -0
  308. data/lib/wx/doc/gen/rbn/event_list.rb +132 -0
  309. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +1652 -0
  310. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +227 -0
  311. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +40 -0
  312. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +400 -0
  313. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +58 -0
  314. data/lib/wx/doc/gen/rbn/ribbon_control.rb +116 -0
  315. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +208 -0
  316. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +51 -0
  317. data/lib/wx/doc/gen/rbn/ribbon_page.rb +129 -0
  318. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +232 -0
  319. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +41 -0
  320. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +321 -0
  321. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +36 -0
  322. data/lib/wx/doc/gen/region.rb +299 -0
  323. data/lib/wx/doc/gen/rtc/event_list.rb +121 -0
  324. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +2052 -0
  325. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +2031 -0
  326. data/lib/wx/doc/gen/rtc/rich_text_event.rb +146 -0
  327. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +171 -0
  328. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +180 -0
  329. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +104 -0
  330. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +241 -0
  331. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +55 -0
  332. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +153 -0
  333. data/lib/wx/doc/gen/sash_event.rb +133 -0
  334. data/lib/wx/doc/gen/sash_layout_window.rb +203 -0
  335. data/lib/wx/doc/gen/sash_window.rb +154 -0
  336. data/lib/wx/doc/gen/screen_dc.rb +27 -0
  337. data/lib/wx/doc/gen/scrolled_canvas.rb +317 -0
  338. data/lib/wx/doc/gen/scrolled_control.rb +317 -0
  339. data/lib/wx/doc/gen/scrolled_window.rb +337 -0
  340. data/lib/wx/doc/gen/simplebook.rb +93 -0
  341. data/lib/wx/doc/gen/single_choice_dialog.rb +74 -0
  342. data/lib/wx/doc/gen/sizer.rb +847 -0
  343. data/lib/wx/doc/gen/sizer_item.rb +227 -0
  344. data/lib/wx/doc/gen/slider.rb +316 -0
  345. data/lib/wx/doc/gen/spin_button.rb +124 -0
  346. data/lib/wx/doc/gen/spin_ctrl.rb +170 -0
  347. data/lib/wx/doc/gen/spin_event.rb +47 -0
  348. data/lib/wx/doc/gen/splash_screen.rb +83 -0
  349. data/lib/wx/doc/gen/splitter_event.rb +87 -0
  350. data/lib/wx/doc/gen/splitter_window.rb +357 -0
  351. data/lib/wx/doc/gen/static_bitmap.rb +126 -0
  352. data/lib/wx/doc/gen/static_box.rb +123 -0
  353. data/lib/wx/doc/gen/static_box_sizer.rb +67 -0
  354. data/lib/wx/doc/gen/static_line.rb +66 -0
  355. data/lib/wx/doc/gen/static_text.rb +98 -0
  356. data/lib/wx/doc/gen/status_bar.rb +203 -0
  357. data/lib/wx/doc/gen/stc/event_list.rb +217 -0
  358. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4000 -0
  359. data/lib/wx/doc/gen/stc/styled_text_event.rb +7319 -0
  360. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +74 -0
  361. data/lib/wx/doc/gen/svg_file_dc.rb +153 -0
  362. data/lib/wx/doc/gen/system_options.rb +109 -0
  363. data/lib/wx/doc/gen/system_settings.rb +481 -0
  364. data/lib/wx/doc/gen/task_bar_icon.rb +94 -0
  365. data/lib/wx/doc/gen/task_bar_icon_event.rb +86 -0
  366. data/lib/wx/doc/gen/text_attr.rb +645 -0
  367. data/lib/wx/doc/gen/text_ctrl.rb +841 -0
  368. data/lib/wx/doc/gen/text_entry.rb +389 -0
  369. data/lib/wx/doc/gen/text_entry_dialog.rb +170 -0
  370. data/lib/wx/doc/gen/text_validator.rb +212 -0
  371. data/lib/wx/doc/gen/time_picker_ctrl.rb +103 -0
  372. data/lib/wx/doc/gen/timer.rb +103 -0
  373. data/lib/wx/doc/gen/timer_event.rb +73 -0
  374. data/lib/wx/doc/gen/tip_provider.rb +60 -0
  375. data/lib/wx/doc/gen/toggle_button.rb +84 -0
  376. data/lib/wx/doc/gen/tool_bar.rb +744 -0
  377. data/lib/wx/doc/gen/tool_tip.rb +73 -0
  378. data/lib/wx/doc/gen/toolbook.rb +103 -0
  379. data/lib/wx/doc/gen/top_level_window.rb +462 -0
  380. data/lib/wx/doc/gen/tree_ctrl.rb +863 -0
  381. data/lib/wx/doc/gen/tree_event.rb +101 -0
  382. data/lib/wx/doc/gen/treebook.rb +154 -0
  383. data/lib/wx/doc/gen/utils.rb +257 -0
  384. data/lib/wx/doc/gen/v_list_box.rb +224 -0
  385. data/lib/wx/doc/gen/v_scrolled_window.rb +224 -0
  386. data/lib/wx/doc/gen/validator.rb +73 -0
  387. data/lib/wx/doc/gen/variant.rb +340 -0
  388. data/lib/wx/doc/gen/window.rb +2414 -0
  389. data/lib/wx/doc/gen/window_dc.rb +35 -0
  390. data/lib/wx/doc/gen/window_disabler.rb +24 -0
  391. data/lib/wx/doc/gen/with_images.rb +73 -0
  392. data/lib/wx/doc/gen/wizard.rb +197 -0
  393. data/lib/wx/doc/gen/wizard_event.rb +105 -0
  394. data/lib/wx/doc/gen/wizard_page.rb +61 -0
  395. data/lib/wx/doc/gen/wizard_page_simple.rb +72 -0
  396. data/lib/wx/doc/gen/xml_node.rb +282 -0
  397. data/lib/wx/doc/gen/xml_resource.rb +304 -0
  398. data/lib/wx/doc/grid/grid.rb +20 -0
  399. data/lib/wx/doc/help_controller.rb +14 -0
  400. data/lib/wx/doc/html/html_help_controller.rb +8 -0
  401. data/lib/wx/doc/pg/events.rb +15 -0
  402. data/lib/wx/doc/pg/pg_property.rb +8 -0
  403. data/lib/wx/doc/pg/pgeditor.rb +21 -0
  404. data/lib/wx/doc/pg/property_grid.rb +48 -0
  405. data/lib/wx/doc/pg/property_grid_interface.rb +64 -0
  406. data/lib/wx/doc/prt/page_setup_dialog.rb +15 -0
  407. data/lib/wx/doc/prt/print_data.rb +9 -0
  408. data/lib/wx/doc/prt/print_dialog.rb +26 -0
  409. data/lib/wx/doc/prt/printer.rb +15 -0
  410. data/lib/wx/doc/rbn/ribbon_bar.rb +9 -0
  411. data/lib/wx/doc/rbn/ribbon_button_bar.rb +9 -0
  412. data/lib/wx/doc/rbn/ribbon_gallery.rb +9 -0
  413. data/lib/wx/doc/rbn/ribbon_tool_bar.rb +9 -0
  414. data/lib/wx/doc/rtc/richtext_printing.rb +14 -0
  415. data/lib/wx/doc/screen_dc.rb +10 -0
  416. data/lib/wx/doc/stock_objects.rb +98 -0
  417. data/lib/wx/doc/stream.rb +38 -0
  418. data/lib/wx/doc/system_settings.rb +29 -0
  419. data/lib/wx/doc/treebook.rb +9 -0
  420. data/lib/wx/doc/variant.rb +163 -0
  421. data/lib/wx/doc/xml_resource.rb +19 -0
  422. data/lib/wx/global_const.rb +84 -0
  423. data/lib/wx/grid/events/evt_list.rb +156 -0
  424. data/lib/wx/grid/grid.rb +7 -0
  425. data/lib/wx/grid/keyword_defs.rb +10 -0
  426. data/lib/wx/grid/require.rb +9 -0
  427. data/lib/wx/grid.rb +14 -0
  428. data/lib/wx/helpers.rb +65 -0
  429. data/lib/wx/html/events/evt_list.rb +37 -0
  430. data/lib/wx/html/htmlhelpcontroller.rb +6 -0
  431. data/lib/wx/html/htmlwindow.rb +19 -0
  432. data/lib/wx/html/keyword_defs.rb +22 -0
  433. data/lib/wx/html/require.rb +10 -0
  434. data/lib/wx/html.rb +15 -0
  435. data/lib/wx/keyword_ctors.rb +226 -0
  436. data/lib/wx/keyword_defs.rb +487 -0
  437. data/lib/wx/pg/events/evt_list.rb +73 -0
  438. data/lib/wx/pg/events.rb +14 -0
  439. data/lib/wx/pg/keyword_defs.rb +15 -0
  440. data/lib/wx/pg/pg_editor.rb +13 -0
  441. data/lib/wx/pg/pg_properties.rb +24 -0
  442. data/lib/wx/pg/pg_property.rb +26 -0
  443. data/lib/wx/pg/property_grid.rb +56 -0
  444. data/lib/wx/pg/property_grid_interface.rb +33 -0
  445. data/lib/wx/pg/require.rb +12 -0
  446. data/lib/wx/pg.rb +14 -0
  447. data/lib/wx/prt/keyword_defs.rb +8 -0
  448. data/lib/wx/prt/page_setup_dialog.rb +15 -0
  449. data/lib/wx/prt/previewframe.rb +13 -0
  450. data/lib/wx/prt/require.rb +8 -0
  451. data/lib/wx/prt.rb +14 -0
  452. data/lib/wx/rbn/events/evt_list.rb +102 -0
  453. data/lib/wx/rbn/events.rb +4 -0
  454. data/lib/wx/rbn/keyword_defs.rb +43 -0
  455. data/lib/wx/rbn/require.rb +12 -0
  456. data/lib/wx/rbn/ribbon_art_provider.rb +10 -0
  457. data/lib/wx/rbn/ribbon_bar.rb +12 -0
  458. data/lib/wx/rbn/ribbon_button_bar.rb +26 -0
  459. data/lib/wx/rbn/ribbon_control.rb +25 -0
  460. data/lib/wx/rbn/ribbon_gallery.rb +26 -0
  461. data/lib/wx/rbn/ribbon_page.rb +15 -0
  462. data/lib/wx/rbn/ribbon_panel.rb +15 -0
  463. data/lib/wx/rbn/ribbon_tool_bar.rb +26 -0
  464. data/lib/wx/rbn.rb +14 -0
  465. data/lib/wx/rtc/events/evt_list.rb +98 -0
  466. data/lib/wx/rtc/ext/rich_text_ctrl.rb +24 -0
  467. data/lib/wx/rtc/ext.rb +15 -0
  468. data/lib/wx/rtc/keyword_defs.rb +17 -0
  469. data/lib/wx/rtc/require.rb +8 -0
  470. data/lib/wx/rtc.rb +15 -0
  471. data/lib/wx/stc/events/evt_list.rb +178 -0
  472. data/lib/wx/stc/keyword_defs.rb +8 -0
  473. data/lib/wx/stc/require.rb +7 -0
  474. data/lib/wx/stc.rb +14 -0
  475. data/lib/wx/version.rb +3 -0
  476. data/lib/wx/wxruby/base.rb +87 -0
  477. data/lib/wx/wxruby/cmd/sampler.rb +68 -0
  478. data/lib/wx/wxruby/cmd/test.rb +27 -0
  479. data/lib/wx.rb +14 -0
  480. data/lib/wxruby_aui.so +0 -0
  481. data/lib/wxruby_core.so +0 -0
  482. data/lib/wxruby_grid.so +0 -0
  483. data/lib/wxruby_html.so +0 -0
  484. data/lib/wxruby_pg.so +0 -0
  485. data/lib/wxruby_prt.so +0 -0
  486. data/lib/wxruby_rbn.so +0 -0
  487. data/lib/wxruby_rtc.so +0 -0
  488. data/lib/wxruby_stc.so +0 -0
  489. data/rakelib/install.rb +220 -0
  490. data/rakelib/lib/config/cygwin.rb +6 -0
  491. data/rakelib/lib/config/linux.rb +78 -0
  492. data/rakelib/lib/config/macosx.rb +6 -0
  493. data/rakelib/lib/config/mingw.rb +133 -0
  494. data/rakelib/lib/config/netbsd.rb +6 -0
  495. data/rakelib/lib/config/unixish.rb +187 -0
  496. data/rakelib/lib/config.rb +673 -0
  497. data/rakelib/lib/ext/enum_chain.rb +22 -0
  498. data/rakelib/prepost.rake +91 -0
  499. data/rakelib/prepost.rb +26 -0
  500. data/rakelib/yard/templates/default/fulldoc/html/css/wxruby3.css +7 -0
  501. data/rakelib/yard/templates/default/layout/html/setup.rb +5 -0
  502. data/rakelib/yard/yard/relative_markdown_links/version.rb +8 -0
  503. data/rakelib/yard/yard/relative_markdown_links.rb +39 -0
  504. data/rakelib/yard/yard-custom-templates.rb +2 -0
  505. data/rakelib/yard/yard-relative_markdown_links.rb +4 -0
  506. data/samples/art/wxruby-128x128.png +0 -0
  507. data/samples/art/wxruby-256x256.png +0 -0
  508. data/samples/art/wxruby-64x64.png +0 -0
  509. data/samples/art/wxruby.ico +0 -0
  510. data/samples/art/wxruby.png +0 -0
  511. data/samples/aui/aui.rb +1321 -0
  512. data/samples/aui/tn_aui.png +0 -0
  513. data/samples/bigdemo/About.rbw +39 -0
  514. data/samples/bigdemo/ColorPanel.rbw +23 -0
  515. data/samples/bigdemo/GridSimple.rbw +78 -0
  516. data/samples/bigdemo/MDIDemo.rbw +57 -0
  517. data/samples/bigdemo/PopupMenu.rbw +146 -0
  518. data/samples/bigdemo/ShapedWindow.rbw +128 -0
  519. data/samples/bigdemo/Sizers.rbw +541 -0
  520. data/samples/bigdemo/bigdemo.rb +810 -0
  521. data/samples/bigdemo/demoTemplate.rbw +33 -0
  522. data/samples/bigdemo/helpfile.htb +0 -0
  523. data/samples/bigdemo/icons/Test 015.jpg +0 -0
  524. data/samples/bigdemo/icons/Test 015.png +0 -0
  525. data/samples/bigdemo/icons/choice.bmp +0 -0
  526. data/samples/bigdemo/icons/choice.xpm +27 -0
  527. data/samples/bigdemo/icons/combo.bmp +0 -0
  528. data/samples/bigdemo/icons/combo.xpm +27 -0
  529. data/samples/bigdemo/icons/copy.xpm +25 -0
  530. data/samples/bigdemo/icons/cut.xpm +24 -0
  531. data/samples/bigdemo/icons/gauge.bmp +0 -0
  532. data/samples/bigdemo/icons/gauge.xpm +27 -0
  533. data/samples/bigdemo/icons/help.xpm +25 -0
  534. data/samples/bigdemo/icons/list.bmp +0 -0
  535. data/samples/bigdemo/icons/list.xpm +27 -0
  536. data/samples/bigdemo/icons/mondrian.ico +0 -0
  537. data/samples/bigdemo/icons/mondrian.xpm +44 -0
  538. data/samples/bigdemo/icons/new.xpm +24 -0
  539. data/samples/bigdemo/icons/ogl.ico +0 -0
  540. data/samples/bigdemo/icons/ogl.xpm +45 -0
  541. data/samples/bigdemo/icons/open.xpm +26 -0
  542. data/samples/bigdemo/icons/paste.bmp +0 -0
  543. data/samples/bigdemo/icons/paste.xpm +38 -0
  544. data/samples/bigdemo/icons/pointy.png +0 -0
  545. data/samples/bigdemo/icons/preview.xpm +26 -0
  546. data/samples/bigdemo/icons/print.xpm +26 -0
  547. data/samples/bigdemo/icons/radio.bmp +0 -0
  548. data/samples/bigdemo/icons/radio.xpm +27 -0
  549. data/samples/bigdemo/icons/robert.xpm +415 -0
  550. data/samples/bigdemo/icons/sashtest.ico +0 -0
  551. data/samples/bigdemo/icons/save.xpm +25 -0
  552. data/samples/bigdemo/icons/smiles.bmp +0 -0
  553. data/samples/bigdemo/icons/smiles.xpm +39 -0
  554. data/samples/bigdemo/icons/smiley.ico +0 -0
  555. data/samples/bigdemo/icons/smiley.xpm +42 -0
  556. data/samples/bigdemo/icons/stattext.xpm +24 -0
  557. data/samples/bigdemo/icons/test2.bmp +0 -0
  558. data/samples/bigdemo/icons/test2.png +0 -0
  559. data/samples/bigdemo/icons/test2.xpm +79 -0
  560. data/samples/bigdemo/icons/text.bmp +0 -0
  561. data/samples/bigdemo/icons/text.xpm +27 -0
  562. data/samples/bigdemo/icons/tog1.bmp +0 -0
  563. data/samples/bigdemo/icons/tog1.xpm +38 -0
  564. data/samples/bigdemo/icons/tog2.bmp +0 -0
  565. data/samples/bigdemo/icons/tog2.xpm +38 -0
  566. data/samples/bigdemo/icons/wxruby-128x128.png +0 -0
  567. data/samples/bigdemo/icons/wxwin.ico +0 -0
  568. data/samples/bigdemo/icons/wxwin16x16.png +0 -0
  569. data/samples/bigdemo/icons/wxwin16x16.xpm +25 -0
  570. data/samples/bigdemo/icons/wxwin32x32.png +0 -0
  571. data/samples/bigdemo/icons/wxwin48x48.png +0 -0
  572. data/samples/bigdemo/run.rb +91 -0
  573. data/samples/bigdemo/tips.txt +7 -0
  574. data/samples/bigdemo/utils.rb +12 -0
  575. data/samples/bigdemo/wxArtProvider.rbw +281 -0
  576. data/samples/bigdemo/wxBitmapButton.rbw +65 -0
  577. data/samples/bigdemo/wxButton.rbw +64 -0
  578. data/samples/bigdemo/wxCalendarCtrl.rbw +59 -0
  579. data/samples/bigdemo/wxCheckBox.rbw +50 -0
  580. data/samples/bigdemo/wxCheckListBox.rbw +65 -0
  581. data/samples/bigdemo/wxChoice.rbw +47 -0
  582. data/samples/bigdemo/wxChoicebook.rbw +78 -0
  583. data/samples/bigdemo/wxColourDialog.rbw +33 -0
  584. data/samples/bigdemo/wxComboBox.rbw +77 -0
  585. data/samples/bigdemo/wxCursor.rbw +136 -0
  586. data/samples/bigdemo/wxDialog.rbw +74 -0
  587. data/samples/bigdemo/wxDirDialog.rbw +29 -0
  588. data/samples/bigdemo/wxDragImage.rbw +70 -0
  589. data/samples/bigdemo/wxFileDialog.rbw +37 -0
  590. data/samples/bigdemo/wxFileDialog_Save.rbw +35 -0
  591. data/samples/bigdemo/wxFindReplaceDialog.rbw +82 -0
  592. data/samples/bigdemo/wxFontDialog.rbw +200 -0
  593. data/samples/bigdemo/wxFrame.rbw +53 -0
  594. data/samples/bigdemo/wxGauge.rbw +65 -0
  595. data/samples/bigdemo/wxGenericDirCtrl.rbw +74 -0
  596. data/samples/bigdemo/wxGrid.rbw +66 -0
  597. data/samples/bigdemo/wxHtmlHelpController.rbw +52 -0
  598. data/samples/bigdemo/wxListBox.rbw +140 -0
  599. data/samples/bigdemo/wxListCtrl_virtual.rbw +112 -0
  600. data/samples/bigdemo/wxMDIWindows.rbw +50 -0
  601. data/samples/bigdemo/wxMenu.rbw +247 -0
  602. data/samples/bigdemo/wxMessageDialog.rbw +27 -0
  603. data/samples/bigdemo/wxMiniFrame.rbw +70 -0
  604. data/samples/bigdemo/wxMultipleChoiceDialog.rbw +29 -0
  605. data/samples/bigdemo/wxNotebook.rbw +136 -0
  606. data/samples/bigdemo/wxProgressDialog.rbw +43 -0
  607. data/samples/bigdemo/wxRadioBox.rbw +72 -0
  608. data/samples/bigdemo/wxRadioButton.rbw +125 -0
  609. data/samples/bigdemo/wxSashWindow.rbw +141 -0
  610. data/samples/bigdemo/wxScrolledMessageDialog.rbw +57 -0
  611. data/samples/bigdemo/wxScrolledWindow.rbw +199 -0
  612. data/samples/bigdemo/wxSingleChoiceDialog.rbw +33 -0
  613. data/samples/bigdemo/wxSlider.rbw +42 -0
  614. data/samples/bigdemo/wxSpinButton.rbw +50 -0
  615. data/samples/bigdemo/wxSpinCtrl.rbw +51 -0
  616. data/samples/bigdemo/wxSplitterWindow.rbw +63 -0
  617. data/samples/bigdemo/wxStaticBitmap.rbw +47 -0
  618. data/samples/bigdemo/wxStaticText.rbw +55 -0
  619. data/samples/bigdemo/wxStatusBar.rbw +126 -0
  620. data/samples/bigdemo/wxTextCtrl.rbw +149 -0
  621. data/samples/bigdemo/wxTextEntryDialog.rbw +31 -0
  622. data/samples/bigdemo/wxToggleButton.rbw +49 -0
  623. data/samples/bigdemo/wxToolBar.rbw +131 -0
  624. data/samples/bigdemo/wxTreeCtrl.rbw +191 -0
  625. data/samples/calendar/calendar.rb +363 -0
  626. data/samples/calendar/tn_calendar.png +0 -0
  627. data/samples/caret/caret.rb +293 -0
  628. data/samples/caret/mondrian.xpm +44 -0
  629. data/samples/caret/tn_caret.png +0 -0
  630. data/samples/controls/books.rb +183 -0
  631. data/samples/controls/controls.rb +1143 -0
  632. data/samples/controls/get_item_sample.rb +117 -0
  633. data/samples/controls/icons/choice.xpm +27 -0
  634. data/samples/controls/icons/combo.xpm +27 -0
  635. data/samples/controls/icons/gauge.xpm +27 -0
  636. data/samples/controls/icons/list.xpm +27 -0
  637. data/samples/controls/icons/radio.xpm +27 -0
  638. data/samples/controls/icons/stattext.xpm +24 -0
  639. data/samples/controls/icons/text.xpm +27 -0
  640. data/samples/controls/mondrian.ico +0 -0
  641. data/samples/controls/mondrian.xpm +44 -0
  642. data/samples/controls/test2.bmp +0 -0
  643. data/samples/controls/tn_books.png +0 -0
  644. data/samples/controls/tn_controls.png +0 -0
  645. data/samples/controls/tn_get_item_sample.png +0 -0
  646. data/samples/dialogs/dialogs.rb +879 -0
  647. data/samples/dialogs/tips.txt +18 -0
  648. data/samples/dialogs/tn_dialogs.png +0 -0
  649. data/samples/dialogs/tn_wizard.png +0 -0
  650. data/samples/dialogs/wizard.rb +89 -0
  651. data/samples/dragdrop/dragdrop.rb +200 -0
  652. data/samples/dragdrop/tn_dragdrop.png +0 -0
  653. data/samples/drawing/SVGlogo24.xpm +310 -0
  654. data/samples/drawing/bitmap.rb +76 -0
  655. data/samples/drawing/bitmap_image.rb +131 -0
  656. data/samples/drawing/graphics_drawing.rb +257 -0
  657. data/samples/drawing/maths_images.rb +327 -0
  658. data/samples/drawing/rmagic_bitmap_image.rb +139 -0
  659. data/samples/drawing/ruby-logo.jpg +0 -0
  660. data/samples/drawing/svgtest.rb +373 -0
  661. data/samples/drawing/tn_bitmap.png +0 -0
  662. data/samples/drawing/tn_bitmap_image.png +0 -0
  663. data/samples/drawing/tn_graphics_drawing.png +0 -0
  664. data/samples/drawing/tn_maths_images.png +0 -0
  665. data/samples/drawing/tn_rmagic_bitmap_image.png +0 -0
  666. data/samples/drawing/tn_svgtest.png +0 -0
  667. data/samples/etc/choice.rb +82 -0
  668. data/samples/etc/miniframe.rb +92 -0
  669. data/samples/etc/sash.rb +140 -0
  670. data/samples/etc/scrollwin.rb +120 -0
  671. data/samples/etc/system_settings.rb +263 -0
  672. data/samples/etc/tn_choice.png +0 -0
  673. data/samples/etc/tn_miniframe.png +0 -0
  674. data/samples/etc/tn_sash.png +0 -0
  675. data/samples/etc/tn_scrollwin.png +0 -0
  676. data/samples/etc/tn_system_settings.png +0 -0
  677. data/samples/event/activation.rb +129 -0
  678. data/samples/event/event.rb +220 -0
  679. data/samples/event/threaded.rb +141 -0
  680. data/samples/event/tn_activation.png +0 -0
  681. data/samples/event/tn_event.png +0 -0
  682. data/samples/event/tn_threaded.png +0 -0
  683. data/samples/event/tn_update_ui_event.png +0 -0
  684. data/samples/event/update_ui_event.rb +91 -0
  685. data/samples/grid/grid.rb +224 -0
  686. data/samples/grid/gridtablebase.rb +178 -0
  687. data/samples/grid/tn_grid.png +0 -0
  688. data/samples/grid/tn_gridtablebase.png +0 -0
  689. data/samples/html/8859_2.htm +14 -0
  690. data/samples/html/cp1250.htm +19 -0
  691. data/samples/html/foo.png +0 -0
  692. data/samples/html/html.rb +278 -0
  693. data/samples/html/i18n.gif +0 -0
  694. data/samples/html/imagemap.htm +20 -0
  695. data/samples/html/imagemap.png +0 -0
  696. data/samples/html/listtest.htm +28 -0
  697. data/samples/html/pic.png +0 -0
  698. data/samples/html/pic2.bmp +0 -0
  699. data/samples/html/regres.htm +20 -0
  700. data/samples/html/subsup.html +42 -0
  701. data/samples/html/tables.htm +255 -0
  702. data/samples/html/test.htm +375 -0
  703. data/samples/html/tn_html.png +0 -0
  704. data/samples/mdi/mdi.rb +118 -0
  705. data/samples/mdi/tn_mdi.png +0 -0
  706. data/samples/minimal/minimal.rb +95 -0
  707. data/samples/minimal/mondrian.ico +0 -0
  708. data/samples/minimal/mondrian.png +0 -0
  709. data/samples/minimal/nothing.rb +38 -0
  710. data/samples/minimal/tn_minimal.png +0 -0
  711. data/samples/minimal/tn_nothing.png +0 -0
  712. data/samples/printing/mondrian.ico +0 -0
  713. data/samples/printing/mondrian.xpm +44 -0
  714. data/samples/printing/printing.rb +499 -0
  715. data/samples/printing/printing2.rb +251 -0
  716. data/samples/printing/sample-text.txt +213 -0
  717. data/samples/printing/tn_printing.png +0 -0
  718. data/samples/printing/tn_printing2.png +0 -0
  719. data/samples/propgrid/propgrid.rb +2707 -0
  720. data/samples/propgrid/propgrid_minimal.rb +106 -0
  721. data/samples/propgrid/sample_props.rb +434 -0
  722. data/samples/propgrid/tn_propgrid.png +0 -0
  723. data/samples/propgrid/tn_propgrid_minimal.png +0 -0
  724. data/samples/ribbon/align_center.xpm +21 -0
  725. data/samples/ribbon/align_left.xpm +21 -0
  726. data/samples/ribbon/align_right.xpm +21 -0
  727. data/samples/ribbon/aui_style.xpm +53 -0
  728. data/samples/ribbon/auto_crop_selection.xpm +55 -0
  729. data/samples/ribbon/auto_crop_selection_small.xpm +33 -0
  730. data/samples/ribbon/circle.xpm +38 -0
  731. data/samples/ribbon/circle_small.xpm +22 -0
  732. data/samples/ribbon/colours.xpm +25 -0
  733. data/samples/ribbon/cross.xpm +38 -0
  734. data/samples/ribbon/empty.xpm +23 -0
  735. data/samples/ribbon/expand_selection_h.xpm +46 -0
  736. data/samples/ribbon/expand_selection_v.xpm +46 -0
  737. data/samples/ribbon/eye.xpm +26 -0
  738. data/samples/ribbon/hexagon.xpm +38 -0
  739. data/samples/ribbon/msw_style.xpm +65 -0
  740. data/samples/ribbon/position_left.xpm +22 -0
  741. data/samples/ribbon/position_top.xpm +22 -0
  742. data/samples/ribbon/ribbon.rb +900 -0
  743. data/samples/ribbon/ribbon.xpm +54 -0
  744. data/samples/ribbon/selection_panel.xpm +23 -0
  745. data/samples/ribbon/square.xpm +38 -0
  746. data/samples/ribbon/tn_ribbon.png +0 -0
  747. data/samples/ribbon/triangle.xpm +38 -0
  748. data/samples/sample.xpm +475 -0
  749. data/samples/sampler/back.xpm +21 -0
  750. data/samples/sampler/copy.xpm +44 -0
  751. data/samples/sampler/cut.xpm +46 -0
  752. data/samples/sampler/editor.rb +534 -0
  753. data/samples/sampler/ext.rb +51 -0
  754. data/samples/sampler/filesave.xpm +42 -0
  755. data/samples/sampler/find.xpm +62 -0
  756. data/samples/sampler/findrepl.xpm +63 -0
  757. data/samples/sampler/forward.xpm +21 -0
  758. data/samples/sampler/paste.xpm +46 -0
  759. data/samples/sampler/play.xpm +24 -0
  760. data/samples/sampler/redo.xpm +58 -0
  761. data/samples/sampler/sample.rb +337 -0
  762. data/samples/sampler/stc_editor.rb +326 -0
  763. data/samples/sampler/txt_editor.rb +135 -0
  764. data/samples/sampler/undo.xpm +58 -0
  765. data/samples/sampler.rb +401 -0
  766. data/samples/splash/mobile.xpm +1835 -0
  767. data/samples/splash/splash.png +0 -0
  768. data/samples/splash/splash.rb +164 -0
  769. data/samples/splash/tn_splash.png +0 -0
  770. data/samples/text/document-open.png +0 -0
  771. data/samples/text/document-save.png +0 -0
  772. data/samples/text/edit-copy.png +0 -0
  773. data/samples/text/edit-cut.png +0 -0
  774. data/samples/text/edit-paste.png +0 -0
  775. data/samples/text/edit-redo.png +0 -0
  776. data/samples/text/edit-undo.png +0 -0
  777. data/samples/text/format-text-bold.png +0 -0
  778. data/samples/text/format-text-italic.png +0 -0
  779. data/samples/text/format-text-underline.png +0 -0
  780. data/samples/text/mondrian.ico +0 -0
  781. data/samples/text/mondrian.xpm +44 -0
  782. data/samples/text/preferences-desktop-font.png +0 -0
  783. data/samples/text/rich_textctrl.rb +326 -0
  784. data/samples/text/scintilla.rb +179 -0
  785. data/samples/text/textctrl.rb +124 -0
  786. data/samples/text/tn_rich_textctrl.png +0 -0
  787. data/samples/text/tn_scintilla.png +0 -0
  788. data/samples/text/tn_textctrl.png +0 -0
  789. data/samples/text/tn_unicode.png +0 -0
  790. data/samples/text/unicode.rb +238 -0
  791. data/samples/text/utf8.txt +15 -0
  792. data/samples/treectrl/checked.xpm +54 -0
  793. data/samples/treectrl/icon1.xpm +79 -0
  794. data/samples/treectrl/icon2.xpm +53 -0
  795. data/samples/treectrl/icon3.xpm +79 -0
  796. data/samples/treectrl/icon4.xpm +43 -0
  797. data/samples/treectrl/icon5.xpm +79 -0
  798. data/samples/treectrl/state1.xpm +145 -0
  799. data/samples/treectrl/state2.xpm +144 -0
  800. data/samples/treectrl/state3.xpm +142 -0
  801. data/samples/treectrl/state4.xpm +145 -0
  802. data/samples/treectrl/state5.xpm +85 -0
  803. data/samples/treectrl/tn_treectrl.png +0 -0
  804. data/samples/treectrl/treectrl.rb +1720 -0
  805. data/samples/treectrl/unchecked.xpm +30 -0
  806. data/samples/xrc/custom_dialog.xrc +46 -0
  807. data/samples/xrc/custom_xrc_sample.rb +84 -0
  808. data/samples/xrc/samples.xrc +46 -0
  809. data/samples/xrc/tn_xrc_sample.png +0 -0
  810. data/samples/xrc/xrc_sample.rb +86 -0
  811. data/tests/test_basic.rb +20 -0
  812. data/tests/test_clipboard.rb +241 -0
  813. data/tests/test_dialog.rb +28 -0
  814. data/tests/test_event_handling.rb +103 -0
  815. data/tests/test_events.rb +45 -0
  816. data/tests/test_geometry.rb +141 -0
  817. data/tests/test_intl.rb +107 -0
  818. data/tests/test_item_data.rb +120 -0
  819. data/tests/test_variant.rb +151 -0
  820. data/tests/testapp.rb +40 -0
  821. data/tests/testapp_noframe.rb +28 -0
  822. metadata +912 -0
@@ -0,0 +1,1852 @@
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::PG
8
+
9
+ #
10
+ PG_LABEL_STRING = "@!"
11
+
12
+ #
13
+ PG_INVALID_VALUE = 2147483647
14
+
15
+ #
16
+ PG_BASE_OCT = 8
17
+
18
+ #
19
+ PG_BASE_DEC = 10
20
+
21
+ #
22
+ PG_BASE_HEX = 16
23
+
24
+ #
25
+ PG_BASE_HEXL = 32
26
+
27
+ #
28
+ PG_PREFIX_NONE = 0
29
+
30
+ #
31
+ PG_PREFIX_DOLLAR_SIGN = 2
32
+
33
+ #
34
+ #
35
+ #
36
+ #
37
+ class PG_GETPROPERTYVALUES_FLAGS < Wx::Enum
38
+
39
+ # Flag for {Wx::PG::PropertyGridInterface::SetProperty}* functions, {Wx::PG::PropertyGridInterface#hide_property}, etc.
40
+ #
41
+ PG_DONT_RECURSE = Wx::PG::PG_GETPROPERTYVALUES_FLAGS.new(0)
42
+
43
+ # Flag for {Wx::PG::PropertyGridInterface#get_property_values}.
44
+ #
45
+ PG_KEEP_STRUCTURE = Wx::PG::PG_GETPROPERTYVALUES_FLAGS.new(16)
46
+
47
+ # Flag for {Wx::PG::PropertyGridInterface::SetProperty}* functions, {Wx::PG::PropertyGridInterface#hide_property}, etc.
48
+ #
49
+ PG_RECURSE = Wx::PG::PG_GETPROPERTYVALUES_FLAGS.new(32)
50
+
51
+ # Flag for {Wx::PG::PropertyGridInterface#get_property_values}.
52
+ #
53
+ PG_INC_ATTRIBUTES = Wx::PG::PG_GETPROPERTYVALUES_FLAGS.new(64)
54
+
55
+ # Used when first starting recursion.
56
+ #
57
+ PG_RECURSE_STARTS = Wx::PG::PG_GETPROPERTYVALUES_FLAGS.new(128)
58
+
59
+ # Force value change.
60
+ #
61
+ PG_FORCE = Wx::PG::PG_GETPROPERTYVALUES_FLAGS.new(256)
62
+
63
+ # Only sort categories and their immediate children.
64
+ #
65
+ PG_SORT_TOP_LEVEL_ONLY = Wx::PG::PG_GETPROPERTYVALUES_FLAGS.new(512)
66
+
67
+ end # PG_GETPROPERTYVALUES_FLAGS
68
+
69
+ # Misc argument flags.
70
+ #
71
+ #
72
+ #
73
+ class PG_MISC_ARG_FLAGS < Wx::Enum
74
+
75
+ # Get/Store full value instead of displayed value.
76
+ #
77
+ PG_FULL_VALUE = Wx::PG::PG_MISC_ARG_FLAGS.new(1)
78
+
79
+ # Perform special action in case of unsuccessful conversion.
80
+ #
81
+ PG_REPORT_ERROR = Wx::PG::PG_MISC_ARG_FLAGS.new(2)
82
+
83
+ #
84
+ #
85
+ PG_PROPERTY_SPECIFIC = Wx::PG::PG_MISC_ARG_FLAGS.new(4)
86
+
87
+ # Get/Store editable value instead of displayed one (should only be different in the case of common values).
88
+ #
89
+ PG_EDITABLE_VALUE = Wx::PG::PG_MISC_ARG_FLAGS.new(8)
90
+
91
+ # Used when dealing with fragments of composite string value.
92
+ #
93
+ PG_COMPOSITE_FRAGMENT = Wx::PG::PG_MISC_ARG_FLAGS.new(16)
94
+
95
+ # Means property for which final string value is for cannot really be edited.
96
+ #
97
+ PG_UNEDITABLE_COMPOSITE_FRAGMENT = Wx::PG::PG_MISC_ARG_FLAGS.new(32)
98
+
99
+ # {Wx::PG::PGProperty#value_to_string} called from {Wx::PG::PGProperty#get_value_as_string} (guarantees that input {Wx::Variant} value is current own value)
100
+ #
101
+ PG_VALUE_IS_CURRENT = Wx::PG::PG_MISC_ARG_FLAGS.new(64)
102
+
103
+ # Value is being set programmatically (i.e.
104
+ #
105
+ PG_PROGRAMMATIC_VALUE = Wx::PG::PG_MISC_ARG_FLAGS.new(128)
106
+
107
+ end # PG_MISC_ARG_FLAGS
108
+
109
+ # {Wx::PG::PGProperty#set_value} flags
110
+ #
111
+ #
112
+ #
113
+ class PG_SETVALUE_FLAGS < Wx::Enum
114
+
115
+ #
116
+ #
117
+ PG_SETVAL_REFRESH_EDITOR = Wx::PG::PG_SETVALUE_FLAGS.new(1)
118
+
119
+ #
120
+ #
121
+ PG_SETVAL_AGGREGATED = Wx::PG::PG_SETVALUE_FLAGS.new(2)
122
+
123
+ #
124
+ #
125
+ PG_SETVAL_FROM_PARENT = Wx::PG::PG_SETVALUE_FLAGS.new(4)
126
+
127
+ # Set if value changed by user.
128
+ #
129
+ PG_SETVAL_BY_USER = Wx::PG::PG_SETVALUE_FLAGS.new(8)
130
+
131
+ end # PG_SETVALUE_FLAGS
132
+
133
+ #
134
+ PG_ATTR_DEFAULT_VALUE = "DefaultValue"
135
+
136
+ #
137
+ PG_ATTR_MIN = "Min"
138
+
139
+ #
140
+ PG_ATTR_MAX = "Max"
141
+
142
+ #
143
+ PG_ATTR_UNITS = "Units"
144
+
145
+ #
146
+ PG_ATTR_HINT = "Hint"
147
+
148
+ #
149
+ PG_ATTR_AUTOCOMPLETE = "AutoComplete"
150
+
151
+ #
152
+ PG_BOOL_USE_CHECKBOX = "UseCheckbox"
153
+
154
+ #
155
+ PG_BOOL_USE_DOUBLE_CLICK_CYCLING = "UseDClickCycling"
156
+
157
+ #
158
+ PG_FLOAT_PRECISION = "Precision"
159
+
160
+ #
161
+ PG_STRING_PASSWORD = "Password"
162
+
163
+ #
164
+ PG_UINT_BASE = "Base"
165
+
166
+ #
167
+ PG_UINT_PREFIX = "Prefix"
168
+
169
+ #
170
+ PG_DIALOG_TITLE = "DialogTitle"
171
+
172
+ #
173
+ PG_FILE_WILDCARD = "Wildcard"
174
+
175
+ #
176
+ PG_FILE_SHOW_FULL_PATH = "ShowFullPath"
177
+
178
+ #
179
+ PG_FILE_SHOW_RELATIVE_PATH = "ShowRelativePath"
180
+
181
+ #
182
+ PG_FILE_INITIAL_PATH = "InitialPath"
183
+
184
+ #
185
+ PG_FILE_DIALOG_STYLE = "DialogStyle"
186
+
187
+ #
188
+ PG_ARRAY_DELIMITER = "Delimiter"
189
+
190
+ #
191
+ PG_DATE_FORMAT = "DateFormat"
192
+
193
+ #
194
+ PG_DATE_PICKER_STYLE = "PickerStyle"
195
+
196
+ #
197
+ PG_ATTR_SPINCTRL_STEP = "Step"
198
+
199
+ #
200
+ PG_ATTR_SPINCTRL_WRAP = "Wrap"
201
+
202
+ #
203
+ PG_ATTR_SPINCTRL_MOTION = "MotionSpin"
204
+
205
+ #
206
+ PG_ATTR_MULTICHOICE_USERSTRINGMODE = "UserStringMode"
207
+
208
+ #
209
+ PG_COLOUR_ALLOW_CUSTOM = "AllowCustom"
210
+
211
+ #
212
+ PG_COLOUR_HAS_ALPHA = "HasAlpha"
213
+
214
+ #
215
+ PG_PROP_MAX = 262144
216
+
217
+ #
218
+ PG_PROP_PARENTAL_FLAGS = 25600
219
+
220
+ #
221
+ PG_STRING_STORED_FLAGS = 54
222
+
223
+ #
224
+ #
225
+ # == wxPGProperty Flags
226
+ #
227
+ class PGPropertyFlags < Wx::Enum
228
+
229
+ # Indicates bold font.
230
+ #
231
+ PG_PROP_MODIFIED = Wx::PG::PGPropertyFlags.new(1)
232
+
233
+ # Disables ('greyed' text and editor does not activate) property.
234
+ #
235
+ PG_PROP_DISABLED = Wx::PG::PGPropertyFlags.new(2)
236
+
237
+ # Hider button will hide this property.
238
+ #
239
+ PG_PROP_HIDDEN = Wx::PG::PGPropertyFlags.new(4)
240
+
241
+ # This property has custom paint image just in front of its value.
242
+ #
243
+ PG_PROP_CUSTOMIMAGE = Wx::PG::PGPropertyFlags.new(8)
244
+
245
+ # Do not create text based editor for this property (but button-triggered dialog and choice are ok).
246
+ #
247
+ PG_PROP_NOEDITOR = Wx::PG::PGPropertyFlags.new(16)
248
+
249
+ # Property is collapsed, ie.
250
+ #
251
+ PG_PROP_COLLAPSED = Wx::PG::PGPropertyFlags.new(32)
252
+
253
+ # If property is selected, then indicates that validation failed for pending value.
254
+ #
255
+ PG_PROP_INVALID_VALUE = Wx::PG::PGPropertyFlags.new(64)
256
+
257
+ # Switched via SetWasModified().
258
+ #
259
+ PG_PROP_WAS_MODIFIED = Wx::PG::PGPropertyFlags.new(512)
260
+
261
+ # If set, then child properties (if any) are private, and should be "invisible" to the application.
262
+ #
263
+ PG_PROP_AGGREGATE = Wx::PG::PGPropertyFlags.new(1024)
264
+
265
+ # If set, then child properties (if any) are copies and should not be deleted in dtor.
266
+ #
267
+ PG_PROP_CHILDREN_ARE_COPIES = Wx::PG::PGPropertyFlags.new(2048)
268
+
269
+ # Classifies this item as a non-category.
270
+ #
271
+ PG_PROP_PROPERTY = Wx::PG::PGPropertyFlags.new(4096)
272
+
273
+ # Classifies this item as a category.
274
+ #
275
+ PG_PROP_CATEGORY = Wx::PG::PGPropertyFlags.new(8192)
276
+
277
+ # Classifies this item as a property that has children, but is not aggregate (i.e.
278
+ #
279
+ PG_PROP_MISC_PARENT = Wx::PG::PGPropertyFlags.new(16384)
280
+
281
+ # Property is read-only.
282
+ #
283
+ PG_PROP_READONLY = Wx::PG::PGPropertyFlags.new(32768)
284
+
285
+ # Property's value is composed from values of child properties.
286
+ #
287
+ PG_PROP_COMPOSED_VALUE = Wx::PG::PGPropertyFlags.new(65536)
288
+
289
+ # Common value of property is selectable in editor.
290
+ #
291
+ PG_PROP_USES_COMMON_VALUE = Wx::PG::PGPropertyFlags.new(131072)
292
+
293
+ # Property can be set to unspecified value via editor.
294
+ #
295
+ PG_PROP_AUTO_UNSPECIFIED = Wx::PG::PGPropertyFlags.new(262144)
296
+
297
+ # Indicates the bit usable by derived properties.
298
+ #
299
+ PG_PROP_CLASS_SPECIFIC_1 = Wx::PG::PGPropertyFlags.new(524288)
300
+
301
+ # Indicates the bit usable by derived properties.
302
+ #
303
+ PG_PROP_CLASS_SPECIFIC_2 = Wx::PG::PGPropertyFlags.new(1048576)
304
+
305
+ # Indicates that the property is being deleted and should be ignored.
306
+ #
307
+ PG_PROP_BEING_DELETED = Wx::PG::PGPropertyFlags.new(2097152)
308
+
309
+ end # PGPropertyFlags
310
+
311
+ # {Wx::PG::PGProperty} is base class for all {Wx::PG::PropertyGrid} properties and as such it is not intended to be instantiated directly.
312
+ # In sections below we cover few related topics.
313
+ #
314
+ # - Supplied Ready-to-use Property Classes
315
+ # - Creating Custom Properties
316
+ #
317
+ # == Supplied Ready-to-use Property Classes
318
+ #
319
+ # Here is a list and short description of supplied fully-functional property classes. They are located in either {Wx::props.h} or {Wx::advprops.h}.
320
+ #
321
+ # - {Wx::PG::ArrayStringProperty}
322
+ # - {Wx::PG::BoolProperty}
323
+ # - {Wx::PG::ColourProperty}
324
+ # - {Wx::PG::CursorProperty}
325
+ # - {Wx::PG::DateProperty}
326
+ # - {Wx::PG::DirProperty}
327
+ # - {Wx::PG::EditEnumProperty}
328
+ # - {Wx::PG::EnumProperty}
329
+ # - {Wx::PG::FileProperty}
330
+ # - {Wx::PG::FlagsProperty}
331
+ # - {Wx::PG::FloatProperty}
332
+ # - {Wx::PG::FontProperty}
333
+ # - {Wx::PG::ImageFileProperty}
334
+ # - {Wx::PG::IntProperty}
335
+ # - {Wx::PG::LongStringProperty}
336
+ # - {Wx::PG::MultiChoiceProperty}
337
+ # - {Wx::PG::PropertyCategory}
338
+ # - {Wx::PG::StringProperty}
339
+ # - {Wx::PG::SystemColourProperty}
340
+ # - {Wx::PG::UIntProperty}
341
+ #
342
+ # == wxPropertyCategory
343
+ #
344
+ # Not an actual property per se, but a header for a group of properties. Regardless inherits from {Wx::PG::PGProperty}, and supports displaying 'labels' for columns other than the first one. Easiest way to set category's label for second column is to call {Wx::PG::PGProperty#set_value} with string argument.
345
+ #
346
+ # == wxStringProperty
347
+ #
348
+ # Simple string property.
349
+ # Supported special attributes:
350
+ # - {Wx::PG::PG_STRING_PASSWORD}: Set to true in order to echo value as asterisks and to use {Wx::TE_PASSWORD} on the editor ({Wx::TextCtrl}).- {Wx::PG::PG_ATTR_AUTOCOMPLETE}: Set to true to enable auto-completion (use a {Wx::ArrayString} value), and is also supported by any property that happens to use a {Wx::TextCtrl}-based editor.
351
+ # {Wx::PG::StringProperty} has a special trait: if it has value of "<composed>", and also has child properties, then its displayed value becomes composition of child property values, similar as with {Wx::PG::FontProperty}, for instance.
352
+ #
353
+ # == wxIntProperty
354
+ #
355
+ # It derives from {Wx::PG::NumericProperty} and displays value as a signed long integer. {Wx::PG::IntProperty} seamlessly supports 64-bit integers (i.e. {Wx::LongLong}) on overflow. To safely convert variant to integer, use code like this:
356
+ #
357
+ # wxLongLong ll;
358
+ # ll << property->GetValue();
359
+ #
360
+ # // or
361
+ # wxLongLong ll = propertyGrid->GetPropertyValueAsLong(property);
362
+ #
363
+ # Getting 64-bit value:
364
+ #
365
+ # wxLongLong_t value = pg->GetPropertyValueAsLongLong();
366
+ #
367
+ # // or
368
+ #
369
+ # wxLongLong value;
370
+ # wxVariant variant = property->GetValue();
371
+ # if ( variant.IsType(wxPG_VARIANT_TYPE_LONGLONG) )
372
+ # value = variant.GetLongLong();
373
+ # else
374
+ # value = variant.GetLong();
375
+ #
376
+ # Setting 64-bit value:
377
+ #
378
+ # pg->SetPropertyValue(longLongVal);
379
+ #
380
+ # // or
381
+ #
382
+ # property->SetValue(WXVARIANT(longLongVal));
383
+ #
384
+ # Supported special attributes:
385
+ # - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX} to specify acceptable value range.- {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: Sets SpinCtrl editor parameters.
386
+ #
387
+ # == wxUIntProperty
388
+ #
389
+ # Like {Wx::PG::IntProperty}, but displays value as unsigned int. To set the prefix used globally, manipulate {Wx::PG::PG_UINT_PREFIX} string attribute. To set the globally used base, manipulate {Wx::PG::PG_UINT_BASE} int attribute. Regardless of current prefix, understands (hex) values starting with both "0x" and "$" (apart from edit mode). Like {Wx::PG::IntProperty}, {Wx::PG::UIntProperty} seamlessly supports 64-bit unsigned integers (i.e. {Wx::ULongLong}). Same {Wx::Variant} safety rules apply.
390
+ # Supported special attributes:
391
+ # - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}: Specifies acceptable value range.- {Wx::PG::PG_UINT_BASE}: Defines base. Valid constants are {Wx::PG::PG_BASE_OCT}, {Wx::PG::PG_BASE_DEC}, {Wx::PG::PG_BASE_HEX} and {Wx::PG::PG_BASE_HEXL} (lowercase characters). Arbitrary bases are <b>not</b> supported.- {Wx::PG::PG_UINT_PREFIX}: Defines displayed prefix. Possible values are {Wx::PG::PG_PREFIX_NONE}, {Wx::PG::PG_PREFIX_0x} and {Wx::PG::PG_PREFIX_DOLLAR_SIGN}. Only {Wx::PG::PG_PREFIX_NONE} works with decimal and octal numbers.- {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: Sets SpinCtrl editor parameters.
392
+ # For example how to use seamless 64-bit integer support, see {Wx::PG::IntProperty} documentation (just use {Wx::ULongLong} instead of {Wx::LongLong}).
393
+ #
394
+ # == wxFloatProperty
395
+ #
396
+ # Like {Wx::PG::StringProperty}, but converts text to a double-precision floating point. Default float-to-text precision is 6 decimals, but this can be changed by modifying {Wx::PG::PG_FLOAT_PRECISION} attribute.
397
+ # Note that when displaying the value, sign is omitted if the resulting textual representation is effectively zero (for example, -0.0001 with precision of 3 will become 0.0 instead of -0.0). This behaviour is unlike what C standard library does, but should result in better end-user experience in almost all cases.
398
+ # Supported special attributes:
399
+ # - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}: Specifies acceptable value range.- {Wx::PG::PG_FLOAT_PRECISION}: Sets the (max) precision used when floating point value is rendered as text. The default -1 means shortest floating-point 6-digit representation.- {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: Sets SpinCtrl editor parameters.
400
+ #
401
+ # == wxBoolProperty
402
+ #
403
+ # Represents a boolean value. {Wx::Choice} is used as editor control, by the default. {Wx::PG::PG_BOOL_USE_CHECKBOX} attribute can be set to true in order to use check box instead.
404
+ # Supported special attributes:
405
+ # - {Wx::PG::PG_BOOL_USE_CHECKBOX}: If set to true uses check box editor instead of combo box.- {Wx::PG::PG_BOOL_USE_DOUBLE_CLICK_CYCLING}: If set to true cycles combo box instead showing the list.
406
+ #
407
+ # == wxLongStringProperty
408
+ #
409
+ # Like {Wx::PG::StringProperty}, but has a button that triggers a small text editor dialog. Note that in long string values, some control characters are escaped: tab is represented by "\t", line break by "\n", carriage return by "\r" and backslash character by "\\". If another character is preceded
410
+ # by backslash, the backslash is skipped.
411
+ # Note also that depending on the system (port), some sequences of special
412
+ # characters, like e.g. "\r
413
+ #
414
+ # ", can be interpreted and presented in
415
+ # a different way in the editor and therefore such sequences may not be
416
+ # the same before and after the edition.
417
+ #
418
+ # To display a custom dialog on button press, you can subclass
419
+ # {Wx::PG::LongStringProperty} and override DisplayEditorDialog, like this:
420
+ #
421
+ # bool DisplayEditorDialog( {Wx::PG::PropertyGrid}* propGrid, {Wx::Variant}& value ) {Wx::OVERRIDE}
422
+ # {
423
+ # {Wx::Size} dialogSize(...size of your dialog...);
424
+ #
425
+ # {Wx::Point} dlgPos = propGrid->GetGoodEditorDialogPosition(this,
426
+ # dialogSize)
427
+ #
428
+ # // Create dialog dlg at dlgPos. Use value as initial string
429
+ # // value.
430
+ # ...
431
+ #
432
+ # if ( dlg.ShowModal() == {Wx::StandardID::ID_OK} )
433
+ # {
434
+ # value = dlg.GetStringValue);
435
+ # return true;
436
+ # }
437
+ # return false;
438
+ # }
439
+ #
440
+ # Also, if you wish not to have line breaks and tabs translated to
441
+ # escape sequences, then do following in constructor of your subclass:
442
+ #
443
+ # m_flags |= {Wx::PG_PROP_NO_ESCAPE};
444
+ #
445
+ # Supported special attributes:
446
+ # - ::{Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the text editor dialog.
447
+ #
448
+ # == {Wx::PG::DirProperty}
449
+ #
450
+ # Like {Wx::PG::LongStringProperty}, but the button triggers dir selector instead.
451
+ #
452
+ # Supported special attributes:
453
+ # - ::{Wx::PG::PG_DIALOG_TITLE}: Sets specific title for the dir selector.
454
+ #
455
+ # == {Wx::PG::FileProperty}
456
+ #
457
+ # Like {Wx::PG::LongStringProperty}, but the button triggers file selector instead.
458
+ # Default wildcard is "All files..." but this can be changed by setting
459
+ # ::{Wx::PG::PG_FILE_WILDCARD} attribute.
460
+ #
461
+ # Supported special attributes:
462
+ # - ::{Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog.
463
+ # - ::{Wx::PG::PG_FILE_DIALOG_STYLE}: Sets a specific {Wx::FileDialog} style for the file dialog.
464
+ # - ::{Wx::PG::PG_FILE_WILDCARD}: Sets wildcard (see {Wx::FileDialog} for format details), "All files..." is default.
465
+ # - ::{Wx::PG::PG_FILE_SHOW_FULL_PATH}: Default <span class='literal'>true</span>. When <span class='literal'>false</span>, only the file name is shown
466
+ # (i.e. drive and directory are hidden).
467
+ # - ::{Wx::PG::PG_FILE_SHOW_RELATIVE_PATH}: If set, then the filename is shown relative to the
468
+ # given path string.
469
+ # - ::{Wx::PG::PG_FILE_INITIAL_PATH}: Sets the initial path of where to look for files.
470
+ #
471
+ # == {Wx::PG::EnumProperty}
472
+ #
473
+ # Represents a single selection from a list of choices -
474
+ # {Wx::OwnerDrawnComboBox} is used to edit the value.
475
+ #
476
+ # == {Wx::PG::FlagsProperty}
477
+ #
478
+ # Represents a bit set that fits in a long integer. {Wx::PG::BoolProperty} sub-
479
+ # properties are created for editing individual bits. Textctrl is created to
480
+ # manually edit the flags as a text; a continuous sequence of spaces, commas
481
+ # and semicolons are considered as a flag id separator.
482
+ #
483
+ # <b>Note:</b> When changing "choices" (i.e. flag labels) of {Wx::PG::FlagsProperty},
484
+ # you will need to use {Wx::PG::PGProperty#set_choices} - otherwise they will not
485
+ # get updated properly.
486
+ #
487
+ # {Wx::PG::FlagsProperty} supports the same attributes as {Wx::PG::BoolProperty}.
488
+ #
489
+ # == {Wx::PG::ArrayStringProperty}
490
+ #
491
+ # Property that manages a list of strings. Allows editing of a list
492
+ # of strings in {Wx::TextCtrl} and in a separate dialog.
493
+ #
494
+ # Supported special attributes:
495
+ # - ::{Wx::PG::PG_ARRAY_DELIMITER}: Sets string delimiter character.
496
+ # - ::{Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the editor dialog.
497
+ # Default is comma (',').
498
+ #
499
+ # == {Wx::PG::DateProperty}
500
+ #
501
+ # Property representing {Wx::DateTime}. Default editor is DatePickerCtrl,
502
+ # although TextCtrl should work as well.
503
+ #
504
+ # Supported special attributes:
505
+ # - ::{Wx::PG::PG_DATE_FORMAT}: Determines displayed date format (with Wx::DateTime::Format).
506
+ # Default is recommended as it is locale-dependent.
507
+ # - ::{Wx::PG::PG_DATE_PICKER_STYLE}: Determines window style used with {Wx::DatePickerCtrl}.
508
+ # Default is ::{Wx::DP_DEFAULT} | ::{Wx::DP_SHOWCENTURY}. Using ::{Wx::DP_ALLOWNONE}
509
+ # enables additional support for unspecified property value.
510
+ #
511
+ # == {Wx::PG::EditEnumProperty}
512
+ #
513
+ # Represents a string that can be freely edited or selected from list of choices -
514
+ # custom combobox control is used to edit the value.
515
+ #
516
+ # Uses int value, similar to {Wx::PG::EnumProperty}, unless text entered by user is
517
+ # is not in choices (in which case string value is used).
518
+ #
519
+ # == {Wx::PG::MultiChoiceProperty}
520
+ #
521
+ # Allows editing a multiple selection from a list of strings. This is
522
+ # property is pretty much built around concept of {Wx::MultiChoiceDialog}.
523
+ # It uses {Wx::ArrayString} value.
524
+ #
525
+ # Supported special attributes:
526
+ # - ::{Wx::PG::PG_ATTR_MULTICHOICE_USERSTRINGMODE}: If > 0, allows user to manually
527
+ # enter strings that are not in the list of choices. If this value is 1,
528
+ # user strings are preferably placed in front of valid choices. If value
529
+ # is 2, then those strings will placed behind valid choices.
530
+ # - ::{Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the editor dialog.
531
+ #
532
+ # == {Wx::PG::ImageFileProperty}
533
+ #
534
+ # Property representing image file(name). Like {Wx::PG::FileProperty},
535
+ # but has thumbnail of the image in front of the filename
536
+ # and autogenerates wildcard from available image handlers.
537
+ #
538
+ # Supported special attributes:
539
+ # - ::{Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog.
540
+ # - ::{Wx::PG::PG_FILE_DIALOG_STYLE}: Sets a specific {Wx::FileDialog} style for the file dialog.
541
+ # - ::{Wx::PG::PG_FILE_WILDCARD}: Sets wildcard (see {Wx::FileDialog} for format details), "All files..." is default.
542
+ # - {Wx::PG::PG_FILE_SHOW_FULL_PATH}: Default true. When false, only the file name is shown (i.e. drive and directory are hidden).- {Wx::PG::PG_FILE_SHOW_RELATIVE_PATH}: If set, then the filename is shown relative to the given path string.- {Wx::PG::PG_FILE_INITIAL_PATH}: Sets the initial path of where to look for files.
543
+ #
544
+ # == wxColourProperty
545
+ #
546
+ # <b>Useful alternate editor:</b> Choice.
547
+ # Represents {Wx::Colour}. {Wx::Button} is used to trigger a colour picker dialog. There are various sub-classing opportunities with this class. See below in {Wx::PG::SystemColourProperty} section for details.
548
+ # Supported special attributes:
549
+ # - {Wx::PG::PG_COLOUR_HAS_ALPHA}: If set to true allows user to edit the alpha colour component.
550
+ #
551
+ # == wxFontProperty
552
+ #
553
+ # Represents {Wx::Font}. Various sub-properties are used to edit individual subvalues.
554
+ # Supported special attributes:
555
+ # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the font dialog.
556
+ #
557
+ # == wxSystemColourProperty
558
+ #
559
+ # Represents {Wx::Colour} and a system colour index. {Wx::Choice} is used to edit the value. Drop-down list has color images. Note that value type is {Wx::PG::ColourPropertyValue} instead of {Wx::Colour} (which {Wx::PG::ColourProperty} uses).
560
+ #
561
+ # class wxColourPropertyValue : public wxObject
562
+ # {
563
+ # public:
564
+ # // An integer value relating to the colour, and which exact
565
+ # // meaning depends on the property with which it is used.
566
+ # //
567
+ # // For wxSystemColourProperty:
568
+ # // Any of wxSYS_COLOUR_XXX, or any web-colour ( use wxPG_TO_WEB_COLOUR
569
+ # // macro - (currently unsupported) ), or wxPG_COLOUR_CUSTOM.
570
+ # wxUint32 m_type;
571
+ #
572
+ # // Resulting colour. Should be correct regardless of type.
573
+ # wxColour m_colour;
574
+ # };
575
+ #
576
+ # In {Wx::PG::SystemColourProperty}, and its derived class {Wx::PG::ColourProperty}, there are various sub-classing features. To set a basic list of colour names, call {Wx::PG::PGProperty#set_choices}.
577
+ #
578
+ # // Override in derived class to customize how colours are translated
579
+ # // to strings.
580
+ # virtual wxString ColourToString( const wxColour& col, int index ) const;
581
+ #
582
+ # // Returns index of entry that triggers colour picker dialog
583
+ # // (default is last).
584
+ # virtual int GetCustomColourIndex() const;
585
+ #
586
+ # // Helper function to show the colour dialog
587
+ # bool QueryColourFromUser( wxVariant& variant ) const;
588
+ #
589
+ # // Returns colour for given choice.
590
+ # // Default function returns wxSystemSettings::GetColour(index).
591
+ # virtual wxColour GetColour( int index ) const;
592
+ #
593
+ # == wxCursorProperty
594
+ #
595
+ # Represents a {Wx::Cursor}. {Wx::Choice} is used to edit the value. Drop-down list has cursor images under some ({Wx::MSW}) platforms.
596
+ #
597
+ # == Creating Custom Properties
598
+ #
599
+ # New properties can be created by subclassing {Wx::PG::PGProperty} or one of the provided property classes, and (re)implementing necessary member functions. Below, each virtual member function has ample documentation about its purpose and any odd details which to keep in mind.
600
+ # Here is a very simple 'template' code:
601
+ #
602
+ # class MyProperty : public wxPGProperty
603
+ # {
604
+ # public:
605
+ # // Default constructor
606
+ # MyProperty() { }
607
+ #
608
+ # // All arguments of this ctor must have a default value -
609
+ # // use wxPG_LABEL for label and name
610
+ # MyProperty( const wxString& label = wxPG_LABEL,
611
+ # const wxString& name = wxPG_LABEL,
612
+ # const wxString& value = wxEmptyString )
613
+ # : wxPGProperty(label, name)
614
+ # {
615
+ # // m_value is wxVariant
616
+ # m_value = value;
617
+ # }
618
+ #
619
+ # virtual ~MyProperty() { }
620
+ #
621
+ # const wxPGEditor* DoGetEditorClass() const
622
+ # {
623
+ # // Determines editor used by property.
624
+ # // You can replace 'TextCtrl' below with any of these
625
+ # // builtin-in property editor identifiers: Choice, ComboBox,
626
+ # // TextCtrlAndButton, ChoiceAndButton, CheckBox, SpinCtrl,
627
+ # // DatePickerCtrl.
628
+ # return wxPGEditor_TextCtrl;
629
+ # }
630
+ #
631
+ # virtual wxString ValueToString( wxVariant& value,
632
+ # int argFlags ) const
633
+ # {
634
+ # // TODO: Convert given property value to a string
635
+ # }
636
+ #
637
+ # virtual bool StringToValue( wxVariant& variant, const wxString& text, int argFlags )
638
+ # {
639
+ # // TODO: Adapt string to property value.
640
+ # }
641
+ #
642
+ # protected:
643
+ # };
644
+ #
645
+ # Since {Wx::PG::PGProperty} derives from {Wx::Object}, you can use standard {Wx::DECLARE_DYNAMIC_CLASS} and {Wx::IMPLEMENT_DYNAMIC_CLASS} macros. From the above example they were omitted for sake of simplicity, and besides, they are only really needed if you need to use {Wx::RTTI} with your property class.
646
+ # You can change the 'value type' of a property by simply assigning different type of variant with SetValue. <b>It is mandatory to implement {Wx::VariantData} class for all data types used as property values.</b> You can use macros declared in {Wx::PG::PropertyGrid} headers. For instance:
647
+ #
648
+ # // In header file:
649
+ # // (If you need to have export declaration, use version of macros
650
+ # // with _EXPORTED postfix)
651
+ # WX_PG_DECLARE_VARIANT_DATA(MyDataClass)
652
+ #
653
+ # // In sources file:
654
+ # WX_PG_IMPLEMENT_VARIANT_DATA(MyDataClass)
655
+ #
656
+ # // Or, if you don't have valid == operator:
657
+ # WX_PG_IMPLEMENT_VARIANT_DATA_DUMMY_EQ(MyDataClass)
658
+ #
659
+ # ===
660
+ #
661
+ # Category: {Wx::PG::PropertyGrid}
662
+ # @see wxPropertyGrid Property Attribute Identifiers
663
+ #
664
+ # @see wxPropertyGrid Property Attribute Identifiers
665
+ #
666
+ # @see wxPropertyGrid Property Attribute Identifiers
667
+ #
668
+ # @see wxPropertyGrid Property Attribute Identifiers
669
+ #
670
+ # @see wxPropertyGrid Property Attribute Identifiers
671
+ #
672
+ # @see wxPropertyGrid Property Attribute Identifiers
673
+ #
674
+ # @see wxPropertyGrid Property Attribute Identifiers
675
+ #
676
+ #
677
+ class PGProperty < Object
678
+
679
+ # This virtual function is called after m_value has been set.
680
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::PGProperty#on_set_value} will not be called.- m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::PGProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
681
+ # @return [void]
682
+ def on_set_value; end
683
+
684
+ # Override this to return something else than m_value as the value.
685
+ # @return [Wx::Variant]
686
+ def do_get_value; end
687
+
688
+ # Implement this function in derived class to check the value.
689
+ # Return true if it is ok. Returning false prevents property change events from occurring.
690
+ #
691
+ # - Default implementation always returns true.
692
+ # @param value [Wx::Variant]
693
+ # @param validationInfo [Wx::PGValidationInfo]
694
+ # @return [true,false]
695
+ def validate_value(value, validationInfo) end
696
+
697
+ # Converts text into {Wx::Variant} value appropriate for this property.
698
+ # Returns true if resulting {Wx::Variant} value was different.
699
+ #
700
+ # Default implementation converts semicolon delimited tokens into child values. Only works for properties with children.
701
+ #
702
+ # You might want to take into account that m_value is Null variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
703
+ # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
704
+ # @param text [String] Text to be translated into variant.
705
+ # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::PGProperty#value_to_string} called with this same flag).
706
+ # @return [true,false]
707
+ def string_to_value(variant, text, argFlags=0) end
708
+
709
+ # Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
710
+ # Returns true if resulting {Wx::Variant} value was different.
711
+ #
712
+ # - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method.- Default implementation simply assign given int to m_value.- If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.- You might want to take into account that m_value is Mull variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
713
+ # @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
714
+ # @param number [Integer] Integer to be translated into variant.
715
+ # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
716
+ # @return [true,false]
717
+ def int_to_value(variant, number, argFlags=0) end
718
+
719
+ # Converts property value into a text representation.
720
+ # Default implementation calls {Wx::PG::PGProperty#generate_composed_value}.
721
+ # @param value [Wx::Variant] Value to be converted.
722
+ # @param argFlags [Integer] If 0 (default value), then displayed string is returned. If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable string value instead of displayable. If {Wx::PG::PG_MISC_ARG_FLAGS::PG_EDITABLE_VALUE} is set, returns string value that must be editable in textctrl. If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, returns text that is appropriate to display as a part of string property's composite text representation.
723
+ # @return [String]
724
+ def value_to_string(value, argFlags=0) end
725
+
726
+ # Converts string to a value, and if successful, calls {Wx::PG::PGProperty#set_value} on it.
727
+ # Default behaviour is to do nothing.
728
+ #
729
+ # true if value was changed.
730
+ # @param text [String] String to get the value from.
731
+ # @param flags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, the function sets complete, storable value instead of displayable one (they may be different). {Wx::PG::PG_MISC_ARG_FLAGS::PG_PROGRAMMATIC_VALUE} flag is used to indicate that value is being set programmatically (i.e. operation is not caused by user input). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_REPORT_ERROR} is set, a special action should be performed if string couldn't have been successfully converted to the valid value (e.g. a special value can be set in this case).
732
+ # @return [true,false]
733
+ def set_value_from_string(text, flags=Wx::PG_PROGRAMMATIC_VALUE) end
734
+ alias_method :value_from_string=, :set_value_from_string
735
+
736
+ # Converts integer to a value, and if successful, calls {Wx::PG::PGProperty#set_value} on it.
737
+ # Default behaviour is to do nothing.
738
+ #
739
+ # true if value was changed.
740
+ # @param value [Integer] Int to get the value from.
741
+ # @param flags [Integer] If has {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE}, then the value given is an actual value and not an index.
742
+ # @return [true,false]
743
+ def set_value_from_int(value, flags=0) end
744
+ alias_method :value_from_int=, :set_value_from_int
745
+
746
+ # Returns size of the custom painted image in front of property.
747
+ # This method must be overridden to return non-default value if OnCustomPaint is to be called.
748
+ #
749
+ # - Default behaviour is to return {size(0,0)}, which means no image.- Default image width or height is indicated with dimension -1.- You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
750
+ # @param item [Integer] Normally -1, but can be an index to the property's list of items.
751
+ # @return [Wx::Size]
752
+ def on_measure_image(item=-1) end
753
+
754
+ # Events received by editor widgets are processed here.
755
+ # Note that editor class usually processes most events. Some, such as button press events of TextCtrlAndButton class, can be handled here. Also, if custom handling for regular events is desired, then that can also be done (for example, {Wx::PG::SystemColourProperty} custom handles {Wx::EVT_CHOICE} to display colour picker dialog when 'custom' selection is made).
756
+ # If the event causes value to be changed, {Wx::PG::PGProperty#set_value_in_event} should be called to set the new value.
757
+ # The parameter event is the associated {Wx::Event}.
758
+ #
759
+ # Should
760
+ #
761
+ # return true if any changes in value should be reported.
762
+ #
763
+ # - If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.
764
+ # @param propgrid [Wx::PropertyGrid]
765
+ # @param wnd_primary [Wx::Window]
766
+ # @param event [Wx::Event]
767
+ # @return [true,false]
768
+ def on_event(propgrid, wnd_primary, event) end
769
+
770
+ # Called after value of a child property has been altered.
771
+ # Must return new value of the whole property (after any alterations warranted by child's new value).
772
+ # Note that this function is usually called at the time that value of this property, or given child property, is still pending for change, and as such, result of {Wx::PG::PGProperty#get_value} or m_value should not be relied on.
773
+ # Sample pseudo-code implementation:
774
+ #
775
+ # wxVariant MyProperty::ChildChanged( wxVariant& thisValue,
776
+ # int childIndex,
777
+ # wxVariant& childValue ) const
778
+ # {
779
+ # // Acquire reference to actual type of data stored in variant
780
+ # // (TFromVariant only exists if wxPropertyGrid's wxVariant-macros
781
+ # // were used to create the variant class).
782
+ # T& data = TFromVariant(thisValue);
783
+ #
784
+ # // Copy childValue into data.
785
+ # switch ( childIndex )
786
+ # {
787
+ # case 0:
788
+ # data.SetSubProp1( childvalue.GetLong() );
789
+ # break;
790
+ # case 1:
791
+ # data.SetSubProp2( childvalue.GetString() );
792
+ # break;
793
+ # ...
794
+ # }
795
+ #
796
+ # // Return altered data
797
+ # return data;
798
+ # }
799
+ #
800
+ # Modified value of the whole property.
801
+ # @param thisValue [Wx::Variant] Value of this property. Changed value should be returned (in previous versions of {Wx::PG::PropertyGrid} it was only necessary to write value back to this argument).
802
+ # @param childIndex [Integer] Index of child changed (you can use Item(childIndex) to get child property).
803
+ # @param childValue [Wx::Variant] (Pending) value of the child property.
804
+ # @return [Wx::Variant]
805
+ def child_changed(thisValue, childIndex, childValue) end
806
+
807
+ # Returns pointer to an instance of used editor.
808
+ # @return [Wx::PGEditor]
809
+ def do_get_editor_class; end
810
+
811
+ # Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
812
+ # Setting validator explicitly via SetPropertyValidator will override this.
813
+ # In most situations, code like this should work well (macros are used to maintain one actual validator instance, so on the second call the function exits within the first macro):
814
+ #
815
+ # wxValidator* wxMyPropertyClass::DoGetValidator () const
816
+ # {
817
+ # WX_PG_DOGETVALIDATOR_ENTRY()
818
+ #
819
+ # wxMyValidator* validator = new wxMyValidator(...);
820
+ #
821
+ # ... prepare validator...
822
+ #
823
+ # WX_PG_DOGETVALIDATOR_EXIT(validator)
824
+ # }
825
+ #
826
+ # You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
827
+ # @return [Wx::Validator]
828
+ def do_get_validator; end
829
+
830
+ # Override to paint an image in front of the property value text or drop-down list item (but only if {Wx::PG::PGProperty#on_measure_image} is overridden as well).
831
+ # If property's {Wx::PG::PGProperty#on_measure_image} returns size that has height != 0 but less than row height ( < 0 has special meanings), {Wx::PG::PropertyGrid} calls this method to draw a custom image in a limited area in front of the editor control or value text/graphics, and if control has drop-down list, then the image is drawn there as well (even in the case {Wx::PG::PGProperty#on_measure_image} returned higher height than row height).
832
+ # NOTE: Following applies when {Wx::PG::PGProperty#on_measure_image} returns a "flexible" height ( using <code>wxPG_FLEXIBLE_SIZE(W,H)</code> macro), which implies variable height items: If (rect.x+rect.width) is < 0, then this is a measure item call, which means that dc is invalid and only thing that should be done is to set paintdata.m_drawnHeight to the height of the image of item at index paintdata.m_choiceItem. This call may be done even as often as once every drop-down popup show.
833
+ #
834
+ # - You can actually exceed rect width, but if you do so then paintdata.m_drawnWidth must be set to the full width drawn in pixels.- Due to technical reasons, rect's height will be default even if custom height was reported during measure call.- Brush is guaranteed to be default background colour. It has been already used to clear the background of area being painted. It can be modified.- Pen is guaranteed to be 1-wide 'black' (or whatever is the proper colour) pen for drawing framing rectangle. It can be changed as well.
835
+ # @see Wx::PG::PGProperty#value_to_string
836
+ # @param dc [Wx::DC] {Wx::DC} to paint on.
837
+ # @param rect [Wx::Rect] Box reserved for custom graphics. Includes surrounding rectangle, if any. If x+width is < 0, then this is a measure item call (see above).
838
+ # @param paintdata [Wx::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
839
+ #
840
+ # struct wxPGPaintData
841
+ # {
842
+ # // wxPropertyGrid.
843
+ # const wxPropertyGrid* m_parent;
844
+ #
845
+ # // Normally -1, otherwise index to drop-down list item that has to be drawn.
846
+ # int m_choiceItem;
847
+ #
848
+ # // Set to drawn width in OnCustomPaint (optional).
849
+ # int m_drawnWidth;
850
+ #
851
+ # // In a measure item call, set this to the height of item at m_choiceItem index
852
+ # int m_drawnHeight;
853
+ # };
854
+ # @return [void]
855
+ def on_custom_paint(dc, rect, paintdata) end
856
+
857
+ # Returns which choice is currently selected.
858
+ # Only applies to properties which have choices.
859
+ # Needs to reimplemented in derived class if property value does not map directly to a choice. Integer as index, bool, and string usually do.
860
+ # @return [Integer]
861
+ def get_choice_selection; end
862
+ alias_method :choice_selection, :get_choice_selection
863
+
864
+ # Refresh values of child properties.
865
+ # Automatically called after value is set.
866
+ # @return [void]
867
+ def refresh_children; end
868
+
869
+ # Reimplement this member function to add special handling for attributes of this property.
870
+ # Return false to have the attribute automatically stored in m_attributes. Default implementation simply does that and nothing else.
871
+ #
872
+ # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
873
+ # @param name [String]
874
+ # @param value [Wx::Variant]
875
+ # @return [true,false]
876
+ def do_set_attribute(name, value) end
877
+
878
+ # Returns value of an attribute.
879
+ # Override if custom handling of attributes is needed.
880
+ # Default implementation simply return NULL variant.
881
+ # @param name [String]
882
+ # @return [Wx::Variant]
883
+ def do_get_attribute(name) end
884
+
885
+ # Returns instance of a new {Wx::PG::PGEditorDialogAdapter} instance, which is used when user presses the (optional) button next to the editor control;.
886
+ # Default implementation returns NULL (i.e. no action is generated when button is pressed).
887
+ # @return [Wx::PGEditorDialogAdapter]
888
+ def get_editor_dialog; end
889
+ alias_method :editor_dialog, :get_editor_dialog
890
+
891
+ # Called whenever validation has failed with given pending value.
892
+ # If you implement this in your custom property class, please remember to call the base implementation as well, since they may use it to revert property into pre-change state.
893
+ # @param pendingValue [Wx::Variant]
894
+ # @return [void]
895
+ def on_validation_failure(pendingValue) end
896
+
897
+ # Append a new choice to property's list of choices.
898
+ # Index to added choice.
899
+ # @param label [String] Label for added choice.
900
+ # @param value [Integer] Value for new choice. Do not specify if you wish this to equal choice index.
901
+ # @return [Integer]
902
+ def add_choice(label, value=Wx::PG_INVALID_VALUE) end
903
+
904
+ # Adds a private child property.
905
+ # If you use this instead of {Wx::PG::PropertyGridInterface#insert} or {Wx::PG::PropertyGridInterface#append_in}, then property's parental type will automatically be set up to {Wx::PG::PGPropertyFlags::PG_PROP_AGGREGATE}. In other words, all properties of this property will become private.
906
+ # @param prop [Wx::PGProperty]
907
+ # @return [void]
908
+ def add_private_child(prop) end
909
+
910
+ # Adapts list variant into proper value using consecutive {Wx::PG::PGProperty#child_changed} calls.
911
+ # @param list [Wx::Variant]
912
+ # @param value [Wx::Variant]
913
+ # @return [void]
914
+ def adapt_list_to_value(list, value) end
915
+
916
+ # Use this member function to add independent (i.e.
917
+ # regular) children to a property.
918
+ # Appended childProperty.
919
+ #
920
+ # {Wx::PG::PropertyGrid} is not automatically refreshed by this function.
921
+ # @see Wx::PG::PGProperty#insert_child
922
+ # @see Wx::PG::PGProperty#add_private_child
923
+ # @param childProperty [Wx::PGProperty]
924
+ # @return [Wx::PG::PGProperty]
925
+ def append_child(childProperty) end
926
+
927
+ # Determines, recursively, if all children are not unspecified.
928
+ # @param pendingList [Wx::Variant] Assumes members in this {Wx::Variant} list as pending replacement values.
929
+ # @return [true,false]
930
+ def are_all_children_specified(pendingList=nil) end
931
+
932
+ # Returns true if children of this property are component values (for instance, points size, face name, and is_underlined are component values of a font).
933
+ # @return [true,false]
934
+ def are_children_components; end
935
+
936
+ # Sets or clears given property flag.
937
+ # Mainly for internal use.
938
+ # Setting a property flag never has any side-effect, and is intended almost exclusively for internal use. So, for example, if you want to disable a property, call
939
+ #
940
+ # Enable(false)
941
+ # instead of setting {Wx::PG::PGPropertyFlags::PG_PROP_DISABLED} flag.
942
+ # @see Wx::PG::PGProperty#has_flag
943
+ # @see GetFlags()
944
+ # @param flag [PGPropertyFlags]
945
+ # @param set [true,false]
946
+ # @return [void]
947
+ def change_flag(flag, set) end
948
+
949
+ # Deletes children of the property.
950
+ # @return [void]
951
+ def delete_children; end
952
+
953
+ # Removes entry from property's {Wx::PG::PGChoices} and editor control (if it is active).
954
+ # If selected item is deleted, then the value is set to unspecified.
955
+ # @param index [Integer]
956
+ # @return [void]
957
+ def delete_choice(index) end
958
+
959
+ # Enables or disables the property.
960
+ # Disabled property usually appears as having grey text.
961
+ # @see Wx::PG::PropertyGridInterface#enable_property
962
+ # @param enable [true,false] If false, property is disabled instead.
963
+ # @return [void]
964
+ def enable(enable=true) end
965
+
966
+ # Call to enable or disable usage of common value (integer value that can be selected for properties instead of their normal values) for this property.
967
+ # Common values are disabled by the default for all properties.
968
+ # @param enable [true,false]
969
+ # @return [void]
970
+ def enable_common_value(enable=true) end
971
+
972
+ # Composes text from values of child properties.
973
+ # @return [String]
974
+ def generate_composed_value; end
975
+
976
+ # Returns property's label.
977
+ # @return [Wx::String]
978
+ def get_label; end
979
+ alias_method :label, :get_label
980
+
981
+ # @overload get_attribute(name)
982
+ # Returns property attribute value, null variant if not found.
983
+ # For built-in attribute returns null variant if extra style {Wx::PG::PG_EX_WINDOW_STYLES::PG_EX_WRITEONLY_BUILTIN_ATTRIBUTES} is set.
984
+ # @param name [String]
985
+ # @return [Wx::Variant]
986
+ # @overload get_attribute(name, defVal)
987
+ # Returns named attribute, as string, if found.
988
+ # Otherwise defVal is returned.
989
+ # For built-in attribute returns defVal if extra style {Wx::PG::PG_EX_WINDOW_STYLES::PG_EX_WRITEONLY_BUILTIN_ATTRIBUTES} is set.
990
+ # @param name [String]
991
+ # @param defVal [String]
992
+ # @return [String]
993
+ def get_attribute(*args) end
994
+ alias_method :attribute, :get_attribute
995
+
996
+ # Returns named attribute, as long, if found.
997
+ # Otherwise defVal is returned.
998
+ # For built-in attribute returns defVal if extra style {Wx::PG::PG_EX_WINDOW_STYLES::PG_EX_WRITEONLY_BUILTIN_ATTRIBUTES} is set.
999
+ # @param name [String]
1000
+ # @param defVal [Integer]
1001
+ # @return [Integer]
1002
+ def get_attribute_as_long(name, defVal) end
1003
+ alias_method :attribute_as_long, :get_attribute_as_long
1004
+
1005
+ # Returns named attribute, as double, if found.
1006
+ # Otherwise defVal is returned.
1007
+ # For built-in attribute returns defVal if extra style {Wx::PG::PG_EX_WINDOW_STYLES::PG_EX_WRITEONLY_BUILTIN_ATTRIBUTES} is set.
1008
+ # @param name [String]
1009
+ # @param defVal [Float]
1010
+ # @return [Float]
1011
+ def get_attribute_as_double(name, defVal) end
1012
+ alias_method :attribute_as_double, :get_attribute_as_double
1013
+
1014
+ # Returns attributes as list {Wx::Variant}.
1015
+ # If extra style {Wx::PG::PG_EX_WINDOW_STYLES::PG_EX_WRITEONLY_BUILTIN_ATTRIBUTES} is set, then builtin-attributes are not included in the list.
1016
+ # @return [Wx::Variant]
1017
+ def get_attributes_as_list; end
1018
+ alias_method :attributes_as_list, :get_attributes_as_list
1019
+
1020
+ # Returns editor used for given column.
1021
+ # NULL for no editor.
1022
+ # @param column [Integer]
1023
+ # @return [Wx::PGEditor]
1024
+ def get_column_editor(column) end
1025
+ alias_method :column_editor, :get_column_editor
1026
+
1027
+ # Returns property's base name (i.e.
1028
+ # parent's name is not added in any case).
1029
+ # @return [Wx::String]
1030
+ def get_base_name; end
1031
+ alias_method :base_name, :get_base_name
1032
+
1033
+ # Returns {Wx::PG::PGCell} of given column.
1034
+ # const version of this member function returns 'default' {Wx::PG::PGCell} object if the property itself didn't hold cell data.
1035
+ # @param column [Integer]
1036
+ # @return [Wx::PGCell]
1037
+ def get_cell_or_default(column) end
1038
+ alias_method :cell_or_default, :get_cell_or_default
1039
+
1040
+ # Returns {Wx::PG::PGCell} of given column, creating one if necessary.
1041
+ # @param column [Integer]
1042
+ # @return [Wx::PG::PGCell]
1043
+ def get_cell(column) end
1044
+ alias_method :cell, :get_cell
1045
+
1046
+ # Returns number of child properties.
1047
+ # @return [Integer]
1048
+ def get_child_count; end
1049
+ alias_method :child_count, :get_child_count
1050
+
1051
+ # Returns height of children, recursively, and by taking expanded/collapsed status into account.
1052
+ # @param lh [Integer] Line height. Pass result of {Wx::PG::PGProperty#get_grid}->GetRowHeight() here.
1053
+ # @param iMax [Integer] Only used (internally) when finding property y-positions.
1054
+ # @return [Integer]
1055
+ def get_children_height(lh, iMax=-1) end
1056
+ alias_method :children_height, :get_children_height
1057
+
1058
+ # Returns read-only reference to property's list of choices.
1059
+ # @return [Wx::PGChoices]
1060
+ def get_choices; end
1061
+ alias_method :choices, :get_choices
1062
+
1063
+ # Returns client data (void*) of a property.
1064
+ # @return [Object]
1065
+ def get_client_data; end
1066
+ alias_method :client_data, :get_client_data
1067
+
1068
+ # Returns property's default value.
1069
+ # If property's value type is not a built-in one, and "DefaultValue" attribute is not defined, then this function usually returns Null variant.
1070
+ # @return [Wx::Variant]
1071
+ def get_default_value; end
1072
+ alias_method :default_value, :get_default_value
1073
+
1074
+ # Returns common value selected for this property.
1075
+ # -1 for none.
1076
+ # @return [Integer]
1077
+ def get_common_value; end
1078
+ alias_method :common_value, :get_common_value
1079
+
1080
+ # @return [Integer]
1081
+ def get_depth; end
1082
+ alias_method :depth, :get_depth
1083
+
1084
+ # Return number of displayed common values for this property.
1085
+ # @return [Integer]
1086
+ def get_displayed_common_value_count; end
1087
+ alias_method :displayed_common_value_count, :get_displayed_common_value_count
1088
+
1089
+ # Returns property's displayed text.
1090
+ # @return [String]
1091
+ def get_displayed_string; end
1092
+ alias_method :displayed_string, :get_displayed_string
1093
+
1094
+ # Returns {Wx::PG::PGEditor} that will be used and created when property becomes selected.
1095
+ # Returns more accurate value than {Wx::PG::PGProperty#do_get_editor_class}.
1096
+ # @return [Wx::PGEditor]
1097
+ def get_editor_class; end
1098
+ alias_method :editor_class, :get_editor_class
1099
+
1100
+ # Returns property's hint text (shown in empty value cell).
1101
+ # @return [String]
1102
+ def get_hint_text; end
1103
+ alias_method :hint_text, :get_hint_text
1104
+
1105
+ # Returns property grid where property lies.
1106
+ # @return [Wx::PropertyGrid]
1107
+ def get_grid; end
1108
+ alias_method :grid, :get_grid
1109
+
1110
+ # Returns owner {Wx::PG::PropertyGrid}, but only if one is currently on a page displaying this property.
1111
+ # @return [Wx::PropertyGrid]
1112
+ def get_grid_if_displayed; end
1113
+ alias_method :grid_if_displayed, :get_grid_if_displayed
1114
+
1115
+ # Returns property's help or description text.
1116
+ #
1117
+ # @see Wx::PG::PGProperty#set_help_string
1118
+ # @return [Wx::String]
1119
+ def get_help_string; end
1120
+ alias_method :help_string, :get_help_string
1121
+
1122
+ # Gets flags as a'|' delimited string.
1123
+ # Note that flag names are not prepended with '{Wx::PG_PROP_}'.
1124
+ # @param flagsMask [FlagType] String will only be made to include flags combined by this parameter.
1125
+ # @return [String]
1126
+ def get_flags_as_string(flagsMask) end
1127
+ alias_method :flags_as_string, :get_flags_as_string
1128
+
1129
+ # Returns position in parent's array.
1130
+ # @return [Integer]
1131
+ def get_index_in_parent; end
1132
+ alias_method :index_in_parent, :get_index_in_parent
1133
+
1134
+ # Returns last visible child property, recursively.
1135
+ # @return [Wx::PGProperty]
1136
+ def get_last_visible_sub_item; end
1137
+ alias_method :last_visible_sub_item, :get_last_visible_sub_item
1138
+
1139
+ # Returns highest level non-category, non-root parent.
1140
+ # Useful when you have nested properties with children.
1141
+ # If immediate parent is root or category, this will return the property itself.
1142
+ # @return [Wx::PG::PGProperty]
1143
+ def get_main_parent; end
1144
+ alias_method :main_parent, :get_main_parent
1145
+
1146
+ # Returns maximum allowed length of the text the user can enter in the property text editor.
1147
+ # 0 is returned if length is not explicitly limited and the text can be as long as it is supported by the underlying native text control widget.
1148
+ # @return [Integer]
1149
+ def get_max_length; end
1150
+ alias_method :max_length, :get_max_length
1151
+
1152
+ # Returns property's name with all (non-category, non-root) parents.
1153
+ # @return [String]
1154
+ def get_name; end
1155
+ alias_method :name, :get_name
1156
+
1157
+ # Return parent of property.
1158
+ # @return [Wx::PG::PGProperty]
1159
+ def get_parent; end
1160
+ alias_method :parent, :get_parent
1161
+
1162
+ # Returns (direct) child property with given name (or NULL if not found).
1163
+ # @param name [String] Name of the child property to look for.
1164
+ # @return [Wx::PG::PGProperty]
1165
+ def get_property_by_name(name) end
1166
+ alias_method :property_by_name, :get_property_by_name
1167
+
1168
+ # Gets assignable version of property's validator.
1169
+ # @return [Wx::Validator]
1170
+ def get_validator; end
1171
+ alias_method :validator, :get_validator
1172
+
1173
+ # Returns property's value.
1174
+ # @return [Wx::Variant]
1175
+ def get_value; end
1176
+ alias_method :value, :get_value
1177
+
1178
+ # Returns bitmap that appears next to value text.
1179
+ # Only returns non-NULL bitmap if one was set with {Wx::PG::PGProperty#set_value_image}.
1180
+ # @return [Wx::Bitmap]
1181
+ def get_value_image; end
1182
+ alias_method :value_image, :get_value_image
1183
+
1184
+ # Returns text representation of property's value.
1185
+ # In older versions, this function used to be overridden to convert property's value into a string representation. This function is now handled by {Wx::PG::PGProperty#value_to_string}, and overriding this function now will result in run-time assertion failure.
1186
+ # @param argFlags [Integer] If 0 (default value), then displayed string is returned. If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable string value instead of displayable. If {Wx::PG::PG_MISC_ARG_FLAGS::PG_EDITABLE_VALUE} is set, returns string value that must be editable in textctrl. If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, returns text that is appropriate to display as a part of string property's composite text representation.
1187
+ # @return [String]
1188
+ def get_value_as_string(argFlags=0) end
1189
+ alias_method :value_as_string, :get_value_as_string
1190
+
1191
+ # Returns value type used by this property.
1192
+ # @return [String]
1193
+ def get_value_type; end
1194
+ alias_method :value_type, :get_value_type
1195
+
1196
+ # Returns coordinate to the top y of the property.
1197
+ # Note that the position of scrollbars is not taken into account.
1198
+ # @return [Integer]
1199
+ def get_y; end
1200
+ alias_method :y, :get_y
1201
+
1202
+ # Converts image width into full image offset, with margins.
1203
+ # @param imageWidth [Integer]
1204
+ # @return [Integer]
1205
+ def get_image_offset(imageWidth) end
1206
+ alias_method :image_offset, :get_image_offset
1207
+
1208
+ # Returns property at given virtual y coordinate.
1209
+ # @param y [Integer]
1210
+ # @return [Wx::PG::PGProperty]
1211
+ def get_item_at_y(y) end
1212
+ alias_method :item_at_y, :get_item_at_y
1213
+
1214
+ # @overload has_flag(flag)
1215
+ # Returns true if property has given flag set.
1216
+ #
1217
+ # @see propgrid_propflags
1218
+ # @param flag [PGPropertyFlags]
1219
+ # @return [true,false]
1220
+ # @overload has_flag(flag)
1221
+ # Returns true if property has given flag set.
1222
+ # @param flag [FlagType]
1223
+ # @return [true,false]
1224
+ def has_flag(*args) end
1225
+ alias_method :has_flag?, :has_flag
1226
+
1227
+ # Returns true if property has all given flags set.
1228
+ # @param flags [FlagType]
1229
+ # @return [true,false]
1230
+ def has_flags_exact(flags) end
1231
+ alias_method :has_flags_exact?, :has_flags_exact
1232
+
1233
+ # Returns true if property has even one visible child.
1234
+ # @return [true,false]
1235
+ def has_visible_children; end
1236
+ alias_method :has_visible_children?, :has_visible_children
1237
+
1238
+ # Hides or reveals the property.
1239
+ # @param hide [true,false] true for hide, false for reveal.
1240
+ # @param flags [Integer] By default changes are applied recursively. Set this parameter to {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_DONT_RECURSE} to prevent this.
1241
+ # @return [true,false]
1242
+ def hide(hide, flags=Wx::PG_RECURSE) end
1243
+
1244
+ # Returns index of given child property.
1245
+ # {Wx::NOT_FOUND} if given property is not child of this.
1246
+ # @param p [Wx::PGProperty]
1247
+ # @return [Integer]
1248
+ def index(p) end
1249
+
1250
+ # Use this member function to add independent (i.e.
1251
+ # regular) children to a property.
1252
+ # Inserted childProperty.
1253
+ #
1254
+ # {Wx::PG::PropertyGrid} is not automatically refreshed by this function.
1255
+ # @see Wx::PG::PGProperty#append_child
1256
+ # @see Wx::PG::PGProperty#add_private_child
1257
+ # @param index [Integer]
1258
+ # @param childProperty [Wx::PGProperty]
1259
+ # @return [Wx::PG::PGProperty]
1260
+ def insert_child(index, childProperty) end
1261
+
1262
+ # Inserts a new choice to property's list of choices.
1263
+ # @param label [String] Text for new choice
1264
+ # @param index [Integer] Insertion position. Use {Wx::NOT_FOUND} to append.
1265
+ # @param value [Integer] Value for new choice. Do not specify if you wish this to equal choice index.
1266
+ # @return [Integer]
1267
+ def insert_choice(label, index, value=Wx::PG_INVALID_VALUE) end
1268
+
1269
+ # Returns true if this property is actually a {Wx::PG::PropertyCategory}.
1270
+ # @return [true,false]
1271
+ def is_category; end
1272
+ alias_method :category?, :is_category
1273
+
1274
+ # Returns true if property is enabled.
1275
+ # @return [true,false]
1276
+ def is_enabled; end
1277
+ alias_method :enabled?, :is_enabled
1278
+
1279
+ # Returns true if property has visible children.
1280
+ # @return [true,false]
1281
+ def is_expanded; end
1282
+ alias_method :expanded?, :is_expanded
1283
+
1284
+ # Returns true if this property is actually a {Wx::RootProperty}.
1285
+ # @return [true,false]
1286
+ def is_root; end
1287
+ alias_method :root?, :is_root
1288
+
1289
+ # Returns true if this is a sub-property.
1290
+ # @return [true,false]
1291
+ def is_sub_property; end
1292
+ alias_method :sub_property?, :is_sub_property
1293
+
1294
+ # Returns true if candidateParent is some parent of this property.
1295
+ # Use, for example, to detect if item is inside collapsed section.
1296
+ # @param candidateParent [Wx::PGProperty]
1297
+ # @return [true,false]
1298
+ def is_some_parent(candidateParent) end
1299
+ alias_method :some_parent?, :is_some_parent
1300
+
1301
+ # Returns true if property has editable {Wx::TextCtrl} when selected.
1302
+ # Although disabled properties do not displayed editor, they still return true here as being disabled is considered a temporary condition (unlike being read-only or having limited editing enabled).
1303
+ # @return [true,false]
1304
+ def is_text_editable; end
1305
+ alias_method :text_editable?, :is_text_editable
1306
+
1307
+ # Returns true if property's value is considered unspecified.
1308
+ # This usually means that value is Null variant.
1309
+ # @return [true,false]
1310
+ def is_value_unspecified; end
1311
+ alias_method :value_unspecified?, :is_value_unspecified
1312
+
1313
+ # Returns true if all parents expanded.
1314
+ # @return [true,false]
1315
+ def is_visible; end
1316
+ alias_method :visible?, :is_visible
1317
+
1318
+ # Returns child property at index i.
1319
+ # @param i [Integer]
1320
+ # @return [Wx::PG::PGProperty]
1321
+ def item(i) end
1322
+
1323
+ # Returns last sub-property.
1324
+ # @return [Wx::PG::PGProperty]
1325
+ def last; end
1326
+
1327
+ # If property's editor is created this forces its recreation.
1328
+ # Useful in SetAttribute etc. Returns true if actually did anything.
1329
+ # @return [true,false]
1330
+ def recreate_editor; end
1331
+
1332
+ # If property's editor is active, then update it's value.
1333
+ # @return [void]
1334
+ def refresh_editor; end
1335
+
1336
+ # Sets an attribute for this property.
1337
+ # Setting attribute's value to Null variant will simply remove it from property's set of attributes.
1338
+ # @param name [String] Text identifier of attribute. See wxPropertyGrid Property Attribute Identifiers.
1339
+ # @param value [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue] Value of attribute.
1340
+ # @return [void]
1341
+ def set_attribute(name, value) end
1342
+
1343
+ # @param attributes [Wx::PGAttributeStorage]
1344
+ # @return [void]
1345
+ def set_attributes(attributes) end
1346
+ alias_method :attributes=, :set_attributes
1347
+
1348
+ # Set if user can change the property's value to unspecified by modifying the value of the editor control (usually by clearing it).
1349
+ # Currently, this can work with following properties: {Wx::PG::IntProperty}, {Wx::PG::UIntProperty}, {Wx::PG::FloatProperty}, {Wx::PG::EditEnumProperty}.
1350
+ # @param enable [true,false] Whether to enable or disable this behaviour (it is disabled by default).
1351
+ # @return [void]
1352
+ def set_auto_unspecified(enable=true) end
1353
+ alias_method :auto_unspecified=, :set_auto_unspecified
1354
+
1355
+ # Sets property's background colour.
1356
+ # Unlike {Wx::PG::PropertyGridInterface#set_property_background_colour}, this does not automatically update the display.
1357
+ # @param colour [Wx::Colour,String,Symbol] Background colour to use.
1358
+ # @param flags [Integer] Default is {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_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.
1359
+ # @return [void]
1360
+ def set_background_colour(colour, flags=Wx::PG_RECURSE) end
1361
+ alias_method :background_colour=, :set_background_colour
1362
+
1363
+ # @overload set_editor(editor)
1364
+ # Sets editor for a property.
1365
+ # For custom editors, use pointer you received from {Wx::PG::PropertyGrid.register_editor_class}.
1366
+ # @param editor [Wx::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).
1367
+ # @return [void]
1368
+ # @overload set_editor(editorName)
1369
+ # Sets editor for a property, by editor name.
1370
+ # @param editorName [String]
1371
+ # @return [void]
1372
+ def set_editor(*args) end
1373
+ alias_method :editor=, :set_editor
1374
+
1375
+ # Sets cell information for given column.
1376
+ # @param column [Integer]
1377
+ # @param cell [Wx::PGCell]
1378
+ # @return [void]
1379
+ def set_cell(column, cell) end
1380
+
1381
+ # Sets common value selected for this property.
1382
+ # -1 for none.
1383
+ # @param commonValue [Integer]
1384
+ # @return [void]
1385
+ def set_common_value(commonValue) end
1386
+ alias_method :common_value=, :set_common_value
1387
+
1388
+ # Sets new set of choices for the property.
1389
+ # This operation deselects the property and clears its value.
1390
+ # @param choices [Wx::PGChoices]
1391
+ # @return [true,false]
1392
+ def set_choices(choices) end
1393
+ alias_method :choices=, :set_choices
1394
+
1395
+ # Sets client data (void*) of a property.
1396
+ # This untyped client data has to be deleted manually.
1397
+ # @param clientData [Object]
1398
+ # @return [void]
1399
+ def set_client_data(clientData) end
1400
+ alias_method :client_data=, :set_client_data
1401
+
1402
+ # Sets selected choice and changes property value.
1403
+ # Tries to retain value type, although currently if it is not string, then it is forced to integer.
1404
+ # @param newValue [Integer]
1405
+ # @return [void]
1406
+ def set_choice_selection(newValue) end
1407
+ alias_method :choice_selection=, :set_choice_selection
1408
+
1409
+ # Set default value of a property.
1410
+ # Synonymous to
1411
+ #
1412
+ # SetAttribute("DefaultValue", value);
1413
+ # @param value [Wx::Variant]
1414
+ # @return [void]
1415
+ def set_default_value(value) end
1416
+ alias_method :default_value=, :set_default_value
1417
+
1418
+ # @param expanded [true,false]
1419
+ # @return [void]
1420
+ def set_expanded(expanded) end
1421
+ alias_method :expanded=, :set_expanded
1422
+
1423
+ # Sets flags from a '|' delimited string.
1424
+ # Note that flag names are not prepended with '{Wx::PG_PROP_}'.
1425
+ # @param str [String]
1426
+ # @return [void]
1427
+ def set_flags_from_string(str) end
1428
+ alias_method :flags_from_string=, :set_flags_from_string
1429
+
1430
+ # Sets or clears given property flag, recursively.
1431
+ # This function is primarily intended for internal use.
1432
+ # @see Wx::PG::PGProperty#change_flag
1433
+ # @param flag [PGPropertyFlags]
1434
+ # @param set [true,false]
1435
+ # @return [void]
1436
+ def set_flag_recursively(flag, set) end
1437
+
1438
+ # Sets property's help string, which is shown, for example, in {Wx::PG::PropertyGridManager}'s description text box.
1439
+ # @param helpString [String]
1440
+ # @return [void]
1441
+ def set_help_string(helpString) end
1442
+ alias_method :help_string=, :set_help_string
1443
+
1444
+ # Sets property's label.
1445
+ # - Properties under same parent may have same labels. However, property names must still remain unique.- Unlike {Wx::PG::PropertyGridInterface#set_property_label}, this does not automatically update the display.
1446
+ # @param label [String]
1447
+ # @return [void]
1448
+ def set_label(label) end
1449
+ alias_method :label=, :set_label
1450
+
1451
+ # Set maximum length of the text the user can enter in the text editor.
1452
+ # 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.
1453
+ # Returns true if maximum length was set.
1454
+ # @param maxLen [Integer]
1455
+ # @return [true,false]
1456
+ def set_max_length(maxLen) end
1457
+ alias_method :max_length=, :set_max_length
1458
+
1459
+ # Sets property's "is it modified?" flag.
1460
+ # Affects children recursively.
1461
+ # @param modified [true,false]
1462
+ # @return [void]
1463
+ def set_modified_status(modified) end
1464
+ alias_method :modified_status=, :set_modified_status
1465
+
1466
+ # Sets new (base) name for property.
1467
+ # @param newName [String]
1468
+ # @return [void]
1469
+ def set_name(newName) end
1470
+ alias_method :name=, :set_name
1471
+
1472
+ # Changes what sort of parent this property is for its children.
1473
+ # You generally do not need to call this function.
1474
+ # @param flag [Integer] Use one of the following values: {Wx::PG::PGPropertyFlags::PG_PROP_MISC_PARENT} (for generic parents), {Wx::PG::PGPropertyFlags::PG_PROP_CATEGORY} (for categories), or {Wx::PG::PGPropertyFlags::PG_PROP_AGGREGATE} (for derived property classes with private children).
1475
+ # @return [void]
1476
+ def set_parental_type(flag) end
1477
+ alias_method :parental_type=, :set_parental_type
1478
+
1479
+ # Sets property's text colour.
1480
+ # Unlike {Wx::PG::PropertyGridInterface#set_property_text_colour}, this does not automatically update the display.
1481
+ # @param colour [Wx::Colour,String,Symbol] Text colour to use.
1482
+ # @param flags [Integer] Default is {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_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.
1483
+ # @return [void]
1484
+ def set_text_colour(colour, flags=Wx::PG_RECURSE) end
1485
+ alias_method :text_colour=, :set_text_colour
1486
+
1487
+ # Sets property's default text and background colours.
1488
+ # Unlike {Wx::PG::PropertyGridInterface#set_property_colours_to_default}, this does not automatically update the display.
1489
+ # @param flags [Integer] Default is {Wx::PG::PG_GETPROPERTYVALUES_FLAGS::PG_RECURSE} which causes colours to be set recursively. Omit this flag to only set colours for the property in question and not any of its children.
1490
+ # @return [void]
1491
+ def set_default_colours(flags=Wx::PG_RECURSE) end
1492
+ alias_method :default_colours=, :set_default_colours
1493
+
1494
+ # Sets {Wx::Validator} for a property.
1495
+ # @param validator [Wx::Validator]
1496
+ # @return [void]
1497
+ def set_validator(validator) end
1498
+ alias_method :validator=, :set_validator
1499
+
1500
+ # Call this to set value of the property.
1501
+ # Unlike methods in {Wx::PG::PropertyGrid}, this does not automatically update the display.
1502
+ # Use {Wx::PG::PropertyGrid#change_property_value} instead if you need to run through validation process and send property change event.
1503
+ #
1504
+ # If you need to change property value in event, based on user input, use {Wx::PG::PGProperty#set_value_in_event} instead.
1505
+ # @param value [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue] The value to set.
1506
+ # @param pList [Wx::Variant] Pointer to list variant that contains child values. Used to indicate which children should be marked as modified. Usually you just use NULL.
1507
+ # @param flags [Integer] {Wx::PG::PG_SETVALUE_FLAGS::PG_SETVAL_REFRESH_EDITOR} is set by default, to refresh editor and redraw properties.
1508
+ # @return [void]
1509
+ def set_value(value, pList=nil, flags=Wx::PG_SETVAL_REFRESH_EDITOR) end
1510
+ alias_method :value=, :set_value
1511
+
1512
+ # Set {Wx::Bitmap} taken from {Wx::BitmapBundle} in front of the value.
1513
+ # This bitmap may be ignored by custom cell renderers.
1514
+ # @param bmp [Wx::BitmapBundle]
1515
+ # @return [void]
1516
+ def set_value_image(bmp) end
1517
+ alias_method :value_image=, :set_value_image
1518
+
1519
+ # Call this function in {Wx::PG::PGProperty#on_event}, OnButtonClick() etc.
1520
+ # to change the property value based on user input.
1521
+ # This method is const since it doesn't actually modify value, but posts given variant as pending value, stored in {Wx::PG::PropertyGrid}.
1522
+ # @param value [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue]
1523
+ # @return [void]
1524
+ def set_value_in_event(value) end
1525
+ alias_method :value_in_event=, :set_value_in_event
1526
+
1527
+ # Sets property's value to unspecified (i.e.
1528
+ # Null variant).
1529
+ # @return [void]
1530
+ def set_value_to_unspecified; end
1531
+
1532
+ # Call with false in {Wx::PG::PGProperty#on_set_value} to cancel value changes after all (i.e.
1533
+ # cancel true returned by {Wx::PG::PGProperty#string_to_value} or {Wx::PG::PGProperty#int_to_value}).
1534
+ # @param set [true,false]
1535
+ # @return [void]
1536
+ def set_was_modified(set=true) end
1537
+ alias_method :was_modified=, :set_was_modified
1538
+
1539
+ # Updates composed values of parent non-category properties, recursively.
1540
+ # Returns topmost property updated.
1541
+ # Must not call {Wx::PG::PGProperty#set_value} (as can be called in it).
1542
+ # @return [Wx::PG::PGProperty]
1543
+ def update_parent_values; end
1544
+
1545
+ # Returns true if containing grid uses {Wx::PG::PG_EX_WINDOW_STYLES::PG_EX_AUTO_UNSPECIFIED_VALUES}.
1546
+ # @return [true,false]
1547
+ def uses_auto_unspecified; end
1548
+
1549
+ # Clear cells associated with property.
1550
+ # @param ignoreWithFlags [FlagType] Cells will not be cleared for properties having these flags set.
1551
+ # @param recursively [true,false] If true, apply this operation recursively in child properties.
1552
+ # @return [void]
1553
+ def clear_cells(ignoreWithFlags, recursively) end
1554
+
1555
+ # Makes sure m_cells has size of column+1 (or more).
1556
+ # @param column [Integer]
1557
+ # @return [void]
1558
+ def ensure_cells(column) end
1559
+
1560
+ # Returns (direct) child property with given name (or NULL if not found), with hint index.
1561
+ # Does not support scope (i.e. Parent.Child notation).
1562
+ # @param name [String] Name of the child property to look for.
1563
+ # @param hintIndex [Integer] Start looking for the child at this index.
1564
+ # @return [Wx::PG::PGProperty]
1565
+ def get_property_by_name_wh(name, hintIndex) end
1566
+ alias_method :property_by_name_wh, :get_property_by_name_wh
1567
+
1568
+ # Deletes all child properties.
1569
+ # @return [void]
1570
+ def empty; end
1571
+
1572
+ # Returns true if child property is selected.
1573
+ # @param recursive [true,false]
1574
+ # @return [true,false]
1575
+ def is_child_selected(recursive=false) end
1576
+ alias_method :child_selected?, :is_child_selected
1577
+
1578
+ #
1579
+ # @return [Wx::Variant]
1580
+ def value_; end
1581
+ #
1582
+ # @param val [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue]
1583
+ # @return [void]
1584
+ def value_=(val); end
1585
+
1586
+
1587
+ protected
1588
+
1589
+ # @overload initialize()
1590
+ # Default constructor.
1591
+ # It is protected because {Wx::PG::PGProperty} is only a base class for other property classes.
1592
+ # @return [PGProperty]
1593
+ # @overload initialize(label, name)
1594
+ # Constructor.
1595
+ # It is protected because {Wx::PG::PGProperty} is only a base class for other property classes. Non-abstract property classes should have constructor of this style:
1596
+ #
1597
+ # MyProperty( const wxString& label, const wxString& name, const T& value )
1598
+ # : wxPGProperty(label, name)
1599
+ # {
1600
+ # // Generally recommended way to set the initial value
1601
+ # // (as it should work in pretty much 100% of cases).
1602
+ # wxVariant variant;
1603
+ # variant << value;
1604
+ # SetValue(variant);
1605
+ #
1606
+ # // If has private child properties then create them here.
1607
+ # // For example:
1608
+ # // AddPrivateChild( new wxStringProperty("Subprop 1",
1609
+ # // wxPG_LABEL,
1610
+ # // value.GetSubProp1()));
1611
+ # }
1612
+ # @param label [String]
1613
+ # @param name [String]
1614
+ # @return [PGProperty]
1615
+ def initialize(*args) end
1616
+
1617
+ end # PGProperty
1618
+
1619
+ # Helper class for managing choices of {Wx::PG::PropertyGrid} properties.
1620
+ # Each entry can have label, value, bitmap, text colour, and background colour.
1621
+ # {Wx::PG::PGChoices} uses reference counting, similar to other wxWidgets classes. This means that assignment operator and copy constructor only copy the reference and not the actual data. Use {Wx::PG::PGChoices#copy} member function to create a real copy.
1622
+ # If you do not specify value for entry, index is used.
1623
+ #
1624
+ # ===
1625
+ #
1626
+ # Category: {Wx::PG::PropertyGrid}
1627
+ #
1628
+ class PGChoices < ::Object
1629
+
1630
+ # @overload initialize()
1631
+ # Default constructor.
1632
+ # @return [PGChoices]
1633
+ # @overload initialize(a)
1634
+ # Copy constructor, uses reference counting.
1635
+ # To create a real copy, use {Wx::PG::PGChoices#copy} member function instead.
1636
+ # @param a [Wx::PGChoices]
1637
+ # @return [PGChoices]
1638
+ # @overload initialize(labels, values=(Wx::ArrayInt.new()))
1639
+ # Constructor.
1640
+ # @param labels [Array<String>] Labels for choices.
1641
+ # @param values [Array<Integer>] Values for choices. If empty, indexes are used. Otherwise must have at least the same size as labels.
1642
+ # @return [PGChoices]
1643
+ def initialize(*args) end
1644
+
1645
+ # @overload add(arr, arrint)
1646
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1647
+ # @param arr [Array<String>]
1648
+ # @param arrint [Array<Integer>]
1649
+ # @return [void]
1650
+ # @overload add(label, value=Wx::PG_INVALID_VALUE)
1651
+ # Adds a single choice item.
1652
+ # @param label [String] Label for added choice.
1653
+ # @param value [Integer] Value for added choice. If unspecified, index is used.
1654
+ # @return [Wx::PGChoiceEntry]
1655
+ # @overload add(label, bitmap, value=Wx::PG_INVALID_VALUE)
1656
+ # Adds a single item, with bitmap.
1657
+ # @param label [String]
1658
+ # @param bitmap [Wx::Bitmap]
1659
+ # @param value [Integer]
1660
+ # @return [Wx::PGChoiceEntry]
1661
+ # @overload add(entry)
1662
+ # Adds a single item with full entry information.
1663
+ # @param entry [Wx::PGChoiceEntry]
1664
+ # @return [Wx::PGChoiceEntry]
1665
+ def add(*args) end
1666
+
1667
+ # Adds a single item, sorted.
1668
+ # @param label [String]
1669
+ # @param value [Integer]
1670
+ # @return [Wx::PGChoiceEntry]
1671
+ def add_as_sorted(label, value=Wx::PG_INVALID_VALUE) end
1672
+
1673
+ # Assigns choices data, using reference counting.
1674
+ # To create a real copy, use {Wx::PG::PGChoices#copy} member function instead.
1675
+ # @param a [Wx::PGChoices]
1676
+ # @return [void]
1677
+ def assign(a) end
1678
+
1679
+ # Deletes all items.
1680
+ # @return [void]
1681
+ def clear; end
1682
+
1683
+ # Returns a real copy of the choices.
1684
+ # @return [Wx::PGChoices]
1685
+ def copy; end
1686
+
1687
+ # @return [void]
1688
+ def ensure_data; end
1689
+
1690
+ # Gets an unsigned number identifying this list.
1691
+ # @return [Wx::PGChoicesId]
1692
+ def get_id; end
1693
+ alias_method :id, :get_id
1694
+
1695
+ # Returns label of item.
1696
+ # @param ind [Integer]
1697
+ # @return [Wx::String]
1698
+ def get_label(ind) end
1699
+ alias_method :label, :get_label
1700
+
1701
+ # Returns number of items.
1702
+ # @return [Integer]
1703
+ def get_count; end
1704
+ alias_method :count, :get_count
1705
+
1706
+ # Returns value of item.
1707
+ # @param ind [Integer]
1708
+ # @return [Integer]
1709
+ def get_value(ind) end
1710
+ alias_method :value, :get_value
1711
+
1712
+ # Returns array of values matching the given strings.
1713
+ # Unmatching strings result in {Wx::PG::PG_INVALID_VALUE} entry in array.
1714
+ # @param strings [Array<String>]
1715
+ # @return [Array<Integer>]
1716
+ def get_values_for_strings(strings) end
1717
+ alias_method :values_for_strings, :get_values_for_strings
1718
+
1719
+ # Returns array of indices matching given strings.
1720
+ # Unmatching strings are added to 'unmatched', if not NULL.
1721
+ # @param strings [Array<String>]
1722
+ # @param unmatched [Wx::ArrayString]
1723
+ # @return [Array<Integer>]
1724
+ def get_indices_for_strings(strings, unmatched=nil) end
1725
+ alias_method :indices_for_strings, :get_indices_for_strings
1726
+
1727
+ # @overload index(label)
1728
+ # Returns index of item with given label.
1729
+ # @param label [String]
1730
+ # @return [Integer]
1731
+ # @overload index(val)
1732
+ # Returns index of item with given value.
1733
+ # @param val [Integer]
1734
+ # @return [Integer]
1735
+ def index(*args) end
1736
+
1737
+ # @overload insert(label, index, value=Wx::PG_INVALID_VALUE)
1738
+ # Inserts a single item.
1739
+ # @param label [String]
1740
+ # @param index [Integer]
1741
+ # @param value [Integer]
1742
+ # @return [Wx::PGChoiceEntry]
1743
+ # @overload insert(entry, index)
1744
+ # Inserts a single item with full entry information.
1745
+ # @param entry [Wx::PGChoiceEntry]
1746
+ # @param index [Integer]
1747
+ # @return [Wx::PGChoiceEntry]
1748
+ def insert(*args) end
1749
+
1750
+ # Returns false if this is a constant empty set of choices, which should not be modified.
1751
+ # @return [true,false]
1752
+ def is_ok; end
1753
+ alias_method :ok?, :is_ok
1754
+
1755
+ # @overload item(i)
1756
+ # Returns item at given index.
1757
+ # @param i [Integer]
1758
+ # @return [Wx::PGChoiceEntry]
1759
+ # @overload item(i)
1760
+ # Returns item at given index.
1761
+ # @param i [Integer]
1762
+ # @return [Wx::PGChoiceEntry]
1763
+ def item(*args) end
1764
+
1765
+ # Removes count items starting at position nIndex.
1766
+ # @param nIndex [Integer]
1767
+ # @param count [Integer]
1768
+ # @return [void]
1769
+ def remove_at(nIndex, count=1) end
1770
+
1771
+ # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
1772
+ # @param labels [Array<String>]
1773
+ # @param values [Array<Integer>]
1774
+ # @return [void]
1775
+ def set(labels, values=(Wx::ArrayInt.new())) end
1776
+
1777
+ # Creates exclusive copy of current choices.
1778
+ # @return [void]
1779
+ def alloc_exclusive; end
1780
+
1781
+ # Returns array of choice labels.
1782
+ # @return [Array<String>]
1783
+ def get_labels; end
1784
+ alias_method :labels, :get_labels
1785
+
1786
+ # @overload [](i)
1787
+ # @param i [Integer]
1788
+ # @return [Wx::PGChoiceEntry]
1789
+ # @overload [](i)
1790
+ # @param i [Integer]
1791
+ # @return [Wx::PGChoiceEntry]
1792
+ def [](*args) end
1793
+
1794
+ end # PGChoices
1795
+
1796
+ # Contains information related to property's OnCustomPaint.
1797
+ #
1798
+ #
1799
+ class PGPaintData < ::Object
1800
+
1801
+ # {Wx::PG::PropertyGrid}
1802
+ #
1803
+ #
1804
+ # @return [Wx::PropertyGrid]
1805
+ def parent; end
1806
+ # {Wx::PG::PropertyGrid}
1807
+ #
1808
+ #
1809
+ # @param val [Wx::PropertyGrid]
1810
+ # @return [void]
1811
+ def parent=(val); end
1812
+
1813
+ # Normally -1, otherwise index to drop-down list item that has to be drawn.
1814
+ #
1815
+ #
1816
+ # @return [Integer]
1817
+ def choice_item; end
1818
+ # Normally -1, otherwise index to drop-down list item that has to be drawn.
1819
+ #
1820
+ #
1821
+ # @param val [Integer]
1822
+ # @return [void]
1823
+ def choice_item=(val); end
1824
+
1825
+ # Set to drawn width in OnCustomPaint (optional).
1826
+ #
1827
+ #
1828
+ # @return [Integer]
1829
+ def drawn_width; end
1830
+ # Set to drawn width in OnCustomPaint (optional).
1831
+ #
1832
+ #
1833
+ # @param val [Integer]
1834
+ # @return [void]
1835
+ def drawn_width=(val); end
1836
+
1837
+ # In a measure item call, set this to the height of item at m_choiceItem index.
1838
+ #
1839
+ #
1840
+ # @return [Integer]
1841
+ def drawn_height; end
1842
+ # In a measure item call, set this to the height of item at m_choiceItem index.
1843
+ #
1844
+ #
1845
+ # @param val [Integer]
1846
+ # @return [void]
1847
+ def drawn_height=(val); end
1848
+
1849
+ end # PGPaintData
1850
+
1851
+
1852
+ end