wxruby3 0.9.0.pre.rc.1-x64-mingw-ucrt → 0.9.0.pre.rc.3-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (383) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +73 -22
  3. data/README.md +40 -8
  4. data/assets/hello_button-macos.png +0 -0
  5. data/assets/hello_button-msw.png +0 -0
  6. data/assets/hello_button_clicked-macos.png +0 -0
  7. data/assets/hello_button_clicked-msw.png +0 -0
  8. data/assets/hello_button_clicked_combi.png +0 -0
  9. data/assets/hello_world-macos.png +0 -0
  10. data/assets/hello_world-msw.png +0 -0
  11. data/assets/hello_world_combi.png +0 -0
  12. data/ext/wxbase32u_gcc_custom.dll +0 -0
  13. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  14. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  19. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  20. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  21. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  22. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  23. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  24. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  25. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  26. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  27. data/lib/wx/core/brush.rb +6 -0
  28. data/lib/wx/core/event_loop.rb +7 -0
  29. data/lib/wx/core/events/evt_list.rb +7 -0
  30. data/lib/wx/core/evthandler.rb +12 -2
  31. data/lib/wx/core/font.rb +22 -14
  32. data/lib/wx/core/helpprovider.rb +2 -2
  33. data/lib/wx/core/image.rb +33 -0
  34. data/lib/wx/core/listctrl.rb +17 -13
  35. data/lib/wx/core/log.rb +90 -0
  36. data/lib/wx/core/menu.rb +5 -0
  37. data/lib/wx/core/pen.rb +6 -0
  38. data/lib/wx/core/window.rb +28 -1
  39. data/lib/wx/doc/app.rb +40 -0
  40. data/lib/wx/doc/bitmap.rb +11 -15
  41. data/lib/wx/doc/brush.rb +17 -0
  42. data/lib/wx/doc/event_loop.rb +7 -0
  43. data/lib/wx/doc/extra/00_starting.md +6 -6
  44. data/lib/wx/doc/extra/02_lifecycles.md +9 -8
  45. data/lib/wx/doc/extra/09_exceptions.md +1 -1
  46. data/lib/wx/doc/extra/11_drawing_and_dc.md +4 -4
  47. data/lib/wx/doc/font.rb +27 -0
  48. data/lib/wx/doc/functions.rb +51 -23
  49. data/lib/wx/doc/gc_dc.rb +1 -1
  50. data/lib/wx/doc/gen/about_dialog_info.rb +1 -1
  51. data/lib/wx/doc/gen/accelerator.rb +6 -6
  52. data/lib/wx/doc/gen/accessible.rb +6 -2
  53. data/lib/wx/doc/gen/activity_indicator.rb +65 -0
  54. data/lib/wx/doc/gen/animation.rb +7 -7
  55. data/lib/wx/doc/gen/animation_ctrl.rb +7 -6
  56. data/lib/wx/doc/gen/any_button.rb +1 -1
  57. data/lib/wx/doc/gen/app.rb +17 -11
  58. data/lib/wx/doc/gen/art_provider.rb +61 -1
  59. data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
  60. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
  61. data/lib/wx/doc/gen/aui/aui_manager.rb +45 -27
  62. data/lib/wx/doc/gen/aui/aui_manager_event.rb +12 -6
  63. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +6 -6
  64. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +6 -6
  65. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +10 -10
  66. data/lib/wx/doc/gen/aui/aui_notebook.rb +34 -7
  67. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
  68. data/lib/wx/doc/gen/aui/aui_pane_info.rb +51 -51
  69. data/lib/wx/doc/gen/aui/aui_tab_art.rb +6 -6
  70. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +35 -20
  71. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +16 -16
  72. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +4 -4
  73. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +4 -4
  74. data/lib/wx/doc/gen/bitmap.rb +32 -26
  75. data/lib/wx/doc/gen/bitmap_button.rb +10 -6
  76. data/lib/wx/doc/gen/bitmap_combo_box.rb +12 -7
  77. data/lib/wx/doc/gen/book_ctrl_base.rb +7 -3
  78. data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
  79. data/lib/wx/doc/gen/box_sizer.rb +1 -1
  80. data/lib/wx/doc/gen/brush.rb +16 -4
  81. data/lib/wx/doc/gen/busy_info.rb +1 -1
  82. data/lib/wx/doc/gen/button.rb +19 -7
  83. data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
  84. data/lib/wx/doc/gen/calendar_ctrl.rb +28 -16
  85. data/lib/wx/doc/gen/calendar_date_attr.rb +2 -2
  86. data/lib/wx/doc/gen/calendar_event.rb +3 -3
  87. data/lib/wx/doc/gen/caret.rb +2 -2
  88. data/lib/wx/doc/gen/check_box.rb +10 -6
  89. data/lib/wx/doc/gen/check_list_box.rb +8 -7
  90. data/lib/wx/doc/gen/choice.rb +7 -6
  91. data/lib/wx/doc/gen/choicebook.rb +12 -6
  92. data/lib/wx/doc/gen/client_dc.rb +1 -1
  93. data/lib/wx/doc/gen/clipboard.rb +1 -1
  94. data/lib/wx/doc/gen/collapsible_pane.rb +9 -6
  95. data/lib/wx/doc/gen/collapsible_pane_event.rb +2 -1
  96. data/lib/wx/doc/gen/colour.rb +16 -6
  97. data/lib/wx/doc/gen/colour_dialog.rb +6 -6
  98. data/lib/wx/doc/gen/colour_picker_ctrl.rb +15 -9
  99. data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
  100. data/lib/wx/doc/gen/combo_box.rb +22 -13
  101. data/lib/wx/doc/gen/context_help_button.rb +50 -1
  102. data/lib/wx/doc/gen/control.rb +9 -6
  103. data/lib/wx/doc/gen/core.rb +5 -2
  104. data/lib/wx/doc/gen/cursor.rb +16 -11
  105. data/lib/wx/doc/gen/data_format.rb +2 -2
  106. data/lib/wx/doc/gen/data_object.rb +23 -16
  107. data/lib/wx/doc/gen/date_event.rb +3 -3
  108. data/lib/wx/doc/gen/date_picker_ctrl.rb +11 -6
  109. data/lib/wx/doc/gen/dc.rb +37 -12
  110. data/lib/wx/doc/gen/defs.rb +16 -16
  111. data/lib/wx/doc/gen/dialog.rb +19 -5
  112. data/lib/wx/doc/gen/dir_dialog.rb +6 -2
  113. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
  114. data/lib/wx/doc/gen/dir_picker_ctrl.rb +14 -9
  115. data/lib/wx/doc/gen/drag_drop.rb +15 -15
  116. data/lib/wx/doc/gen/drag_image.rb +6 -6
  117. data/lib/wx/doc/gen/editable_list_box.rb +7 -3
  118. data/lib/wx/doc/gen/event.rb +44 -13
  119. data/lib/wx/doc/gen/event_blocker.rb +19 -17
  120. data/lib/wx/doc/gen/event_filter.rb +43 -47
  121. data/lib/wx/doc/gen/event_list.rb +22 -15
  122. data/lib/wx/doc/gen/events.rb +215 -79
  123. data/lib/wx/doc/gen/evt_handler.rb +1 -1
  124. data/lib/wx/doc/gen/ext_help_controller.rb +1 -1
  125. data/lib/wx/doc/gen/file_dialog.rb +64 -56
  126. data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
  127. data/lib/wx/doc/gen/file_picker_ctrl.rb +16 -8
  128. data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
  129. data/lib/wx/doc/gen/find_replace_data.rb +1 -1
  130. data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
  131. data/lib/wx/doc/gen/flex_grid_sizer.rb +12 -6
  132. data/lib/wx/doc/gen/font.rb +39 -29
  133. data/lib/wx/doc/gen/font_data.rb +9 -5
  134. data/lib/wx/doc/gen/font_dialog.rb +3 -3
  135. data/lib/wx/doc/gen/font_picker_ctrl.rb +10 -6
  136. data/lib/wx/doc/gen/font_picker_event.rb +2 -1
  137. data/lib/wx/doc/gen/frame.rb +34 -11
  138. data/lib/wx/doc/gen/fs_file.rb +4 -17
  139. data/lib/wx/doc/gen/gauge.rb +11 -7
  140. data/lib/wx/doc/gen/gcdc.rb +5 -1
  141. data/lib/wx/doc/gen/gdi_common.rb +35 -33
  142. data/lib/wx/doc/gen/gdi_object.rb +1 -1
  143. data/lib/wx/doc/gen/generic_dir_ctrl.rb +13 -7
  144. data/lib/wx/doc/gen/graphics_context.rb +29 -28
  145. data/lib/wx/doc/gen/graphics_object.rb +1 -1
  146. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +2 -2
  147. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +10 -10
  148. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +1 -1
  149. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +1 -1
  150. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
  151. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +1 -1
  152. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +2 -2
  153. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +1 -1
  154. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +1 -1
  155. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
  156. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +13 -10
  157. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
  158. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
  159. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
  160. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
  161. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +1 -1
  162. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +1 -1
  163. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +12 -12
  164. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +1 -1
  165. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +1 -1
  166. data/lib/wx/doc/gen/grid/grid_ctrl.rb +32 -18
  167. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
  168. data/lib/wx/doc/gen/grid/grid_event.rb +20 -3
  169. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +7 -3
  170. data/lib/wx/doc/gen/grid/grid_size_event.rb +9 -3
  171. data/lib/wx/doc/gen/grid/grid_string_table.rb +2 -2
  172. data/lib/wx/doc/gen/grid/grid_table_base.rb +7 -7
  173. data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
  174. data/lib/wx/doc/gen/grid_bag_sizer.rb +5 -5
  175. data/lib/wx/doc/gen/grid_sizer.rb +4 -4
  176. data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
  177. data/lib/wx/doc/gen/help_controller.rb +18 -12
  178. data/lib/wx/doc/gen/html/html_cell.rb +36 -18
  179. data/lib/wx/doc/gen/html/html_cell_event.rb +5 -3
  180. data/lib/wx/doc/gen/html/html_easy_printing.rb +9 -4
  181. data/lib/wx/doc/gen/html/html_help_controller.rb +34 -8
  182. data/lib/wx/doc/gen/html/html_help_data.rb +3 -3
  183. data/lib/wx/doc/gen/html/html_help_frame.rb +6 -6
  184. data/lib/wx/doc/gen/html/html_help_window.rb +12 -8
  185. data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
  186. data/lib/wx/doc/gen/html/html_list_box.rb +15 -7
  187. data/lib/wx/doc/gen/html/html_printout.rb +15 -5
  188. data/lib/wx/doc/gen/html/html_window.rb +19 -8
  189. data/lib/wx/doc/gen/hyperlink_ctrl.rb +152 -0
  190. data/lib/wx/doc/gen/hyperlink_event.rb +44 -0
  191. data/lib/wx/doc/gen/icon.rb +14 -14
  192. data/lib/wx/doc/gen/image.rb +119 -64
  193. data/lib/wx/doc/gen/image_list.rb +10 -6
  194. data/lib/wx/doc/gen/keyboard_state.rb +7 -7
  195. data/lib/wx/doc/gen/list_box.rb +30 -21
  196. data/lib/wx/doc/gen/list_ctrl.rb +169 -78
  197. data/lib/wx/doc/gen/list_event.rb +24 -2
  198. data/lib/wx/doc/gen/listbook.rb +12 -6
  199. data/lib/wx/doc/gen/locale.rb +11 -36
  200. data/lib/wx/doc/gen/log.rb +122 -45
  201. data/lib/wx/doc/gen/mdi_client_window.rb +2 -2
  202. data/lib/wx/doc/gen/mdi_frame.rb +15 -9
  203. data/lib/wx/doc/gen/media_ctrl.rb +7 -4
  204. data/lib/wx/doc/gen/media_event.rb +8 -2
  205. data/lib/wx/doc/gen/memory_dc.rb +23 -27
  206. data/lib/wx/doc/gen/menu.rb +9 -9
  207. data/lib/wx/doc/gen/menu_bar.rb +4 -10
  208. data/lib/wx/doc/gen/menu_item.rb +115 -34
  209. data/lib/wx/doc/gen/message_dialog.rb +48 -30
  210. data/lib/wx/doc/gen/mini_frame.rb +12 -3
  211. data/lib/wx/doc/gen/mouse_state.rb +1 -1
  212. data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
  213. data/lib/wx/doc/gen/non_owned_window.rb +6 -7
  214. data/lib/wx/doc/gen/notebook.rb +20 -15
  215. data/lib/wx/doc/gen/number_entry_dialog.rb +2 -2
  216. data/lib/wx/doc/gen/object.rb +2 -2
  217. data/lib/wx/doc/gen/palette.rb +3 -3
  218. data/lib/wx/doc/gen/panel.rb +4 -3
  219. data/lib/wx/doc/gen/pen.rb +25 -12
  220. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +1 -1
  221. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +3 -3
  222. data/lib/wx/doc/gen/pg/pg_cell.rb +12 -12
  223. data/lib/wx/doc/gen/pg/pg_editor.rb +76 -74
  224. data/lib/wx/doc/gen/pg/pg_multi_button.rb +3 -3
  225. data/lib/wx/doc/gen/pg/pg_properties.rb +221 -138
  226. data/lib/wx/doc/gen/pg/pg_property.rb +103 -54
  227. data/lib/wx/doc/gen/pg/pg_validation_info.rb +1 -1
  228. data/lib/wx/doc/gen/pg/property_grid.rb +19 -19
  229. data/lib/wx/doc/gen/pg/property_grid_event.rb +18 -5
  230. data/lib/wx/doc/gen/pg/property_grid_interface.rb +36 -24
  231. data/lib/wx/doc/gen/pg/property_grid_manager.rb +12 -12
  232. data/lib/wx/doc/gen/pg/property_grid_page.rb +12 -11
  233. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +8 -8
  234. data/lib/wx/doc/gen/picker_base.rb +12 -11
  235. data/lib/wx/doc/gen/platform_info.rb +7 -7
  236. data/lib/wx/doc/gen/popup_window.rb +6 -6
  237. data/lib/wx/doc/gen/progress_dialog.rb +1 -1
  238. data/lib/wx/doc/gen/property_sheet_dialog.rb +19 -17
  239. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
  240. data/lib/wx/doc/gen/prt/preview_frame.rb +4 -1
  241. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
  242. data/lib/wx/doc/gen/prt/print_data.rb +24 -18
  243. data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
  244. data/lib/wx/doc/gen/prt/printer.rb +22 -22
  245. data/lib/wx/doc/gen/query_layout_info_event.rb +2 -1
  246. data/lib/wx/doc/gen/radio_box.rb +12 -18
  247. data/lib/wx/doc/gen/radio_button.rb +8 -6
  248. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +39 -39
  249. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +25 -7
  250. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
  251. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +9 -2
  252. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +5 -5
  253. data/lib/wx/doc/gen/rbn/ribbon_control.rb +4 -4
  254. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +6 -2
  255. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
  256. data/lib/wx/doc/gen/rbn/ribbon_page.rb +5 -5
  257. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +12 -6
  258. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
  259. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +4 -2
  260. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +5 -5
  261. data/lib/wx/doc/gen/region.rb +9 -8
  262. data/lib/wx/doc/gen/region_iterator.rb +2 -2
  263. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +92 -92
  264. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +56 -34
  265. data/lib/wx/doc/gen/rtc/rich_text_event.rb +23 -4
  266. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +6 -6
  267. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +9 -5
  268. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +6 -2
  269. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +12 -12
  270. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
  271. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
  272. data/lib/wx/doc/gen/sash_event.rb +3 -1
  273. data/lib/wx/doc/gen/sash_layout_window.rb +5 -3
  274. data/lib/wx/doc/gen/sash_window.rb +8 -3
  275. data/lib/wx/doc/gen/scroll_bar.rb +29 -8
  276. data/lib/wx/doc/gen/scrolled_canvas.rb +41 -23
  277. data/lib/wx/doc/gen/scrolled_control.rb +41 -23
  278. data/lib/wx/doc/gen/scrolled_window.rb +41 -23
  279. data/lib/wx/doc/gen/search_ctrl.rb +15 -8
  280. data/lib/wx/doc/gen/simplebook.rb +2 -2
  281. data/lib/wx/doc/gen/single_choice_dialog.rb +4 -2
  282. data/lib/wx/doc/gen/sizer.rb +29 -28
  283. data/lib/wx/doc/gen/slider.rb +49 -16
  284. data/lib/wx/doc/gen/spin_button.rb +15 -9
  285. data/lib/wx/doc/gen/spin_ctrl.rb +12 -6
  286. data/lib/wx/doc/gen/spin_event.rb +5 -2
  287. data/lib/wx/doc/gen/splash_screen.rb +16 -12
  288. data/lib/wx/doc/gen/splitter_event.rb +6 -2
  289. data/lib/wx/doc/gen/splitter_window.rb +20 -4
  290. data/lib/wx/doc/gen/static_bitmap.rb +5 -5
  291. data/lib/wx/doc/gen/static_box.rb +36 -32
  292. data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
  293. data/lib/wx/doc/gen/static_line.rb +5 -4
  294. data/lib/wx/doc/gen/static_text.rb +12 -6
  295. data/lib/wx/doc/gen/status_bar.rb +14 -5
  296. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +55 -7
  297. data/lib/wx/doc/gen/stc/styled_text_event.rb +224 -49
  298. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
  299. data/lib/wx/doc/gen/svg_file_dc.rb +3 -3
  300. data/lib/wx/doc/gen/system_options.rb +11 -1
  301. data/lib/wx/doc/gen/system_settings.rb +3 -3
  302. data/lib/wx/doc/gen/task_bar_icon.rb +10 -2
  303. data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
  304. data/lib/wx/doc/gen/text_attr.rb +11 -7
  305. data/lib/wx/doc/gen/text_ctrl.rb +61 -92
  306. data/lib/wx/doc/gen/text_entry.rb +28 -40
  307. data/lib/wx/doc/gen/text_entry_dialog.rb +19 -19
  308. data/lib/wx/doc/gen/text_validator.rb +0 -11
  309. data/lib/wx/doc/gen/time_picker_ctrl.rb +6 -5
  310. data/lib/wx/doc/gen/timer.rb +8 -4
  311. data/lib/wx/doc/gen/timer_event.rb +19 -26
  312. data/lib/wx/doc/gen/tip_provider.rb +1 -1
  313. data/lib/wx/doc/gen/toggle_button.rb +6 -5
  314. data/lib/wx/doc/gen/tool_bar.rb +41 -24
  315. data/lib/wx/doc/gen/tool_tip.rb +2 -2
  316. data/lib/wx/doc/gen/toolbook.rb +6 -3
  317. data/lib/wx/doc/gen/top_level_window.rb +35 -25
  318. data/lib/wx/doc/gen/tree_ctrl.rb +63 -13
  319. data/lib/wx/doc/gen/tree_event.rb +23 -2
  320. data/lib/wx/doc/gen/treebook.rb +6 -2
  321. data/lib/wx/doc/gen/ui_action_simulator.rb +1 -1
  322. data/lib/wx/doc/gen/utils.rb +9 -3
  323. data/lib/wx/doc/gen/v_list_box.rb +2 -2
  324. data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
  325. data/lib/wx/doc/gen/validator.rb +7 -5
  326. data/lib/wx/doc/gen/variant.rb +34 -97
  327. data/lib/wx/doc/gen/window.rb +157 -102
  328. data/lib/wx/doc/gen/window_dc.rb +1 -1
  329. data/lib/wx/doc/gen/with_images.rb +1 -1
  330. data/lib/wx/doc/gen/wizard.rb +17 -4
  331. data/lib/wx/doc/gen/wizard_event.rb +9 -2
  332. data/lib/wx/doc/gen/wizard_page.rb +1 -1
  333. data/lib/wx/doc/gen/wizard_page_simple.rb +7 -7
  334. data/lib/wx/doc/gen/xml_node.rb +3 -3
  335. data/lib/wx/doc/gen/xml_resource.rb +12 -9
  336. data/lib/wx/doc/image.rb +42 -12
  337. data/lib/wx/doc/list_ctrl.rb +32 -0
  338. data/lib/wx/doc/log.rb +28 -0
  339. data/lib/wx/doc/pen.rb +17 -0
  340. data/lib/wx/doc/prt/printer_dc.rb +2 -2
  341. data/lib/wx/doc/radio_box.rb +20 -0
  342. data/lib/wx/doc/scaled_dc.rb +1 -1
  343. data/lib/wx/doc/text_validator.rb +12 -0
  344. data/lib/wx/doc/window.rb +27 -0
  345. data/lib/wx/keyword_defs.rb +77 -76
  346. data/lib/wx/prt/keyword_defs.rb +5 -1
  347. data/lib/wx/version.rb +1 -1
  348. data/lib/wxruby_aui.so +0 -0
  349. data/lib/wxruby_core.so +0 -0
  350. data/lib/wxruby_grid.so +0 -0
  351. data/lib/wxruby_html.so +0 -0
  352. data/lib/wxruby_pg.so +0 -0
  353. data/lib/wxruby_prt.so +0 -0
  354. data/lib/wxruby_rbn.so +0 -0
  355. data/lib/wxruby_rtc.so +0 -0
  356. data/lib/wxruby_stc.so +0 -0
  357. data/rakelib/install.rb +17 -6
  358. data/rakelib/lib/config/linux.rb +4 -2
  359. data/rakelib/lib/config/macosx.rb +120 -1
  360. data/rakelib/lib/config/mingw.rb +6 -1
  361. data/rakelib/lib/config/unixish.rb +26 -11
  362. data/rakelib/lib/config.rb +15 -6
  363. data/samples/aui/aui.rb +432 -363
  364. data/samples/propgrid/propgrid.rb +3 -0
  365. data/samples/sampler/editor.rb +33 -25
  366. data/samples/sampler/sample.rb +2 -2
  367. data/samples/sampler/stc_editor.rb +4 -2
  368. data/tests/lib/item_container_tests.rb +82 -0
  369. data/tests/lib/text_entry_tests.rb +80 -0
  370. data/tests/lib/wxapp_runner.rb +12 -0
  371. data/tests/lib/wxframe_runner.rb +89 -4
  372. data/tests/test_art.rb +9 -0
  373. data/tests/test_box_sizer.rb +161 -0
  374. data/tests/test_ext_controls.rb +28 -0
  375. data/tests/test_font.rb +239 -0
  376. data/tests/test_grid_sizer.rb +148 -0
  377. data/tests/test_intl.rb +5 -1
  378. data/tests/test_list_ctrl.rb +53 -0
  379. data/tests/test_log.rb +163 -0
  380. data/tests/test_std_controls.rb +321 -37
  381. data/tests/test_timer.rb +95 -0
  382. data/tests/test_window.rb +340 -0
  383. metadata +36 -2
