wxruby3 0.9.0.pre.beta.13-x64-mingw-ucrt → 0.9.0.pre.rc.1-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (240) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/README.md +47 -4
  4. data/assets/hello_button.png +0 -0
  5. data/assets/hello_button_clicked.png +0 -0
  6. data/assets/hello_world.png +0 -0
  7. data/assets/repo-social-preview.png +0 -0
  8. data/ext/wxbase32u_gcc_custom.dll +0 -0
  9. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  10. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  11. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  12. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  13. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  14. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  17. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  18. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  19. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  20. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  21. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  22. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  23. data/lib/wx/accessors.rb +8 -2
  24. data/lib/wx/core/art_locator.rb +2 -2
  25. data/lib/wx/core/artprovider.rb +2 -2
  26. data/lib/wx/core/bitmap.rb +6 -5
  27. data/lib/wx/core/bitmap_combobox.rb +34 -0
  28. data/lib/wx/core/controlwithitems.rb +52 -14
  29. data/lib/wx/core/cursor.rb +1 -1
  30. data/lib/wx/core/dc.rb +0 -20
  31. data/lib/wx/core/event_blocker.rb +14 -0
  32. data/lib/wx/core/events/evt_list.rb +12 -0
  33. data/lib/wx/core/evthandler.rb +36 -0
  34. data/lib/wx/core/find_replace_dialog.rb +24 -0
  35. data/lib/wx/core/icon.rb +1 -1
  36. data/lib/wx/core/image.rb +1 -1
  37. data/lib/wx/core/paintdc.rb +8 -0
  38. data/lib/wx/core/text_entry.rb +15 -0
  39. data/lib/wx/core/v_list_box.rb +13 -0
  40. data/lib/wx/core/window.rb +1 -1
  41. data/lib/wx/doc/busy_info.rb +21 -0
  42. data/lib/wx/doc/client_dc.rb +28 -0
  43. data/lib/wx/doc/controlwithitems.rb +11 -0
  44. data/lib/wx/doc/dc.rb +0 -14
  45. data/lib/wx/doc/event_blocker.rb +27 -0
  46. data/lib/wx/doc/evthandler.rb +4 -0
  47. data/lib/wx/doc/extra/02_lifecycles.md +49 -0
  48. data/lib/wx/doc/extra/10_art.md +1 -1
  49. data/lib/wx/doc/extra/11_drawing_and_dc.md +62 -0
  50. data/lib/wx/doc/gen/about_dialog_info.rb +27 -24
  51. data/lib/wx/doc/gen/accelerator.rb +11 -12
  52. data/lib/wx/doc/gen/app.rb +6 -3
  53. data/lib/wx/doc/gen/art_provider.rb +53 -29
  54. data/lib/wx/doc/gen/aui/aui_manager.rb +4 -0
  55. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +1 -1
  56. data/lib/wx/doc/gen/aui/aui_pane_info.rb +2 -0
  57. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +2 -0
  58. data/lib/wx/doc/gen/bitmap.rb +25 -25
  59. data/lib/wx/doc/gen/bitmap_combo_box.rb +157 -0
  60. data/lib/wx/doc/gen/box_sizer.rb +6 -8
  61. data/lib/wx/doc/gen/brush.rb +2 -0
  62. data/lib/wx/doc/gen/busy_info.rb +52 -46
  63. data/lib/wx/doc/gen/caret.rb +0 -4
  64. data/lib/wx/doc/gen/check_list_box.rb +0 -2
  65. data/lib/wx/doc/gen/choice.rb +1 -5
  66. data/lib/wx/doc/gen/client_dc.rb +13 -18
  67. data/lib/wx/doc/gen/clipboard.rb +30 -27
  68. data/lib/wx/doc/gen/collapsible_pane.rb +11 -9
  69. data/lib/wx/doc/gen/colour.rb +6 -3
  70. data/lib/wx/doc/gen/colour_dialog.rb +111 -23
  71. data/lib/wx/doc/gen/combo_box.rb +2 -4
  72. data/lib/wx/doc/gen/control.rb +20 -18
  73. data/lib/wx/doc/gen/core.rb +2 -2
  74. data/lib/wx/doc/gen/cursor.rb +18 -50
  75. data/lib/wx/doc/gen/data_format.rb +0 -2
  76. data/lib/wx/doc/gen/data_object.rb +37 -44
  77. data/lib/wx/doc/gen/dc.rb +16 -24
  78. data/lib/wx/doc/gen/defs.rb +3 -40
  79. data/lib/wx/doc/gen/dialog.rb +21 -17
  80. data/lib/wx/doc/gen/dir_dialog.rb +10 -8
  81. data/lib/wx/doc/gen/event.rb +2 -2
  82. data/lib/wx/doc/gen/event_blocker.rb +49 -0
  83. data/lib/wx/doc/gen/event_filter.rb +95 -0
  84. data/lib/wx/doc/gen/event_list.rb +16 -2
  85. data/lib/wx/doc/gen/events.rb +103 -112
  86. data/lib/wx/doc/gen/evt_handler.rb +28 -52
  87. data/lib/wx/doc/gen/file_dialog.rb +8 -4
  88. data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
  89. data/lib/wx/doc/gen/font.rb +10 -2
  90. data/lib/wx/doc/gen/font_data.rb +2 -0
  91. data/lib/wx/doc/gen/font_dialog.rb +1 -1
  92. data/lib/wx/doc/gen/frame.rb +4 -3
  93. data/lib/wx/doc/gen/fs_file.rb +8 -0
  94. data/lib/wx/doc/gen/gcdc.rb +2 -22
  95. data/lib/wx/doc/gen/gdi_common.rb +18 -2
  96. data/lib/wx/doc/gen/gdi_object.rb +2 -0
  97. data/lib/wx/doc/gen/graphics_context.rb +4 -43
  98. data/lib/wx/doc/gen/graphics_object.rb +2 -0
  99. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +2 -1
  100. data/lib/wx/doc/gen/grid/grid_ctrl.rb +4 -2
  101. data/lib/wx/doc/gen/grid/grid_table_message.rb +2 -0
  102. data/lib/wx/doc/gen/grid_bag_sizer.rb +4 -0
  103. data/lib/wx/doc/gen/help_controller.rb +4 -1
  104. data/lib/wx/doc/gen/html/html_cell.rb +4 -1
  105. data/lib/wx/doc/gen/html/html_help_controller.rb +4 -1
  106. data/lib/wx/doc/gen/html/html_help_data.rb +4 -0
  107. data/lib/wx/doc/gen/html/html_help_window.rb +2 -1
  108. data/lib/wx/doc/gen/html/html_list_box.rb +138 -11
  109. data/lib/wx/doc/gen/html/html_window.rb +9 -3
  110. data/lib/wx/doc/gen/icon.rb +7 -1
  111. data/lib/wx/doc/gen/icon_location.rb +2 -0
  112. data/lib/wx/doc/gen/image.rb +15 -8
  113. data/lib/wx/doc/gen/keyboard_state.rb +6 -0
  114. data/lib/wx/doc/gen/list_box.rb +0 -11
  115. data/lib/wx/doc/gen/list_ctrl.rb +10 -13
  116. data/lib/wx/doc/gen/locale.rb +7 -3
  117. data/lib/wx/doc/gen/log.rb +6 -2
  118. data/lib/wx/doc/gen/mdi_frame.rb +2 -0
  119. data/lib/wx/doc/gen/media_ctrl.rb +2 -0
  120. data/lib/wx/doc/gen/memory_dc.rb +105 -18
  121. data/lib/wx/doc/gen/menu.rb +4 -2
  122. data/lib/wx/doc/gen/menu_bar.rb +0 -2
  123. data/lib/wx/doc/gen/menu_item.rb +9 -3
  124. data/lib/wx/doc/gen/message_dialog.rb +6 -3
  125. data/lib/wx/doc/gen/mirror_dc.rb +2 -8
  126. data/lib/wx/doc/gen/mouse_state.rb +2 -0
  127. data/lib/wx/doc/gen/multi_choice_dialog.rb +0 -2
  128. data/lib/wx/doc/gen/non_owned_window.rb +2 -1
  129. data/lib/wx/doc/gen/notebook.rb +4 -2
  130. data/lib/wx/doc/gen/paint_dc.rb +2 -6
  131. data/lib/wx/doc/gen/palette.rb +3 -3
  132. data/lib/wx/doc/gen/pen.rb +6 -1
  133. data/lib/wx/doc/gen/pg/pg_editor.rb +2 -1
  134. data/lib/wx/doc/gen/pg/pg_multi_button.rb +4 -0
  135. data/lib/wx/doc/gen/pg/pg_properties.rb +30 -3
  136. data/lib/wx/doc/gen/pg/pg_property.rb +30 -4
  137. data/lib/wx/doc/gen/pg/pg_validation_info.rb +2 -0
  138. data/lib/wx/doc/gen/pg/property_grid.rb +5 -2
  139. data/lib/wx/doc/gen/pg/property_grid_interface.rb +6 -2
  140. data/lib/wx/doc/gen/pg/property_grid_manager.rb +2 -0
  141. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +2 -0
  142. data/lib/wx/doc/gen/picker_base.rb +2 -1
  143. data/lib/wx/doc/gen/platform_info.rb +4 -1
  144. data/lib/wx/doc/gen/property_sheet_dialog.rb +2 -0
  145. data/lib/wx/doc/gen/prt/post_script_dc.rb +2 -8
  146. data/lib/wx/doc/gen/prt/print_data.rb +6 -0
  147. data/lib/wx/doc/gen/prt/printer.rb +0 -3
  148. data/lib/wx/doc/gen/prt/printer_dc.rb +2 -6
  149. data/lib/wx/doc/gen/radio_box.rb +2 -2
  150. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +6 -0
  151. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +1 -1
  152. data/lib/wx/doc/gen/region.rb +2 -0
  153. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +6 -0
  154. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +0 -4
  155. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +2 -0
  156. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +2 -1
  157. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -0
  158. data/lib/wx/doc/gen/screen_dc.rb +2 -0
  159. data/lib/wx/doc/gen/scroll_bar.rb +2 -1
  160. data/lib/wx/doc/gen/scrolled_canvas.rb +4 -8
  161. data/lib/wx/doc/gen/scrolled_control.rb +4 -8
  162. data/lib/wx/doc/gen/scrolled_window.rb +4 -8
  163. data/lib/wx/doc/gen/search_ctrl.rb +131 -0
  164. data/lib/wx/doc/gen/single_choice_dialog.rb +0 -2
  165. data/lib/wx/doc/gen/sizer.rb +14 -3
  166. data/lib/wx/doc/gen/splash_screen.rb +2 -0
  167. data/lib/wx/doc/gen/static_box.rb +6 -3
  168. data/lib/wx/doc/gen/static_box_sizer.rb +2 -1
  169. data/lib/wx/doc/gen/status_bar.rb +0 -5
  170. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4 -5
  171. data/lib/wx/doc/gen/svg_file_dc.rb +10 -11
  172. data/lib/wx/doc/gen/text_ctrl.rb +10 -3
  173. data/lib/wx/doc/gen/text_entry.rb +8 -3
  174. data/lib/wx/doc/gen/text_entry_dialog.rb +4 -2
  175. data/lib/wx/doc/gen/timer_event.rb +2 -0
  176. data/lib/wx/doc/gen/tool_bar.rb +8 -4
  177. data/lib/wx/doc/gen/top_level_window.rb +5 -2
  178. data/lib/wx/doc/gen/tree_ctrl.rb +0 -6
  179. data/lib/wx/doc/gen/ui_action_simulator.rb +100 -0
  180. data/lib/wx/doc/gen/utils.rb +1 -1
  181. data/lib/wx/doc/gen/v_list_box.rb +36 -26
  182. data/lib/wx/doc/gen/validator.rb +2 -1
  183. data/lib/wx/doc/gen/variant.rb +10 -0
  184. data/lib/wx/doc/gen/window.rb +38 -17
  185. data/lib/wx/doc/gen/window_dc.rb +2 -0
  186. data/lib/wx/doc/gen/window_disabler.rb +2 -0
  187. data/lib/wx/doc/gen/wizard_page_simple.rb +2 -0
  188. data/lib/wx/doc/gen/xml_node.rb +6 -0
  189. data/lib/wx/doc/gen/xml_resource.rb +4 -1
  190. data/lib/wx/doc/memory_dc.rb +75 -0
  191. data/lib/wx/doc/mirror_dc.rb +16 -0
  192. data/lib/wx/doc/prt/printer_dc.rb +26 -0
  193. data/lib/wx/doc/screen_dc.rb +10 -6
  194. data/lib/wx/doc/svg_file_dc.rb +20 -0
  195. data/lib/wx/doc/v_list_box.rb +9 -0
  196. data/lib/wx/doc/window_disabler.rb +10 -0
  197. data/lib/wx/global_const.rb +24 -18
  198. data/lib/wx/html/keyword_defs.rb +6 -7
  199. data/lib/wx/html/require.rb +1 -0
  200. data/lib/wx/html/simple_html_listbox.rb +105 -0
  201. data/lib/wx/keyword_defs.rb +7 -0
  202. data/lib/wx/version.rb +1 -1
  203. data/lib/wx/wxruby/cmd/test.rb +1 -1
  204. data/lib/wxruby_aui.so +0 -0
  205. data/lib/wxruby_core.so +0 -0
  206. data/lib/wxruby_grid.so +0 -0
  207. data/lib/wxruby_html.so +0 -0
  208. data/lib/wxruby_pg.so +0 -0
  209. data/lib/wxruby_prt.so +0 -0
  210. data/lib/wxruby_rbn.so +0 -0
  211. data/lib/wxruby_rtc.so +0 -0
  212. data/lib/wxruby_stc.so +0 -0
  213. data/rakelib/install.rb +3 -1
  214. data/rakelib/yard/yard/relative_markdown_links.rb +5 -1
  215. data/samples/bigdemo/wxArtProvider.rbw +5 -4
  216. data/samples/controls/controls.rb +2 -2
  217. data/samples/controls/htlbox.rb +411 -0
  218. data/samples/controls/tn_htlbox.png +0 -0
  219. data/samples/drawing/graphics_drawing.rb +1 -2
  220. data/samples/drawing/{svgtest.rb → image_prt.rb} +49 -18
  221. data/samples/drawing/tn_image_prt.png +0 -0
  222. data/samples/propgrid/propgrid.rb +23 -21
  223. data/samples/ribbon/ribbon.rb +47 -46
  224. data/tests/lib/wxapp_runner.rb +3 -3
  225. data/tests/lib/wxframe_runner.rb +59 -0
  226. data/tests/test_app_event_filter.rb +74 -0
  227. data/tests/test_art_provider.rb +52 -0
  228. data/tests/test_clipboard.rb +2 -1
  229. data/tests/test_event_handling.rb +199 -16
  230. data/tests/test_events.rb +4 -11
  231. data/tests/test_gdi_object.rb +161 -0
  232. data/tests/test_intl.rb +11 -14
  233. data/tests/test_item_data.rb +33 -1
  234. data/tests/test_std_controls.rb +147 -0
  235. metadata +38 -8
  236. data/lib/wx/doc/gen/auto_buffered_paint_dc.rb +0 -47
  237. data/lib/wx/doc/gen/buffered_dc.rb +0 -95
  238. data/lib/wx/doc/gen/buffered_paint_dc.rb +0 -55
  239. data/lib/wx/doc/gen/colour_data.rb +0 -96
  240. data/samples/drawing/tn_svgtest.png +0 -0
