wxruby3 0.9.0.pre.beta.14-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 (238) 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/core/art_locator.rb +2 -2
  24. data/lib/wx/core/artprovider.rb +2 -2
  25. data/lib/wx/core/bitmap.rb +6 -5
  26. data/lib/wx/core/bitmap_combobox.rb +34 -0
  27. data/lib/wx/core/controlwithitems.rb +52 -14
  28. data/lib/wx/core/cursor.rb +1 -1
  29. data/lib/wx/core/dc.rb +0 -20
  30. data/lib/wx/core/event_blocker.rb +14 -0
  31. data/lib/wx/core/events/evt_list.rb +12 -0
  32. data/lib/wx/core/evthandler.rb +36 -0
  33. data/lib/wx/core/find_replace_dialog.rb +24 -0
  34. data/lib/wx/core/icon.rb +1 -1
  35. data/lib/wx/core/image.rb +1 -1
  36. data/lib/wx/core/paintdc.rb +8 -0
  37. data/lib/wx/core/text_entry.rb +15 -0
  38. data/lib/wx/core/v_list_box.rb +13 -0
  39. data/lib/wx/core/window.rb +1 -1
  40. data/lib/wx/doc/busy_info.rb +21 -0
  41. data/lib/wx/doc/client_dc.rb +28 -0
  42. data/lib/wx/doc/controlwithitems.rb +11 -0
  43. data/lib/wx/doc/dc.rb +0 -14
  44. data/lib/wx/doc/event_blocker.rb +27 -0
  45. data/lib/wx/doc/evthandler.rb +4 -0
  46. data/lib/wx/doc/extra/02_lifecycles.md +49 -0
  47. data/lib/wx/doc/extra/10_art.md +1 -1
  48. data/lib/wx/doc/extra/11_drawing_and_dc.md +62 -0
  49. data/lib/wx/doc/gen/about_dialog_info.rb +27 -24
  50. data/lib/wx/doc/gen/accelerator.rb +11 -12
  51. data/lib/wx/doc/gen/app.rb +6 -3
  52. data/lib/wx/doc/gen/art_provider.rb +53 -29
  53. data/lib/wx/doc/gen/aui/aui_manager.rb +4 -0
  54. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +1 -1
  55. data/lib/wx/doc/gen/aui/aui_pane_info.rb +2 -0
  56. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +2 -0
  57. data/lib/wx/doc/gen/bitmap.rb +25 -25
  58. data/lib/wx/doc/gen/bitmap_combo_box.rb +157 -0
  59. data/lib/wx/doc/gen/box_sizer.rb +6 -8
  60. data/lib/wx/doc/gen/brush.rb +2 -0
  61. data/lib/wx/doc/gen/busy_info.rb +52 -46
  62. data/lib/wx/doc/gen/caret.rb +0 -4
  63. data/lib/wx/doc/gen/check_list_box.rb +0 -2
  64. data/lib/wx/doc/gen/choice.rb +1 -5
  65. data/lib/wx/doc/gen/client_dc.rb +13 -18
  66. data/lib/wx/doc/gen/clipboard.rb +30 -27
  67. data/lib/wx/doc/gen/collapsible_pane.rb +11 -9
  68. data/lib/wx/doc/gen/colour.rb +6 -3
  69. data/lib/wx/doc/gen/colour_dialog.rb +111 -23
  70. data/lib/wx/doc/gen/combo_box.rb +2 -4
  71. data/lib/wx/doc/gen/control.rb +20 -18
  72. data/lib/wx/doc/gen/core.rb +2 -2
  73. data/lib/wx/doc/gen/cursor.rb +18 -50
  74. data/lib/wx/doc/gen/data_format.rb +0 -2
  75. data/lib/wx/doc/gen/data_object.rb +37 -44
  76. data/lib/wx/doc/gen/dc.rb +16 -24
  77. data/lib/wx/doc/gen/defs.rb +3 -40
  78. data/lib/wx/doc/gen/dialog.rb +21 -17
  79. data/lib/wx/doc/gen/dir_dialog.rb +10 -8
  80. data/lib/wx/doc/gen/event.rb +2 -2
  81. data/lib/wx/doc/gen/event_blocker.rb +49 -0
  82. data/lib/wx/doc/gen/event_filter.rb +95 -0
  83. data/lib/wx/doc/gen/event_list.rb +16 -2
  84. data/lib/wx/doc/gen/events.rb +103 -112
  85. data/lib/wx/doc/gen/evt_handler.rb +28 -52
  86. data/lib/wx/doc/gen/file_dialog.rb +8 -4
  87. data/lib/wx/doc/gen/find_replace_dialog.rb +1 -1
  88. data/lib/wx/doc/gen/font.rb +10 -2
  89. data/lib/wx/doc/gen/font_data.rb +2 -0
  90. data/lib/wx/doc/gen/font_dialog.rb +1 -1
  91. data/lib/wx/doc/gen/frame.rb +4 -3
  92. data/lib/wx/doc/gen/fs_file.rb +8 -0
  93. data/lib/wx/doc/gen/gcdc.rb +2 -22
  94. data/lib/wx/doc/gen/gdi_common.rb +18 -2
  95. data/lib/wx/doc/gen/gdi_object.rb +2 -0
  96. data/lib/wx/doc/gen/graphics_context.rb +4 -43
  97. data/lib/wx/doc/gen/graphics_object.rb +2 -0
  98. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +2 -1
  99. data/lib/wx/doc/gen/grid/grid_ctrl.rb +4 -2
  100. data/lib/wx/doc/gen/grid/grid_table_message.rb +2 -0
  101. data/lib/wx/doc/gen/grid_bag_sizer.rb +4 -0
  102. data/lib/wx/doc/gen/help_controller.rb +4 -1
  103. data/lib/wx/doc/gen/html/html_cell.rb +4 -1
  104. data/lib/wx/doc/gen/html/html_help_controller.rb +4 -1
  105. data/lib/wx/doc/gen/html/html_help_data.rb +4 -0
  106. data/lib/wx/doc/gen/html/html_help_window.rb +2 -1
  107. data/lib/wx/doc/gen/html/html_list_box.rb +138 -11
  108. data/lib/wx/doc/gen/html/html_window.rb +9 -3
  109. data/lib/wx/doc/gen/icon.rb +7 -1
  110. data/lib/wx/doc/gen/icon_location.rb +2 -0
  111. data/lib/wx/doc/gen/image.rb +15 -8
  112. data/lib/wx/doc/gen/keyboard_state.rb +6 -0
  113. data/lib/wx/doc/gen/list_box.rb +0 -11
  114. data/lib/wx/doc/gen/list_ctrl.rb +10 -13
  115. data/lib/wx/doc/gen/locale.rb +7 -3
  116. data/lib/wx/doc/gen/log.rb +6 -2
  117. data/lib/wx/doc/gen/mdi_frame.rb +2 -0
  118. data/lib/wx/doc/gen/media_ctrl.rb +2 -0
  119. data/lib/wx/doc/gen/memory_dc.rb +105 -18
  120. data/lib/wx/doc/gen/menu.rb +4 -2
  121. data/lib/wx/doc/gen/menu_bar.rb +0 -2
  122. data/lib/wx/doc/gen/menu_item.rb +9 -3
  123. data/lib/wx/doc/gen/message_dialog.rb +6 -3
  124. data/lib/wx/doc/gen/mirror_dc.rb +2 -8
  125. data/lib/wx/doc/gen/mouse_state.rb +2 -0
  126. data/lib/wx/doc/gen/multi_choice_dialog.rb +0 -2
  127. data/lib/wx/doc/gen/non_owned_window.rb +2 -1
  128. data/lib/wx/doc/gen/notebook.rb +4 -2
  129. data/lib/wx/doc/gen/paint_dc.rb +2 -6
  130. data/lib/wx/doc/gen/palette.rb +3 -3
  131. data/lib/wx/doc/gen/pen.rb +6 -1
  132. data/lib/wx/doc/gen/pg/pg_editor.rb +2 -1
  133. data/lib/wx/doc/gen/pg/pg_multi_button.rb +4 -0
  134. data/lib/wx/doc/gen/pg/pg_properties.rb +30 -3
  135. data/lib/wx/doc/gen/pg/pg_property.rb +30 -4
  136. data/lib/wx/doc/gen/pg/pg_validation_info.rb +2 -0
  137. data/lib/wx/doc/gen/pg/property_grid.rb +5 -2
  138. data/lib/wx/doc/gen/pg/property_grid_interface.rb +6 -2
  139. data/lib/wx/doc/gen/pg/property_grid_manager.rb +2 -0
  140. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +2 -0
  141. data/lib/wx/doc/gen/picker_base.rb +2 -1
  142. data/lib/wx/doc/gen/platform_info.rb +4 -1
  143. data/lib/wx/doc/gen/property_sheet_dialog.rb +2 -0
  144. data/lib/wx/doc/gen/prt/post_script_dc.rb +2 -8
  145. data/lib/wx/doc/gen/prt/print_data.rb +6 -0
  146. data/lib/wx/doc/gen/prt/printer.rb +0 -3
  147. data/lib/wx/doc/gen/prt/printer_dc.rb +2 -6
  148. data/lib/wx/doc/gen/radio_box.rb +2 -2
  149. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +6 -0
  150. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +1 -1
  151. data/lib/wx/doc/gen/region.rb +2 -0
  152. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +6 -0
  153. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +0 -4
  154. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +2 -0
  155. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +2 -1
  156. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -0
  157. data/lib/wx/doc/gen/screen_dc.rb +2 -0
  158. data/lib/wx/doc/gen/scroll_bar.rb +2 -1
  159. data/lib/wx/doc/gen/scrolled_canvas.rb +4 -8
  160. data/lib/wx/doc/gen/scrolled_control.rb +4 -8
  161. data/lib/wx/doc/gen/scrolled_window.rb +4 -8
  162. data/lib/wx/doc/gen/search_ctrl.rb +131 -0
  163. data/lib/wx/doc/gen/single_choice_dialog.rb +0 -2
  164. data/lib/wx/doc/gen/sizer.rb +14 -3
  165. data/lib/wx/doc/gen/splash_screen.rb +2 -0
  166. data/lib/wx/doc/gen/static_box.rb +6 -3
  167. data/lib/wx/doc/gen/static_box_sizer.rb +2 -1
  168. data/lib/wx/doc/gen/status_bar.rb +0 -5
  169. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4 -5
  170. data/lib/wx/doc/gen/svg_file_dc.rb +10 -11
  171. data/lib/wx/doc/gen/text_ctrl.rb +10 -3
  172. data/lib/wx/doc/gen/text_entry.rb +8 -3
  173. data/lib/wx/doc/gen/text_entry_dialog.rb +4 -2
  174. data/lib/wx/doc/gen/timer_event.rb +2 -0
  175. data/lib/wx/doc/gen/tool_bar.rb +8 -4
  176. data/lib/wx/doc/gen/top_level_window.rb +5 -2
  177. data/lib/wx/doc/gen/tree_ctrl.rb +0 -6
  178. data/lib/wx/doc/gen/ui_action_simulator.rb +100 -0
  179. data/lib/wx/doc/gen/utils.rb +1 -1
  180. data/lib/wx/doc/gen/v_list_box.rb +36 -26
  181. data/lib/wx/doc/gen/validator.rb +2 -1
  182. data/lib/wx/doc/gen/variant.rb +10 -0
  183. data/lib/wx/doc/gen/window.rb +38 -17
  184. data/lib/wx/doc/gen/window_dc.rb +2 -0
  185. data/lib/wx/doc/gen/window_disabler.rb +2 -0
  186. data/lib/wx/doc/gen/wizard_page_simple.rb +2 -0
  187. data/lib/wx/doc/gen/xml_node.rb +6 -0
  188. data/lib/wx/doc/gen/xml_resource.rb +4 -1
  189. data/lib/wx/doc/memory_dc.rb +75 -0
  190. data/lib/wx/doc/mirror_dc.rb +16 -0
  191. data/lib/wx/doc/prt/printer_dc.rb +26 -0
  192. data/lib/wx/doc/screen_dc.rb +10 -6
  193. data/lib/wx/doc/svg_file_dc.rb +20 -0
  194. data/lib/wx/doc/v_list_box.rb +9 -0
  195. data/lib/wx/doc/window_disabler.rb +10 -0
  196. data/lib/wx/html/keyword_defs.rb +6 -7
  197. data/lib/wx/html/require.rb +1 -0
  198. data/lib/wx/html/simple_html_listbox.rb +105 -0
  199. data/lib/wx/keyword_defs.rb +7 -0
  200. data/lib/wx/version.rb +1 -1
  201. data/lib/wx/wxruby/cmd/test.rb +1 -1
  202. data/lib/wxruby_aui.so +0 -0
  203. data/lib/wxruby_core.so +0 -0
  204. data/lib/wxruby_grid.so +0 -0
  205. data/lib/wxruby_html.so +0 -0
  206. data/lib/wxruby_pg.so +0 -0
  207. data/lib/wxruby_prt.so +0 -0
  208. data/lib/wxruby_rbn.so +0 -0
  209. data/lib/wxruby_rtc.so +0 -0
  210. data/lib/wxruby_stc.so +0 -0
  211. data/rakelib/install.rb +3 -1
  212. data/rakelib/yard/yard/relative_markdown_links.rb +5 -1
  213. data/samples/bigdemo/wxArtProvider.rbw +5 -4
  214. data/samples/controls/controls.rb +2 -2
  215. data/samples/controls/htlbox.rb +411 -0
  216. data/samples/controls/tn_htlbox.png +0 -0
  217. data/samples/drawing/graphics_drawing.rb +1 -2
  218. data/samples/drawing/{svgtest.rb → image_prt.rb} +49 -18
  219. data/samples/drawing/tn_image_prt.png +0 -0
  220. data/samples/propgrid/propgrid.rb +23 -21
  221. data/samples/ribbon/ribbon.rb +47 -46
  222. data/tests/lib/wxapp_runner.rb +3 -3
  223. data/tests/lib/wxframe_runner.rb +59 -0
  224. data/tests/test_app_event_filter.rb +74 -0
  225. data/tests/test_art_provider.rb +52 -0
  226. data/tests/test_clipboard.rb +2 -1
  227. data/tests/test_event_handling.rb +199 -16
  228. data/tests/test_events.rb +4 -11
  229. data/tests/test_gdi_object.rb +161 -0
  230. data/tests/test_intl.rb +11 -14
  231. data/tests/test_item_data.rb +33 -1
  232. data/tests/test_std_controls.rb +147 -0
  233. metadata +38 -8
  234. data/lib/wx/doc/gen/auto_buffered_paint_dc.rb +0 -47
  235. data/lib/wx/doc/gen/buffered_dc.rb +0 -95
  236. data/lib/wx/doc/gen/buffered_paint_dc.rb +0 -55
  237. data/lib/wx/doc/gen/colour_data.rb +0 -96
  238. data/samples/drawing/tn_svgtest.png +0 -0