@@ -8,14 +8,16 @@ module Wx::PG
8
8
 
9
9
  # Basic property with boolean value.
10
10
  # <b>Supported special attributes:</b>
11
- # - {Wx::PG::PG_BOOL_USE_CHECKBOX}: Set to true to use check box editor instead of combo box.- {Wx::PG::PG_BOOL_USE_DOUBLE_CLICK_CYCLING}: Set to true to cycle combo box instead showing the list.
11
+ #
12
+ # - {Wx::PG::PG_BOOL_USE_CHECKBOX}: Set to true to use check box editor instead of combo box.
13
+ # - {Wx::PG::PG_BOOL_USE_DOUBLE_CLICK_CYCLING}: Set to true to cycle combo box instead showing the list.
12
14
  #
13
15
  class BoolProperty < PGProperty
14
16
 
15
17
  # @param label [String]
16
18
  # @param name [String]
17
19
  # @param value [true,false]
18
- # @return [BoolProperty]
20
+ # @return [Wx::PG::BoolProperty]
19
21
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=false) end
20
22
 
21
23
  # Converts property value into a text representation.
@@ -34,17 +36,20 @@ module Wx::PG
34
36
  # @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.
35
37
  # @param text [String] Text to be translated into variant.
36
38
  # @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::BoolProperty#value_to_string} called with this same flag).