@@ -212,19 +212,21 @@ module Wx
212
212
  # The label string for the normal menu items (not separators) may include the accelerator which can be used to activate the menu item from keyboard. An accelerator key can be specified using the ampersand <code>&</code> character. In order to embed an ampersand character in the menu item text, the ampersand must be doubled.
213
213
  # Optionally you can specify also an accelerator string appending a tab character <code>\t</code> followed by a valid key combination (e.g. <code>CTRL+V</code>). Its general syntax is any combination of <code>"CTRL"</code>, <code>"RAWCTRL"</code>, <code>"ALT"</code> and <code>"SHIFT"</code> strings (case doesn't matter) separated by either <code>'-'</code> or <code>'+'</code> characters and followed by the accelerator itself. Notice that CTRL corresponds to the "Ctrl" key on most platforms but not under macOS where it is mapped to "Cmd" key on Mac keyboard. Usually this is exactly what you want in portable code but if you really need to use the (rarely used for this purpose) "Ctrl" key even under Mac, you may use RAWCTRL to prevent this mapping. Under the other platforms RAWCTRL is the same as plain CTRL.
214
214
  # The accelerator may be any alphanumeric character, any function key (from F1 to F12), any numpad digit key using KP_ prefix (i.e. from KP_0 to KP_9) or one of the special strings listed below (again, case doesn't matter) corresponding to the specified key code:
