wxruby3 1.8.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (499) hide show
  1. checksums.yaml +4 -4
  2. data/INSTALL.md +20 -10
  3. data/README.md +3 -3
  4. data/ext/wxruby3/include/wxRubyApp.h +49 -3
  5. data/ext/wxruby3/include/wxruby-ComboPopup.h +17 -32
  6. data/ext/wxruby3/include/wxruby-Config.h +34 -11
  7. data/ext/wxruby3/include/wxruby-GCTracking.h +23 -5
  8. data/ext/wxruby3/include/wxruby-SharedEventHandler.h +7 -7
  9. data/ext/wxruby3/include/wxruby-runtime.h +65 -0
  10. data/ext/wxruby3/swig/common.i +6 -0
  11. data/ext/wxruby3/swig/custom/typed_data/rubyhead.swg +220 -0
  12. data/ext/wxruby3/swig/custom/typed_data/rubyprimtypes.swg +265 -0
  13. data/ext/wxruby3/swig/custom/typed_data/rubyrun.swg +243 -0
  14. data/ext/wxruby3/swig/custom/typed_data/swigrun.swg +689 -0
  15. data/ext/wxruby3/swig/custom/{rubyprimtypes.swg → untyped_data/rubyprimtypes.swg} +8 -0
  16. data/ext/wxruby3/swig/mark_free_impl.i +2 -2
  17. data/ext/wxruby3/swig/memory_management.i +1 -0
  18. data/ext/wxruby3/swig/wx.i +19 -6
  19. data/lib/wx/core/file_dialog.rb +3 -10
  20. data/lib/wx/doc/rbn/events.rb +32 -0
  21. data/lib/wx/doc/rbn/ribbon_backstage_mrulist.rb +25 -0
  22. data/lib/wx/doc/stream.rb +7 -3
  23. data/lib/wx/keyword_ctors.rb +3 -13
  24. data/lib/wx/rbn/events.rb +18 -0
  25. data/lib/wx/rbn/require.rb +1 -0
  26. data/lib/wx/rbn/ribbon_backstage_mrulist.rb +39 -0
  27. data/lib/wx/version.rb +1 -1
  28. data/lib/wx/wxruby/cmd/test.rb +8 -2
  29. data/rakelib/lib/config/pkgman/linux.rb +4 -2
  30. data/rakelib/lib/config.rb +3 -3
  31. data/rakelib/lib/core/include/typed_data/swigrubyrun.inc +629 -0
  32. data/rakelib/lib/core/include/typed_data/swigrun.inc +870 -0
  33. data/rakelib/lib/core/package.rb +2 -2
  34. data/rakelib/lib/director/app.rb +16 -0
  35. data/rakelib/lib/director/art_provider.rb +3 -3
  36. data/rakelib/lib/director/aui_mdi_child_frame.rb +24 -0
  37. data/rakelib/lib/director/aui_mdi_parent_frame.rb +0 -2
  38. data/rakelib/lib/director/aui_tab_ctrl.rb +3 -3
  39. data/rakelib/lib/director/comboctrl.rb +35 -2
  40. data/rakelib/lib/director/config_base.rb +79 -33
  41. data/rakelib/lib/director/data_object.rb +1 -1
  42. data/rakelib/lib/director/date_event.rb +10 -3
  43. data/rakelib/lib/director/derived_dc.rb +41 -32
  44. data/rakelib/lib/director/editable_listbox.rb +10 -8
  45. data/rakelib/lib/director/event.rb +16 -7
  46. data/rakelib/lib/director/event_handler.rb +48 -10
  47. data/rakelib/lib/director/events.rb +4 -2
  48. data/rakelib/lib/director/file_history.rb +46 -0
  49. data/rakelib/lib/director/frame.rb +29 -0
  50. data/rakelib/lib/director/fs_file.rb +25 -4
  51. data/rakelib/lib/director/functions.rb +2 -2
  52. data/rakelib/lib/director/graphics_context.rb +6 -6
  53. data/rakelib/lib/director/grid_cell_editor.rb +1 -1
  54. data/rakelib/lib/director/grid_cell_renderer.rb +1 -1
  55. data/rakelib/lib/director/grid_ctrl.rb +39 -12
  56. data/rakelib/lib/director/help_controller.rb +17 -0
  57. data/rakelib/lib/director/html_help_data.rb +20 -2
  58. data/rakelib/lib/director/icon.rb +3 -0
  59. data/rakelib/lib/director/log.rb +25 -1
  60. data/rakelib/lib/director/menu.rb +38 -106
  61. data/rakelib/lib/director/menu_bar.rb +36 -70
  62. data/rakelib/lib/director/num_validator.rb +3 -3
  63. data/rakelib/lib/director/numeric_property_validator.rb +1 -1
  64. data/rakelib/lib/director/page_setup_dialog.rb +18 -1
  65. data/rakelib/lib/director/pgeditor.rb +1 -1
  66. data/rakelib/lib/director/pgvalidation_info.rb +1 -0
  67. data/rakelib/lib/director/popup_window.rb +7 -0
  68. data/rakelib/lib/director/preview_frame.rb +8 -1
  69. data/rakelib/lib/director/print_dialog.rb +17 -0
  70. data/rakelib/lib/director/printer.rb +1 -1
  71. data/rakelib/lib/director/property_grid_page.rb +2 -0
  72. data/rakelib/lib/director/region_iterator.rb +1 -1
  73. data/rakelib/lib/director/ribbon_backstage.rb +28 -0
  74. data/rakelib/lib/director/ribbon_backstage_button.rb +25 -0
  75. data/rakelib/lib/director/ribbon_backstage_callout.rb +26 -0
  76. data/rakelib/lib/director/ribbon_backstage_heading.rb +26 -0
  77. data/rakelib/lib/director/ribbon_backstage_itemlist.rb +27 -0
  78. data/rakelib/lib/director/ribbon_backstage_mrulist.rb +112 -0
  79. data/rakelib/lib/director/ribbon_bar.rb +14 -0
  80. data/rakelib/lib/director/ribbon_gallery.rb +6 -2
  81. data/rakelib/lib/director/ribbon_page.rb +11 -0
  82. data/rakelib/lib/director/ribbon_tool_bar.rb +6 -4
  83. data/rakelib/lib/director/richtext_composite_object.rb +4 -4
  84. data/rakelib/lib/director/richtext_paragraph_layout_box.rb +1 -1
  85. data/rakelib/lib/director/scrolled_t.rb +1 -1
  86. data/rakelib/lib/director/sizer.rb +7 -0
  87. data/rakelib/lib/director/sizer_item.rb +4 -1
  88. data/rakelib/lib/director/splitter_event.rb +2 -2
  89. data/rakelib/lib/director/task_bar_icon.rb +4 -1
  90. data/rakelib/lib/director/text_validator.rb +1 -1
  91. data/rakelib/lib/director/top_level_window.rb +12 -4
  92. data/rakelib/lib/director/tree_event.rb +3 -3
  93. data/rakelib/lib/director/validator.rb +1 -1
  94. data/rakelib/lib/director/variant.rb +2 -2
  95. data/rakelib/lib/director/window.rb +27 -5
  96. data/rakelib/lib/director/window_disabler.rb +1 -1
  97. data/rakelib/lib/director/xml_resource.rb +33 -8
  98. data/rakelib/lib/extractor/class.rb +2 -1
  99. data/rakelib/lib/extractor.rb +3 -2
  100. data/rakelib/lib/generate/interface.rb +2 -3
  101. data/rakelib/lib/specs/interfaces.rb +9 -2
  102. data/rakelib/lib/swig_runner.rb +14 -3
  103. data/rakelib/lib/typemap/common.rb +2 -36
  104. data/rakelib/lib/typemap/config.rb +22 -0
  105. data/samples/ribbon/ribbon.rb +277 -20
  106. data/tests/test_shared_event_handler.rb +3 -3
  107. data/tests/test_webview.rb +5 -5
  108. metadata +32 -394
  109. data/assets/repo-social-preview.odg +0 -0
  110. data/assets/repo-social-preview.xcf +0 -0
  111. data/lib/wx/aui/events/evt_list.rb +0 -148
  112. data/lib/wx/core/events/evt_list.rb +0 -1458
  113. data/lib/wx/core/font/encoding.rb +0 -113
  114. data/lib/wx/doc/gen/about_dialog_info.rb +0 -330
  115. data/lib/wx/doc/gen/accelerator.rb +0 -178
  116. data/lib/wx/doc/gen/activity_indicator.rb +0 -83
  117. data/lib/wx/doc/gen/affine_matrix2d.rb +0 -286
  118. data/lib/wx/doc/gen/animation.rb +0 -275
  119. data/lib/wx/doc/gen/animation_ctrl.rb +0 -300
  120. data/lib/wx/doc/gen/any_button.rb +0 -191
  121. data/lib/wx/doc/gen/app.rb +0 -463
  122. data/lib/wx/doc/gen/app_traits.rb +0 -396
  123. data/lib/wx/doc/gen/art_provider.rb +0 -617
  124. data/lib/wx/doc/gen/aui/aui_dock_art.rb +0 -455
  125. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +0 -54
  126. data/lib/wx/doc/gen/aui/aui_manager.rb +0 -847
  127. data/lib/wx/doc/gen/aui/aui_manager_event.rb +0 -131
  128. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +0 -180
  129. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +0 -59
  130. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +0 -130
  131. data/lib/wx/doc/gen/aui/aui_notebook.rb +0 -631
  132. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +0 -233
  133. data/lib/wx/doc/gen/aui/aui_pane_info.rb +0 -769
  134. data/lib/wx/doc/gen/aui/aui_tab_art.rb +0 -352
  135. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +0 -14
  136. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +0 -510
  137. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +0 -340
  138. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +0 -244
  139. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +0 -257
  140. data/lib/wx/doc/gen/aui/event_list.rb +0 -179
  141. data/lib/wx/doc/gen/banner_window.rb +0 -124
  142. data/lib/wx/doc/gen/bitmap.rb +0 -731
  143. data/lib/wx/doc/gen/bitmap_button.rb +0 -123
  144. data/lib/wx/doc/gen/bitmap_combo_box.rb +0 -221
  145. data/lib/wx/doc/gen/book_ctrl_base.rb +0 -274
  146. data/lib/wx/doc/gen/book_ctrl_event.rb +0 -66
  147. data/lib/wx/doc/gen/box_sizer.rb +0 -85
  148. data/lib/wx/doc/gen/brush.rb +0 -251
  149. data/lib/wx/doc/gen/busy_info.rb +0 -157
  150. data/lib/wx/doc/gen/button.rb +0 -182
  151. data/lib/wx/doc/gen/calculate_layout_event.rb +0 -62
  152. data/lib/wx/doc/gen/calendar_ctrl.rb +0 -505
  153. data/lib/wx/doc/gen/calendar_date_attr.rb +0 -138
  154. data/lib/wx/doc/gen/calendar_event.rb +0 -147
  155. data/lib/wx/doc/gen/caret.rb +0 -97
  156. data/lib/wx/doc/gen/check_box.rb +0 -175
  157. data/lib/wx/doc/gen/check_list_box.rb +0 -121
  158. data/lib/wx/doc/gen/choice.rb +0 -175
  159. data/lib/wx/doc/gen/choicebook.rb +0 -116
  160. data/lib/wx/doc/gen/client_dc.rb +0 -43
  161. data/lib/wx/doc/gen/clipboard.rb +0 -144
  162. data/lib/wx/doc/gen/collapsible_pane.rb +0 -138
  163. data/lib/wx/doc/gen/collapsible_pane_event.rb +0 -46
  164. data/lib/wx/doc/gen/colour.rb +0 -333
  165. data/lib/wx/doc/gen/colour_dialog.rb +0 -190
  166. data/lib/wx/doc/gen/colour_picker_ctrl.rb +0 -110
  167. data/lib/wx/doc/gen/colour_picker_event.rb +0 -77
  168. data/lib/wx/doc/gen/combo_box.rb +0 -292
  169. data/lib/wx/doc/gen/combo_ctrl.rb +0 -662
  170. data/lib/wx/doc/gen/command_link_button.rb +0 -134
  171. data/lib/wx/doc/gen/config_base.rb +0 -10
  172. data/lib/wx/doc/gen/context_help_button.rb +0 -56
  173. data/lib/wx/doc/gen/control.rb +0 -277
  174. data/lib/wx/doc/gen/control_with_items.rb +0 -253
  175. data/lib/wx/doc/gen/core.rb +0 -45
  176. data/lib/wx/doc/gen/credential_entry_dialog.rb +0 -137
  177. data/lib/wx/doc/gen/cursor.rb +0 -193
  178. data/lib/wx/doc/gen/data_format.rb +0 -85
  179. data/lib/wx/doc/gen/data_object.rb +0 -436
  180. data/lib/wx/doc/gen/data_object_simple_base.rb +0 -10
  181. data/lib/wx/doc/gen/date_event.rb +0 -49
  182. data/lib/wx/doc/gen/date_picker_ctrl.rb +0 -161
  183. data/lib/wx/doc/gen/dc.rb +0 -1631
  184. data/lib/wx/doc/gen/dc_overlay.rb +0 -102
  185. data/lib/wx/doc/gen/defs.rb +0 -2802
  186. data/lib/wx/doc/gen/dial_up_event.rb +0 -45
  187. data/lib/wx/doc/gen/dial_up_manager.rb +0 -149
  188. data/lib/wx/doc/gen/dialog.rb +0 -541
  189. data/lib/wx/doc/gen/dir_dialog.rb +0 -164
  190. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +0 -90
  191. data/lib/wx/doc/gen/dir_picker_ctrl.rb +0 -125
  192. data/lib/wx/doc/gen/display.rb +0 -238
  193. data/lib/wx/doc/gen/drag_drop.rb +0 -299
  194. data/lib/wx/doc/gen/drag_image.rb +0 -116
  195. data/lib/wx/doc/gen/editable_list_box.rb +0 -109
  196. data/lib/wx/doc/gen/event.rb +0 -990
  197. data/lib/wx/doc/gen/event_blocker.rb +0 -50
  198. data/lib/wx/doc/gen/event_filter.rb +0 -92
  199. data/lib/wx/doc/gen/event_list.rb +0 -1644
  200. data/lib/wx/doc/gen/events.rb +0 -2809
  201. data/lib/wx/doc/gen/evt_handler.rb +0 -229
  202. data/lib/wx/doc/gen/ext_help_controller.rb +0 -155
  203. data/lib/wx/doc/gen/file_ctrl.rb +0 -231
  204. data/lib/wx/doc/gen/file_ctrl_event.rb +0 -83
  205. data/lib/wx/doc/gen/file_dialog.rb +0 -353
  206. data/lib/wx/doc/gen/file_dialog_custom_control.rb +0 -165
  207. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +0 -158
  208. data/lib/wx/doc/gen/file_dir_picker_event.rb +0 -100
  209. data/lib/wx/doc/gen/file_picker_ctrl.rb +0 -132
  210. data/lib/wx/doc/gen/file_system.rb +0 -232
  211. data/lib/wx/doc/gen/find_dialog_event.rb +0 -126
  212. data/lib/wx/doc/gen/find_replace_data.rb +0 -60
  213. data/lib/wx/doc/gen/find_replace_dialog.rb +0 -58
  214. data/lib/wx/doc/gen/flex_grid_sizer.rb +0 -199
  215. data/lib/wx/doc/gen/font.rb +0 -1379
  216. data/lib/wx/doc/gen/font_data.rb +0 -151
  217. data/lib/wx/doc/gen/font_dialog.rb +0 -88
  218. data/lib/wx/doc/gen/font_picker_ctrl.rb +0 -143
  219. data/lib/wx/doc/gen/font_picker_event.rb +0 -65
  220. data/lib/wx/doc/gen/frame.rb +0 -352
  221. data/lib/wx/doc/gen/fs_file.rb +0 -337
  222. data/lib/wx/doc/gen/functions.rb +0 -10
  223. data/lib/wx/doc/gen/gauge.rb +0 -157
  224. data/lib/wx/doc/gen/gb_sizer_item.rb +0 -68
  225. data/lib/wx/doc/gen/gcdc.rb +0 -46
  226. data/lib/wx/doc/gen/gdi_common.rb +0 -1271
  227. data/lib/wx/doc/gen/gdi_object.rb +0 -31
  228. data/lib/wx/doc/gen/generic_about_dialog.rb +0 -140
  229. data/lib/wx/doc/gen/generic_dir_ctrl.rb +0 -223
  230. data/lib/wx/doc/gen/geometry.rb +0 -661
  231. data/lib/wx/doc/gen/graphics_context.rb +0 -1184
  232. data/lib/wx/doc/gen/graphics_object.rb +0 -750
  233. data/lib/wx/doc/gen/grid/event_list.rb +0 -191
  234. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +0 -40
  235. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +0 -280
  236. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +0 -35
  237. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +0 -37
  238. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +0 -49
  239. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +0 -35
  240. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +0 -46
  241. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +0 -38
  242. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +0 -45
  243. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +0 -40
  244. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +0 -197
  245. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +0 -39
  246. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +0 -44
  247. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +0 -45
  248. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +0 -79
  249. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +0 -46
  250. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +0 -35
  251. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +0 -108
  252. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +0 -35
  253. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +0 -49
  254. data/lib/wx/doc/gen/grid/grid_ctrl.rb +0 -3037
  255. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +0 -95
  256. data/lib/wx/doc/gen/grid/grid_event.rb +0 -129
  257. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +0 -104
  258. data/lib/wx/doc/gen/grid/grid_size_event.rb +0 -85
  259. data/lib/wx/doc/gen/grid/grid_string_table.rb +0 -142
  260. data/lib/wx/doc/gen/grid/grid_table_base.rb +0 -317
  261. data/lib/wx/doc/gen/grid/grid_table_message.rb +0 -81
  262. data/lib/wx/doc/gen/grid_bag_sizer.rb +0 -323
  263. data/lib/wx/doc/gen/grid_sizer.rb +0 -195
  264. data/lib/wx/doc/gen/gui_event_loop.rb +0 -159
  265. data/lib/wx/doc/gen/h_scrolled_window.rb +0 -562
  266. data/lib/wx/doc/gen/header_ctrl.rb +0 -880
  267. data/lib/wx/doc/gen/header_ctrl_event.rb +0 -133
  268. data/lib/wx/doc/gen/help_controller.rb +0 -238
  269. data/lib/wx/doc/gen/help_provider.rb +0 -98
  270. data/lib/wx/doc/gen/html/event_list.rb +0 -38
  271. data/lib/wx/doc/gen/html/html_cell.rb +0 -536
  272. data/lib/wx/doc/gen/html/html_cell_event.rb +0 -69
  273. data/lib/wx/doc/gen/html/html_data_object.rb +0 -42
  274. data/lib/wx/doc/gen/html/html_easy_printing.rb +0 -203
  275. data/lib/wx/doc/gen/html/html_help_controller.rb +0 -382
  276. data/lib/wx/doc/gen/html/html_help_data.rb +0 -159
  277. data/lib/wx/doc/gen/html/html_help_window.rb +0 -258
  278. data/lib/wx/doc/gen/html/html_link_event.rb +0 -41
  279. data/lib/wx/doc/gen/html/html_list_box.rb +0 -346
  280. data/lib/wx/doc/gen/html/html_printout.rb +0 -109
  281. data/lib/wx/doc/gen/html/html_window.rb +0 -461
  282. data/lib/wx/doc/gen/hyperlink_ctrl.rb +0 -311
  283. data/lib/wx/doc/gen/hyperlink_event.rb +0 -44
  284. data/lib/wx/doc/gen/icon.rb +0 -267
  285. data/lib/wx/doc/gen/icon_location.rb +0 -40
  286. data/lib/wx/doc/gen/image.rb +0 -1371
  287. data/lib/wx/doc/gen/image_list.rb +0 -168
  288. data/lib/wx/doc/gen/info_bar.rb +0 -195
  289. data/lib/wx/doc/gen/keyboard_state.rb +0 -140
  290. data/lib/wx/doc/gen/list_box.rb +0 -304
  291. data/lib/wx/doc/gen/list_ctrl.rb +0 -1774
  292. data/lib/wx/doc/gen/list_event.rb +0 -208
  293. data/lib/wx/doc/gen/listbook.rb +0 -116
  294. data/lib/wx/doc/gen/locale.rb +0 -4293
  295. data/lib/wx/doc/gen/log.rb +0 -603
  296. data/lib/wx/doc/gen/mb_conv.rb +0 -10
  297. data/lib/wx/doc/gen/mdi_client_window.rb +0 -47
  298. data/lib/wx/doc/gen/mdi_frame.rb +0 -324
  299. data/lib/wx/doc/gen/media_ctrl.rb +0 -269
  300. data/lib/wx/doc/gen/media_event.rb +0 -117
  301. data/lib/wx/doc/gen/memory_dc.rb +0 -174
  302. data/lib/wx/doc/gen/menu.rb +0 -509
  303. data/lib/wx/doc/gen/menu_bar.rb +0 -287
  304. data/lib/wx/doc/gen/menu_item.rb +0 -362
  305. data/lib/wx/doc/gen/message_dialog.rb +0 -238
  306. data/lib/wx/doc/gen/mini_frame.rb +0 -108
  307. data/lib/wx/doc/gen/mirror_dc.rb +0 -22
  308. data/lib/wx/doc/gen/mouse_state.rb +0 -150
  309. data/lib/wx/doc/gen/multi_choice_dialog.rb +0 -80
  310. data/lib/wx/doc/gen/non_owned_window.rb +0 -49
  311. data/lib/wx/doc/gen/notebook.rb +0 -278
  312. data/lib/wx/doc/gen/num_validator.rb +0 -37
  313. data/lib/wx/doc/gen/number_entry_dialog.rb +0 -93
  314. data/lib/wx/doc/gen/object.rb +0 -59
  315. data/lib/wx/doc/gen/owner_drawn_combo_box.rb +0 -395
  316. data/lib/wx/doc/gen/paint_dc.rb +0 -27
  317. data/lib/wx/doc/gen/palette.rb +0 -92
  318. data/lib/wx/doc/gen/panel.rb +0 -127
  319. data/lib/wx/doc/gen/pen.rb +0 -511
  320. data/lib/wx/doc/gen/persistence_manager.rb +0 -135
  321. data/lib/wx/doc/gen/persistent_object.rb +0 -52
  322. data/lib/wx/doc/gen/persistent_window.rb +0 -241
  323. data/lib/wx/doc/gen/pg/event_list.rb +0 -106
  324. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +0 -54
  325. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +0 -292
  326. data/lib/wx/doc/gen/pg/pg_cell.rb +0 -177
  327. data/lib/wx/doc/gen/pg/pg_editor.rb +0 -721
  328. data/lib/wx/doc/gen/pg/pg_multi_button.rb +0 -152
  329. data/lib/wx/doc/gen/pg/pg_properties.rb +0 -2829
  330. data/lib/wx/doc/gen/pg/pg_property.rb +0 -2078
  331. data/lib/wx/doc/gen/pg/pg_validation_info.rb +0 -344
  332. data/lib/wx/doc/gen/pg/property_grid.rb +0 -740
  333. data/lib/wx/doc/gen/pg/property_grid_event.rb +0 -184
  334. data/lib/wx/doc/gen/pg/property_grid_interface.rb +0 -1098
  335. data/lib/wx/doc/gen/pg/property_grid_manager.rb +0 -415
  336. data/lib/wx/doc/gen/pg/property_grid_page.rb +0 -354
  337. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +0 -165
  338. data/lib/wx/doc/gen/picker_base.rb +0 -152
  339. data/lib/wx/doc/gen/platform_info.rb +0 -622
  340. data/lib/wx/doc/gen/popup_window.rb +0 -107
  341. data/lib/wx/doc/gen/progress_dialog.rb +0 -100
  342. data/lib/wx/doc/gen/property_sheet_dialog.rb +0 -216
  343. data/lib/wx/doc/gen/prt/event_list.rb +0 -17
  344. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +0 -44
  345. data/lib/wx/doc/gen/prt/post_script_dc.rb +0 -30
  346. data/lib/wx/doc/gen/prt/preview_frame.rb +0 -78
  347. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +0 -151
  348. data/lib/wx/doc/gen/prt/print_data.rb +0 -804
  349. data/lib/wx/doc/gen/prt/print_dialog.rb +0 -55
  350. data/lib/wx/doc/gen/prt/printer.rb +0 -518
  351. data/lib/wx/doc/gen/prt/printer_dc.rb +0 -37
  352. data/lib/wx/doc/gen/query_layout_info_event.rb +0 -106
  353. data/lib/wx/doc/gen/radio_box.rb +0 -306
  354. data/lib/wx/doc/gen/radio_button.rb +0 -159
  355. data/lib/wx/doc/gen/rbn/event_list.rb +0 -136
  356. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +0 -1142
  357. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +0 -308
  358. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +0 -45
  359. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +0 -458
  360. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +0 -63
  361. data/lib/wx/doc/gen/rbn/ribbon_control.rb +0 -143
  362. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +0 -229
  363. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +0 -55
  364. data/lib/wx/doc/gen/rbn/ribbon_page.rb +0 -174
  365. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +0 -270
  366. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +0 -45
  367. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +0 -360
  368. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +0 -42
  369. data/lib/wx/doc/gen/rearrange_ctrl.rb +0 -78
  370. data/lib/wx/doc/gen/rearrange_list.rb +0 -123
  371. data/lib/wx/doc/gen/region.rb +0 -380
  372. data/lib/wx/doc/gen/region_iterator.rb +0 -76
  373. data/lib/wx/doc/gen/rich_tool_tip.rb +0 -154
  374. data/lib/wx/doc/gen/rt/event_list.rb +0 -17
  375. data/lib/wx/doc/gen/rt/shared_evt_handler.rb +0 -14
  376. data/lib/wx/doc/gen/rt/thread_event.rb +0 -71
  377. data/lib/wx/doc/gen/rtc/event_list.rb +0 -125
  378. data/lib/wx/doc/gen/rtc/rich_text_box.rb +0 -445
  379. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +0 -1188
  380. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +0 -41
  381. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +0 -538
  382. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +0 -2103
  383. data/lib/wx/doc/gen/rtc/rich_text_event.rb +0 -173
  384. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +0 -181
  385. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +0 -319
  386. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +0 -193
  387. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +0 -102
  388. data/lib/wx/doc/gen/rtc/rich_text_image.rb +0 -337
  389. data/lib/wx/doc/gen/rtc/rich_text_object.rb +0 -2922
  390. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +0 -1240
  391. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +0 -258
  392. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +0 -344
  393. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +0 -227
  394. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +0 -59
  395. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +0 -169
  396. data/lib/wx/doc/gen/sash_event.rb +0 -147
  397. data/lib/wx/doc/gen/sash_layout_window.rb +0 -232
  398. data/lib/wx/doc/gen/sash_window.rb +0 -171
  399. data/lib/wx/doc/gen/scaled_dc.rb +0 -10
  400. data/lib/wx/doc/gen/screen_dc.rb +0 -30
  401. data/lib/wx/doc/gen/scroll_bar.rb +0 -204
  402. data/lib/wx/doc/gen/scrolled_canvas.rb +0 -410
  403. data/lib/wx/doc/gen/scrolled_control.rb +0 -410
  404. data/lib/wx/doc/gen/scrolled_window.rb +0 -430
  405. data/lib/wx/doc/gen/search_ctrl.rb +0 -159
  406. data/lib/wx/doc/gen/secret_store.rb +0 -116
  407. data/lib/wx/doc/gen/simplebook.rb +0 -110
  408. data/lib/wx/doc/gen/single_choice_dialog.rb +0 -89
  409. data/lib/wx/doc/gen/sizer.rb +0 -945
  410. data/lib/wx/doc/gen/sizer_item.rb +0 -244
  411. data/lib/wx/doc/gen/slider.rb +0 -342
  412. data/lib/wx/doc/gen/spin_button.rb +0 -157
  413. data/lib/wx/doc/gen/spin_ctrl.rb +0 -231
  414. data/lib/wx/doc/gen/spin_ctrl_double.rb +0 -192
  415. data/lib/wx/doc/gen/spin_double_event.rb +0 -55
  416. data/lib/wx/doc/gen/spin_event.rb +0 -51
  417. data/lib/wx/doc/gen/splash_screen.rb +0 -113
  418. data/lib/wx/doc/gen/splitter_event.rb +0 -99
  419. data/lib/wx/doc/gen/splitter_window.rb +0 -498
  420. data/lib/wx/doc/gen/static_bitmap.rb +0 -256
  421. data/lib/wx/doc/gen/static_box.rb +0 -180
  422. data/lib/wx/doc/gen/static_box_sizer.rb +0 -85
  423. data/lib/wx/doc/gen/static_line.rb +0 -83
  424. data/lib/wx/doc/gen/static_text.rb +0 -127
  425. data/lib/wx/doc/gen/status_bar.rb +0 -290
  426. data/lib/wx/doc/gen/stc/event_list.rb +0 -221
  427. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +0 -4474
  428. data/lib/wx/doc/gen/stc/styled_text_event.rb +0 -8762
  429. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +0 -129
  430. data/lib/wx/doc/gen/svg_file_dc.rb +0 -164
  431. data/lib/wx/doc/gen/system_options.rb +0 -129
  432. data/lib/wx/doc/gen/system_settings.rb +0 -507
  433. data/lib/wx/doc/gen/task_bar_icon.rb +0 -127
  434. data/lib/wx/doc/gen/task_bar_icon_event.rb +0 -88
  435. data/lib/wx/doc/gen/text_attr.rb +0 -756
  436. data/lib/wx/doc/gen/text_ctrl.rb +0 -1033
  437. data/lib/wx/doc/gen/text_entry.rb +0 -441
  438. data/lib/wx/doc/gen/text_entry_dialog.rb +0 -220
  439. data/lib/wx/doc/gen/text_validator.rb +0 -245
  440. data/lib/wx/doc/gen/time_picker_ctrl.rb +0 -128
  441. data/lib/wx/doc/gen/timer.rb +0 -119
  442. data/lib/wx/doc/gen/timer_event.rb +0 -68
  443. data/lib/wx/doc/gen/tip_provider.rb +0 -63
  444. data/lib/wx/doc/gen/tip_window.rb +0 -51
  445. data/lib/wx/doc/gen/toggle_button.rb +0 -182
  446. data/lib/wx/doc/gen/tool_bar.rb +0 -890
  447. data/lib/wx/doc/gen/tool_tip.rb +0 -86
  448. data/lib/wx/doc/gen/toolbook.rb +0 -118
  449. data/lib/wx/doc/gen/top_level_window.rb +0 -516
  450. data/lib/wx/doc/gen/tree_ctrl.rb +0 -1052
  451. data/lib/wx/doc/gen/tree_event.rb +0 -127
  452. data/lib/wx/doc/gen/treebook.rb +0 -180
  453. data/lib/wx/doc/gen/ui_action_simulator.rb +0 -109
  454. data/lib/wx/doc/gen/utils.rb +0 -273
  455. data/lib/wx/doc/gen/v_list_box.rb +0 -272
  456. data/lib/wx/doc/gen/v_scrolled_canvas.rb +0 -195
  457. data/lib/wx/doc/gen/v_scrolled_window.rb +0 -191
  458. data/lib/wx/doc/gen/validator.rb +0 -68
  459. data/lib/wx/doc/gen/variant.rb +0 -294
  460. data/lib/wx/doc/gen/web/event_list.rb +0 -95
  461. data/lib/wx/doc/gen/web/web_view.rb +0 -1136
  462. data/lib/wx/doc/gen/web/web_view_event.rb +0 -210
  463. data/lib/wx/doc/gen/web/web_view_handler.rb +0 -318
  464. data/lib/wx/doc/gen/window.rb +0 -2917
  465. data/lib/wx/doc/gen/window_dc.rb +0 -38
  466. data/lib/wx/doc/gen/window_disabler.rb +0 -30
  467. data/lib/wx/doc/gen/with_images.rb +0 -84
  468. data/lib/wx/doc/gen/wizard.rb +0 -257
  469. data/lib/wx/doc/gen/wizard_event.rb +0 -113
  470. data/lib/wx/doc/gen/wizard_page.rb +0 -65
  471. data/lib/wx/doc/gen/wizard_page_simple.rb +0 -88
  472. data/lib/wx/doc/gen/wrap_sizer.rb +0 -79
  473. data/lib/wx/doc/gen/xml_node.rb +0 -316
  474. data/lib/wx/doc/gen/xml_resource.rb +0 -320
  475. data/lib/wx/grid/events/evt_list.rb +0 -166
  476. data/lib/wx/html/events/evt_list.rb +0 -27
  477. data/lib/wx/pg/events/evt_list.rb +0 -73
  478. data/lib/wx/rbn/events/evt_list.rb +0 -102
  479. data/lib/wx/rt/events/evt_list.rb +0 -8
  480. data/lib/wx/rtc/events/evt_list.rb +0 -98
  481. data/lib/wx/rtc/ext/rich_text_ctrl.rb +0 -24
  482. data/lib/wx/stc/events/evt_list.rb +0 -178
  483. data/lib/wx/web/events/evt_list.rb +0 -74
  484. data/samples/art/wxruby-512x512.png +0 -0
  485. data/tests/assets/test.css +0 -1
  486. data/tests/assets/test.html +0 -9
  487. /data/ext/wxruby3/swig/custom/{director.swg → common/director.swg} +0 -0
  488. /data/ext/wxruby3/swig/custom/{rubyapi.swg → common/rubyapi.swg} +0 -0
  489. /data/ext/wxruby3/swig/custom/{rubyerrors.swg → common/rubyerrors.swg} +0 -0
  490. /data/ext/wxruby3/swig/custom/{rubytracking.swg → common/rubytracking.swg} +0 -0
  491. /data/ext/wxruby3/swig/custom/{swiglabels.swg → common/swiglabels.swg} +0 -0
  492. /data/ext/wxruby3/swig/custom/{typemaps → common/typemaps}/swigtypemaps.swg +0 -0
  493. /data/ext/wxruby3/swig/custom/{wx_ruby_shared_ptr.i → common/wx_ruby_shared_ptr.i} +0 -0
  494. /data/ext/wxruby3/swig/custom/{wx_shared_ptr.i → common/wx_shared_ptr.i} +0 -0
  495. /data/ext/wxruby3/swig/custom/{rubyhead.swg → untyped_data/rubyhead.swg} +0 -0
  496. /data/ext/wxruby3/swig/custom/{rubyrun.swg → untyped_data/rubyrun.swg} +0 -0
  497. /data/ext/wxruby3/swig/custom/{swigrun.swg → untyped_data/swigrun.swg} +0 -0
  498. /data/rakelib/lib/core/include/{swigrubyrun.inc → untyped_data/swigrubyrun.inc} +0 -0
  499. /data/rakelib/lib/core/include/{swigrun.inc → untyped_data/swigrun.inc} +0 -0