37
- # @return [void]
39
+ # @return []
38
40
  def string_to_value(variant, text, argFlags=0) end
39
41
 
40
42
  # Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
41
43
  # Returns true if resulting {Wx::Variant} value was different.
42
44
  #
43
- # - 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).
45
+ # - 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.
46
+ # - Default implementation simply assign given int to m_value.
47
+ # - 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.
48
+ # - 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).
44
49
  # @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.
45
50
  # @param number [Integer] Integer to be translated into variant.
46
51
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
47
- # @return [void]
52
+ # @return []
48
53
  def int_to_value(variant, number, argFlags=0) end
49
54
 
50
55
  # Reimplement this member function to add special handling for attributes of this property.
@@ -53,7 +58,7 @@ module Wx::PG
53
58
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
54
59
  # @param name [String]
55
60
  # @param value [Wx::Variant]
56
- # @return [void]
61
+ # @return []
57
62
  def do_set_attribute(name, value) end
58
63
 
59
64
  #
@@ -68,18 +73,22 @@ module Wx::PG
68
73
 
69
74
  # Property representing {Wx::DateTime}.
70
75
  # <b>Supported special attributes:</b>
71
- # - {Wx::PG::PG_DATE_FORMAT}: Determines displayed date format.- {Wx::PG::PG_DATE_PICKER_STYLE}: Determines window style used with {Wx::DatePickerCtrl}. Default is {Wx::DP_DEFAULT} | {Wx::DP_SHOWCENTURY}. Using {Wx::DP_ALLOWNONE} enables additional support for unspecified property value.
76
+ #
77
+ # - {Wx::PG::PG_DATE_FORMAT}: Determines displayed date format.
78
+ # - {Wx::PG::PG_DATE_PICKER_STYLE}: Determines window style used with {Wx::DatePickerCtrl}. Default is {Wx::DP_DEFAULT} | {Wx::DP_SHOWCENTURY}. Using {Wx::DP_ALLOWNONE} enables additional support for unspecified property value.
72
79
  #
73
80
  class DateProperty < PGProperty
74
81
 
75
82
  # @param label [String]
76
83
  # @param name [String]
77
84
  # @param value [Time,Date,DateTime]
78
- # @return [DateProperty]
85
+ # @return [Wx::PG::DateProperty]
79
86
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::DateTime.new())) end
80
87
 
81
88
  # This virtual function is called after m_value has been set.
82
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::DateProperty#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::DateProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
89
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::DateProperty#on_set_value} will not be called.
90
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::DateProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
91
+ # - Default implementation does nothing.
83
92
  # @return [void]
84
93
  def on_set_value; end
85
94
 
@@ -99,7 +108,7 @@ module Wx::PG
99
108
  # @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.
100
109
  # @param text [String] Text to be translated into variant.
101
110
  # @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::DateProperty#value_to_string} called with this same flag).
102
- # @return [void]
111
+ # @return []
103
112
  def string_to_value(variant, text, argFlags=0) end
104
113
 
105
114
  # Reimplement this member function to add special handling for attributes of this property.
@@ -108,7 +117,7 @@ module Wx::PG
108
117
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
109
118
  # @param name [String]
110
119
  # @param value [Wx::Variant]
111
- # @return [void]
120
+ # @return []
112
121
  def do_set_attribute(name, value) end
113
122
 
114
123
  # @param format [String]
@@ -175,20 +184,22 @@ module Wx::PG
175
184
  # @overload initialize(label, name, choices, value=0)
176
185
  # @param label [String]
177
186
  # @param name [String]
178
- # @param choices [Wx::PGChoices]
187
+ # @param choices [Wx::PG::PGChoices]
179
188
  # @param value [Integer]
180
- # @return [FlagsProperty]
189
+ # @return [Wx::PG::FlagsProperty]
181
190
  # @overload initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, labels=(Wx::ArrayString.new()), values=(Wx::ArrayInt.new()), value=0)
182
191
  # @param label [String]
183
192
  # @param name [String]
184
193
  # @param labels [Array<String>]
185
194
  # @param values [Array<Integer>]
186
195
  # @param value [Integer]