215
- # - Del or Delete: WXK_DELETE- Back: WXK_BACK- Ins or Insert: WXK_INSERT- Enter or Return: WXK_RETURN- PgUp or PageUp: WXK_PAGEUP- PgDn or PageDown: WXK_PAGEDOWN- Left: WXK_LEFT- Right: WXK_RIGHT- Up: WXK_UP- Down: WXK_DOWN- Home: WXK_HOME- End: WXK_END- Space: WXK_SPACE- Tab: WXK_TAB- Esc or Escape: WXK_ESCAPE- Cancel: WXK_CANCEL- Clear: WXK_CLEAR- Menu: WXK_MENU- Pause: WXK_PAUSE- Capital: WXK_CAPITAL- Select: WXK_SELECT- Print: WXK_PRINT- Execute: WXK_EXECUTE- Snapshot: WXK_SNAPSHOT- Help: WXK_HELP- Add: WXK_ADD- Separator: WXK_SEPARATOR- Subtract: WXK_SUBTRACT- Decimal: WXK_DECIMAL- Divide: WXK_DIVIDE- Num_lock: WXK_NUMLOCK- Scroll_lock: WXK_SCROLL- KP_Space: WXK_NUMPAD_SPACE- KP_Tab: WXK_NUMPAD_TAB- KP_Enter: WXK_NUMPAD_ENTER- KP_Home: WXK_NUMPAD_HOME- KP_Left: WXK_NUMPAD_LEFT- KP_Up: WXK_NUMPAD_UP- KP_Right: WXK_NUMPAD_RIGHT- KP_Down: WXK_NUMPAD_DOWN- KP_PageUp: WXK_NUMPAD_PAGEUP- KP_PageDown: WXK_NUMPAD_PAGEDOWN- KP_Prior: WXK_NUMPAD_PAGEUP- KP_Next: WXK_NUMPAD_PAGEDOWN- KP_End: WXK_NUMPAD_END- KP_Begin: WXK_NUMPAD_BEGIN- KP_Insert: WXK_NUMPAD_INSERT- KP_Delete: WXK_NUMPAD_DELETE- KP_Equal: WXK_NUMPAD_EQUAL- KP_Multiply: WXK_NUMPAD_MULTIPLY- KP_Add: WXK_NUMPAD_ADD- KP_Separator: WXK_NUMPAD_SEPARATOR- KP_Subtract: WXK_NUMPAD_SUBTRACT- KP_Decimal: WXK_NUMPAD_DECIMAL- KP_Divide: WXK_NUMPAD_DIVIDE- Windows_Left: WXK_WINDOWS_LEFT- Windows_Right: WXK_WINDOWS_RIGHT- Windows_Menu: WXK_WINDOWS_MENU- Command: WXK_COMMAND
215
+ # - Del or Delete: {Wx::K_DELETE}- Back: {Wx::K_BACK}- Ins or Insert: {Wx::K_INSERT}- Enter or Return: {Wx::K_RETURN}- PgUp or PageUp: {Wx::K_PAGEUP}- PgDn or PageDown: {Wx::K_PAGEDOWN}- Left: {Wx::K_LEFT}- Right: {Wx::K_RIGHT}- Up: {Wx::K_UP}- Down: {Wx::K_DOWN}- Home: {Wx::K_HOME}- End: {Wx::K_END}- Space: {Wx::K_SPACE}- Tab: {Wx::K_TAB}- Esc or Escape: {Wx::K_ESCAPE}- Cancel: {Wx::K_CANCEL}- Clear: {Wx::K_CLEAR}- Menu: {Wx::K_MENU}- Pause: {Wx::K_PAUSE}- Capital: {Wx::K_CAPITAL}- Select: {Wx::K_SELECT}- Print: {Wx::K_PRINT}- Execute: {Wx::K_EXECUTE}- Snapshot: {Wx::K_SNAPSHOT}- Help: {Wx::K_HELP}- Add: {Wx::K_ADD}- Separator: {Wx::K_SEPARATOR}- Subtract: {Wx::K_SUBTRACT}- Decimal: {Wx::K_DECIMAL}- Divide: {Wx::K_DIVIDE}- Num_lock: {Wx::K_NUMLOCK}- Scroll_lock: {Wx::K_SCROLL}- KP_Space: {Wx::K_NUMPAD}_SPACE- KP_Tab: {Wx::K_NUMPAD}_TAB- KP_Enter: {Wx::K_NUMPAD}_ENTER- KP_Home: {Wx::K_NUMPAD}_HOME- KP_Left: {Wx::K_NUMPAD}_LEFT- KP_Up: {Wx::K_NUMPAD}_UP- KP_Right: {Wx::K_NUMPAD}_RIGHT- KP_Down: {Wx::K_NUMPAD}_DOWN- KP_PageUp: {Wx::K_NUMPAD}_PAGEUP- KP_PageDown: {Wx::K_NUMPAD}_PAGEDOWN- KP_Prior: {Wx::K_NUMPAD}_PAGEUP- KP_Next: {Wx::K_NUMPAD}_PAGEDOWN- KP_End: {Wx::K_NUMPAD}_END- KP_Begin: {Wx::K_NUMPAD}_BEGIN- KP_Insert: {Wx::K_NUMPAD}_INSERT- KP_Delete: {Wx::K_NUMPAD}_DELETE- KP_Equal: {Wx::K_NUMPAD}_EQUAL- KP_Multiply: {Wx::K_NUMPAD}_MULTIPLY- KP_Add: {Wx::K_NUMPAD}_ADD- KP_Separator: {Wx::K_NUMPAD}_SEPARATOR- KP_Subtract: {Wx::K_NUMPAD}_SUBTRACT- KP_Decimal: {Wx::K_NUMPAD}_DECIMAL- KP_Divide: {Wx::K_NUMPAD}_DIVIDE- Windows_Left: {Wx::K_WINDOWS}_LEFT- Windows_Right: {Wx::K_WINDOWS}_RIGHT- Windows_Menu: {Wx::K_WINDOWS}_MENU- Command: {Wx::K_COMMAND}
216
216
  #