@@ -1,1379 +0,0 @@
1
- # :stopdoc:
2
- # This file is automatically generated by the WXRuby3 documentation
3
- # generator. Do not alter this file.
4
- # :startdoc:
5
-
6
-
7
- module Wx
8
-
9
- # Standard font families: these are used mainly during {Wx::Font} creation to specify the generic properties of the font without hardcoding in the sources a specific face name.
10
- #
11
- # {Wx::FontFamily} thus allows grouping the font face names of fonts with similar properties. Most wxWidgets ports use lists of fonts for each font family inspired by the data taken from http://www.codestyle.org/css/font-family.
12
- #
13
- class FontFamily < Wx::Enum
14
-
15
- # Chooses a default font.
16
- #
17
- FONTFAMILY_DEFAULT = Wx::FontFamily.new(70)
18
-
19
- # A decorative font.
20
- #
21
- FONTFAMILY_DECORATIVE = Wx::FontFamily.new(71)
22
-
23
- # A formal, serif font.
24
- #
25
- FONTFAMILY_ROMAN = Wx::FontFamily.new(72)
26
-
27
- # A handwriting font.
28
- #
29
- FONTFAMILY_SCRIPT = Wx::FontFamily.new(73)
30
-
31
- # A sans-serif font.
32
- #
33
- FONTFAMILY_SWISS = Wx::FontFamily.new(74)
34
-
35
- # A fixed pitch font.
36
- #
37
- FONTFAMILY_MODERN = Wx::FontFamily.new(75)
38
-
39
- # A teletype (i.e. monospaced) font.
40
- #
41
- FONTFAMILY_TELETYPE = Wx::FontFamily.new(76)
42
-
43
- #
44
- #
45
- FONTFAMILY_MAX = Wx::FontFamily.new(77)
46
-
47
- # Invalid font family value, returned by {Wx::Font#get_family} when the font is invalid for example.
48
- #
49
- FONTFAMILY_UNKNOWN = Wx::FontFamily.new(77)
50
-
51
- end # FontFamily
52
-
53
- # Font styles.
54
- #
55
- #
56
- #
57
- class FontStyle < Wx::Enum
58
-
59
- # The font is drawn without slant.
60
- #
61
- FONTSTYLE_NORMAL = Wx::FontStyle.new(90)
62
-
63
- # The font is slanted in an italic style.
64
- #
65
- FONTSTYLE_ITALIC = Wx::FontStyle.new(93)
66
-
67
- # The font is slanted, but in a roman style.
68
- #
69
- FONTSTYLE_SLANT = Wx::FontStyle.new(94)
70
-
71
- #
72
- #
73
- FONTSTYLE_MAX = Wx::FontStyle.new(95)
74
-
75
- end # FontStyle
76
-
77
- # Font weights.
78
- #
79
- # The values of this enum correspond to the CSS font weight specifications, see https://www.w3.org/TR/css-fonts-4/\#font-weight-prop, with the addition of one font weight bolder than heavy
80
- #
81
- class FontWeight < Wx::Enum
82
-
83
- # Invalid font weight.
84
- #
85
- FONTWEIGHT_INVALID = Wx::FontWeight.new(0)
86
-
87
- # Thin font (weight = 100).
88
- #
89
- FONTWEIGHT_THIN = Wx::FontWeight.new(100)
90
-
91
- # Extra Light (Ultra Light) font (weight = 200).
92
- #
93
- FONTWEIGHT_EXTRALIGHT = Wx::FontWeight.new(200)
94
-
95
- # Light font (weight = 300).
96
- #
97
- FONTWEIGHT_LIGHT = Wx::FontWeight.new(300)
98
-
99
- # Normal font (weight = 400).
100
- #
101
- FONTWEIGHT_NORMAL = Wx::FontWeight.new(400)
102
-
103
- # Medium font (weight = 500).
104
- #
105
- FONTWEIGHT_MEDIUM = Wx::FontWeight.new(500)
106
-
107
- # Semi Bold (Demi Bold) font (weight = 600).
108
- #
109
- FONTWEIGHT_SEMIBOLD = Wx::FontWeight.new(600)
110
-
111
- # Bold font (weight = 700).
112
- #
113
- FONTWEIGHT_BOLD = Wx::FontWeight.new(700)
114
-
115
- # Extra Bold (Ultra Bold) font (weight = 800).
116
- #
117
- FONTWEIGHT_EXTRABOLD = Wx::FontWeight.new(800)
118
-
119
- # Heavy (Black) font (weight = 900).
120
- #
121
- FONTWEIGHT_HEAVY = Wx::FontWeight.new(900)
122
-
123
- # Extra Heavy font (weight = 1000).
124
- #
125
- FONTWEIGHT_EXTRAHEAVY = Wx::FontWeight.new(1000)
126
-
127
- #
128
- #
129
- FONTWEIGHT_MAX = Wx::FontWeight.new(1000)
130
-
131
- end # FontWeight
132
-
133
- # Symbolic font sizes.
134
- #
135
- # The elements of this enum correspond to CSS absolute size specifications, see http://www.w3.org/TR/CSS21/fonts.html\#font-size-props
136
- # @see Wx::Font#set_symbolic_size
137
- #
138
- #
139
- class FontSymbolicSize < Wx::Enum
140
-
141
- # Extra small.
142
- #
143
- FONTSIZE_XX_SMALL = Wx::FontSymbolicSize.new(-3)
144
-
145
- # Very small.
146
- #
147
- FONTSIZE_X_SMALL = Wx::FontSymbolicSize.new(-2)
148
-
149
- # Small.
150
- #
151
- FONTSIZE_SMALL = Wx::FontSymbolicSize.new(-1)
152
-
153
- # Normal.
154
- #
155
- FONTSIZE_MEDIUM = Wx::FontSymbolicSize.new(0)
156
-
157
- # Large.
158
- #
159
- FONTSIZE_LARGE = Wx::FontSymbolicSize.new(1)
160
-
161
- # Very large.
162
- #
163
- FONTSIZE_X_LARGE = Wx::FontSymbolicSize.new(2)
164
-
165
- # Extra large.
166
- #
167
- FONTSIZE_XX_LARGE = Wx::FontSymbolicSize.new(3)
168
-
169
- end # FontSymbolicSize
170
-
171
- # The font flag bits for the new font ctor accepting one combined flags word.
172
- #
173
- #
174
- #
175
- class FontFlag < Wx::Enum
176
-
177
- # no special flags: font with default weight/slant/anti-aliasing
178
- #
179
- FONTFLAG_DEFAULT = Wx::FontFlag.new(0)
180
-
181
- # slant flags (default: no slant)
182
- #
183
- FONTFLAG_ITALIC = Wx::FontFlag.new(1)
184
-
185
- #
186
- #
187
- FONTFLAG_SLANT = Wx::FontFlag.new(2)
188
-
189
- # weight flags (default: medium)
190
- #
191
- FONTFLAG_LIGHT = Wx::FontFlag.new(4)
192
-
193
- #
194
- #
195
- FONTFLAG_BOLD = Wx::FontFlag.new(8)
196
-
197
- # anti-aliasing flag: force on or off (default: the current system default)
198
- #
199
- FONTFLAG_ANTIALIASED = Wx::FontFlag.new(16)
200
-
201
- #
202
- #
203
- FONTFLAG_NOT_ANTIALIASED = Wx::FontFlag.new(32)
204
-
205
- # Underlined style (not underlined by default).
206
- #
207
- FONTFLAG_UNDERLINED = Wx::FontFlag.new(64)
208
-
209
- # Strike-through style (implemented in MSW, GTK, and WXOSX).
210
- #
211
- FONTFLAG_STRIKETHROUGH = Wx::FontFlag.new(128)
212
-
213
- # the mask of all currently used flags
214
- #
215
- FONTFLAG_MASK = Wx::FontFlag.new(255)
216
-
217
- end # FontFlag
218
-
219
- # Font encodings.
220
- #
221
- # See {Wx::Font#set_encoding}.
222
- #
223
- class FontEncoding < Wx::Enum
224
-
225
- # Default system encoding.
226
- #
227
- FONTENCODING_SYSTEM = Wx::FontEncoding.new(-1)
228
-
229
- # Default application encoding: this is the encoding set by calls to {Wx::Font.set_default_encoding}.
230
- #
231
- FONTENCODING_DEFAULT = Wx::FontEncoding.new(0)
232
-
233
- # West European (Latin 1).
234
- #
235
- FONTENCODING_ISO8859_1 = Wx::FontEncoding.new(1)
236
-
237
- # Central and East European (Latin 2).
238
- #
239
- FONTENCODING_ISO8859_2 = Wx::FontEncoding.new(2)
240
-
241
- # Esperanto (Latin 3).
242
- #
243
- FONTENCODING_ISO8859_3 = Wx::FontEncoding.new(3)
244
-
245
- # Baltic (old) (Latin 4).
246
- #
247
- FONTENCODING_ISO8859_4 = Wx::FontEncoding.new(4)
248
-
249
- # Cyrillic.
250
- #
251
- FONTENCODING_ISO8859_5 = Wx::FontEncoding.new(5)
252
-
253
- # Arabic.
254
- #
255
- FONTENCODING_ISO8859_6 = Wx::FontEncoding.new(6)
256
-
257
- # Greek.
258
- #
259
- FONTENCODING_ISO8859_7 = Wx::FontEncoding.new(7)
260
-
261
- # Hebrew.
262
- #
263
- FONTENCODING_ISO8859_8 = Wx::FontEncoding.new(8)
264
-
265
- # Turkish (Latin 5).
266
- #
267
- FONTENCODING_ISO8859_9 = Wx::FontEncoding.new(9)
268
-
269
- # Variation of Latin 4 (Latin 6).
270
- #
271
- FONTENCODING_ISO8859_10 = Wx::FontEncoding.new(10)
272
-
273
- # Thai.
274
- #
275
- FONTENCODING_ISO8859_11 = Wx::FontEncoding.new(11)
276
-
277
- #
278
- #
279
- FONTENCODING_ISO8859_12 = Wx::FontEncoding.new(12)
280
-
281
- # Baltic (Latin 7).
282
- #
283
- FONTENCODING_ISO8859_13 = Wx::FontEncoding.new(13)
284
-
285
- # Latin 8.
286
- #
287
- FONTENCODING_ISO8859_14 = Wx::FontEncoding.new(14)
288
-
289
- # Latin 9 (a.k.a. Latin 0, includes Euro symbol).
290
- #
291
- FONTENCODING_ISO8859_15 = Wx::FontEncoding.new(15)
292
-
293
- #
294
- #
295
- FONTENCODING_ISO8859_MAX = Wx::FontEncoding.new(16)
296
-
297
- # KOI8 Russian.
298
- #
299
- FONTENCODING_KOI8 = Wx::FontEncoding.new(17)
300
-
301
- # KOI8 Ukrainian.
302
- #
303
- FONTENCODING_KOI8_U = Wx::FontEncoding.new(18)
304
-
305
- # Same as MS-DOS CP866.
306
- #
307
- FONTENCODING_ALTERNATIVE = Wx::FontEncoding.new(19)
308
-
309
- # Used under Linux in Bulgaria.
310
- #
311
- FONTENCODING_BULGARIAN = Wx::FontEncoding.new(20)
312
-
313
- # United States (DOS).
314
- #
315
- FONTENCODING_CP437 = Wx::FontEncoding.new(21)
316
-
317
- # Multilingual Latin 1; Western European (DOS).
318
- #
319
- FONTENCODING_CP850 = Wx::FontEncoding.new(22)
320
-
321
- # Latin 2; Central European (DOS).
322
- #
323
- FONTENCODING_CP852 = Wx::FontEncoding.new(23)
324
-
325
- # Cyrillic (primarily Russian).
326
- #
327
- FONTENCODING_CP855 = Wx::FontEncoding.new(24)
328
-
329
- # Russian; Cyrillic (DOS).
330
- #
331
- FONTENCODING_CP866 = Wx::FontEncoding.new(25)
332
-
333
- # Thai (Windows).
334
- #
335
- FONTENCODING_CP874 = Wx::FontEncoding.new(26)
336
-
337
- # Japanese (shift-JIS).
338
- #
339
- FONTENCODING_CP932 = Wx::FontEncoding.new(27)
340
-
341
- # Simplified Chinese (GB2312).
342
- #
343
- FONTENCODING_CP936 = Wx::FontEncoding.new(28)
344
-
345
- # Korean (Unified Hangul Code).
346
- #
347
- FONTENCODING_CP949 = Wx::FontEncoding.new(29)
348
-
349
- # Traditional Chinese (Big5).
350
- #
351
- FONTENCODING_CP950 = Wx::FontEncoding.new(30)
352
-
353
- # Central European (Windows).
354
- #
355
- FONTENCODING_CP1250 = Wx::FontEncoding.new(31)
356
-
357
- # Cyrillic (Windows).
358
- #
359
- FONTENCODING_CP1251 = Wx::FontEncoding.new(32)
360
-
361
- # Latin 1; Western European (Windows).
362
- #
363
- FONTENCODING_CP1252 = Wx::FontEncoding.new(33)
364
-
365
- # Greek (Windows) (8859-7).
366
- #
367
- FONTENCODING_CP1253 = Wx::FontEncoding.new(34)
368
-
369
- # Turkish (Windows).
370
- #
371
- FONTENCODING_CP1254 = Wx::FontEncoding.new(35)
372
-
373
- # Hebrew (Windows).
374
- #
375
- FONTENCODING_CP1255 = Wx::FontEncoding.new(36)
376
-
377
- # Arabic (Windows).
378
- #
379
- FONTENCODING_CP1256 = Wx::FontEncoding.new(37)
380
-
381
- # Baltic (Windows) (same as Latin 7).
382
- #
383
- FONTENCODING_CP1257 = Wx::FontEncoding.new(38)
384
-
385
- # Vietnamese (Windows) (since 2.9.4).
386
- #
387
- FONTENCODING_CP1258 = Wx::FontEncoding.new(39)
388
-
389
- # Korean (Johab) (since 2.9.4).
390
- #
391
- FONTENCODING_CP1361 = Wx::FontEncoding.new(40)
392
-
393
- #
394
- #
395
- FONTENCODING_CP12_MAX = Wx::FontEncoding.new(41)
396
-
397
- # UTF-7 Unicode encoding.
398
- #
399
- FONTENCODING_UTF7 = Wx::FontEncoding.new(42)
400
-
401
- # UTF-8 Unicode encoding.
402
- #
403
- FONTENCODING_UTF8 = Wx::FontEncoding.new(43)
404
-
405
- # Extended Unix Codepage for Japanese.
406
- #
407
- FONTENCODING_EUC_JP = Wx::FontEncoding.new(44)
408
-
409
- # UTF-16 Big Endian Unicode encoding.
410
- #
411
- FONTENCODING_UTF16BE = Wx::FontEncoding.new(45)
412
-
413
- # UTF-16 Little Endian Unicode encoding.
414
- #
415
- FONTENCODING_UTF16LE = Wx::FontEncoding.new(46)
416
-
417
- # UTF-32 Big Endian Unicode encoding.
418
- #
419
- FONTENCODING_UTF32BE = Wx::FontEncoding.new(47)
420
-
421
- # UTF-32 Little Endian Unicode encoding.
422
- #
423
- FONTENCODING_UTF32LE = Wx::FontEncoding.new(48)
424
-
425
- # Roman; Western European (Mac).
426
- #
427
- FONTENCODING_MACROMAN = Wx::FontEncoding.new(49)
428
-
429
- # Japanese (Mac).
430
- #
431
- FONTENCODING_MACJAPANESE = Wx::FontEncoding.new(50)
432
-
433
- # Traditional Chinese (Big5, Mac).
434
- #
435
- FONTENCODING_MACCHINESETRAD = Wx::FontEncoding.new(51)
436
-
437
- # Korean (Mac).
438
- #
439
- FONTENCODING_MACKOREAN = Wx::FontEncoding.new(52)
440
-
441
- # Arabic (Mac).
442
- #
443
- FONTENCODING_MACARABIC = Wx::FontEncoding.new(53)
444
-
445
- # Hebrew (Mac).
446
- #
447
- FONTENCODING_MACHEBREW = Wx::FontEncoding.new(54)
448
-
449
- # Greek (Mac).
450
- #
451
- FONTENCODING_MACGREEK = Wx::FontEncoding.new(55)
452
-
453
- # Cyrillic (Mac).
454
- #
455
- FONTENCODING_MACCYRILLIC = Wx::FontEncoding.new(56)
456
-
457
- # Devanagari (Mac).
458
- #
459
- FONTENCODING_MACDEVANAGARI = Wx::FontEncoding.new(57)
460
-
461
- # Gurmukhi (Mac).
462
- #
463
- FONTENCODING_MACGURMUKHI = Wx::FontEncoding.new(58)
464
-
465
- # Gujarati (Mac).
466
- #
467
- FONTENCODING_MACGUJARATI = Wx::FontEncoding.new(59)
468
-
469
- # Oriya (Mac).
470
- #
471
- FONTENCODING_MACORIYA = Wx::FontEncoding.new(60)
472
-
473
- # Bengali (Mac).
474
- #
475
- FONTENCODING_MACBENGALI = Wx::FontEncoding.new(61)
476
-
477
- # Tamil (Mac).
478
- #
479
- FONTENCODING_MACTAMIL = Wx::FontEncoding.new(62)
480
-
481
- # Telugu (Mac).
482
- #
483
- FONTENCODING_MACTELUGU = Wx::FontEncoding.new(63)
484
-
485
- # Kannada (Mac).
486
- #
487
- FONTENCODING_MACKANNADA = Wx::FontEncoding.new(64)
488
-
489
- # Malajalam (Mac).
490
- #
491
- FONTENCODING_MACMALAJALAM = Wx::FontEncoding.new(65)
492
-
493
- # Sinhalese (Mac).
494
- #
495
- FONTENCODING_MACSINHALESE = Wx::FontEncoding.new(66)
496
-
497
- # Burmese (Mac).
498
- #
499
- FONTENCODING_MACBURMESE = Wx::FontEncoding.new(67)
500
-
501
- # Khmer (Mac).
502
- #
503
- FONTENCODING_MACKHMER = Wx::FontEncoding.new(68)
504
-
505
- # Thai (Mac).
506
- #
507
- FONTENCODING_MACTHAI = Wx::FontEncoding.new(69)
508
-
509
- # Laotian (Mac).
510
- #
511
- FONTENCODING_MACLAOTIAN = Wx::FontEncoding.new(70)
512
-
513
- # Georgian (Mac).
514
- #
515
- FONTENCODING_MACGEORGIAN = Wx::FontEncoding.new(71)
516
-
517
- # Armenian (Mac).
518
- #
519
- FONTENCODING_MACARMENIAN = Wx::FontEncoding.new(72)
520
-
521
- # Simplified Chinese (GB 2312, Mac).
522
- #
523
- FONTENCODING_MACCHINESESIMP = Wx::FontEncoding.new(73)
524
-
525
- # Tibetan (Mac).
526
- #
527
- FONTENCODING_MACTIBETAN = Wx::FontEncoding.new(74)
528
-
529
- # Mongolian (Mac).
530
- #
531
- FONTENCODING_MACMONGOLIAN = Wx::FontEncoding.new(75)
532
-
533
- # Ethiopic (Mac).
534
- #
535
- FONTENCODING_MACETHIOPIC = Wx::FontEncoding.new(76)
536
-
537
- # Latin 2; Central European (Mac).
538
- #
539
- FONTENCODING_MACCENTRALEUR = Wx::FontEncoding.new(77)
540
-
541
- # Vietnamese (Mac).
542
- #
543
- FONTENCODING_MACVIETNAMESE = Wx::FontEncoding.new(78)
544
-
545
- # Arabic (Mac).
546
- #
547
- FONTENCODING_MACARABICEXT = Wx::FontEncoding.new(79)
548
-
549
- # Symbol (Mac).
550
- #
551
- FONTENCODING_MACSYMBOL = Wx::FontEncoding.new(80)
552
-
553
- # Dingbats (Mac).
554
- #
555
- FONTENCODING_MACDINGBATS = Wx::FontEncoding.new(81)
556
-
557
- # Turkish (Mac).
558
- #
559
- FONTENCODING_MACTURKISH = Wx::FontEncoding.new(82)
560
-
561
- # Croatian (Mac).
562
- #
563
- FONTENCODING_MACCROATIAN = Wx::FontEncoding.new(83)
564
-
565
- # Icelandic (Mac).
566
- #
567
- FONTENCODING_MACICELANDIC = Wx::FontEncoding.new(84)
568
-
569
- # Romanian (Mac).
570
- #
571
- FONTENCODING_MACROMANIAN = Wx::FontEncoding.new(85)
572
-
573
- # Celtic (Mac).
574
- #
575
- FONTENCODING_MACCELTIC = Wx::FontEncoding.new(86)
576
-
577
- # Gaelic (Mac).
578
- #
579
- FONTENCODING_MACGAELIC = Wx::FontEncoding.new(87)
580
-
581
- #
582
- #
583
- FONTENCODING_MACKEYBOARD = Wx::FontEncoding.new(88)
584
-
585
- # ISO-2022-JP JIS encoding.
586
- #
587
- FONTENCODING_ISO2022_JP = Wx::FontEncoding.new(89)
588
-
589
- # Highest enumerated encoding value.
590
- #
591
- FONTENCODING_MAX = Wx::FontEncoding.new(90)
592
-
593
- #
594
- #
595
- FONTENCODING_MACMIN = Wx::FontEncoding.new(49)
596
-
597
- #
598
- #
599
- FONTENCODING_MACMAX = Wx::FontEncoding.new(88)
600
-
601
- # Native UTF-16.
602
- #
603
- FONTENCODING_UTF16 = Wx::FontEncoding.new(46)
604
-
605
- # Native UTF-32.
606
- #
607
- FONTENCODING_UTF32 = Wx::FontEncoding.new(48)
608
-
609
- # Alias for the native Unicode encoding on this platform (this is used by {Wx::EncodingConverter} and {Wx::UTFFile} only for now).
610
- #
611
- FONTENCODING_UNICODE = Wx::FontEncoding.new(48)
612
-
613
- # Simplified Chinese.
614
- #
615
- FONTENCODING_GB2312 = Wx::FontEncoding.new(28)
616
-
617
- # Traditional Chinese.
618
- #
619
- FONTENCODING_BIG5 = Wx::FontEncoding.new(30)
620
-
621
- # Japanese Shift JIS.
622
- #
623
- FONTENCODING_SHIFT_JIS = Wx::FontEncoding.new(27)
624
-
625
- # Korean.
626
- #
627
- FONTENCODING_EUC_KR = Wx::FontEncoding.new(29)
628
-
629
- # Korean Johab (since 2.9.4).
630
- #
631
- FONTENCODING_JOHAB = Wx::FontEncoding.new(40)
632
-
633
- # Vietnamese (since 2.9.4).
634
- #
635
- FONTENCODING_VIETNAMESE = Wx::FontEncoding.new(39)
636
-
637
- end # FontEncoding
638
-
639
- # An empty {Wx::Font}.
640
- #
641
- NULL_FONT = nil
642
-
643
- # A font is an object which determines the appearance of text.
644
- #
645
- # Fonts are used for drawing text to a device context, and setting the appearance of a window's text, see {Wx::DC#set_font} and {Wx::Window#set_font}.
646
- # The easiest way to create a custom font is to use {Wx::FontInfo} object to specify the font attributes and then use wxFont::wxFont(const wxFontInfo&) constructor. Alternatively, you could start with one of the pre-defined fonts or use {Wx::Window#get_font} and modify the font, e.g. by increasing its size using {Wx::Font#make_larger} or changing its weight using {Wx::Font#make_bold}.
647
- # This class uses reference counting and copy-on-write internally so that assignments between two instances of this class are very cheap. You can therefore use actual objects instead of pointers without efficiency problems. If an instance of this class is changed it will create its own data internally so that other instances, which previously shared the data using the reference counting, are not affected.
648
- # You can retrieve the current system font settings with {Wx::SystemSettings}.
649
- #
650
- # Category: Graphics Device Interface (GDI)
651
- # Predefined objects/pointers: {Wx::NULL_FONT}, {Wx::NORMAL_FONT}, {Wx::SMALL_FONT}, {Wx::ITALIC_FONT}, {Wx::SWISS_FONT}
652
- # @see wxFont Overview
653
- # @see Wx::DC::SetFont
654
- # @see Wx::DC#draw_text
655
- # @see Wx::DC::GetTextExtent
656
- # @see Wx::FontDialog
657
- # @see Wx::SystemSettings
658
- #
659
- #
660
- #
661
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
662
- class Font < GDIObject
663
-
664
- # Returns a font with the same face/size as the given one but with normal weight and style and not underlined nor stricken through.
665
- # @return [Wx::Font]
666
- def get_base_font; end
667
- alias_method :base_font, :get_base_font
668
-
669
- # Returns the encoding of this font.
670
- #
671
- # Note that under WXGTK the returned value is always {Wx::FontEncoding::FONTENCODING_UTF8}.
672
- # @see Wx::Font#set_encoding
673
- # @return [Wx::FontEncoding]
674
- def get_encoding; end
675
- alias_method :encoding, :get_encoding
676
-
677
- # Returns the face name associated with the font, or the empty string if there is no face information.
678
- #
679
- #
680
- # @see Wx::Font#set_face_name
681
- # @return [String]
682
- def get_face_name; end
683
- alias_method :face_name, :get_face_name
684
-
685
- # Gets the font family if possible.
686
- #
687
- # As described in {Wx::FontFamily} docs the returned value acts as a rough, basic classification of the main font properties (look, spacing).
688
- # If the current font face name is not recognized by {Wx::Font} or by the underlying system, {Wx::FontFamily::FONTFAMILY_DEFAULT} is returned.
689
- # Note that currently this function is not very precise and so not particularly useful. Font families mostly make sense only for font creation, see {Wx::Font#set_family}.
690
- # @see Wx::Font#set_family
691
- # @return [Wx::FontFamily]
692
- def get_family; end
693
- alias_method :family, :get_family
694
-
695
- # Returns the platform-dependent string completely describing this font.
696
- #
697
- # Returned string is always non-empty unless the font is invalid (in which case an assert is triggered).
698
- # Note that the returned string is not meant to be shown or edited by the user: a typical use of this function is for serializing in string-form a {Wx::Font} object.
699
- # @see Wx::Font#set_native_font_info
700
- # @see Wx::Font#get_native_font_info_user_desc
701
- # @return [String]
702
- def get_native_font_info_desc; end
703
- alias_method :native_font_info_desc, :get_native_font_info_desc
704
-
705
- # Returns a user-friendly string for this font object.
706
- #
707
- # Returned string is always non-empty unless the font is invalid (in which case an assert is triggered).
708
- # The string does not encode all {Wx::Font} infos under all platforms; e.g. under WXMSW the font family is not present in the returned string.
709
- # Some examples of the formats of returned strings (which are platform-dependent) are in {Wx::Font#set_native_font_info_user_desc}.
710
- # @see Wx::Font#set_native_font_info_user_desc
711
- # @see Wx::Font#get_native_font_info_desc
712
- # @return [String]
713
- def get_native_font_info_user_desc; end
714
- alias_method :native_font_info_user_desc, :get_native_font_info_user_desc
715
-
716
- # Gets the point size as an integer number.
717
- #
718
- # This function is kept for compatibility reasons. New code should use {Wx::Font#get_fractional_point_size} and support fractional point sizes.
719
- # @see Wx::Font#set_point_size
720
- # @see
721
- #
722
- # @see Wx::Font#get_fractional_point_size
723
- # @return [Integer]
724
- def get_point_size; end
725
- alias_method :point_size, :get_point_size
726
-
727
- # Gets the point size as a floating number.
728
- #
729
- #
730
- # @see SetPointSize(float)
731
- # @return [Float]
732
- def get_fractional_point_size; end
733
- alias_method :fractional_point_size, :get_fractional_point_size
734
-
735
- # Gets the pixel size.
736
- #
737
- # Note that under WXMSW if you passed to {Wx::Font#set_pixel_size} (or to the ctor) a {Wx::Size} object with a null width value, you'll get a null width in the returned object.
738
- # @see Wx::Font#set_pixel_size
739
- # @return [Wx::Size]
740
- def get_pixel_size; end
741
- alias_method :pixel_size, :get_pixel_size
742
-
743
- # Gets the font style.
744
- #
745
- # See {Wx::FontStyle} for a list of valid styles.
746
- # @see Wx::Font#set_style
747
- # @return [Wx::FontStyle]
748
- def get_style; end
749
- alias_method :style, :get_style
750
-
751
- # Returns true if the font is underlined, false otherwise.
752
- #
753
- #
754
- # @see Wx::Font#set_underlined
755
- # @return [Boolean]
756
- def get_underlined; end
757
-
758
- # Returns true if the font is stricken-through, false otherwise.
759
- #
760
- #
761
- # @see Wx::Font#set_strikethrough
762
- # @return [Boolean]
763
- def get_strikethrough; end
764
-
765
- # Gets the font weight.
766
- #
767
- # See {Wx::FontWeight} for a list of valid weight identifiers.
768
- # @see Wx::Font#set_weight
769
- # @return [Wx::FontWeight]
770
- def get_weight; end
771
- alias_method :weight, :get_weight
772
-
773
- # Gets the font weight as an integer value.
774
- #
775
- # See {Wx::FontWeight} for a list of valid weight identifiers and their corresponding integer value.
776
- # @see Wx::Font#set_weight
777
- #
778
- # @see Wx::Font#set_numeric_weight
779
- # @return [Integer]
780
- def get_numeric_weight; end
781
- alias_method :numeric_weight, :get_numeric_weight
782
-
783
- # Returns true if the font is a fixed width (or monospaced) font, false if it is a proportional one or font is invalid.
784
- #
785
- # Note that this function under some platforms is different from just testing for the font family being equal to {Wx::FontFamily::FONTFAMILY_TELETYPE} because native platform-specific functions are used for the check (resulting in a more accurate return value).
786
- # @return [Boolean]
787
- def is_fixed_width; end
788
- alias_method :fixed_width?, :is_fixed_width
789
-
790
- # Returns true if this object is a valid font, false otherwise.
791
- # @return [Boolean]
792
- def is_ok; end
793
- alias_method :ok?, :is_ok
794
-
795
- # Specify the name of a file containing a TrueType font to be made available to the current application.
796
- #
797
- # This method can be used to allow this application to use the font from the given file even if it is not globally installed on the system.
798
- # Under macOS this method actually doesn't do anything other than check for the existence of the file and that it is located inside the "Fonts" subdirectory of the application bundle "Resources" directory. You are responsible for actually making the font file available in this directory and setting ATSApplicationFontsPath to Fonts value in your Info.plist file. See also {Wx::StandardPaths#get_resources_dir}.
799
- # Under MSW this method must be called before any {Wx::GraphicsContext} objects have been created, otherwise the private font won't be usable from them.
800
- # Under Unix this method requires Pango 1.38 or later and will return false and log an error message explaining the problem if this requirement is not satisfied either at compile- or run-time.
801
- # Currently this method is implemented for all major platforms (subject to having Pango 1.38 or later when running configure under Unix) and {Wx::Setup::USE_PRIVATE_FONTS} is always set to 0 under the other platforms, making this function unavailable at compile-time.
802
- #
803
- # true if the font was added and can now be used.
804
- # @param filename [String] Absolute path of the font file.
805
- # @return [Boolean]
806
- def self.add_private_font(filename) end
807
-
808
- # Returns a bold version of this font.
809
- #
810
- #
811
- # @see Wx::Font#make_bold
812
- # @return [Wx::Font]
813
- def bold; end
814
-
815
- # Returns an italic version of this font.
816
- #
817
- #
818
- # @see Wx::Font#make_italic
819
- # @return [Wx::Font]
820
- def italic; end
821
-
822
- # Returns a larger version of this font.
823
- #
824
- # The font size is multiplied by 1.2, the factor of 1.2 being inspired by the W3C CSS specification.
825
- # @see Wx::Font#make_larger
826
- # @see Wx::Font#smaller
827
- # @see Wx::Font#scaled
828
- # @return [Wx::Font]
829
- def larger; end
830
-
831
- # Returns a smaller version of this font.
832
- #
833
- # The font size is divided by 1.2, the factor of 1.2 being inspired by the W3C CSS specification.
834
- # @see Wx::Font#make_smaller
835
- # @see Wx::Font#larger
836
- # @see Wx::Font#scaled
837
- # @return [Wx::Font]
838
- def smaller; end
839
-
840
- # Returns underlined version of this font.
841
- #
842
- #
843
- # @see Wx::Font#make_underlined
844
- # @return [Wx::Font]
845
- def underlined; end
846
-
847
- # Returns stricken-through version of this font.
848
- #
849
- # Currently stricken-through fonts are only supported in WXMSW, WXGTK, and WXOSX.
850
- # @see Wx::Font#make_strikethrough
851
- # @return [Wx::Font]
852
- def strikethrough; end
853
-
854
- # Changes this font to be bold.
855
- #
856
- #
857
- # @see Wx::Font#bold
858
- # @return [Wx::Font]
859
- def make_bold; end
860
-
861
- # Changes this font to be italic.
862
- #
863
- #
864
- # @see Wx::Font#italic
865
- # @return [Wx::Font]
866
- def make_italic; end
867
-
868
- # Changes this font to be larger.
869
- #
870
- # The font size is multiplied by 1.2, the factor of 1.2 being inspired by the W3C CSS specification.
871
- # @see Wx::Font#larger
872
- # @see Wx::Font#make_smaller
873
- # @see Wx::Font#scale
874
- # @return [Wx::Font]
875
- def make_larger; end
876
-
877
- # Changes this font to be smaller.
878
- #
879
- # The font size is divided by 1.2, the factor of 1.2 being inspired by the W3C CSS specification.
880
- # @see Wx::Font#smaller
881
- # @see Wx::Font#make_larger
882
- # @see Wx::Font#scale
883
- # @return [Wx::Font]
884
- def make_smaller; end
885
-
886
- # Changes this font to be underlined.
887
- #
888
- #
889
- # @see Wx::Font#underlined
890
- # @return [Wx::Font]
891
- def make_underlined; end
892
-
893
- # Changes this font to be stricken-through.
894
- #
895
- # Currently stricken-through fonts are only supported in WXMSW, WXGTK, and WXOSX.
896
- # @see Wx::Font#strikethrough
897
- # @return [Wx::Font]
898
- def make_strikethrough; end
899
-
900
- # Changes the size of this font.
901
- #
902
- # The font size is multiplied by the given factor (which may be less than 1 to create a smaller version of the font).
903
- # @see Wx::Font#scaled
904
- # @see Wx::Font#make_larger
905
- # @see Wx::Font#make_smaller
906
- # @param x [Float]
907
- # @return [Wx::Font]
908
- def scale(x) end
909
-
910
- # Returns a scaled version of this font.
911
- #
912
- # The font size is multiplied by the given factor (which may be less than 1 to create a smaller version of the font).
913
- # @see Wx::Font#scale
914
- # @see Wx::Font#larger
915
- # @see Wx::Font#smaller
916
- # @param x [Float]
917
- # @return [Wx::Font]
918
- def scaled(x) end
919
-
920
- # Sets the encoding for this font.
921
- #
922
- # Note that under WXGTK this function has no effect (because the underlying Pango library always uses {Wx::FontEncoding::FONTENCODING_UTF8}).
923
- # @see Wx::Font#get_encoding
924
- # @param encoding [Wx::FontEncoding]
925
- # @return [void]
926
- def set_encoding(encoding) end
927
- alias_method :encoding=, :set_encoding
928
-
929
- # Sets the facename for the font.
930
- #
931
- # <div class="wxrb-remark">
932
- # <b>Remark:</b>
933
- # <p>To avoid portability problems, don't rely on a specific face, but specify the font family instead (see {Wx::FontFamily} and {Wx::Font#set_family}).
934
- # </p>
935
- # </div>
936
- #
937
- # true if the given face name exists; if the face name doesn't exist in the user's system then the font is invalidated (so that {Wx::Font#is_ok} will return false) and false is returned.
938
- # @see Wx::Font#get_face_name
939
- # @see Wx::Font#set_family
940
- # @param faceName [String] A valid facename, which should be on the end-user's system.
941
- # @return [Boolean]
942
- def set_face_name(faceName) end
943
- alias_method :face_name=, :set_face_name
944
-
945
- # Sets the font family.
946
- #
947
- # As described in {Wx::FontFamily} docs the given family value acts as a rough, basic indication of the main font properties (look, spacing).
948
- # Note that changing the font family results in changing the font face name.
949
- # @see Wx::Font#get_family
950
- # @see Wx::Font#set_face_name
951
- # @param family [Wx::FontFamily] One of the {Wx::FontFamily} values.
952
- # @return [void]
953
- def set_family(family) end
954
- alias_method :family=, :set_family
955
-
956
- # Creates the font corresponding to the given native font description string which must have been previously returned by {Wx::Font#get_native_font_info_desc}.
957
- #
958
- # If the string is invalid, font is unchanged. This function is typically used for de-serializing a {Wx::Font} object previously saved in a string-form.
959
- # true if the creation was successful.
960
- # @see Wx::Font#set_native_font_info_user_desc
961
- # @param info [String]
962
- # @return [Boolean]
963
- def set_native_font_info(info) end
964
- alias_method :native_font_info=, :set_native_font_info
965
-
966
- # Creates the font corresponding to the given native font description string and returns true if the creation was successful.
967
- #
968
- # Unlike {Wx::Font#set_native_font_info}, this function accepts strings which are user-friendly. Examples of accepted string formats are:
969
- #
970
- # platform
971
- # generic syntax
972
- # example
973
- #
974
- # WXGTK2
975
- # <code>[underlined] [strikethrough] [FACE-NAME] [bold] [oblique|italic] [POINTSIZE]</code>
976
- # Monospace bold 10
977
- #
978
- # WXMSW
979
- # <code>[light|bold] [italic] [FACE-NAME] [POINTSIZE] [ENCODING]</code>
980
- # Tahoma 10 WINDOWS-1252
981
- #
982
- # Todoadd an example for WXOSX
983
- #
984
- # For more detailed information about the allowed syntaxes you can look at the documentation of the native API used for font-rendering (e.g. pango_font_description_from_string under GTK, although notice that it doesn't support the "underlined" and "strikethrough" attributes and so those are handled by wxWidgets itself).
985
- # Note that unlike {Wx::Font#set_native_font_info}, this function doesn't always restore all attributes of the {Wx::Font} object under all platforms; e.g. on WXMSW the font family is not restored (because GetNativeFontInfoUserDesc doesn't return it on WXMSW). If you want to serialize/deserialize a font in string form, you should use {Wx::Font#get_native_font_info_desc} and {Wx::Font#set_native_font_info} instead.
986
- # @see Wx::Font#set_native_font_info
987
- # @param info [String]
988
- # @return [Boolean]
989
- def set_native_font_info_user_desc(info) end
990
- alias_method :native_font_info_user_desc=, :set_native_font_info_user_desc
991
-
992
- # Sets the font size in points to an integer value.
993
- #
994
- # This is a legacy version of the function only supporting integer point sizes. It can still be used, but to avoid unnecessarily restricting the font size in points to integer values, consider using the new (added in wxWidgets 3.1.2) {Wx::Font#set_fractional_point_size} function instead.
995
- # @param pointSize [Integer]
996
- # @return [void]
997
- def set_point_size(pointSize) end
998
- alias_method :point_size=, :set_point_size
999
-
1000
- # Sets the font size in points.
1001
- #
1002
- # The point size is defined as 1/72 of the Anglo-Saxon inch (25.4 mm): it is approximately 0.0139 inch or 352.8 um.
1003
- # @see Wx::Font#get_fractional_point_size
1004
- # @see Wx::Font#set_point_size
1005
- # @param pointSize [Float] Size in points. This can also be a fractional point size like 11.5.
1006
- # @return [void]
1007
- def set_fractional_point_size(pointSize) end
1008
- alias_method :fractional_point_size=, :set_fractional_point_size
1009
-
1010
- # Sets the pixel size.
1011
- #
1012
- # The height parameter of pixelSize must be positive while the width parameter may also be zero (to indicate that you're not interested in the width of the characters: a suitable width will be chosen for best rendering).
1013
- # This feature (specifying the font pixel size) is directly supported only under WXMSW and WXGTK currently; under other platforms a font with the closest size to the given one is found using binary search (this maybe slower).
1014
- # @see Wx::Font#get_pixel_size
1015
- # @param pixelSize [Array(Integer, Integer), Wx::Size]
1016
- # @return [void]
1017
- def set_pixel_size(pixelSize) end
1018
- alias_method :pixel_size=, :set_pixel_size
1019
-
1020
- # Sets the font style.
1021
- #
1022
- #
1023
- # @see Wx::Font#get_style
1024
- # @param style [Wx::FontStyle] One of the {Wx::FontStyle} enumeration values.
1025
- # @return [void]
1026
- def set_style(style) end
1027
- alias_method :style=, :set_style
1028
-
1029
- # Sets the font size using a predefined symbolic size name.
1030
- #
1031
- # This function allows changing font size to be (very) large or small compared to the standard font size.
1032
- # @see Wx::Font#set_symbolic_size_relative_to.
1033
- # @param size [Wx::FontSymbolicSize]
1034
- # @return [void]
1035
- def set_symbolic_size(size) end
1036
- alias_method :symbolic_size=, :set_symbolic_size
1037
-
1038
- # Sets the font size compared to the base font size.
1039
- #
1040
- # This is the same as {Wx::Font#set_symbolic_size} except that it uses the given font size as the normal font size instead of the standard font size.
1041
- # @param size [Wx::FontSymbolicSize]
1042
- # @param base [Integer]
1043
- # @return [void]
1044
- def set_symbolic_size_relative_to(size, base) end
1045
-
1046
- # Sets underlining.
1047
- #
1048
- #
1049
- # @see Wx::Font#get_underlined
1050
- # @param underlined [Boolean] true to underline, false otherwise.
1051
- # @return [void]
1052
- def set_underlined(underlined) end
1053
- alias_method :underlined=, :set_underlined
1054
-
1055
- # Sets strike-through attribute of the font.
1056
- #
1057
- # Currently stricken-through fonts are only supported in WXMSW, WXGTK, and WXOSX.
1058
- # @see Wx::Font#get_strikethrough
1059
- # @param strikethrough [Boolean] true to add strike-through style, false to remove it.
1060
- # @return [void]
1061
- def set_strikethrough(strikethrough) end
1062
- alias_method :strikethrough=, :set_strikethrough
1063
-
1064
- # Sets the font weight.
1065
- #
1066
- #
1067
- # @see Wx::Font#get_weight
1068
- # @param weight [Wx::FontWeight] One of the {Wx::FontWeight} values.
1069
- # @return [void]
1070
- def set_weight(weight) end
1071
- alias_method :weight=, :set_weight
1072
-
1073
- # Sets the font weight using an integer value.
1074
- #
1075
- # See {Wx::FontWeight} for a list of valid weight identifiers and their corresponding integer value.
1076
- # @see Wx::Font#get_numeric_weight
1077
- # @param weight [Integer] An integer value int the range 1-1000.
1078
- # @return [void]
1079
- def set_numeric_weight(weight) end
1080
- alias_method :numeric_weight=, :set_numeric_weight
1081
-
1082
- # @overload self.create(pointSize, family, style, weight, underline=false, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
1083
- # This function takes the same parameters as the relative wxFont constructor and returns a new font object allocated on the heap.
1084
- #
1085
- # Their use is discouraged, use {Wx::Font} constructor from {Wx::FontInfo} instead.
1086
- # @param pointSize [Integer]
1087
- # @param family [Wx::FontFamily]
1088
- # @param style [Wx::FontStyle]
1089
- # @param weight [Wx::FontWeight]
1090
- # @param underline [Boolean]
1091
- # @param faceName [String]
1092
- # @param encoding [Wx::FontEncoding]
1093
- # @return [Wx::Font]
1094
- # @overload self.create(pointSize, family, flags=Wx::FontFlag::FONTFLAG_DEFAULT, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
1095
- # This function takes the same parameters as the relative wxFont constructor and returns a new font object allocated on the heap.
1096
- #
1097
- # Their use is discouraged, use {Wx::Font} constructor from {Wx::FontInfo} instead.
1098
- # @param pointSize [Integer]
1099
- # @param family [Wx::FontFamily]
1100
- # @param flags [Integer]
1101
- # @param faceName [String]
1102
- # @param encoding [Wx::FontEncoding]
1103
- # @return [Wx::Font]
1104
- # @overload self.create(pixelSize, family, style, weight, underline=false, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
1105
- # This function takes the same parameters as the relative wxFont constructor and returns a new font object allocated on the heap.
1106
- #
1107
- # Their use is discouraged, use {Wx::Font} constructor from {Wx::FontInfo} instead.
1108
- # @param pixelSize [Array(Integer, Integer), Wx::Size]
1109
- # @param family [Wx::FontFamily]
1110
- # @param style [Wx::FontStyle]
1111
- # @param weight [Wx::FontWeight]
1112
- # @param underline [Boolean]
1113
- # @param faceName [String]
1114
- # @param encoding [Wx::FontEncoding]
1115
- # @return [Wx::Font]
1116
- # @overload self.create(pixelSize, family, flags=Wx::FontFlag::FONTFLAG_DEFAULT, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
1117
- # This function takes the same parameters as the relative wxFont constructor and returns a new font object allocated on the heap.
1118
- #
1119
- # Their use is discouraged, use {Wx::Font} constructor from {Wx::FontInfo} instead.
1120
- # @param pixelSize [Array(Integer, Integer), Wx::Size]
1121
- # @param family [Wx::FontFamily]
1122
- # @param flags [Integer]
1123
- # @param faceName [String]
1124
- # @param encoding [Wx::FontEncoding]
1125
- # @return [Wx::Font]
1126
- # @overload self.create(nativeInfoString)
1127
- # This function takes the same parameters as the relative wxFont constructor and returns a new font object allocated on the heap.
1128
- #
1129
- # Their use is discouraged, use {Wx::Font} constructor from {Wx::FontInfo} instead.
1130
- # @param nativeInfoString [String]
1131
- # @return [Wx::Font]
1132
- def self.create(*args) end
1133
-
1134
- # @overload initialize()
1135
- # Default ctor.
1136
- # @return [Wx::Font]
1137
- # @overload initialize(font)
1138
- # Copy constructor, uses reference counting.
1139
- # @param font [Wx::Font,Wx::FontInfo]
1140
- # @return [Wx::Font]
1141
- # @overload initialize(fontInfo)
1142
- # Creates a font object using the specified font description.
1143
- #
1144
- # This is the preferred way to create font objects as using this ctor results in more readable code and it is also extensible, e.g. it could continue to be used if support for more font attributes is added in the future. For example, this constructor provides the only way of creating fonts with strike-through style.
1145
- # Example of creating a font using this ctor:
1146
- # ```ruby
1147
- # font = Wx::Font.new(Wx::FontInfo.new(10).bold().underlined())
1148
- # ```
1149
- # @param fontInfo [Wx::FontInfo]
1150
- # @return [Wx::Font]
1151
- # @overload initialize(pointSize, family, style, weight, underline=false, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
1152
- # Creates a font object with the specified attributes and size in points.
1153
- #
1154
- # Notice that the use of this constructor is often more verbose and less readable than using wxFont(const wxFontInfo& font), e.g. the example in that constructor documentation would need to be written as:
1155
- #
1156
- # ```ruby
1157
- # font = Wx::Font.new(10, Wx::FontFamily::FONTFAMILY_DEFAULT,
1158
- # Wx::FontStyle::FONTSTYLE_NORMAL,
1159
- # Wx::FontWeight::FONTWEIGHT_BOLD, true)
1160
- # ```
1161
- #
1162
- # <div class="wxrb-remark">
1163
- # <b>Remark:</b>
1164
- # <p>If the desired font does not exist, the closest match will be chosen. Under Windows, only scalable TrueType fonts are used.
1165
- # </p>
1166
- # </div>
1167
- # @param pointSize [Integer] Size in points. See {Wx::Font#set_point_size} for more info. Notice that, for historical reasons, the value 70 here is interpreted at {Wx::DEFAULT} and results in creation of the font with the default size and not of a font with the size of 70pt. If you really need the latter, please use SetPointSize(70). Note that this constructor and the matching Create() method overload are the only places in {Wx::Font} API handling {Wx::DEFAULT} specially: neither {Wx::Font#set_point_size} nor the constructor taking {Wx::FontInfo} handle this value in this way.
1168
- # @param family [Wx::FontFamily] The font family: a generic portable way of referring to fonts without specifying a facename. This parameter must be one of the {Wx::FontFamily} enumeration values. If the faceName argument is provided, then it overrides the font family.
1169
- # @param style [Wx::FontStyle] One of {Wx::FontStyle::FONTSTYLE_NORMAL}, {Wx::FontStyle::FONTSTYLE_SLANT} and {Wx::FontStyle::FONTSTYLE_ITALIC}.
1170
- # @param weight [Wx::FontWeight] Font weight, sometimes also referred to as font boldness. One of the {Wx::FontWeight} enumeration values.
1171
- # @param underline [Boolean] The value can be true or false.
1172
- # @param faceName [String] An optional string specifying the face name to be used. If it is an empty string, a default face name will be chosen based on the family.
1173
- # @param encoding [Wx::FontEncoding] An encoding which may be one of the enumeration values of {Wx::FontEncoding}. If the specified encoding isn't available, no font is created (see also Font Encodings).
1174
- # @return [Wx::Font]
1175
- # @overload initialize(pixelSize, family, style, weight, underline=false, faceName=(''), encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
1176
- # Creates a font object with the specified attributes and size in pixels.
1177
- #
1178
- # Notice that the use of this constructor is often more verbose and less readable than the use of constructor from {Wx::FontInfo}, consider using that constructor instead.
1179
- #
1180
- # <div class="wxrb-remark">
1181
- # <b>Remark:</b>
1182
- # <p>If the desired font does not exist, the closest match will be chosen. Under Windows, only scalable TrueType fonts are used.
1183
- # </p>
1184
- # </div>
1185
- # @param pixelSize [Array(Integer, Integer), Wx::Size] Size in pixels. See {Wx::Font#set_pixel_size} for more info.
1186
- # @param family [Wx::FontFamily] The font family: a generic portable way of referring to fonts without specifying a facename. This parameter must be one of the {Wx::FontFamily} enumeration values. If the faceName argument is provided, then it overrides the font family.
1187
- # @param style [Wx::FontStyle] One of {Wx::FontStyle::FONTSTYLE_NORMAL}, {Wx::FontStyle::FONTSTYLE_SLANT} and {Wx::FontStyle::FONTSTYLE_ITALIC}.
1188
- # @param weight [Wx::FontWeight] Font weight, sometimes also referred to as font boldness. One of the {Wx::FontWeight} enumeration values.
1189
- # @param underline [Boolean] The value can be true or false.
1190
- # @param faceName [String] An optional string specifying the face name to be used. If it is an empty string, a default face name will be chosen based on the family.
1191
- # @param encoding [Wx::FontEncoding] An encoding which may be one of the enumeration values of {Wx::FontEncoding}. If the specified encoding isn't available, no font is created (see also Font Encodings).
1192
- # @return [Wx::Font]
1193
- # @overload initialize(nativeInfoString)
1194
- # Constructor from font description string.
1195
- #
1196
- # This constructor uses {Wx::Font#set_native_font_info} to initialize the font. If fontdesc is invalid the font remains uninitialized, i.e. its {Wx::Font#is_ok} method will return false.
1197
- # @param nativeInfoString [String]
1198
- # @return [Wx::Font]
1199
- def initialize(*args) end
1200
-
1201
- # Equality operator.
1202
- #
1203
- # See reference-counted object comparison for more info.
1204
- # @param font [Wx::Font,Wx::FontInfo]
1205
- # @return [Boolean]
1206
- def ==(font) end
1207
-
1208
- # Returns the current application's default encoding.
1209
- #
1210
- #
1211
- # @see Font Encodings
1212
- # @see Wx::Font.set_default_encoding
1213
- # @return [Wx::FontEncoding]
1214
- def self.get_default_encoding; end
1215
-
1216
- # Sets the default font encoding.
1217
- #
1218
- #
1219
- # @see Font Encodings
1220
- # @see Wx::Font.get_default_encoding
1221
- # @param encoding [Wx::FontEncoding]
1222
- # @return [void]
1223
- def self.set_default_encoding(encoding) end
1224
-
1225
- # Get the raw weight value corresponding to the given symbolic constant.
1226
- #
1227
- # For compatibility, this function handles the values {Wx::NORMAL}, {Wx::LIGHT} and {Wx::BOLD}, that have values 90, 91 and 92, specially and converts them to the corresponding {Wx::FONTWEIGHT_XXX} weight value.
1228
- #
1229
- # Numeric weight, between 1 and 1000.
1230
- # @param weight [Wx::FontWeight] A valid element of {Wx::FontWeight} enum, i.e. this argument can't have value {Wx::FontWeight::FONTWEIGHT_INVALID}.
1231
- # @return [Integer]
1232
- def self.get_numeric_weight_of(weight) end
1233
-
1234
- end # Font
1235
-
1236
- # This class is a helper used for {Wx::Font} creation using named parameter idiom: it allows specifying various {Wx::Font} attributes using the chained calls to its clearly named methods instead of passing them in the fixed order to {Wx::Font} constructors.
1237
- #
1238
- # For example, to create an italic font with the given face name and size you could use:
1239
- # ```ruby
1240
- # font = Wx::Font.new(Wx::FontInfo.new(12).face_name('Helvetica').italic())
1241
- # ```
1242
- #
1243
- # Notice that all of the methods of this object return a reference to the object itself, allowing the calls to them to be chained as in the example above.
1244
- # All methods taking boolean parameters can be used to turn the specified font attribute on or off and turn it on by default.
1245
- #
1246
- #
1247
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
1248
- class FontInfo < ::Object
1249
-
1250
- # @overload initialize()
1251
- # Default constructor uses the default font size for the current platform.
1252
- # @return [Wx::FontInfo]
1253
- # @overload initialize(pointSize)
1254
- # Constructor setting the font size in points to use.
1255
- #
1256
- # Note that until wxWidgets 3.1.2 fractional point sizes were not supported, and the type of pointSize was int.
1257
- # @see Wx::Font#set_point_size
1258
- # @param pointSize [Float]
1259
- # @return [Wx::FontInfo]
1260
- # @overload initialize(pixelSize)
1261
- # Constructor setting the font size in pixels to use.
1262
- #
1263
- #
1264
- # @see Wx::Font#set_pixel_size
1265
- # @param pixelSize [Array(Integer, Integer), Wx::Size]
1266
- # @return [Wx::FontInfo]
1267
- def initialize(*args) end
1268
-
1269
- # Set the font family.
1270
- #
1271
- # The family is a generic portable way of referring to fonts without specifying a precise face name. This parameter must be one of the {Wx::FontFamily} enumeration values.
1272
- # If the {Wx::FontInfo#face_name} is used, then it overrides the font family.
1273
- # @see Wx::Font#set_family
1274
- # @param family [Wx::FontFamily]
1275
- # @return [Wx::FontInfo]
1276
- def family(family) end
1277
-
1278
- # Set the font face name to use.
1279
- #
1280
- # Face names are not portable, so prefer to use {Wx::FontInfo#family} in portable code.
1281
- # @see Wx::Font#set_face_name
1282
- # @param faceName [String]
1283
- # @return [Wx::FontInfo]
1284
- def face_name(faceName) end
1285
-
1286
- # Specify the weight of the font.
1287
- # @param weight [Integer] A font weight in the range from 1 to 1000, inclusive, with 1 being the thinnest and 1000 the heaviest possible font variant. {Wx::FONTWEIGHT_XXX} values from {Wx::FontWeight} enum can be used here.
1288
- # @return [Wx::FontInfo]
1289
- def weight(weight) end
1290
-
1291
- # Use a bold version of the font.
1292
- #
1293
- # This is a wrapper for {Wx::FontInfo#weight} calling it with {Wx::FontWeight::FONTWEIGHT_BOLD} argument.
1294
- # @see Wx::FontWeight
1295
- # @see Wx::Font#set_weight
1296
- # @param bold [Boolean]
1297
- # @return [Wx::FontInfo]
1298
- def bold(bold=true) end
1299
-
1300
- # Use a lighter version of the font.
1301
- #
1302
- # This is a wrapper for {Wx::FontInfo#weight} calling it with {Wx::FontWeight::FONTWEIGHT_LIGHT} argument.
1303
- # @see Wx::FontWeight
1304
- # @see Wx::Font#set_weight
1305
- # @param light [Boolean]
1306
- # @return [Wx::FontInfo]
1307
- def light(light=true) end
1308
-
1309
- # Use an italic version of the font.
1310
- #
1311
- # This is a wrapper for {Wx::FontInfo#style} calling it with {Wx::FontStyle::FONTSTYLE_ITALIC} argument.
1312
- # @see Wx::FontStyle
1313
- # @see Wx::Font#set_style
1314
- # @param italic [Boolean]
1315
- # @return [Wx::FontInfo]
1316
- def italic(italic=true) end
1317
-
1318
- # Use a slanted version of the font.
1319
- #
1320
- # This is a wrapper for {Wx::FontInfo#style} calling it with {Wx::FontStyle::FONTSTYLE_SLANT} argument.
1321
- # @see Wx::FontStyle
1322
- # @see Wx::Font#set_style
1323
- # @param slant [Boolean]
1324
- # @return [Wx::FontInfo]
1325
- def slant(slant=true) end
1326
-
1327
- # Specify the style of the font using one of {Wx::FontStyle} constants.
1328
- # @param style [Wx::FontStyle]
1329
- # @return [Wx::FontInfo]
1330
- def style(style) end
1331
-
1332
- # Set anti-aliasing flag.
1333
- #
1334
- # Force the use of anti-aliasing on or off.
1335
- # Currently this is not implemented, i.e. using this method doesn't do anything.
1336
- # @param antiAliased [Boolean]
1337
- # @return [Wx::FontInfo]
1338
- def anti_aliased(antiAliased=true) end
1339
-
1340
- # Use an underlined version of the font.
1341
- # @param underlined [Boolean]
1342
- # @return [Wx::FontInfo]
1343
- def underlined(underlined=true) end
1344
-
1345
- # Use a strike-through version of the font.
1346
- #
1347
- # Currently this is only implemented in WXMSW, WXGTK, and WXOSX.
1348
- # @param strikethrough [Boolean]
1349
- # @return [Wx::FontInfo]
1350
- def strikethrough(strikethrough=true) end
1351
-
1352
- # Set the font encoding to use.
1353
- #
1354
- # This is mostly unneeded in Unicode builds of wxWidgets.
1355
- # @see Wx::FontEncoding
1356
- # @see Wx::Font#set_encoding
1357
- # @param encoding [Wx::FontEncoding]
1358
- # @return [Wx::FontInfo]
1359
- def encoding(encoding) end
1360
-
1361
- # Set all the font attributes at once.
1362
- #
1363
- # See {Wx::FontFlag} for the various flags that can be used.
1364
- # Note that calling this method affects the font weight stored in this object: it is set to {Wx::FontWeight::FONTWEIGHT_LIGHT} or {Wx::FontWeight::FONTWEIGHT_BOLD} if the corresponding flag is present in flags, or {Wx::FontWeight::FONTWEIGHT_NORMAL} otherwise.
1365
- # @param flags [Integer]
1366
- # @return [Wx::FontInfo]
1367
- def all_flags(flags) end
1368
-
1369
- # Get the symbolic weight closest to the given raw weight value.
1370
- #
1371
- # A valid element of {Wx::FontWeight} enum.
1372
- # @param numWeight [Integer] A valid raw weight value, i.e. a value in the range 1 to 1000, inclusive.
1373
- # @return [Wx::FontWeight]
1374
- def self.get_weight_closest_to_numeric_value(numWeight) end
1375
-
1376
- end # FontInfo
1377
-
1378
-
1379
- end