187
- # @return [FlagsProperty]
196
+ # @return [Wx::PG::FlagsProperty]
188
197
  def initialize(*args) end
189
198
 
190
199
  # This virtual function is called after m_value has been set.
191
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FlagsProperty#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::FlagsProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
200
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FlagsProperty#on_set_value} will not be called.
201
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::FlagsProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
202
+ # - Default implementation does nothing.
192
203
  # @return [void]
193
204
  def on_set_value; end
194
205
 
@@ -208,7 +219,7 @@ module Wx::PG
208
219
  # @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.
209
220
  # @param text [String] Text to be translated into variant.
210
221
  # @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::FlagsProperty#value_to_string} called with this same flag).
211
- # @return [void]
222
+ # @return []
212
223
  def string_to_value(variant, text, argFlags) end
213
224
 
214
225
  # Called after value of a child property has been altered.
@@ -261,7 +272,7 @@ module Wx::PG
261
272
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
262
273
  # @param name [String]
263
274
  # @param value [Wx::Variant]
264
- # @return [void]
275
+ # @return []
265
276
  def do_set_attribute(name, value) end
266
277
 
267
278
  # Returns which choice is currently selected.
@@ -292,6 +303,7 @@ module Wx::PG
292
303
 
293
304
  # Basic property with string value.
294
305
  # <b>Supported special attributes:</b>
306
+ #
295
307
  # - {Wx::PG::PG_STRING_PASSWORD}: set to true in order to enable {Wx::TE_PASSWORD} on the editor.
296
308
  #
297
309
  # - If value "<composed>" is set, then actual value is formed (or composed) from values of child properties.
@@ -301,7 +313,7 @@ module Wx::PG
301
313
  # @param label [String]
302
314
  # @param name [String]
303
315
  # @param value [String]
304
- # @return [StringProperty]
316
+ # @return [Wx::PG::StringProperty]
305
317
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
306
318
 
307
319
  # Converts property value into a text representation.
@@ -320,7 +332,7 @@ module Wx::PG
320
332
  # @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.
321
333
  # @param text [String] Text to be translated into variant.
322
334
  # @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::StringProperty#value_to_string} called with this same flag).
323
- # @return [void]
335
+ # @return []
324
336
  def string_to_value(variant, text, argFlags=0) end
325
337
 
326
338
  # Reimplement this member function to add special handling for attributes of this property.
@@ -329,7 +341,7 @@ module Wx::PG
329
341
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
330
342
  # @param name [String]
331
343
  # @param value [Wx::Variant]
332
- # @return [void]
344
+ # @return []
333
345
  def do_set_attribute(name, value) end
334
346
 
335
347
  # This is updated so "<composed>" special value can be handled.
@@ -353,11 +365,11 @@ module Wx::PG
353
365
 
354
366
  # @overload initialize()
355
367
  # Default constructor is only used in special cases.
356
- # @return [PropertyCategory]
368
+ # @return [Wx::PG::PropertyCategory]
357
369
  # @overload initialize(label, name=Wx::PG::PG_LABEL)
358
370
  # @param label [String]
359
371
  # @param name [String]
360
- # @return [PropertyCategory]
372
+ # @return [Wx::PG::PropertyCategory]
361
373
  def initialize(*args) end
362
374
 
363
375
  # @param wnd [Wx::Window]
@@ -393,13 +405,14 @@ module Wx::PG
393
405
  # This is an abstract class which serves as a base class for the properties having a button triggering an editor dialog, like e.g.
394
406
  # {Wx::PG::LongStringProperty}, {Wx::PG::DirProperty}, {Wx::PG::FileProperty}.
395
407
  # <b>Supported special attributes:</b>
408
+ #
396
409
  # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the editor dialog.
397
410
  #
398
411
  class EditorDialogProperty < PGProperty
399
412
 
400
413
  # Returns instance of a new {Wx::PG::PGEditorDialogAdapter} instance, which is used when user presses the (optional) button next to the editor control;.
401
414
  # Default implementation returns NULL (i.e. no action is generated when button is pressed).
402
- # @return [Wx::PGEditorDialogAdapter]
415
+ # @return [Wx::PG::PGEditorDialogAdapter]
403
416
  def get_editor_dialog; end
404
417
  alias_method :editor_dialog, :get_editor_dialog
405
418
 
@@ -409,7 +422,7 @@ module Wx::PG
409
422
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
410
423
  # @param name [String]
411
424
  # @param value [Wx::Variant]
412
- # @return [void]
425
+ # @return []
413
426
  def do_set_attribute(name, value) end
414
427
 
415
428
  #
@@ -450,23 +463,25 @@ module Wx::PG
450
463
  # Constructor is protected because {Wx::PG::EditorDialogProperty} is only the base class for other property classes.
451
464
  # @param label [String]
452
465
  # @param name [String]
453
- # @return [EditorDialogProperty]
466
+ # @return [Wx::PG::EditorDialogProperty]
454
467
  def initialize(label, name) end
455
468
 
456
469
  # Shows editor dialog.
457
470
  # Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
458
471
  #
459
472
  # Returns true if editor dialog was not cancelled and value was updated.
460
- # @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
473
+ # @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
461
474
  # @param value [Wx::Variant] Value to be edited.
462
- # @return [void]
475
+ # @return []
463
476
  def display_editor_dialog(pg, value) end
464
477
 
465
478
  end # EditorDialogProperty
466
479
 
467
480
  # Property that manages a list of strings.
468
481
  # <b>Supported special attributes:</b>
469
- # - {Wx::PG::PG_ARRAY_DELIMITER}: Sets string delimiter character.- {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the editor dialog (since 3.1.3).
482
+ #
483
+ # - {Wx::PG::PG_ARRAY_DELIMITER}: Sets string delimiter character.
484
+ # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the editor dialog (since 3.1.3).
470
485
  #
471
486
  class ArrayStringProperty < EditorDialogProperty
472
487
 
@@ -489,11 +504,13 @@ module Wx::PG
489
504
  # @param label [String]
490
505
  # @param name [String]
491
506
  # @param value [Array<String>]
492
- # @return [ArrayStringProperty]
507
+ # @return [Wx::PG::ArrayStringProperty]
493
508
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::ArrayString.new())) end
494
509
 
495
510
  # This virtual function is called after m_value has been set.
496
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::ArrayStringProperty#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::ArrayStringProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
511
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::ArrayStringProperty#on_set_value} will not be called.
512
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::ArrayStringProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
513
+ # - Default implementation does nothing.
497
514
  # @return [void]
498
515
  def on_set_value; end
499
516
 
@@ -513,7 +530,7 @@ module Wx::PG
513
530
  # @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.
514
531
  # @param text [String] Text to be translated into variant.
515
532
  # @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::ArrayStringProperty#value_to_string} called with this same flag).
516
- # @return [void]
533
+ # @return []
517
534
  def string_to_value(variant, text, argFlags=0) end
518
535
 
519
536
  # Reimplement this member function to add special handling for attributes of this property.
@@ -522,7 +539,7 @@ module Wx::PG
522
539
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
523
540
  # @param name [String]
524
541
  # @param value [Wx::Variant]
525
- # @return [void]
542
+ # @return []
526
543
  def do_set_attribute(name, value) end
527
544
 
528
545
  # Implement in derived class for custom array-to-string conversion.
@@ -534,11 +551,11 @@ module Wx::PG
534
551
  # Shows string editor dialog to edit the individual item.
535
552
  # Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned if that was the case.
536
553
  # @param parent [Wx::Window]
537
- # @return [String]
554
+ # @return [Array(,String)]
538
555
  def on_custom_string_edit(parent) end
539
556
 
540
557
  # Creates {Wx::PG::PGArrayEditorDialog} for string editing.
541
- # @return [Wx::PGArrayEditorDialog]
558
+ # @return [Wx::PG::PGArrayEditorDialog]
542
559
  def create_editor_dialog; end
543
560
 
544
561
  # Generates string based on the contents of {Wx::ArrayString} src.
@@ -599,15 +616,16 @@ module Wx::PG
599
616
  # Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
600
617
  #
601
618
  # Returns true if editor dialog was not cancelled and value was updated.
602
- # @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
619
+ # @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
603
620
  # @param value [Wx::Variant] Value to be edited.
604
- # @return [void]
621
+ # @return []
605
622
  def display_editor_dialog(pg, value) end
606
623
 
607
624
  end # ArrayStringProperty
608
625
 
609
626
  # Like {Wx::PG::LongStringProperty}, but the button triggers directory selector instead.
610
627
  # <b>Supported special attributes:</b>
628
+ #
611
629
  # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog (since 3.1.3).
612
630
  #
613
631
  class DirProperty < EditorDialogProperty
@@ -615,7 +633,7 @@ module Wx::PG
615
633
  # @param label [String]
616
634
  # @param name [String]
617
635
  # @param value [String]
618
- # @return [DirProperty]
636
+ # @return [Wx::PG::DirProperty]
619
637
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
620
638
 
621
639
  # Converts property value into a text representation.
@@ -634,7 +652,7 @@ module Wx::PG
634
652
  # @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.
635
653
  # @param text [String] Text to be translated into variant.
636
654
  # @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::DirProperty#value_to_string} called with this same flag).
637
- # @return [void]
655
+ # @return []
638
656
  def string_to_value(variant, text, argFlags=0) end
639
657
 
640
658
  # Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
@@ -673,27 +691,35 @@ module Wx::PG
673
691
  # Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
674
692
  #
675
693
  # Returns true if editor dialog was not cancelled and value was updated.