@@ -354,14 +354,16 @@ module Wx::PG
354
354
  #
355
355
  # It derives from {Wx::PG::NumericProperty} and displays value as a signed long integer. {Wx::PG::IntProperty} seamlessly supports 64-bit integers (i.e. {Wx::LongLong}) on overflow. To safely convert variant to integer, use code like this:
356
356
  #
357
+ # ```
357
358
  # wxLongLong ll;
358
359
  # ll << property->GetValue();
359
360
  #
360
361
  # // or
361
362
  # wxLongLong ll = propertyGrid->GetPropertyValueAsLong(property);
363
+ # ```
362
364
  #
363
365
  # Getting 64-bit value:
364
- #
366
+ # ```
365
367
  # wxLongLong_t value = pg->GetPropertyValueAsLongLong();
366
368
  #
367
369
  # // or
@@ -372,14 +374,16 @@ module Wx::PG
372
374
  # value = variant.GetLongLong();
373
375
  # else
374
376
  # value = variant.GetLong();
377
+ # ```
375
378
  #
376
379
  # Setting 64-bit value:
377
- #
380
+ # ```
378
381
  # pg->SetPropertyValue(longLongVal);
379
382
  #
380
383
  # // or
381
384
  #
382
385
  # property->SetValue(WXVARIANT(longLongVal));