217
217
  # Examples:
218
218
  #
219
+ # ```
219
220
  # m_pMyMenuItem->SetItemLabel("My &item\tCTRL+I");
220
221
  # m_pMyMenuItem2->SetItemLabel("Clean && build\tF7");
221
222
  # m_pMyMenuItem3->SetItemLabel("Simple item");
222
223
  # m_pMyMenuItem4->SetItemLabel("Item with &accelerator");
224
+ # ```
223
225
  #
224
226
  # In {Wx::GTK} using <code>"SHIFT"</code> with non-alphabetic characters currently doesn't work, even in combination with other modifiers, due to GTK+ limitation. E.g. <code>Shift+Ctrl+A</code> works but <code>Shift+Ctrl+1</code> or <code>Shift+/</code> do not, so avoid using accelerators of this form in portable code.
225
227
  #
226
228
  # In {Wx::GTk}, the left/right/up/down arrow keys do not work as accelerator keys for a menu item unless a modifier key is used. Additionally, the following keycodes are not supported as menu accelerator keys:
227
- # - WXK_COMMAND/WXK_CONTROL- WXK_SHIFT- WXK_ALT- WXK_SCROLL- WXK_CAPITAL- WXK_NUMLOCK- WXK_NUMPAD_TAB- WXK_TAB- WXK_WINDOWS_LEFT- WXK_WINDOWS_RIGHT- WXK_ADD- WXK_SEPARATOR- WXK_SUBTRACT- WXK_DECIMAL- WXK_DIVIDE- WXK_SNAPSHOT
229
+ # - {Wx::K_COMMAND}/{Wx::K_CONTROL}- {Wx::K_SHIFT}- {Wx::K_ALT}- {Wx::K_SCROLL}- {Wx::K_CAPITAL}- {Wx::K_NUMLOCK}- {Wx::K_NUMPAD}_TAB- {Wx::K_TAB}- {Wx::K_WINDOWS}_LEFT- {Wx::K_WINDOWS}_RIGHT- {Wx::K_ADD}- {Wx::K_SEPARATOR}- {Wx::K_SUBTRACT}- {Wx::K_DECIMAL}- {Wx::K_DIVIDE}- {Wx::K_SNAPSHOT}
228
230
  # @see Wx::MenuItem#get_item_label