676
- # @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
694
+ # @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
677
695
  # @param value [Wx::Variant] Value to be edited.
678
- # @return [void]
696
+ # @return []
679
697
  def display_editor_dialog(pg, value) end
680
698
 
681
699
  end # DirProperty
682
700
 
683
701
  # Like {Wx::PG::LongStringProperty}, but the button triggers file selector instead.
684
702
  # <b>Supported special attributes:</b>
685
- # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog (since 3.1.3).- {Wx::PG::PG_FILE_DIALOG_STYLE}: Sets a specific {Wx::FileDialog} style for the file dialog (since 2.9.4).- {Wx::PG::PG_FILE_WILDCARD}: Sets wildcard (see {Wx::FileDialog} for format details), "All files..." is default.- {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.
703
+ #
704
+ # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog (since 3.1.3).
705
+ # - {Wx::PG::PG_FILE_DIALOG_STYLE}: Sets a specific {Wx::FileDialog} style for the file dialog (since 2.9.4).
706
+ # - {Wx::PG::PG_FILE_WILDCARD}: Sets wildcard (see {Wx::FileDialog} for format details), "All files..." is default.
707
+ # - {Wx::PG::PG_FILE_SHOW_FULL_PATH}: Default true. When false, only the file name is shown (i.e. drive and directory are hidden).
708
+ # - {Wx::PG::PG_FILE_SHOW_RELATIVE_PATH}: If set, then the filename is shown relative to the given path string.
709
+ # - {Wx::PG::PG_FILE_INITIAL_PATH}: Sets the initial path of where to look for files.
686
710
  #
687
711
  class FileProperty < EditorDialogProperty
688
712
 
689
713
  # @param label [String]
690
714
  # @param name [String]
691
715
  # @param value [String]
692
- # @return [FileProperty]
716
+ # @return [Wx::PG::FileProperty]
693
717
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
694
718
 
695
719
  # This virtual function is called after m_value has been set.
696
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FileProperty#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::FileProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
720
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FileProperty#on_set_value} will not be called.
721
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::FileProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
722
+ # - Default implementation does nothing.
697
723
  # @return [void]
698
724
  def on_set_value; end
699
725
 
@@ -713,7 +739,7 @@ module Wx::PG
713
739
  # @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
740
  # @param text [String] Text to be translated into variant.
715
741
  # @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::FileProperty#value_to_string} called with this same flag).
716
- # @return [void]
742
+ # @return []
717
743
  def string_to_value(variant, text, argFlags=0) end
718
744
 
719
745
  # Reimplement this member function to add special handling for attributes of this property.
@@ -722,7 +748,7 @@ module Wx::PG
722
748
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
723
749
  # @param name [String]
724
750
  # @param value [Wx::Variant]
725
- # @return [void]
751
+ # @return []
726
752
  def do_set_attribute(name, value) end
727
753
 
728
754
  # Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
@@ -817,35 +843,45 @@ module Wx::PG
817
843
  # Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
818
844
  #
819
845
  # Returns true if editor dialog was not cancelled and value was updated.
820
- # @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
846
+ # @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
821
847
  # @param value [Wx::Variant] Value to be edited.
822
- # @return [void]
848
+ # @return []
823
849
  def display_editor_dialog(pg, value) end
824
850
 
825
851
  end # FileProperty
826
852
 
827
853
  # Property representing image file(name).
828
854
  # <b>Supported special attributes:</b>
829
- # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog (since 3.1.3).- {Wx::PG::PG_FILE_DIALOG_STYLE}: Sets a specific {Wx::FileDialog} style for the file dialog.- {Wx::PG::PG_FILE_WILDCARD}: Sets wildcard (see {Wx::FileDialog} for format details), "All
830
- # files..." is default.- {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.
855
+ #
856
+ # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog (since 3.1.3).
857
+ # - {Wx::PG::PG_FILE_DIALOG_STYLE}: Sets a specific {Wx::FileDialog} style for the file dialog.
858
+ # - {Wx::PG::PG_FILE_WILDCARD}: Sets wildcard (see {Wx::FileDialog} for format details), "All
859
+ # files..." is default.
860
+ # - {Wx::PG::PG_FILE_SHOW_FULL_PATH}: Default true. When false, only the file name is shown (i.e. drive and directory are hidden).
861
+ # - {Wx::PG::PG_FILE_SHOW_RELATIVE_PATH}: If set, then the filename is shown relative to the given path string.
862
+ # - {Wx::PG::PG_FILE_INITIAL_PATH}: Sets the initial path of where to look for files.
831
863
  #
832
864
  class ImageFileProperty < FileProperty
833
865
 
834
866
  # @param label [String]
835
867
  # @param name [String]
836
868
  # @param value [String]
837
- # @return [ImageFileProperty]
869
+ # @return [Wx::PG::ImageFileProperty]
838
870
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
839
871
 
840
872
  # This virtual function is called after m_value has been set.
841
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::ImageFileProperty#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::ImageFileProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
873
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::ImageFileProperty#on_set_value} will not be called.
874
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::ImageFileProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
875
+ # - Default implementation does nothing.
842
876
  # @return [void]
843
877
  def on_set_value; end
844
878
 
845
879
  # Returns size of the custom painted image in front of property.
846
880
  # This method must be overridden to return non-default value if OnCustomPaint is to be called.
847
881
  #
848
- # - 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}.
882
+ # - Default behaviour is to return {size(0,0)}, which means no image.
883
+ # - Default image width or height is indicated with dimension -1.
884
+ # - You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
849
885
  # @param item [Integer] Normally -1, but can be an index to the property's list of items.
850
886
  # @return [Wx::Size]
851
887
  def on_measure_image(item) end
@@ -854,11 +890,14 @@ module Wx::PG
854
890
  # If property's {Wx::PG::ImageFileProperty#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::ImageFileProperty#on_measure_image} returned higher height than row height).
855
891
  # NOTE: Following applies when {Wx::PG::ImageFileProperty#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.
856
892
  #
857
- # - 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.
893
+ # - 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.
894
+ # - Due to technical reasons, rect's height will be default even if custom height was reported during measure call.
895
+ # - 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.
896
+ # - 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.
858
897
  # @see Wx::PG::ImageFileProperty#value_to_string
859
898
  # @param dc [Wx::DC] {Wx::DC} to paint on.
860
899
  # @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).
861
- # @param paintdata [Wx::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
900
+ # @param paintdata [Wx::PG::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
862
901
  # ```
863
902
  # struct wxPGPaintData
864
903
  # {
@@ -890,6 +929,7 @@ module Wx::PG
890
929
 
891
930
  # Property representing {Wx::Font}.
892
931
  # <b>Supported special attributes:</b>
932
+ #
893
933
  # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the font dialog (since 3.1.3).
894
934
  #
895
935
  class FontProperty < EditorDialogProperty
@@ -897,11 +937,13 @@ module Wx::PG
897
937
  # @param label [String]
898
938
  # @param name [String]
899
939
  # @param value [Wx::Font,Wx::FontInfo]
900
- # @return [FontProperty]
940
+ # @return [Wx::PG::FontProperty]
901
941
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::Font.new())) end
902
942
 
903
943
  # This virtual function is called after m_value has been set.
904
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FontProperty#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::FontProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
944
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FontProperty#on_set_value} will not be called.
945
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::FontProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
946
+ # - Default implementation does nothing.
905
947
  # @return [void]
906
948
  def on_set_value; end
907
949
 
@@ -971,15 +1013,16 @@ module Wx::PG
971
1013
  # Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
972
1014
  #
973
1015
  # Returns true if editor dialog was not cancelled and value was updated.
974
- # @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
1016
+ # @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
975
1017
  # @param value [Wx::Variant] Value to be edited.
976
- # @return [void]
1018
+ # @return []
977
1019
  def display_editor_dialog(pg, value) end
978
1020
 
979
1021
  end # FontProperty
980
1022
 
981
1023
  # Like {Wx::PG::StringProperty}, but has a button that triggers a small text editor dialog.
982
1024
  # <b>Supported special attributes:</b>
1025
+ #
983
1026
  # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the text editor dialog (since 3.1.3).
984
1027
  #
985
1028
  class LongStringProperty < EditorDialogProperty
@@ -987,7 +1030,7 @@ module Wx::PG
987
1030
  # @param label [String]
988
1031
  # @param name [String]
989
1032
  # @param value [String]
990
- # @return [LongStringProperty]
1033
+ # @return [Wx::PG::LongStringProperty]
991
1034
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
992
1035
 
993
1036
  # Converts property value into a text representation.
@@ -1006,7 +1049,7 @@ module Wx::PG
1006
1049
  # @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.
1007
1050
  # @param text [String] Text to be translated into variant.
1008
1051
  # @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::LongStringProperty#value_to_string} called with this same flag).
1009
- # @return [void]
1052
+ # @return []
1010
1053
  def string_to_value(variant, text, argFlags=0) end
1011
1054
 
1012
1055
  #
@@ -1024,9 +1067,9 @@ module Wx::PG
1024
1067
  # Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
1025
1068
  #
1026
1069
  # Returns true if editor dialog was not cancelled and value was updated.
1027
- # @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
1070
+ # @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
1028
1071
  # @param value [Wx::Variant] Value to be edited.
1029
- # @return [void]
1072
+ # @return []
1030
1073
  def display_editor_dialog(pg, value) end
1031
1074
 
1032
1075
  end # LongStringProperty
@@ -1034,7 +1077,9 @@ module Wx::PG
1034
1077
  # Property that manages a value resulting from {Wx::MultiChoiceDialog}.