386
+ # ```
383
387
  #
384
388
  # Supported special attributes:
385
389
  # - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX} to specify acceptable value range.- {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: Sets SpinCtrl editor parameters.
@@ -558,6 +562,7 @@ module Wx::PG
558
562
  #
559
563
  # Represents {Wx::Colour} and a system colour index. {Wx::Choice} is used to edit the value. Drop-down list has color images. Note that value type is {Wx::PG::ColourPropertyValue} instead of {Wx::Colour} (which {Wx::PG::ColourProperty} uses).
560
564
  #
565
+ # ```
561
566
  # class wxColourPropertyValue : public wxObject
562
567
  # {
563
568
  # public:
@@ -572,9 +577,11 @@ module Wx::PG
572
577
  # // Resulting colour. Should be correct regardless of type.
573
578
  # wxColour m_colour;
574
579
  # };
580
+ # ```
575
581
  #
576
582
  # In {Wx::PG::SystemColourProperty}, and its derived class {Wx::PG::ColourProperty}, there are various sub-classing features. To set a basic list of colour names, call {Wx::PG::PGProperty#set_choices}.
577
583
  #
584
+ # ```
578
585
  # // Override in derived class to customize how colours are translated
579
586
  # // to strings.
580
587
  # virtual wxString ColourToString( const wxColour& col, int index ) const;
@@ -589,6 +596,7 @@ module Wx::PG
589
596
  # // Returns colour for given choice.
590
597
  # // Default function returns wxSystemSettings::GetColour(index).