229
231
  # @see Wx::MenuItem#get_item_label_text
230
232
  # @param label [String]
@@ -266,7 +268,7 @@ module Wx
266
268
 
267
269
  # Add an extra accelerator for this menu item.
268
270
  # Additional accelerators are not shown in the item's label, but still will trigger the menu command when pressed.
269
- # They can be useful to let multiple keys be used as accelerators for the same command, e.g. WXK_ADD and WXK_NUMPAD_ADD.
271
+ # They can be useful to let multiple keys be used as accelerators for the same command, e.g. {Wx::K_ADD} and {Wx::K_NUMPAD}_ADD.
270
272
  # Availability: only available for the {Wx::MSW}, {Wx::GTK} ports. {Wx::msw},{Wx::gtk}
271
273
  # @param accel [Wx::AcceleratorEntry]
272
274
  # @return [void]
@@ -283,6 +285,7 @@ module Wx
283
285
  # For the custom (non-stock) menu items, text must be specified and while helpString may be left empty, it's recommended to pass the item description (which is automatically shown by the library in the status bar when the menu item is selected) in this parameter.
284
286
  # Finally note that you can e.g. use a stock menu label without using its stock help string:
285
287
  #
288
+ # ```
286
289
  # // use all stock properties:
287
290
  # helpMenu->Append(wxID_ABOUT);
288
291
  #
@@ -293,6 +296,7 @@ module Wx
293
296
  # wxMenuItem *mymenu = new wxMenuItem(helpMenu, wxID_ABOUT);
294
297
  # mymenu->SetBitmap(wxArtProvider::GetBitmap(wxART_WARNING));
295
298
  # helpMenu->Append(mymenu);
299
+ # ```
296
300
  #
297
301
  # that is, stock properties are set independently one from the other.
298
302
  # @param parentMenu [Wx::Menu] Menu that the menu item belongs to. Can be NULL if the item is going to be added to the menu later.
@@ -318,7 +322,9 @@ module Wx
318
322
  # Strips all accelerator characters and mnemonics from the given text.
319
323
  # For example:
320
324
  #
325
+ # ```
321
326
  # wxMenuItem::GetLabelText("&Hello\tCtrl-h");
327
+ # ```
322
328
  #
323
329
  # will return just <code>"Hello"</code>.
324
330
  # @see Wx::MenuItem#get_item_label_text
@@ -14,11 +14,12 @@ module Wx
14
14
  # This is a convenient function which is usually used instead of using {Wx::MessageDialog} directly. Notice however that some of the features, such as extended text and custom labels for the message box buttons, are not provided by this function but only by {Wx::MessageDialog}.
15
15
  # The return value is one of: {Wx::YES}, {Wx::NO}, {Wx::CANCEL}, {Wx::OK} or {Wx::HELP} (notice that this return value is <b>different</b> from the return value of {Wx::MessageDialog#show_modal}).
16
16
  # For example:
17
- #
17
+ # ```
18
18
  # int answer = wxMessageBox("Quit program?", "Confirm",
19
19
  # wxYES_NO | wxCANCEL, main_frame);
20
20
  # if (answer == wxYES)
21
21
  # main_frame->Close();
22
+ # ```
22
23
  #
23
24
  # message may contain newline characters, in which case the message will be split into separate lines, to cater for large messages.
24
25
  # @param message [String] Message to show in the dialog.
@@ -121,18 +122,20 @@ module Wx
121
122
 
122
123
  # Overrides the default labels of the Yes and No buttons.
123
124
  # The arguments of this function can be either strings or one of the standard identifiers, such as {Wx::StandardID::ID_APPLY} or {Wx::StandardID::ID_OPEN}. Notice that even if the label is specified as an identifier, the return value of the dialog {Wx::MessageDialog#show_modal} method still remains one of {Wx::StandardID::ID_OK}, {Wx::StandardID::ID_CANCEL}, {Wx::StandardID::ID_YES} or {Wx::StandardID::ID_NO} values, i.e. this identifier changes only the label appearance but not the return code generated by the button. It is possible to mix stock identifiers and string labels in the same function call, for example:
124
- #
125
+ # ```
125
126
  # wxMessageDialog dlg(...);
126
127
  # dlg.SetYesNoLabels(wxID_SAVE, _("&Don't save"));
128
+ # ```
127
129
  #
128
130
  # Also notice that this function is not currently available on all platforms (although as of wxWidgets 2.9.0 it is implemented in all major ports), so it may return false to indicate that the labels couldn't be changed. If it returns true, the labels were set successfully.
129
131
  # Typically, if the function was used successfully, the main dialog message may need to be changed, e.g.:
130
- #
132
+ # ```
131
133
  # wxMessageDialog dlg(...);
132
134
  # if ( dlg.SetYesNoLabels(_("&Quit"), _("&Don't quit")) )
133
135
  # dlg.SetMessage(_("What do you want to do?"));
134
136
  # else // buttons have standard "Yes"/"No" values, so rephrase the question
135
137
  # dlg.SetMessage(_("Do you really want to quit?"));
138
+ # ```
136
139
  # @param yes [ButtonLabel]
137
140
  # @param no [ButtonLabel]
138
141
  # @return [true,false]
@@ -13,16 +13,10 @@ module Wx
13
13
  #
14
14
  # Category: Device Contexts
15
15
  #
16
+ #
17
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
16
18
  class MirrorDC < DC
17
19
 