1035
1078
  # Value is array of strings. You can get value as array of choice values/indices by calling {Wx::PG::MultiChoiceProperty#get_value_as_array_int}.
1036
1079
  # <b>Supported special attributes:</b>
1037
- # - {Wx::PG::PG_ATTR_MULTICHOICE_USERSTRINGMODE}: If > 0, allow user to manually enter strings that are not in the list of choices. If this value is 1, user strings are preferably placed in front of valid choices. If value is 2, then those strings will placed behind valid choices.- {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the editor dialog (since 3.1.3).
1080
+ #
1081
+ # - {Wx::PG::PG_ATTR_MULTICHOICE_USERSTRINGMODE}: If > 0, allow user to manually enter strings that are not in the list of choices. If this value is 1, user strings are preferably placed in front of valid choices. If value is 2, then those strings will placed behind valid choices.
1082
+ # - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the editor dialog (since 3.1.3).
1038
1083
  #
1039
1084
  class MultiChoiceProperty < EditorDialogProperty
1040
1085
 
@@ -1043,22 +1088,24 @@ module Wx::PG
1043
1088
  # @param name [String]
1044
1089
  # @param strings [Array<String>]
1045
1090
  # @param value [Array<String>]
1046
- # @return [MultiChoiceProperty]
1091
+ # @return [Wx::PG::MultiChoiceProperty]
1047
1092
  # @overload initialize(label, name, choices, value=(Wx::ArrayString.new()))
1048
1093
  # @param label [String]
1049
1094
  # @param name [String]
1050
- # @param choices [Wx::PGChoices]
1095
+ # @param choices [Wx::PG::PGChoices]
1051
1096
  # @param value [Array<String>]
1052
- # @return [MultiChoiceProperty]
1097
+ # @return [Wx::PG::MultiChoiceProperty]
1053
1098
  # @overload initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::ArrayString.new()))
1054
1099
  # @param label [String]
1055
1100
  # @param name [String]
1056
1101
  # @param value [Array<String>]
1057
- # @return [MultiChoiceProperty]
1102
+ # @return [Wx::PG::MultiChoiceProperty]
1058
1103
  def initialize(*args) end
1059
1104
 
1060
1105
  # This virtual function is called after m_value has been set.
1061
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::MultiChoiceProperty#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::MultiChoiceProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
1106
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::MultiChoiceProperty#on_set_value} will not be called.
1107
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::MultiChoiceProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
1108
+ # - Default implementation does nothing.
1062
1109
  # @return [void]
1063
1110
  def on_set_value; end
1064
1111
 
@@ -1078,7 +1125,7 @@ module Wx::PG
1078
1125
  # @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.
1079
1126
  # @param text [String] Text to be translated into variant.
1080
1127
  # @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::MultiChoiceProperty#value_to_string} called with this same flag).
1081
- # @return [void]
1128
+ # @return []
1082
1129
  def string_to_value(variant, text, argFlags=0) end
1083
1130
 
1084
1131
  # @return [Array<Integer>]
@@ -1132,16 +1179,20 @@ module Wx::PG
1132
1179
  # Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
1133
1180
  #
1134
1181
  # Returns true if editor dialog was not cancelled and value was updated.
1135
- # @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
1182
+ # @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
1136
1183
  # @param value [Wx::Variant] Value to be edited.
1137
- # @return [void]
1184
+ # @return []
1138
1185
  def display_editor_dialog(pg, value) end
1139
1186
 
1140
1187
  end # MultiChoiceProperty
1141
1188
 
1142
1189
  # This is an abstract class which serves as a base class for numeric properties, like {Wx::PG::IntProperty}, {Wx::PG::UIntProperty}, {Wx::PG::FloatProperty}.
1143
1190
  # <b>Supported special attributes:</b>
1144
- # - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}: Specify acceptable value range.- {Wx::PG::PG_ATTR_SPINCTRL_STEP}: How much number changes when SpinCtrl editor button is pressed (or up/down on keyboard).- {Wx::PG::PG_ATTR_SPINCTRL_WRAP}: Specify if value modified with SpinCtrl editor wraps at Min/Max.- {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: Specify if value can also by changed with SpinCtrl editor by moving mouse when left mouse button is being pressed.
1191
+ #
1192
+ # - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}: Specify acceptable value range.
1193
+ # - {Wx::PG::PG_ATTR_SPINCTRL_STEP}: How much number changes when SpinCtrl editor button is pressed (or up/down on keyboard).
1194
+ # - {Wx::PG::PG_ATTR_SPINCTRL_WRAP}: Specify if value modified with SpinCtrl editor wraps at Min/Max.
1195
+ # - {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: Specify if value can also by changed with SpinCtrl editor by moving mouse when left mouse button is being pressed.
1145
1196
  #
1146
1197
  class NumericProperty < PGProperty
1147
1198
 
@@ -1151,7 +1202,7 @@ module Wx::PG
1151
1202
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
1152
1203
  # @param name [String]
1153
1204
  # @param value [Wx::Variant]
1154
- # @return [void]
1205
+ # @return []
1155
1206
  def do_set_attribute(name, value) end
1156
1207
 
1157
1208
  # Returns what would be the new value of the property after adding SpinCtrl editor step to the current value.
@@ -1165,7 +1216,7 @@ module Wx::PG
1165
1216
  def add_spin_step_value(stepScale) end
1166
1217
 
1167
1218
  # Return true if value can be changed with SpinCtrl editor by moving the mouse.
1168
- # @return [void]
1219
+ # @return []
1169
1220
  def use_spin_motion; end
1170
1221
 
1171
1222
  #
@@ -1242,7 +1293,7 @@ module Wx::PG
1242
1293
  # Constructor is protected because {Wx::PG::NumericProperty} is only a base class for other numeric property classes.
1243
1294
  # @param label [String]
1244
1295
  # @param name [String]
1245
- # @return [NumericProperty]
1296
+ # @return [Wx::PG::NumericProperty]
1246
1297
  def initialize(label, name) end
1247
1298
 
1248
1299
  end # NumericProperty
@@ -1280,6 +1331,7 @@ module Wx::PG
1280
1331
  # ```
1281
1332
  #
1282
1333
  # <b>Supported special attributes:</b>
1334
+ #
1283
1335
  # - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}, {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: like in {Wx::PG::NumericProperty}.
1284
1336
  #
1285
1337
  class IntProperty < NumericProperty
@@ -1288,12 +1340,12 @@ module Wx::PG
1288
1340
  # @param label [String]
1289
1341
  # @param name [String]
1290
1342
  # @param value [Integer]
1291
- # @return [IntProperty]
1343
+ # @return [Wx::PG::IntProperty]
1292
1344
  # @overload initialize(label, name, value)
1293
1345
  # @param label [String]
1294
1346
  # @param name [String]
1295
1347
  # @param value [Integer]
1296
- # @return [IntProperty]
1348
+ # @return [Wx::PG::IntProperty]
1297
1349
  def initialize(*args) end
1298
1350
 
1299
1351
  # Converts property value into a text representation.
@@ -1312,7 +1364,7 @@ module Wx::PG
1312
1364
  # @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.
1313
1365
  # @param text [String] Text to be translated into variant.
1314
1366
  # @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::IntProperty#value_to_string} called with this same flag).
1315
- # @return [void]
1367
+ # @return []
1316
1368
  def string_to_value(variant, text, argFlags=0) end
1317
1369
 
1318
1370
  # Implement this function in derived class to check the value.
@@ -1320,18 +1372,21 @@ module Wx::PG
1320
1372
  #
1321
1373
  # - Default implementation always returns true.
1322
1374
  # @param value [Wx::Variant]
1323
- # @param validationInfo [Wx::PGValidationInfo]
1324
- # @return [void]
1375
+ # @param validationInfo [Wx::PG::PGValidationInfo]
1376
+ # @return []
1325
1377
  def validate_value(value, validationInfo) end
1326
1378
 
1327
1379
  # Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
1328
1380
  # Returns true if resulting {Wx::Variant} value was different.
1329
1381
  #
1330
- # - 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).
1382
+ # - 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.
1383
+ # - Default implementation simply assign given int to m_value.
1384
+ # - 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.
1385
+ # - 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).
1331
1386
  # @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.
1332
1387
  # @param number [Integer] Integer to be translated into variant.
1333
1388
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
1334
- # @return [void]
1389
+ # @return []
1335
1390
  def int_to_value(variant, number, argFlags=0) end
1336
1391
 
1337
1392
  # Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
@@ -1420,14 +1475,16 @@ module Wx::PG
1420
1475
 
1421
1476
  # Basic property with double-precision floating point value.
1422
1477
  # <b>Supported special attributes:</b>
1423
- # - {Wx::PG::PG_FLOAT_PRECISION}: Sets the (max) precision used when floating point value is rendered as text. The default -1 means infinite precision.- {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}, {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: like in {Wx::PG::NumericProperty}.
1478
+ #
1479
+ # - {Wx::PG::PG_FLOAT_PRECISION}: Sets the (max) precision used when floating point value is rendered as text. The default -1 means infinite precision.
1480
+ # - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}, {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: like in {Wx::PG::NumericProperty}.
1424
1481
  #
1425
1482
  class FloatProperty < NumericProperty
1426
1483
 
1427
1484
  # @param label [String]
1428
1485
  # @param name [String]
1429
1486
  # @param value [Float]
1430
- # @return [FloatProperty]
1487
+ # @return [Wx::PG::FloatProperty]
1431
1488
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=0.0) end
1432
1489
 