591
598
  # virtual wxColour GetColour( int index ) const;
599
+ # ```
592
600
  #
593
601
  # == wxCursorProperty
594
602
  #
@@ -599,6 +607,7 @@ module Wx::PG
599
607
  # New properties can be created by subclassing {Wx::PG::PGProperty} or one of the provided property classes, and (re)implementing necessary member functions. Below, each virtual member function has ample documentation about its purpose and any odd details which to keep in mind.
600
608
  # Here is a very simple 'template' code:
601
609
  #
610
+ # ```
602
611
  # class MyProperty : public wxPGProperty
603
612
  # {
604
613
  # public:
@@ -641,10 +650,12 @@ module Wx::PG
641
650
  #
642
651
  # protected:
643
652
  # };
653
+ # ```
644
654
  #
645
655
  # Since {Wx::PG::PGProperty} derives from {Wx::Object}, you can use standard {Wx::DECLARE_DYNAMIC_CLASS} and {Wx::IMPLEMENT_DYNAMIC_CLASS} macros. From the above example they were omitted for sake of simplicity, and besides, they are only really needed if you need to use {Wx::RTTI} with your property class.
646
656
  # You can change the 'value type' of a property by simply assigning different type of variant with SetValue. <b>It is mandatory to implement {Wx::VariantData} class for all data types used as property values.</b> You can use macros declared in {Wx::PG::PropertyGrid} headers. For instance:
647
657
  #
658
+ # ```
648
659
  # // In header file:
649
660
  # // (If you need to have export declaration, use version of macros
650
661
  # // with _EXPORTED postfix)
@@ -655,6 +666,7 @@ module Wx::PG
655
666
  #
656
667
  # // Or, if you don't have valid == operator:
657
668
  # WX_PG_IMPLEMENT_VARIANT_DATA_DUMMY_EQ(MyDataClass)
669
+ # ```
658
670
  #
659
671
  # ===
660
672
  #
@@ -772,6 +784,7 @@ module Wx::PG
772
784
  # Note that this function is usually called at the time that value of this property, or given child property, is still pending for change, and as such, result of {Wx::PG::PGProperty#get_value} or m_value should not be relied on.
773
785
  # Sample pseudo-code implementation:
774
786
  #
787
+ # ```
775
788
  # wxVariant MyProperty::ChildChanged( wxVariant& thisValue,
776
789
  # int childIndex,
777
790
  # wxVariant& childValue ) const
@@ -796,6 +809,7 @@ module Wx::PG
796
809
  # // Return altered data
797
810
  # return data;
798
811
  # }
812
+ # ```
799
813
  #
800
814
  # Modified value of the whole property.
801
815
  # @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).
@@ -812,6 +826,7 @@ module Wx::PG
812
826
  # Setting validator explicitly via SetPropertyValidator will override this.
813
827
  # In most situations, code like this should work well (macros are used to maintain one actual validator instance, so on the second call the function exits within the first macro):
814
828
  #
829
+ # ```
815
830
  # wxValidator* wxMyPropertyClass::DoGetValidator () const
816
831
  # {
817
832
  # WX_PG_DOGETVALIDATOR_ENTRY()
@@ -822,6 +837,7 @@ module Wx::PG
822
837
  #
823
838
  # WX_PG_DOGETVALIDATOR_EXIT(validator)
824
839
  # }
840
+ # ```
825
841
  #
826
842
  # You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
827
843
  # @return [Wx::Validator]
@@ -836,7 +852,7 @@ module Wx::PG
836
852
  # @param dc [Wx::DC] {Wx::DC} to paint on.
837
853
  # @param rect [Wx::Rect] Box reserved for custom graphics. Includes surrounding rectangle, if any. If x+width is < 0, then this is a measure item call (see above).
838
854
  # @param paintdata [Wx::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
839
- #
855
+ # ```
840
856
  # struct wxPGPaintData
841
857
  # {
842
858
  # // wxPropertyGrid.
@@ -851,6 +867,7 @@ module Wx::PG
851
867
  # // In a measure item call, set this to the height of item at m_choiceItem index
852
868
  # int m_drawnHeight;
853
869
  # };
870
+ # ```
854
871
  # @return [void]
855
872
  def on_custom_paint(dc, rect, paintdata) end
856
873
 
@@ -936,8 +953,9 @@ module Wx::PG
936
953
  # Sets or clears given property flag.
937
954
  # Mainly for internal use.
938
955
  # Setting a property flag never has any side-effect, and is intended almost exclusively for internal use. So, for example, if you want to disable a property, call
939
- #
956
+ # ```
940
957
  # Enable(false)
958
+ # ```
941
959
  # instead of setting {Wx::PG::PGPropertyFlags::PG_PROP_DISABLED} flag.
942
960
  # @see Wx::PG::PGProperty#has_flag
943
961
  # @see GetFlags()
@@ -1409,7 +1427,9 @@ module Wx::PG
1409
1427
  # Set default value of a property.
1410
1428
  # Synonymous to
1411
1429
  #
1430
+ # ```
1412
1431
  # SetAttribute("DefaultValue", value);
1432
+ # ```
1413
1433
  # @param value [Wx::Variant]
1414
1434
  # @return [void]
1415
1435
  def set_default_value(value) end
@@ -1594,6 +1614,7 @@ module Wx::PG
1594
1614
  # Constructor.
1595
1615
  # It is protected because {Wx::PG::PGProperty} is only a base class for other property classes. Non-abstract property classes should have constructor of this style:
1596
1616
  #
1617
+ # ```
1597
1618
  # MyProperty( const wxString& label, const wxString& name, const T& value )
1598
1619
  # : wxPGProperty(label, name)
1599
1620
  # {
@@ -1609,6 +1630,7 @@ module Wx::PG
1609
1630
  # // wxPG_LABEL,
1610
1631
  # // value.GetSubProp1()));
1611
1632
  # }
1633
+ # ```
1612
1634
  # @param label [String]
1613
1635
  # @param name [String]