18
- # Creates a (maybe) mirrored DC associated with the real dc.
19
- # Everything drawn on {Wx::MirrorDC} will appear (and maybe mirrored) on dc.
20
- # mirror specifies if we do mirror (if it is true) or not (if it is false).
21
- # @param dc [Wx::DC]
22
- # @param mirror [true,false]
23
- # @return [MirrorDC]
24
- def initialize(dc, mirror) end
25
-
26
20
  end # MirrorDC
27
21
 
28
22
 
@@ -16,6 +16,8 @@ module Wx
16
16
  # @see Wx::MouseEvent
17
17
  #
18
18
  #
19
+ #
20
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
19
21
  class MouseState < KeyboardState
20
22
 
21
23
  # Returns the physical mouse position.
@@ -26,8 +26,6 @@ module Wx
26
26
 
27
27
  # Constructor taking an array of {Wx::String} choices.
28
28
  # Use {Wx::MultiChoiceDialog#show_modal} to show the dialog.
29
- #
30
- # <b>{Wx::Perl} Note:</b> Use an array reference for the choices parameter.
31
29
  # @param parent [Wx::Window] Parent window.
32
30
  # @param message [String] Message to show on the dialog.
33
31
  # @param caption [String] The dialog caption.
@@ -26,12 +26,13 @@ module Wx
26
26
  # Set the window shape to the given path.
27
27
  # Set the window shape to the interior of the given path and also draw the window border along the specified path.
28
28
  # For example, to make a clock-like circular window you could use
29
- #
29
+ # ```
30
30
  # wxSize size = GetSize();
31
31
  # wxGraphicsPath
32
32
  # path = wxGraphicsRenderer::GetDefaultRenderer()->CreatePath();
33
33
  # path.AddCircle(size.x/2, size.y/2, 30);
34
34
  # SetShape(path);
35
+ # ```
35
36
  #
36
37
  # Note that windows with non default shape have a fixed size and can't be resized using {Wx::NonOwnedWindow#set_size}.
37
38
  # As the overload above, this method is not guaranteed to work on all platforms but currently does work in {Wx::MSW}, {Wx::OSX}/Cocoa and {Wx::GTK} (with the appropriate but almost always present X11 extensions) ports.
@@ -85,16 +85,18 @@ module Wx
85
85
  #
86
86
  # On Windows, the default theme paints a background on the notebook's pages. If you wish to suppress this theme, for aesthetic or performance reasons, there are three ways of doing it. You can use {Wx::NB_NOPAGETHEME} to disable themed drawing for a particular notebook, you can call {Wx::SystemOptions.set_option} to disable it for the whole application, or you can disable it for individual pages by using {Wx::Notebook#set_background_colour}.
87
87
  # To disable themed pages globally:
88
- #
88
+ # ```
89
89
  # wxSystemOptions::SetOption("msw.notebook.themed-background", 0);
90
+ # ```
90
91
  #
91
92
  # Set the value to 1 to enable it again. To give a single page a solid background that more or less fits in with the overall theme, use:
92
- #
93
+ # ```
93
94
  # wxColour col = notebook->GetThemeBackgroundColour();
94
95
  # if (col.IsOk())
95
96
  # {
96
97
  # page->SetBackgroundColour(col);
97
98
  # }
99
+ # ```
98
100
  #
99
101
  # On platforms other than Windows, or if the application is not using Windows themes, {Wx::Notebook#get_theme_background_colour} will return an uninitialised colour object, and the above code will therefore work on all platforms.
100
102
  # ===
@@ -20,14 +20,10 @@ module Wx
20
20
  # @see Wx::ScreenDC
21
21
  #
22
22
  #
23
+ #
24
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
23
25
  class PaintDC < ClientDC
24
26
 
25
- # Constructor.
26
- # Pass a pointer to the window on which you wish to paint.
27
- # @param window [Wx::Window]
28
- # @return [PaintDC]
29
- def initialize(window) end
30
-
31
27
  end # PaintDC
32
28
 
33
29
 
@@ -21,6 +21,8 @@ module Wx
21
21
  # @see Wx::Bitmap
22
22
  #
23
23
  #
24
+ #
25
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
24
26
  class Palette < GDIObject
25
27
 
26
28
  # @overload initialize()
@@ -32,7 +34,7 @@ module Wx
32
34
  # @return [Palette]
33
35
  # @overload initialize(n, red, green, blue)
34
36
  # Creates a palette from arrays of size n, one for each red, blue or green component.
35
- # <b>{Wx::Perl} Note:</b> In {Wx::Perl} this method takes as parameters 3 array references (they must be of the same length).
37
+ #
36
38
  # @see Wx::Palette#create
37
39
  # @param n [Integer] The number of indices in the palette.
38
40
  # @param red [unsigned char] An array of red values.
@@ -68,8 +70,6 @@ module Wx
68
70
 
69
71
  # Returns RGB values for a given palette index.
70
72
  # true if the operation was successful.
71
- #
72
- # <b>{Wx::Perl} Note:</b> In {Wx::Perl} this method takes only the pixel parameter and returns a 3-element list (or the empty list upon failure).
73
73
  # @see Wx::Palette#get_pixel
74
74
  # @param pixel [Integer] The palette index.
75
75
  # @param red [unsigned char] Receives the red value.
@@ -193,6 +193,8 @@ module Wx
193
193
  # @see Wx::DC#set_pen
194
194
  #
195
195
  #
196
+ #
197
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
196
198
  class Pen < GDIObject
197
199
 
198
200
  # @overload set_colour(colour)
@@ -387,9 +389,12 @@ module Wx
387
389
 
388
390
  # This class is a helper used for {Wx::Pen} creation using named parameter idiom: it allows specifying various {Wx::Pen} attributes using the chained calls to its clearly named methods instead of passing them in the fixed order to {Wx::Pen} constructors.
389
391
  # For instance, to create a dotted blue pen with the given join style you could do
390
- #
392
+ # ```
391
393
  # wxPen pen(wxPenInfo(*wxBLUE).Style(wxPENSTYLE_DOT).Join(wxJOIN_BEVEL));
394
+ # ```
395
+ #
392
396
  #
397
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
393
398
  class PenInfo < ::Object
394
399
 
395
400
  # @param colour [Wx::Colour,String,Symbol]
@@ -23,8 +23,9 @@ module Wx::PG
23
23
 