1433
1490
  # Converts property value into a text representation.
@@ -1446,7 +1503,7 @@ module Wx::PG
1446
1503
  # @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.
1447
1504
  # @param text [String] Text to be translated into variant.
1448
1505
  # @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::FloatProperty#value_to_string} called with this same flag).
1449
- # @return [void]
1506
+ # @return []
1450
1507
  def string_to_value(variant, text, argFlags=0) end
1451
1508
 
1452
1509
  # Reimplement this member function to add special handling for attributes of this property.
@@ -1455,7 +1512,7 @@ module Wx::PG
1455
1512
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
1456
1513
  # @param name [String]
1457
1514
  # @param value [Wx::Variant]
1458
- # @return [void]
1515
+ # @return []
1459
1516
  def do_set_attribute(name, value) end
1460
1517
 
1461
1518
  # Implement this function in derived class to check the value.
@@ -1463,8 +1520,8 @@ module Wx::PG
1463
1520
  #
1464
1521
  # - Default implementation always returns true.
1465
1522
  # @param value [Wx::Variant]
1466
- # @param validationInfo [Wx::PGValidationInfo]
1467
- # @return [void]
1523
+ # @param validationInfo [Wx::PG::PGValidationInfo]
1524
+ # @return []
1468
1525
  def validate_value(value, validationInfo) end
1469
1526
 
1470
1527
  # Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
@@ -1566,7 +1623,10 @@ module Wx::PG
1566
1623
  # Basic property with unsigned integer value.
1567
1624
  # Seamlessly supports 64-bit integer ({Wx::ULongLong}) on overflow.
1568
1625
  # <b>Supported special attributes:</b>
1569
- # - {Wx::PG::PG_UINT_BASE}: Define 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}: 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_MIN}, {Wx::PG::PG_ATTR_MAX}, {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: like in {Wx::PG::NumericProperty}.
1626
+ #
1627
+ # - {Wx::PG::PG_UINT_BASE}: Define 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.
1628
+ # - {Wx::PG::PG_UINT_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.
1629
+ # - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}, {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: like in {Wx::PG::NumericProperty}.
1570
1630
  #
1571
1631
  # - For example how to use seamless 64-bit integer support, see {Wx::PG::IntProperty} documentation (just use {Wx::ULongLong} instead of {Wx::LongLong}).
1572
1632
  #
@@ -1576,12 +1636,12 @@ module Wx::PG
1576
1636
  # @param label [String]
1577
1637
  # @param name [String]
1578
1638
  # @param value [Integer]
1579
- # @return [UIntProperty]
1639
+ # @return [Wx::PG::UIntProperty]
1580
1640
  # @overload initialize(label, name, value)
1581
1641
  # @param label [String]
1582
1642
  # @param name [String]
1583
1643
  # @param value [Integer]
1584
- # @return [UIntProperty]
1644
+ # @return [Wx::PG::UIntProperty]
1585
1645
  def initialize(*args) end
1586
1646
 
1587
1647
  # Converts property value into a text representation.
@@ -1600,7 +1660,7 @@ module Wx::PG
1600
1660
  # @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.
1601
1661
  # @param text [String] Text to be translated into variant.
1602
1662
  # @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::UIntProperty#value_to_string} called with this same flag).
1603
- # @return [void]
1663
+ # @return []
1604
1664
  def string_to_value(variant, text, argFlags=0) end
1605
1665
 
1606
1666
  # Reimplement this member function to add special handling for attributes of this property.
@@ -1609,7 +1669,7 @@ module Wx::PG
1609
1669
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
1610
1670
  # @param name [String]
1611
1671
  # @param value [Wx::Variant]
1612
- # @return [void]
1672
+ # @return []
1613
1673
  def do_set_attribute(name, value) end
1614
1674
 
1615
1675
  # Implement this function in derived class to check the value.
@@ -1617,8 +1677,8 @@ module Wx::PG
1617
1677
  #
1618
1678
  # - Default implementation always returns true.
1619
1679
  # @param value [Wx::Variant]
1620
- # @param validationInfo [Wx::PGValidationInfo]
1621
- # @return [void]
1680
+ # @param validationInfo [Wx::PG::PGValidationInfo]
1681
+ # @return []
1622
1682
  def validate_value(value, validationInfo) end
1623
1683
 
1624
1684
  # Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
@@ -1645,11 +1705,14 @@ module Wx::PG
1645
1705
  # Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
1646
1706
  # Returns true if resulting {Wx::Variant} value was different.
1647
1707
  #
1648
- # - 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).
1708
+ # - 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.
1709
+ # - Default implementation simply assign given int to m_value.
1710
+ # - 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.
1711
+ # - 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).
1649
1712
  # @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.
1650
1713
  # @param number [Integer] Integer to be translated into variant.
1651
1714
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
1652
- # @return [void]
1715
+ # @return []
1653
1716
  def int_to_value(variant, number, argFlags=0) end
1654
1717
 
1655
1718
  # Returns what would be the new value of the property after adding SpinCtrl editor step to the current value.
@@ -1758,16 +1821,16 @@ module Wx::PG
1758
1821
  # @overload initialize(label, name, choices, value=0)
1759
1822
  # @param label [String]
1760
1823
  # @param name [String]
1761
- # @param choices [Wx::PGChoices]
1824
+ # @param choices [Wx::PG::PGChoices]
1762
1825
  # @param value [Integer]
1763
- # @return [EnumProperty]
1826
+ # @return [Wx::PG::EnumProperty]
1764
1827
  # @overload initialize(label, name, labels, values=(Wx::ArrayInt.new()), value=0)
1765
1828
  # @param label [String]
1766
1829
  # @param name [String]
1767
1830
  # @param labels [Array<String>]
1768
1831
  # @param values [Array<Integer>]
1769
1832
  # @param value [Integer]
1770
- # @return [EnumProperty]
1833
+ # @return [Wx::PG::EnumProperty]
1771
1834
  def initialize(*args) end
1772
1835
 
1773
1836
  # @return [Integer]
@@ -1775,7 +1838,9 @@ module Wx::PG
1775
1838
  alias_method :item_count, :get_item_count
1776
1839
 
1777
1840
  # This virtual function is called after m_value has been set.
1778
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::EnumProperty#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::EnumProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
1841
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::EnumProperty#on_set_value} will not be called.
1842
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::EnumProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
1843
+ # - Default implementation does nothing.
1779
1844
  # @return [void]
1780
1845
  def on_set_value; end
1781
1846
 
@@ -1795,7 +1860,7 @@ module Wx::PG
1795
1860
  # @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.
1796
1861
  # @param text [String] Text to be translated into variant.
1797
1862
  # @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::EnumProperty#value_to_string} called with this same flag).
1798
- # @return [void]
1863
+ # @return []
1799
1864
  def string_to_value(variant, text, argFlags=0) end
1800
1865
 
1801
1866
  # Implement this function in derived class to check the value.
@@ -1803,18 +1868,21 @@ module Wx::PG
1803
1868
  #
1804
1869
  # - Default implementation always returns true.
1805
1870
  # @param value [Wx::Variant]
1806
- # @param validationInfo [Wx::PGValidationInfo]
1807
- # @return [void]
1871
+ # @param validationInfo [Wx::PG::PGValidationInfo]
1872
+ # @return []
1808
1873
  def validate_value(value, validationInfo) end
1809
1874
 
1810
1875
  # Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
1811
1876
  # Returns true if resulting {Wx::Variant} value was different.
1812
1877
  #
1813
- # - 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).
1878
+ # - 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.
1879
+ # - Default implementation simply assign given int to m_value.
1880
+ # - 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.
1881
+ # - 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).
1814
1882
  # @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.
1815
1883
  # @param number [Integer] Integer to be translated into variant.
1816
1884
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
1817
- # @return [void]
1885
+ # @return []
1818
1886
  def int_to_value(variant, number, argFlags=0) end
1819
1887
 
1820
1888
  # @param value [Integer]
@@ -1841,13 +1909,13 @@ module Wx::PG
1841
1909
  # @param value [Wx::Variant]
1842
1910
  # @param text [String]
1843
1911
  # @param argFlags [Integer]
1844
- # @return [void]
1912
+ # @return []
1845
1913
  def value_from_string_(value, text, argFlags) end
1846
1914
 
1847
1915
  # @param value [Wx::Variant]
1848
1916
  # @param intVal [Integer]
1849
1917
  # @param argFlags [Integer]
1850
- # @return [void]
1918
+ # @return []
1851
1919
  def value_from_int_(value, intVal, argFlags) end
1852
1920
 
1853
1921
  #
@@ -1868,13 +1936,15 @@ module Wx::PG
1868
1936
  # @param label [String]
1869
1937
  # @param name [String]
1870
1938
  # @param value [Integer]
1871
- # @return [CursorProperty]
1939
+ # @return [Wx::PG::CursorProperty]
1872
1940
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=0) end
1873
1941
 
1874
1942
  # Returns size of the custom painted image in front of property.
1875
1943
  # This method must be overridden to return non-default value if OnCustomPaint is to be called.
1876
1944
  #
1877
- # - 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}.
1945
+ # - Default behaviour is to return {size(0,0)}, which means no image.
1946
+ # - Default image width or height is indicated with dimension -1.
1947
+ # - You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
1878
1948
  # @param item [Integer] Normally -1, but can be an index to the property's list of items.
1879
1949
  # @return [Wx::Size]
1880
1950
  def on_measure_image(item) end