1614
1636
  # @return [PGProperty]
@@ -1625,6 +1647,8 @@ module Wx::PG
1625
1647
  #
1626
1648
  # Category: {Wx::PG::PropertyGrid}
1627
1649
  #
1650
+ #
1651
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
1628
1652
  class PGChoices < ::Object
1629
1653
 
1630
1654
  # @overload initialize()
@@ -1796,6 +1820,8 @@ module Wx::PG
1796
1820
  # Contains information related to property's OnCustomPaint.
1797
1821
  #
1798
1822
  #
1823
+ #
1824
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
1799
1825
  class PGPaintData < ::Object
1800
1826
 
1801
1827
  # {Wx::PG::PropertyGrid}
@@ -291,6 +291,8 @@ module Wx::PG
291
291
  # Used to convey validation information to and from functions that actually perform validation.
292
292
  # Mostly used in custom property classes.
293
293
  #
294
+ #
295
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
294
296
  class PGValidationInfo < ::Object
295
297
 
296
298
  #
@@ -125,9 +125,11 @@ module Wx::PG
125
125
  # Adds given key combination to trigger given action.
126
126
  # Here is a sample code to make Enter key press move focus to the next property.
127
127
  #
128
+ # ```
128
129
  # propGrid->AddActionTrigger(wxPG_ACTION_NEXT_PROPERTY,
129
130
  # WXK_RETURN);
130
131
  # propGrid->DedicateKey(WXK_RETURN);
132
+ # ```
131
133
  # @param action [Integer] Which action to trigger. See wxPropertyGrid Action Identifiers.
132
134
  # @param keycode [Integer] Which keycode triggers the action.
133
135
  # @param modifiers [Integer] Which key event modifiers, in addition to keycode, are needed to trigger the action.
@@ -411,8 +413,9 @@ module Wx::PG
411
413
 
412
414
  # Makes given column editable by user.
413
415
  # Note that column must not be equal to 1, as the second column is always editable and can be made read-only only on cell-by-cell basis using
414
- #
415
- # wxPGProperty::ChangeFlag(wxPG_PROP_READONLY, true)
416
+ # ```
417
+ # wxPGProperty::ChangeFlag(wxPG_PROP_READONLY, true)
418
+ # ```
416
419
  # @see Wx::PG::PropertyGrid#begin_label_edit
417
420
  # @see Wx::PG::PropertyGrid#end_label_edit
418
421
  # @param column [Integer] The index of the column to make editable.
@@ -419,6 +419,7 @@ module Wx::PG
419
419
  #
420
420
  # Example of use:
421
421
  #
422
+ # ```
422
423
  # // append category
423
424
  # wxPGProperty* my_cat_id = propertygrid->Append( new wxPropertyCategory("My Category") );
424
425
  #
@@ -429,6 +430,7 @@ module Wx::PG
429
430
  #
430
431
  # // insert before to first item - using first variant
431
432
  # wxPGProperty* my_item_id_2 = propertygrid->Insert( my_item_id, new wxStringProperty("My String 2") );
433
+ # ```
432
434
  # @param priorThis [String,Wx::PG::PGProperty] New property is inserted just prior to this. Available only in the first variant. There are two versions of this function to allow this parameter to be either an id or name to a property.
433
435
  # @param newProperty [Wx::PGProperty] Pointer to the inserted property. {Wx::PG::PropertyGrid} will take ownership of this object.
434
436
  # @return [Wx::PG::PGProperty]
@@ -502,8 +504,10 @@ module Wx::PG
502
504
  # Replaces property with id with newly created one.
503
505
  # For example, this code replaces existing property named "Flags" with one that will have different set of items:
504
506
  #
507
+ # ```
505
508
  # pg->ReplaceProperty("Flags",
506
509
  # wxFlagsProperty("Flags", wxPG_LABEL, newItems))
510
+ # ```
507
511
  # @see Wx::PG::PropertyGridInterface#insert
508
512
  # @param id [String,Wx::PG::PGProperty]
509
513
  # @param property [Wx::PGProperty]
@@ -519,12 +523,12 @@ module Wx::PG
519
523
  # @param src [String] String generated by SaveEditableState.
520
524
  # @param restoreStates [Integer] Which parts to restore from source string. See list of editable state flags.
521
525
  # @return [true,false]
522
- def restore_editable_state(src, restoreStates=Wx::PG::PropertyGridInterface::EditableStateFlags::AllStates) end
526
+ def restore_editable_state(src, restoreStates=Wx::PG::PropertyGridPage::EditableStateFlags::AllStates) end
523
527
 
524
528
  # Used to acquire user-editable state (selected property, expanded properties, scrolled position, splitter positions).
525
529
  # @param includedStates [Integer] Which parts of state to include. See list of editable state flags.
526
530
  # @return [String]
527
- def save_editable_state(includedStates=Wx::PG::PropertyGridInterface::EditableStateFlags::AllStates) end
531
+ def save_editable_state(includedStates=Wx::PG::PropertyGridPage::EditableStateFlags::AllStates) end
528
532
 
529
533
  # Set proportion of an auto-stretchable column.
530
534
  # {Wx::PG::PG_WINDOW_STYLES::PG_SPLITTER_AUTO_CENTER} window style needs to be used to indicate that columns are auto- resizable.
@@ -14,6 +14,7 @@ module Wx::PG
14
14
  # {Wx::PG::PropertyGridManager} constructor has exact same format as {Wx::PG::PropertyGrid} constructor, and basically accepts same extra window style flags (albeit also has some extra ones).
15
15
  # Here's some example code for creating and populating a {Wx::PG::PropertyGridManager}:
16
16
  #
17
+ # ```
17
18
  # wxPropertyGridManager* pgMan = new wxPropertyGridManager(this, PGID,
18
19
  # wxDefaultPosition, wxDefaultSize,
19
20
  # // These and other similar styles are automatically
@@ -47,6 +48,7 @@ module Wx::PG
47
48
  #
48
49
  # // Display a header above the grid
49
50
  # pgMan->ShowHeader();