24
24
  # Base class for custom {Wx::PG::PropertyGrid} editors.
25
25
  # - Names of built-in property editors are: TextCtrl, Choice, ComboBox, CheckBox, TextCtrlAndButton, and ChoiceAndButton. Additional editors include SpinCtrl and DatePickerCtrl, but using them requires calling {Wx::PG::PropertyGrid#register_additional_editors} prior use.- Pointer to built-in editor is available as {Wx::PGEditor_EditorName} (e.g. {Wx::PG_EDITOR_TEXT_CTRL}).- Before you start using new editor you just created, you need to register it using static function {Wx::PG::PropertyGrid.register_editor_class}, with code like this:
26
- #
26
+ # ```
27
27
  # wxPGEditor* editorPointer = wxPropertyGrid::RegisterEditorClass(new MyEditorClass(), "MyEditor");
28
+ # ```
28
29
  # After that, {Wx::PG::PropertyGrid} will take ownership of the given object, but you should still store editorPointer somewhere, so you can pass it to {Wx::PG::PGProperty#set_editor}, or return it from {Wx::PG::PGEditor#do_get_editor_class}.
29
30
  #
30
31
  # ===
@@ -10,6 +10,7 @@ module Wx::PG
10
10
  # You will need to create a new property editor class, override CreateControls, and have it return {Wx::PG::PGMultiButton} instance in Wx::PGWindowList#set_secondary.
11
11
  # For instance, here we add three buttons to a TextCtrl editor:
12
12
  #
13
+ # ```
13
14
  # #include <wx/propgrid/editors.h>
14
15
  #
15
16
  # class wxSampleMultiButtonEditor : public wxPGTextCtrlEditor
@@ -89,9 +90,11 @@ module Wx::PG
89
90
  # }
90
91
  # return wxPGTextCtrlEditor::OnEvent(propGrid, property, ctrl, event);
91
92
  # }
93
+ # ```
92
94
  #
93
95
  # Further to use this editor, code like this can be used:
94
96
  #
97
+ # ```
95
98
  # // Register editor class - needs only to be called once
96
99
  # wxPGEditor* multiButtonEditor = new wxSampleMultiButtonEditor();
97
100
  # wxPropertyGrid::RegisterEditorClass( multiButtonEditor );
@@ -101,6 +104,7 @@ module Wx::PG
101
104
  #
102
105
  # // Change property to use editor created in the previous code segment
103
106
  # propGrid->SetPropertyEditor( "MultipleButtons", multiButtonEditor );
107
+ # ```
104
108
  #
105
109
  # ===
106
110
  #
@@ -216,6 +216,7 @@ module Wx::PG
216
216
  # Note that this function is usually called at the time that value of this property, or given child property, is still pending for change, and as such, result of {Wx::PG::FlagsProperty#get_value} or m_value should not be relied on.
217
217
  # Sample pseudo-code implementation:
218
218
  #
219
+ # ```
219
220
  # wxVariant MyProperty::ChildChanged( wxVariant& thisValue,
220
221
  # int childIndex,
221
222
  # wxVariant& childValue ) const
@@ -240,6 +241,7 @@ module Wx::PG
240
241
  # // Return altered data
241
242
  # return data;
242
243
  # }
244
+ # ```
243
245
  #
244
246
  # Modified value of the whole property.
245
247
  # @param thisValue [Wx::Variant] Value of this property. Changed value should be returned (in previous versions of {Wx::PG::PropertyGrid} it was only necessary to write value back to this argument).
@@ -639,6 +641,7 @@ module Wx::PG
639
641
  # Setting validator explicitly via SetPropertyValidator will override this.
640
642
  # In most situations, code like this should work well (macros are used to maintain one actual validator instance, so on the second call the function exits within the first macro):
641
643
  #
644
+ # ```
642
645
  # wxValidator* wxMyPropertyClass::DoGetValidator () const
643
646
  # {
644
647
  # WX_PG_DOGETVALIDATOR_ENTRY()
@@ -649,6 +652,7 @@ module Wx::PG
649
652
  #
650
653
  # WX_PG_DOGETVALIDATOR_EXIT(validator)
651
654
  # }
655
+ # ```
652
656
  #
653
657
  # You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
654
658
  # @return [Wx::Validator]
@@ -725,6 +729,7 @@ module Wx::PG
725
729
  # Setting validator explicitly via SetPropertyValidator will override this.
726
730
  # In most situations, code like this should work well (macros are used to maintain one actual validator instance, so on the second call the function exits within the first macro):
727
731
  #
732
+ # ```
728
733
  # wxValidator* wxMyPropertyClass::DoGetValidator () const
729
734
  # {
730
735
  # WX_PG_DOGETVALIDATOR_ENTRY()
@@ -735,6 +740,7 @@ module Wx::PG
735
740
  #
736
741
  # WX_PG_DOGETVALIDATOR_EXIT(validator)
737
742
  # }
743
+ # ```
738
744
  #
739
745
  # You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
740
746
  # @return [Wx::Validator]
@@ -853,7 +859,7 @@ module Wx::PG
853
859
  # @param dc [Wx::DC] {Wx::DC} to paint on.
854
860
  # @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).
855
861
  # @param paintdata [Wx::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
856
- #
862
+ # ```
857
863
  # struct wxPGPaintData
858
864
  # {
859
865
  # // wxPropertyGrid.
@@ -868,6 +874,7 @@ module Wx::PG
868
874
  # // In a measure item call, set this to the height of item at m_choiceItem index
869
875
  # int m_drawnHeight;
870
876
  # };
877
+ # ```
871
878
  # @return [void]
872
879
  def on_custom_paint(dc, rect, paintdata) end
873
880
 
@@ -910,6 +917,7 @@ module Wx::PG
910
917
  # Note that this function is usually called at the time that value of this property, or given child property, is still pending for change, and as such, result of {Wx::PG::FontProperty#get_value} or m_value should not be relied on.
911
918
  # Sample pseudo-code implementation:
912
919
  #
920
+ # ```
913
921
  # wxVariant MyProperty::ChildChanged( wxVariant& thisValue,
914
922
  # int childIndex,
915
923
  # wxVariant& childValue ) const