@@ -1883,11 +1953,14 @@ module Wx::PG
1883
1953
  # If property's {Wx::PG::CursorProperty#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::CursorProperty#on_measure_image} returned higher height than row height).
1884
1954
  # NOTE: Following applies when {Wx::PG::CursorProperty#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.
1885
1955
  #
1886
- # - 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.
1956
+ # - 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.
1957
+ # - Due to technical reasons, rect's height will be default even if custom height was reported during measure call.
1958
+ # - 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.
1959
+ # - 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.
1887
1960
  # @see Wx::PG::CursorProperty#value_to_string
1888
1961
  # @param dc [Wx::DC] {Wx::DC} to paint on.
1889
1962
  # @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).
1890
- # @param paintdata [Wx::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
1963
+ # @param paintdata [Wx::PG::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
1891
1964
  # ```
1892
1965
  # struct wxPGPaintData
1893
1966
  # {
@@ -1928,13 +2001,13 @@ module Wx::PG
1928
2001
  # @param labels [Array<String>]
1929
2002
  # @param values [Array<Integer>]
1930
2003
  # @param value [String]
1931
- # @return [EditEnumProperty]
2004
+ # @return [Wx::PG::EditEnumProperty]
1932
2005
  # @overload initialize(label, name, choices, value=(''))
1933
2006
  # @param label [String]
1934
2007
  # @param name [String]
1935
- # @param choices [Wx::PGChoices]
2008
+ # @param choices [Wx::PG::PGChoices]
1936
2009
  # @param value [String]
1937
- # @return [EditEnumProperty]
2010
+ # @return [Wx::PG::EditEnumProperty]
1938
2011
  def initialize(*args) end
1939
2012
 
1940
2013
  #
@@ -1955,23 +2028,28 @@ module Wx::PG
1955
2028
 
1956
2029
  # @param label [String]
1957
2030
  # @param name [String]
1958
- # @param value [Wx::ColourPropertyValue]
1959
- # @return [SystemColourProperty]
2031
+ # @param value [Wx::PG::ColourPropertyValue]
2032
+ # @return [Wx::PG::SystemColourProperty]
1960
2033
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::ColourPropertyValue.new())) end
1961
2034
 
1962
2035
  # This virtual function is called after m_value has been set.
1963
- # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::SystemColourProperty#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::SystemColourProperty#on_set_value} provides a good opportunity to convert supported values into internal type.- Default implementation does nothing.
2036
+ # - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::SystemColourProperty#on_set_value} will not be called.
2037
+ # - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::SystemColourProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
2038
+ # - Default implementation does nothing.
1964
2039
  # @return [void]
1965
2040
  def on_set_value; end
1966
2041
 
1967
2042
  # Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
1968
2043
  # Returns true if resulting {Wx::Variant} value was different.
1969
2044
  #
1970
- # - 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).
2045
+ # - 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.
2046
+ # - Default implementation simply assign given int to m_value.
2047
+ # - 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.
2048
+ # - 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).
1971
2049
  # @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.
1972
2050
  # @param number [Integer] Integer to be translated into variant.
1973
2051
  # @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
1974
- # @return [void]
2052
+ # @return []
1975
2053
  def int_to_value(variant, number, argFlags=0) end
1976
2054
 
1977
2055
  # Override in derived class to customize how colours are printed as strings.
@@ -2002,7 +2080,7 @@ module Wx::PG
2002
2080
  # @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.
2003
2081
  # @param text [String] Text to be translated into variant.
2004
2082
  # @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::SystemColourProperty#value_to_string} called with this same flag).
2005
- # @return [void]
2083
+ # @return []
2006
2084
  def string_to_value(variant, text, argFlags=0) end
2007
2085
 
2008
2086
  # Events received by editor widgets are processed here.
@@ -2015,10 +2093,10 @@ module Wx::PG
2015
2093
  # return true if any changes in value should be reported.
2016
2094
  #
2017
2095
  # - 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.
2018
- # @param propgrid [Wx::PropertyGrid]
2096
+ # @param propgrid [Wx::PG::PropertyGrid]
2019
2097
  # @param wnd_primary [Wx::Window]
2020
2098
  # @param event [Wx::Event]
2021
- # @return [void]
2099
+ # @return []
2022
2100
  def on_event(propgrid, wnd_primary, event) end
2023
2101
 
2024
2102
  # Reimplement this member function to add special handling for attributes of this property.
@@ -2027,13 +2105,15 @@ module Wx::PG
2027
2105
  # To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
2028
2106
  # @param name [String]
2029
2107
  # @param value [Wx::Variant]
2030
- # @return [void]
2108
+ # @return []
2031
2109
  def do_set_attribute(name, value) end
2032
2110
 
2033
2111
  # Returns size of the custom painted image in front of property.
2034
2112
  # This method must be overridden to return non-default value if OnCustomPaint is to be called.
2035
2113
  #
2036
- # - 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}.
2114
+ # - Default behaviour is to return {size(0,0)}, which means no image.
2115
+ # - Default image width or height is indicated with dimension -1.
2116
+ # - You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
2037
2117
  # @param item [Integer] Normally -1, but can be an index to the property's list of items.
2038
2118
  # @return [Wx::Size]
2039
2119
  def on_measure_image(item) end
@@ -2042,11 +2122,14 @@ module Wx::PG
2042
2122
  # If property's {Wx::PG::SystemColourProperty#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::SystemColourProperty#on_measure_image} returned higher height than row height).
2043
2123
  # NOTE: Following applies when {Wx::PG::SystemColourProperty#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.
2044
2124
  #
2045
- # - 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.
2125
+ # - 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.
2126
+ # - Due to technical reasons, rect's height will be default even if custom height was reported during measure call.
2127
+ # - 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.
2128
+ # - 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.
2046
2129
  # @see Wx::PG::SystemColourProperty#value_to_string
2047
2130
  # @param dc [Wx::DC] {Wx::DC} to paint on.
2048
2131
  # @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).
2049
- # @param paintdata [Wx::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
2132
+ # @param paintdata [Wx::PG::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
2050
2133
  # ```
2051
2134
  # struct wxPGPaintData
2052
2135
  # {
@@ -2067,7 +2150,7 @@ module Wx::PG
2067
2150
  def on_custom_paint(dc, rect, paintdata) end
2068
2151
 
2069
2152
  # @param variant [Wx::Variant]
2070
- # @return [void]
2153
+ # @return []
2071
2154
  def query_colour_from_user(variant) end
2072
2155
 
2073
2156
  # Default is to use {Wx::SystemSettings.get_colour(index)}.
@@ -2078,7 +2161,7 @@ module Wx::PG
2078
2161
  alias_method :colour, :get_colour
2079
2162
 
2080
2163
  # @param pVariant [Wx::Variant]
2081
- # @return [Wx::ColourPropertyValue]
2164
+ # @return [Wx::PG::ColourPropertyValue]
2082
2165
  def get_val(pVariant=nil) end
2083
2166
  alias_method :val, :get_val
2084
2167
 
@@ -2102,7 +2185,7 @@ module Wx::PG
2102
2185
 
2103
2186
  protected
2104
2187
 
2105
- # @param v [Wx::ColourPropertyValue]
2188
+ # @param v [Wx::PG::ColourPropertyValue]
2106
2189
  # @return [Wx::Variant]
2107
2190
  def do_translate_val(v) end
2108
2191
 
@@ -2117,7 +2200,7 @@ module Wx::PG
2117
2200
  # @param label [String]
2118
2201
  # @param name [String]
2119
2202
  # @param value [Wx::Colour,String,Symbol]
2120
- # @return [ColourProperty]
2203
+ # @return [Wx::PG::ColourProperty]
2121
2204
  def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=Wx::WHITE) end
2122
2205
 
2123
2206
  # Converts property value into a text representation.
@@ -2145,7 +2228,7 @@ module Wx::PG
2145
2228
 
2146
2229
  protected
2147
2230
 
2148
- # @param v [Wx::ColourPropertyValue]
2231
+ # @param v [Wx::PG::ColourPropertyValue]
2149
2232
  # @return [Wx::Variant]
2150
2233
  def do_translate_val(v) end
2151
2234
 
@@ -2193,20 +2276,20 @@ module Wx::PG
2193
2276
  def colour_=(val); end
2194
2277
 
2195
2278
  # @overload initialize()
2196
- # @return [ColourPropertyValue]
2279
+ # @return [Wx::PG::ColourPropertyValue]
2197
2280
  # @overload initialize(v)
2198
- # @param v [Wx::ColourPropertyValue]
2199
- # @return [ColourPropertyValue]
2281
+ # @param v [Wx::PG::ColourPropertyValue]
2282
+ # @return [Wx::PG::ColourPropertyValue]
2200
2283
  # @overload initialize(colour)
2201
2284
  # @param colour [Wx::Colour,String,Symbol]
2202
- # @return [ColourPropertyValue]
2285
+ # @return [Wx::PG::ColourPropertyValue]
2203
2286
  # @overload initialize(type)
2204
2287
  # @param type [Integer]
2205
- # @return [ColourPropertyValue]
2288
+ # @return [Wx::PG::ColourPropertyValue]
2206
2289
  # @overload initialize(type, colour)
2207
2290
  # @param type [Integer]
2208
2291
  # @param colour [Wx::Colour,String,Symbol]
2209
- # @return [ColourPropertyValue]
2292
+ # @return [Wx::PG::ColourPropertyValue]
2210
2293
  def initialize(*args) end
2211
2294
 
2212
2295
  # @param type [Integer]