51
+ # ```
50
52
  #
51
53
  # == Window Styles
52
54
  #
@@ -122,6 +122,8 @@ module Wx::PG
122
122
  #
123
123
  # A return value from {Wx::PG::PropertyGrid#hit_test}, contains all you need to know about an arbitrary location on the grid.
124
124
  #
125
+ #
126
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
125
127
  class PropertyGridHitTestResult < ::Object
126
128
 
127
129
  # @return [PropertyGridHitTestResult]
@@ -51,7 +51,7 @@ module Wx
51
51
 
52
52
  # Returns the native implementation of the real picker control.
53
53
  # The returned control in the generic implementation of {Wx::FilePickerCtrl}, {Wx::DirPickerCtrl}, {Wx::FontPickerCtrl} and {Wx::ColourPickerCtrl} is a specialized {Wx::Button} class so that you can change its label doing, e.g.:
54
- #
54
+ # ```
55
55
  # #ifdef __WXMSW__
56
56
  # // wxMSW is one of the platforms where the generic implementation
57
57
  # // of wxFilePickerCtrl is used...
@@ -60,6 +60,7 @@ module Wx
60
60
  # if (pButt)
61
61
  # pButt->SetLabel("Custom browse string");
62
62
  # #endif
63
+ # ```
63
64
  # @return [Wx::Control]
64
65
  def get_picker_ctrl; end
65
66
  alias_method :picker_ctrl, :get_picker_ctrl
@@ -183,9 +183,10 @@ module Wx
183
183
  # This class holds information about the operating system, the toolkit and the basic architecture bitness of the machine where the application is currently running.
184
184
  # This class does not only have getters for the information above, it also has setters. This allows you to e.g. save the current platform information in a data file (maybe in string form) so that when you later load it, you can easily retrieve (see the static getters for string->enum conversion functions) and store inside a {Wx::PlatformInfo} instance (using its setters) the signature of the system which generated it.
185
185
  # In general however you only need to use the static {Wx::PlatformInfo.get} function and then access the various information for the current platform:
186
- #
186
+ # ```
187
187
  # wxLogMessage("This application is running under %s.",
188
188
  # wxPlatformInfo::Get().GetOperatingSystemIdName());
189
+ # ```
189
190
  #
190
191
  # ===
191
192
  #
@@ -198,6 +199,8 @@ module Wx
198
199
  # @see User and OS
199
200
  #
200
201
  #
202
+ #
203
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
201
204
  class PlatformInfo < ::Object
202
205
 
203
206
  # Returns the architecture bitness ID of this {Wx::PlatformInfo} instance.
@@ -51,6 +51,7 @@ module Wx
51
51
  # To use this class, call {Wx::PropertySheetDialog#create} from your own Create function. Then call {Wx::PropertySheetDialog#create_buttons}, and create pages, adding them to the book control. Finally call {Wx::PropertySheetDialog#layout_dialog}.
52
52
  # For example:
53
53
  #
54
+ # ```
54
55
  # bool MyPropertySheetDialog::Create(...)
55
56
  # {
56
57
  # if (!wxPropertySheetDialog::Create(...))
@@ -65,6 +66,7 @@ module Wx
65
66
  # LayoutDialog();
66
67
  # return true;
67
68
  # }
69
+ # ```
68
70
  #
69
71
  # If necessary, override {Wx::PropertySheetDialog#create_book_ctrl} and {Wx::PropertySheetDialog#add_book_ctrl} to create and add a different kind of book control. You will then need to use two-step construction for the dialog or change the style of the book control by calling {Wx::PropertySheetDialog#set_sheet_style} before calling {Wx::PropertySheetDialog#create}.
70
72
  # The Dialogs Sample shows this class being used with notebook and toolbook controllers (for Windows-style and Mac-style settings dialogs).
@@ -16,16 +16,10 @@ module Wx::PRT
16
16
  #
17
17
  # Category: Device Contexts
18
18
  #
19
+ #
20
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
19
21
  class PostScriptDC < DC
20
22
 
21
- # @overload initialize()
22
- # @return [PostScriptDC]
23
- # @overload initialize(printData)
24
- # Constructs a PostScript printer device context from a {Wx::PRT::PrintData} object.
25
- # @param printData [Wx::PrintData]
26
- # @return [PostScriptDC]
27
- def initialize(*args) end
28
-
29
23
  end # PostScriptDC
30
24
 
31
25
 
@@ -91,6 +91,8 @@ module Wx::PRT
91
91
  # @see Wx::PRT::PostScriptDC
92
92
  #
93
93
  #
94
+ #
95
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
94
96
  class PrintData < Object
95
97
 
96
98
  # @overload initialize()
@@ -266,6 +268,8 @@ module Wx::PRT
266
268
  # @see wxPrintDialog Overview
267
269
  #
268
270
  #
271
+ #
272
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
269
273
  class PrintDialogData < Object
270
274
 
271
275
  # @overload initialize()
@@ -423,6 +427,8 @@ module Wx::PRT
423
427
  # @see Wx::PRT::PageSetupDialog
424
428
  #
425
429
  #
430
+ #
431
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
426
432
  class PageSetupDialogData < Object
427
433
 
428
434
  # @overload initialize()
@@ -152,7 +152,6 @@ module Wx::PRT
152
152
  # Returns the number of pixels per logical inch of the printer device context.
153
153
  # Dividing the printer PPI by the screen PPI can give a suitable scaling factor for drawing text onto the printer.
154
154
  # Remember to multiply this by a scaling factor to take the preview DC size into account. Or you can just use the FitThisSizeToXXX() and MapScreenSizeToXXX routines below, which do most of the scaling calculations for you.
155
- # <b>{Wx::Perl} Note:</b> In {Wx::Perl} this method takes no arguments and returns a 2-element list (w, h).
156
155
  # @return [Array(Integer,Integer)]
157
156
  def get_ppi_printer; end
158
157
  alias_method :ppi_printer, :get_ppi_printer