@@ -934,6 +942,7 @@ module Wx::PG
934
942
  # // Return altered data
935
943
  # return data;
936
944
  # }
945
+ # ```
937
946
  #
938
947
  # Modified value of the whole property.
939
948
  # @param thisValue [Wx::Variant] Value of this property. Changed value should be returned (in previous versions of {Wx::PG::PropertyGrid} it was only necessary to write value back to this argument).
@@ -1243,24 +1252,32 @@ module Wx::PG
1243
1252
  # <b>Example how to use seamless 64-bit integer support</b>
1244
1253
  # Getting value:
1245
1254
  #
1255
+ # ```
1246
1256
  # wxLongLong_t value = pg->GetPropertyValueAsLongLong();
1257
+ # ```
1247
1258
  #
1248
1259
  # or
1249
1260
  #
1261
+ # ```
1250
1262
  # wxLongLong_t value;
1251
1263
  # wxVariant variant = property->GetValue();
1252
1264
  # if ( variant.GetType() == "wxLongLong" )
1253
1265
  # value = wxLongLongFromVariant(variant);
1254
1266
  # else
1255
1267
  # value = variant.GetLong();
1268
+ # ```
1256
1269
  #
1257
1270
  # Setting value:
1258
1271
  #
1272
+ # ```
1259
1273
  # pg->SetPropertyValue(longLongVal);
1274
+ # ```
1260
1275
  #
1261
1276
  # or
1262
1277
  #
1278
+ # ```
1263
1279
  # property->SetValue(WXVARIANT(longLongVal));
1280
+ # ```
1264
1281
  #
1265
1282
  # <b>Supported special attributes:</b>
1266
1283
  # - {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}.
@@ -1321,6 +1338,7 @@ module Wx::PG
1321
1338
  # Setting validator explicitly via SetPropertyValidator will override this.
1322
1339
  # In most situations, code like this should work well (macros are used to maintain one actual validator instance, so on the second call the function exits within the first macro):
1323
1340
  #
1341
+ # ```
1324
1342
  # wxValidator* wxMyPropertyClass::DoGetValidator () const
1325
1343
  # {
1326
1344
  # WX_PG_DOGETVALIDATOR_ENTRY()
@@ -1331,6 +1349,7 @@ module Wx::PG
1331
1349
  #
1332
1350
  # WX_PG_DOGETVALIDATOR_EXIT(validator)
1333
1351
  # }
1352
+ # ```
1334
1353
  #
1335
1354
  # You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
1336
1355
  # @return [Wx::Validator]
@@ -1452,6 +1471,7 @@ module Wx::PG
1452
1471
  # Setting validator explicitly via SetPropertyValidator will override this.
1453
1472
  # In most situations, code like this should work well (macros are used to maintain one actual validator instance, so on the second call the function exits within the first macro):
1454
1473
  #
1474
+ # ```
1455
1475
  # wxValidator* wxMyPropertyClass::DoGetValidator () const
1456
1476
  # {
1457
1477
  # WX_PG_DOGETVALIDATOR_ENTRY()
@@ -1462,6 +1482,7 @@ module Wx::PG
1462
1482
  #
1463
1483
  # WX_PG_DOGETVALIDATOR_EXIT(validator)
1464
1484
  # }
1485
+ # ```
1465
1486
  #
1466
1487
  # You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
1467
1488
  # @return [Wx::Validator]
@@ -1604,6 +1625,7 @@ module Wx::PG
1604
1625
  # Setting validator explicitly via SetPropertyValidator will override this.
1605
1626
  # In most situations, code like this should work well (macros are used to maintain one actual validator instance, so on the second call the function exits within the first macro):
1606
1627
  #
1628
+ # ```
1607
1629
  # wxValidator* wxMyPropertyClass::DoGetValidator () const
1608
1630
  # {
1609
1631
  # WX_PG_DOGETVALIDATOR_ENTRY()
@@ -1614,6 +1636,7 @@ module Wx::PG
1614
1636
  #
1615
1637
  # WX_PG_DOGETVALIDATOR_EXIT(validator)
1616
1638
  # }
1639
+ # ```
1617
1640
  #
1618
1641
  # You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
1619
1642
  # @return [Wx::Validator]
@@ -1865,7 +1888,7 @@ module Wx::PG
1865
1888
  # @param dc [Wx::DC] {Wx::DC} to paint on.
1866
1889
  # @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).
1867
1890
  # @param paintdata [Wx::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
1868
- #
1891
+ # ```
1869
1892
  # struct wxPGPaintData
1870
1893
  # {
1871
1894
  # // wxPropertyGrid.
@@ -1880,6 +1903,7 @@ module Wx::PG
1880
1903
  # // In a measure item call, set this to the height of item at m_choiceItem index
1881
1904
  # int m_drawnHeight;
1882
1905
  # };
1906
+ # ```
1883
1907
  # @return [void]
1884
1908
  def on_custom_paint(dc, rect, paintdata) end
1885
1909
 
@@ -2023,7 +2047,7 @@ module Wx::PG
2023
2047
  # @param dc [Wx::DC] {Wx::DC} to paint on.
2024
2048
  # @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).
2025
2049
  # @param paintdata [Wx::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
2026
- #
2050
+ # ```
2027
2051
  # struct wxPGPaintData
2028
2052
  # {
2029
2053
  # // wxPropertyGrid.
@@ -2038,6 +2062,7 @@ module Wx::PG
2038
2062
  # // In a measure item call, set this to the height of item at m_choiceItem index
2039
2063
  # int m_drawnHeight;
2040
2064
  # };
2065
+ # ```
2041
2066
  # @return [void]
2042
2067
  def on_custom_paint(dc, rect, paintdata) end
2043
2068
 
@@ -2129,6 +2154,8 @@ module Wx::PG
2129
2154
  # Because text, background and other colours tend to differ between platforms, {Wx::PG::SystemColourProperty} must be able to select between system colour and, when necessary, to pick a custom one.
2130
2155
  # {Wx::PG::SystemColourProperty} value makes this possible.
2131
2156
  #
2157
+ #
2158
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
2132
2159
  class ColourPropertyValue < Object
2133
2160
 
2134
2161
  # An integer value relating to the colour, and which exact meaning depends on the property with which it is used.