@@ -160,7 +159,6 @@ module Wx::PRT
160
159
  # Returns the number of pixels per logical inch of the screen device context.
161
160
  # Dividing the printer PPI by the screen PPI can give a suitable scaling factor for drawing text onto the printer.
162
161
  # If you are doing your own scaling, remember to multiply this by a scaling factor to take the preview DC size into account.
163
- # <b>{Wx::Perl} Note:</b> In {Wx::Perl} this method takes no arguments and returns a 2-element list (w, h).
164
162
  # @return [Array(Integer,Integer)]
165
163
  def get_ppi_screen; end
166
164
  alias_method :ppi_screen, :get_ppi_screen
@@ -173,7 +171,6 @@ module Wx::PRT
173
171
  alias_method :page_info, :get_page_info
174
172
 
175
173
  # Returns the size of the printer page in millimetres.
176
- # <b>{Wx::Perl} Note:</b> In {Wx::Perl} this method takes no arguments and returns a 2-element list (w, h).
177
174
  # @return [Array(Integer,Integer)]
178
175
  def get_page_size_mm; end
179
176
  alias_method :page_size_mm, :get_page_size_mm
@@ -15,14 +15,10 @@ module Wx::PRT
15
15
  # @see Wx::DC
16
16
  #
17
17
  #
18
+ #
19
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
18
20
  class PrinterDC < DC
19
21
 
20
- # Constructor.
21
- # Pass a {Wx::PRT::PrintData} object with information necessary for setting up a suitable printer device context. This is the recommended way to construct a {Wx::PRT::PrinterDC}. Make sure you specify a reference to a {Wx::PRT::PrintData} object, not a pointer - you may not even get a warning if you pass a pointer instead.
22
- # @param printData [Wx::PrintData]
23
- # @return [PrinterDC]
24
- def initialize(printData) end
25
-
26
22
  # Return the rectangle in device coordinates that corresponds to the full paper area, including the nonprinting regions of the paper.
27
23
  # The point (0,0) in device coordinates is the top left corner of the page rectangle, which is the printable area on MSW and Mac. The coordinates of the top left corner of the paper rectangle will therefore have small negative values, while the bottom right coordinates will be somewhat larger than the values returned by {Wx::DC#get_size}.
28
24
  # @return [Wx::Rect]
@@ -42,7 +42,7 @@ module Wx
42
42
  # @return [RadioBox]
43
43
  # @overload initialize(parent, id, label, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, choices=nil, majorDimension=0, style=Wx::RA_SPECIFY_COLS, validator=Wx::DEFAULT_VALIDATOR, name=Wx::RadioBoxNameStr)
44
44
  # Constructor, creating and showing a radiobox.
45
- # <b>{Wx::Perl} Note:</b> Not supported by {Wx::Perl}.
45
+ #
46
46
  # @see Wx::RadioBox#create
47
47
  # @see Wx::Validator
48
48
  # @param parent [Wx::Window] Parent window. Must not be NULL.
@@ -58,7 +58,7 @@ module Wx
58
58
  # @return [RadioBox]
59
59
  # @overload initialize(parent, id, label, pos, size, choices, majorDimension=0, style=Wx::RA_SPECIFY_COLS, validator=Wx::DEFAULT_VALIDATOR, name=Wx::RadioBoxNameStr)
60
60
  # Constructor, creating and showing a radiobox.
61
- # <b>{Wx::Perl} Note:</b> Use an array reference for the choices parameter.
61
+ #
62
62
  # @see Wx::RadioBox#create
63
63
  # @see Wx::Validator
64
64
  # @param parent [Wx::Window] Parent window. Must not be NULL.
@@ -1052,6 +1052,8 @@ module Wx::RBN
1052
1052
  #
1053
1053
  #
1054
1054
  #
1055
+ #
1056
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
1055
1057
  class RibbonPageTabInfo < ::Object
1056
1058
 
1057
1059
  end # RibbonPageTabInfo
@@ -1059,6 +1061,8 @@ module Wx::RBN
1059
1061
  #
1060
1062
  #
1061
1063
  #
1064
+ #
1065
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
1062
1066
  class RibbonMSWArtProvider < RibbonArtProvider
1063
1067
 
1064
1068
  # @param set_colour_scheme [true,false]
@@ -1432,6 +1436,8 @@ module Wx::RBN
1432
1436
  #
1433
1437
  #
1434
1438
  #
1439
+ #
1440
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
1435
1441
  class RibbonAUIArtProvider < RibbonMSWArtProvider
1436
1442
 
1437
1443
  # @return [RibbonAUIArtProvider]
@@ -140,7 +140,7 @@ module Wx::RBN
140
140
  # Get the bitmap to be used in place of the panel children when it is minimised.
141
141
  # @return [Wx::Bitmap]
142
142
  # @overload get_minimised_icon()
143
- # @return [void]
143
+ # @return [Wx::Bitmap]
144
144
  def get_minimised_icon(*args) end
145
145
  alias_method :minimised_icon, :get_minimised_icon
146
146
 
@@ -37,6 +37,8 @@ module Wx
37
37
  # @see Wx::RegionIterator
38
38
  #
39
39
  #
40
+ #
41
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
40
42
  class Region < GDIObject
41
43
 
42
44
  # @overload get_box(x, y, width, height)
@@ -547,6 +547,8 @@ module Wx::RTC
547
547
  # @see wxRichTextAttrBorders
548
548
  #
549
549
  #
550
+ #
551
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
550
552
  class TextAttrBorder < ::Object
551
553
 
552
554
  # Default constructor.
@@ -700,6 +702,8 @@ module Wx::RTC
700
702
  # @see wxRichTextAttrBorder
701
703
  #
702
704
  #
705
+ #
706
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
703
707
  class TextAttrBorders < ::Object
704
708
 
705
709
  # Default constructor.
@@ -816,6 +820,8 @@ module Wx::RTC
816
820
  # @see Wx::RTC::RichTextCtrl
817
821
  #
818
822
  #
823
+ #
824
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
819
825
  class TextBoxAttr < ::Object
820
826
 
821
827
  # @overload initialize()
@@ -577,7 +577,6 @@ module Wx::RTC
577
577
  # Gets the attributes at the given position.
578
578
  # This function gets the combined style - that is, the style you see on the screen as a result of combining base style, paragraph style and character style attributes.
579
579
  # To get the character or paragraph style alone, use {Wx::RTC::RichTextCtrl#get_uncombined_style}.
580
- # <b>{Wx::Perl} Note:</b> In {Wx::Perl} this method is implemented as GetStyle(position) returning a 2-element list (ok, attr).
581
580
  # @param position [Integer]
582
581
  # @param style [Wx::TextAttr]
583
582
  # @return [true,false]
@@ -630,7 +629,6 @@ module Wx::RTC
630
629
  # Gets the attributes at the given position.
631
630
  # This function gets the uncombined style - that is, the attributes associated with the paragraph or character content, and not necessarily the combined attributes you see on the screen. To get the combined attributes, use {Wx::RTC::RichTextCtrl#get_style}.
632
631
  # If you specify (any) paragraph attribute in style's flags, this function will fetch the paragraph attributes. Otherwise, it will return the character attributes.
633
- # <b>{Wx::Perl} Note:</b> In {Wx::Perl} this method is implemented as GetUncombinedStyle(position) returning a 2-element list (ok, attr).
634
632
  # @param position [Integer]
635
633
  # @param style [Wx::RichTextAttr]
636
634
  # @return [true,false]
@@ -1817,7 +1815,6 @@ module Wx::RTC
1817
1815
 
1818
1816
  # Returns the caret height and position for the given character position.
1819
1817
  # If container is null, the current focus object will be used.
1820
- # <b>{Wx::Perl} Note:</b> In {Wx::Perl} this method is implemented as GetCaretPositionForIndex(position) returning a 2-element list (ok, rect).
1821
1818
  # @param position [Integer]
1822
1819
  # @param rect [Wx::Rect]
1823
1820
  # @param container [Wx::RichTextParagraphLayoutBox]
@@ -1839,7 +1836,6 @@ module Wx::RTC
1839
1836
 
1840
1837
  # Deletes content if there is a selection, e.g.
1841
1838
  # when pressing a key. Returns the new caret position in newPos, or leaves it if there was no action. This is undoable.
1842
- # <b>{Wx::Perl} Note:</b> In {Wx::Perl} this method takes no arguments and returns a 2-element list (ok, newPos).
1843
1839
  # @return [Array(true,false,Integer)]
1844
1840
  def delete_selected_content; end
1845
1841
 
@@ -56,6 +56,8 @@ module Wx::RTC
56
56
  #
57
57
  # Category: Rich Text
58
58
  #
59
+ #
60
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
59
61
  class RichTextHeaderFooterData < Object
60
62
 
61
63
  # @overload initialize()
@@ -64,7 +64,7 @@ module Wx::RTC
64
64
 
65
65
  # Sets the mapping for converting point sizes to HTML font sizes.
66
66
  # There should be 7 elements, one for each HTML font size, each element specifying the maximum point size for that HTML font size. For example:
67
- #
67
+ # ```
68
68
  # wxArrayInt fontSizeMapping;
69
69
  # fontSizeMapping.Add(7);
70
70
  # fontSizeMapping.Add(9);
@@ -75,6 +75,7 @@ module Wx::RTC
75
75
  # fontSizeMapping.Add(100);
76
76
  #
77
77
  # htmlHandler.SetFontSizeMapping(fontSizeMapping);
78
+ # ```
78
79
  # @param fontSizeMapping [Array<Integer>]
79
80
  # @return [void]
80
81
  def set_font_size_mapping(fontSizeMapping) end
@@ -13,6 +13,7 @@ module Wx::RTC
13
13
  # When the dialog is dismissed, the application can get the selected symbol with {Wx::RTC::SymbolPickerDialog#get_symbol} and test whether a font was specified with {Wx::RTC::SymbolPickerDialog#use_normal_font},fetching the specified font with {Wx::RTC::SymbolPickerDialog#get_font_name}.
14
14
  # Here's a realistic example, inserting the supplied symbol into a rich text control in either the current font or specified font.
15
15
  #
16
+ # ```
16
17
  # wxRichTextCtrl* ctrl = (wxRichTextCtrl*) FindWindow(ID_RICHTEXT_CTRL);
17
18
  #
18
19
  # wxTextAttr attr;
@@ -46,6 +47,7 @@ module Wx::RTC
46
47
  # }
47
48
  # }
48
49
  # }
50
+ # ```
49
51
  #
50
52
  # ===
51
53
  #
@@ -19,6 +19,8 @@ module Wx
19
19
  # @see Wx::WindowDC
20
20
  #
21
21
  #
22
+ #
23
+ # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
22
24
  class ScreenDC < DC
23
25
 
24
26
  end # ScreenDC
@@ -120,8 +120,9 @@ module Wx
120
120
 
121
121
  # Sets the scrollbar properties.
122
122
  # Let's say you wish to display 50 lines of text, using the same font. The window is sized so that you can only see 16 lines at a time. You would use:
123
- #
123
+ # ```
124
124
  # scrollbar->SetScrollbar(0, 16, 50, 15);
125
+ # ```
125
126
  # The page size is 1 less than the thumb size so that the last line of the previous page will be visible on the next page, to help orient the user. Note that with the window at this size, the thumb position can never go above 50 minus 16, or 34. You can determine how many lines are currently visible by dividing the current view size by the character height in pixels. When defining your own scrollbar behaviour, you will always need to recalculate the scrollbar settings when the window size changes. You could therefore put your scrollbar calculations and {Wx::ScrollBar#set_scrollbar} call into a function named AdjustScrollbars, which can be called initially and also from a {Wx::SizeEvent} event handler function.
126
127
  # @param position [Integer] The position of the scrollbar in scroll units.
127
128
  # @param thumbSize [Integer] The size of the thumb, or visible portion of the scrollbar, in scroll units.