wxruby3 1.6.0 → 1.7.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 (541) hide show
  1. checksums.yaml +4 -4
  2. data/CREDITS.md +32 -25
  3. data/INSTALL.md +21 -6
  4. data/README.md +5 -5
  5. data/assets/repo-social-preview.odg +0 -0
  6. data/assets/repo-social-preview.xcf +0 -0
  7. data/ext/wxruby3/include/wxRubyApp.h +58 -45
  8. data/ext/wxruby3/include/wxruby-runtime.h +78 -1
  9. data/ext/wxruby3/swig/common.i +2 -2
  10. data/ext/wxruby3/swig/custom/director.swg +2 -2
  11. data/ext/wxruby3/swig/custom/rubyprimtypes.swg +59 -15
  12. data/ext/wxruby3/swig/custom/rubyrun.swg +4 -0
  13. data/ext/wxruby3/swig/custom/rubytracking.swg +4 -0
  14. data/ext/wxruby3/swig/custom/swiglabels.swg +129 -0
  15. data/ext/wxruby3/swig/custom/swigrun.swg +15 -0
  16. data/ext/wxruby3/swig/custom/typemaps/swigtypemaps.swg +20 -0
  17. data/ext/wxruby3/swig/mark_free_impl.i +154 -88
  18. data/ext/wxruby3/swig/memory_management.i +1 -0
  19. data/ext/wxruby3/swig/wx.i +73 -44
  20. data/lib/wx/aui/events/evt_list.rb +148 -0
  21. data/lib/wx/aui/require.rb +0 -1
  22. data/lib/wx/core/calendar_ctrl.rb +15 -0
  23. data/lib/wx/core/clipboard.rb +9 -13
  24. data/lib/wx/core/config.rb +1 -1
  25. data/lib/wx/core/events/evt_list.rb +1458 -0
  26. data/lib/wx/core/font/encoding.rb +113 -0
  27. data/lib/wx/core/generic_validator.rb +83 -31
  28. data/lib/wx/core/tipwindow.rb +16 -0
  29. data/lib/wx/core/variant.rb +6 -0
  30. data/lib/wx/doc/aui/auitabctrl.rb +35 -0
  31. data/lib/wx/doc/config.rb +2 -2
  32. data/lib/wx/doc/functions.rb +1 -1
  33. data/lib/wx/doc/gen/about_dialog_info.rb +330 -0
  34. data/lib/wx/doc/gen/accelerator.rb +178 -0
  35. data/lib/wx/doc/gen/activity_indicator.rb +83 -0
  36. data/lib/wx/doc/gen/affine_matrix2d.rb +284 -0
  37. data/lib/wx/doc/gen/animation.rb +275 -0
  38. data/lib/wx/doc/gen/animation_ctrl.rb +300 -0
  39. data/lib/wx/doc/gen/any_button.rb +191 -0
  40. data/lib/wx/doc/gen/app.rb +463 -0
  41. data/lib/wx/doc/gen/app_traits.rb +396 -0
  42. data/lib/wx/doc/gen/art_provider.rb +605 -0
  43. data/lib/wx/doc/gen/aui/aui_dock_art.rb +455 -0
  44. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +54 -0
  45. data/lib/wx/doc/gen/aui/aui_manager.rb +847 -0
  46. data/lib/wx/doc/gen/aui/aui_manager_event.rb +131 -0
  47. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +180 -0
  48. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +59 -0
  49. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +130 -0
  50. data/lib/wx/doc/gen/aui/aui_notebook.rb +631 -0
  51. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +233 -0
  52. data/lib/wx/doc/gen/aui/aui_pane_info.rb +769 -0
  53. data/lib/wx/doc/gen/aui/aui_tab_art.rb +352 -0
  54. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +14 -0
  55. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +510 -0
  56. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +340 -0
  57. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +244 -0
  58. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +257 -0
  59. data/lib/wx/doc/gen/aui/event_list.rb +179 -0
  60. data/lib/wx/doc/gen/banner_window.rb +124 -0
  61. data/lib/wx/doc/gen/bitmap.rb +731 -0
  62. data/lib/wx/doc/gen/bitmap_button.rb +123 -0
  63. data/lib/wx/doc/gen/bitmap_combo_box.rb +221 -0
  64. data/lib/wx/doc/gen/book_ctrl_base.rb +273 -0
  65. data/lib/wx/doc/gen/book_ctrl_event.rb +66 -0
  66. data/lib/wx/doc/gen/box_sizer.rb +85 -0
  67. data/lib/wx/doc/gen/brush.rb +251 -0
  68. data/lib/wx/doc/gen/busy_info.rb +157 -0
  69. data/lib/wx/doc/gen/button.rb +182 -0
  70. data/lib/wx/doc/gen/calculate_layout_event.rb +62 -0
  71. data/lib/wx/doc/gen/calendar_ctrl.rb +505 -0
  72. data/lib/wx/doc/gen/calendar_date_attr.rb +138 -0
  73. data/lib/wx/doc/gen/calendar_event.rb +147 -0
  74. data/lib/wx/doc/gen/caret.rb +97 -0
  75. data/lib/wx/doc/gen/check_box.rb +175 -0
  76. data/lib/wx/doc/gen/check_list_box.rb +121 -0
  77. data/lib/wx/doc/gen/choice.rb +175 -0
  78. data/lib/wx/doc/gen/choicebook.rb +116 -0
  79. data/lib/wx/doc/gen/client_dc.rb +43 -0
  80. data/lib/wx/doc/gen/clipboard.rb +144 -0
  81. data/lib/wx/doc/gen/collapsible_pane.rb +138 -0
  82. data/lib/wx/doc/gen/collapsible_pane_event.rb +46 -0
  83. data/lib/wx/doc/gen/colour.rb +333 -0
  84. data/lib/wx/doc/gen/colour_dialog.rb +190 -0
  85. data/lib/wx/doc/gen/colour_picker_ctrl.rb +110 -0
  86. data/lib/wx/doc/gen/colour_picker_event.rb +77 -0
  87. data/lib/wx/doc/gen/combo_box.rb +292 -0
  88. data/lib/wx/doc/gen/combo_ctrl.rb +662 -0
  89. data/lib/wx/doc/gen/command_link_button.rb +134 -0
  90. data/lib/wx/doc/gen/config_base.rb +10 -0
  91. data/lib/wx/doc/gen/context_help_button.rb +109 -0
  92. data/lib/wx/doc/gen/control.rb +277 -0
  93. data/lib/wx/doc/gen/control_with_items.rb +253 -0
  94. data/lib/wx/doc/gen/core.rb +45 -0
  95. data/lib/wx/doc/gen/credential_entry_dialog.rb +137 -0
  96. data/lib/wx/doc/gen/cursor.rb +193 -0
  97. data/lib/wx/doc/gen/data_format.rb +85 -0
  98. data/lib/wx/doc/gen/data_object.rb +436 -0
  99. data/lib/wx/doc/gen/data_object_simple_base.rb +10 -0
  100. data/lib/wx/doc/gen/date_event.rb +49 -0
  101. data/lib/wx/doc/gen/date_picker_ctrl.rb +161 -0
  102. data/lib/wx/doc/gen/dc.rb +1631 -0
  103. data/lib/wx/doc/gen/dc_overlay.rb +102 -0
  104. data/lib/wx/doc/gen/defs.rb +2802 -0
  105. data/lib/wx/doc/gen/dial_up_event.rb +45 -0
  106. data/lib/wx/doc/gen/dial_up_manager.rb +149 -0
  107. data/lib/wx/doc/gen/dialog.rb +541 -0
  108. data/lib/wx/doc/gen/dir_dialog.rb +164 -0
  109. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +90 -0
  110. data/lib/wx/doc/gen/dir_picker_ctrl.rb +125 -0
  111. data/lib/wx/doc/gen/display.rb +238 -0
  112. data/lib/wx/doc/gen/drag_drop.rb +299 -0
  113. data/lib/wx/doc/gen/drag_image.rb +116 -0
  114. data/lib/wx/doc/gen/editable_list_box.rb +109 -0
  115. data/lib/wx/doc/gen/event.rb +990 -0
  116. data/lib/wx/doc/gen/event_blocker.rb +50 -0
  117. data/lib/wx/doc/gen/event_filter.rb +92 -0
  118. data/lib/wx/doc/gen/event_list.rb +1644 -0
  119. data/lib/wx/doc/gen/events.rb +2809 -0
  120. data/lib/wx/doc/gen/evt_handler.rb +229 -0
  121. data/lib/wx/doc/gen/ext_help_controller.rb +109 -0
  122. data/lib/wx/doc/gen/file_ctrl.rb +231 -0
  123. data/lib/wx/doc/gen/file_ctrl_event.rb +83 -0
  124. data/lib/wx/doc/gen/file_dialog.rb +353 -0
  125. data/lib/wx/doc/gen/file_dialog_custom_control.rb +165 -0
  126. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +158 -0
  127. data/lib/wx/doc/gen/file_dir_picker_event.rb +100 -0
  128. data/lib/wx/doc/gen/file_picker_ctrl.rb +132 -0
  129. data/lib/wx/doc/gen/file_system.rb +232 -0
  130. data/lib/wx/doc/gen/find_dialog_event.rb +126 -0
  131. data/lib/wx/doc/gen/find_replace_data.rb +60 -0
  132. data/lib/wx/doc/gen/find_replace_dialog.rb +58 -0
  133. data/lib/wx/doc/gen/flex_grid_sizer.rb +199 -0
  134. data/lib/wx/doc/gen/font.rb +1379 -0
  135. data/lib/wx/doc/gen/font_data.rb +151 -0
  136. data/lib/wx/doc/gen/font_dialog.rb +88 -0
  137. data/lib/wx/doc/gen/font_picker_ctrl.rb +143 -0
  138. data/lib/wx/doc/gen/font_picker_event.rb +65 -0
  139. data/lib/wx/doc/gen/frame.rb +352 -0
  140. data/lib/wx/doc/gen/fs_file.rb +337 -0
  141. data/lib/wx/doc/gen/functions.rb +10 -0
  142. data/lib/wx/doc/gen/gauge.rb +157 -0
  143. data/lib/wx/doc/gen/gb_sizer_item.rb +68 -0
  144. data/lib/wx/doc/gen/gcdc.rb +46 -0
  145. data/lib/wx/doc/gen/gdi_common.rb +1271 -0
  146. data/lib/wx/doc/gen/gdi_object.rb +31 -0
  147. data/lib/wx/doc/gen/generic_about_dialog.rb +140 -0
  148. data/lib/wx/doc/gen/generic_dir_ctrl.rb +223 -0
  149. data/lib/wx/doc/gen/geometry.rb +661 -0
  150. data/lib/wx/doc/gen/graphics_context.rb +1184 -0
  151. data/lib/wx/doc/gen/graphics_object.rb +750 -0
  152. data/lib/wx/doc/gen/grid/event_list.rb +191 -0
  153. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +40 -0
  154. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +280 -0
  155. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +35 -0
  156. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +37 -0
  157. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +49 -0
  158. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +35 -0
  159. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +46 -0
  160. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +38 -0
  161. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +45 -0
  162. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +40 -0
  163. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +197 -0
  164. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +39 -0
  165. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +44 -0
  166. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +45 -0
  167. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +79 -0
  168. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +46 -0
  169. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +35 -0
  170. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +108 -0
  171. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +35 -0
  172. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +49 -0
  173. data/lib/wx/doc/gen/grid/grid_ctrl.rb +3002 -0
  174. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +95 -0
  175. data/lib/wx/doc/gen/grid/grid_event.rb +129 -0
  176. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +104 -0
  177. data/lib/wx/doc/gen/grid/grid_size_event.rb +85 -0
  178. data/lib/wx/doc/gen/grid/grid_string_table.rb +142 -0
  179. data/lib/wx/doc/gen/grid/grid_table_base.rb +317 -0
  180. data/lib/wx/doc/gen/grid/grid_table_message.rb +81 -0
  181. data/lib/wx/doc/gen/grid_bag_sizer.rb +323 -0
  182. data/lib/wx/doc/gen/grid_sizer.rb +195 -0
  183. data/lib/wx/doc/gen/gui_event_loop.rb +159 -0
  184. data/lib/wx/doc/gen/h_scrolled_window.rb +562 -0
  185. data/lib/wx/doc/gen/header_ctrl.rb +880 -0
  186. data/lib/wx/doc/gen/header_ctrl_event.rb +133 -0
  187. data/lib/wx/doc/gen/help_controller.rb +195 -0
  188. data/lib/wx/doc/gen/help_provider.rb +98 -0
  189. data/lib/wx/doc/gen/html/event_list.rb +38 -0
  190. data/lib/wx/doc/gen/html/html_cell.rb +536 -0
  191. data/lib/wx/doc/gen/html/html_cell_event.rb +69 -0
  192. data/lib/wx/doc/gen/html/html_data_object.rb +42 -0
  193. data/lib/wx/doc/gen/html/html_easy_printing.rb +203 -0
  194. data/lib/wx/doc/gen/html/html_help_controller.rb +340 -0
  195. data/lib/wx/doc/gen/html/html_help_data.rb +159 -0
  196. data/lib/wx/doc/gen/html/html_help_window.rb +258 -0
  197. data/lib/wx/doc/gen/html/html_link_event.rb +41 -0
  198. data/lib/wx/doc/gen/html/html_list_box.rb +346 -0
  199. data/lib/wx/doc/gen/html/html_printout.rb +109 -0
  200. data/lib/wx/doc/gen/html/html_window.rb +461 -0
  201. data/lib/wx/doc/gen/hyperlink_ctrl.rb +311 -0
  202. data/lib/wx/doc/gen/hyperlink_event.rb +44 -0
  203. data/lib/wx/doc/gen/icon.rb +267 -0
  204. data/lib/wx/doc/gen/icon_location.rb +40 -0
  205. data/lib/wx/doc/gen/image.rb +1371 -0
  206. data/lib/wx/doc/gen/image_list.rb +168 -0
  207. data/lib/wx/doc/gen/info_bar.rb +195 -0
  208. data/lib/wx/doc/gen/keyboard_state.rb +140 -0
  209. data/lib/wx/doc/gen/list_box.rb +304 -0
  210. data/lib/wx/doc/gen/list_ctrl.rb +1774 -0
  211. data/lib/wx/doc/gen/list_event.rb +208 -0
  212. data/lib/wx/doc/gen/listbook.rb +116 -0
  213. data/lib/wx/doc/gen/locale.rb +4293 -0
  214. data/lib/wx/doc/gen/log.rb +603 -0
  215. data/lib/wx/doc/gen/mdi_client_window.rb +47 -0
  216. data/lib/wx/doc/gen/mdi_frame.rb +324 -0
  217. data/lib/wx/doc/gen/media_ctrl.rb +269 -0
  218. data/lib/wx/doc/gen/media_event.rb +117 -0
  219. data/lib/wx/doc/gen/memory_dc.rb +174 -0
  220. data/lib/wx/doc/gen/menu.rb +509 -0
  221. data/lib/wx/doc/gen/menu_bar.rb +287 -0
  222. data/lib/wx/doc/gen/menu_item.rb +362 -0
  223. data/lib/wx/doc/gen/message_dialog.rb +238 -0
  224. data/lib/wx/doc/gen/mini_frame.rb +108 -0
  225. data/lib/wx/doc/gen/mirror_dc.rb +22 -0
  226. data/lib/wx/doc/gen/mouse_state.rb +150 -0
  227. data/lib/wx/doc/gen/multi_choice_dialog.rb +80 -0
  228. data/lib/wx/doc/gen/non_owned_window.rb +49 -0
  229. data/lib/wx/doc/gen/notebook.rb +278 -0
  230. data/lib/wx/doc/gen/num_validator.rb +37 -0
  231. data/lib/wx/doc/gen/number_entry_dialog.rb +93 -0
  232. data/lib/wx/doc/gen/object.rb +59 -0
  233. data/lib/wx/doc/gen/owner_drawn_combo_box.rb +395 -0
  234. data/lib/wx/doc/gen/paint_dc.rb +27 -0
  235. data/lib/wx/doc/gen/palette.rb +92 -0
  236. data/lib/wx/doc/gen/panel.rb +127 -0
  237. data/lib/wx/doc/gen/pen.rb +511 -0
  238. data/lib/wx/doc/gen/persistence_manager.rb +135 -0
  239. data/lib/wx/doc/gen/persistent_object.rb +52 -0
  240. data/lib/wx/doc/gen/persistent_window.rb +241 -0
  241. data/lib/wx/doc/gen/pg/event_list.rb +106 -0
  242. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +54 -0
  243. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +292 -0
  244. data/lib/wx/doc/gen/pg/pg_cell.rb +177 -0
  245. data/lib/wx/doc/gen/pg/pg_editor.rb +721 -0
  246. data/lib/wx/doc/gen/pg/pg_multi_button.rb +152 -0
  247. data/lib/wx/doc/gen/pg/pg_properties.rb +2829 -0
  248. data/lib/wx/doc/gen/pg/pg_property.rb +2078 -0
  249. data/lib/wx/doc/gen/pg/pg_validation_info.rb +344 -0
  250. data/lib/wx/doc/gen/pg/property_grid.rb +740 -0
  251. data/lib/wx/doc/gen/pg/property_grid_event.rb +184 -0
  252. data/lib/wx/doc/gen/pg/property_grid_interface.rb +1098 -0
  253. data/lib/wx/doc/gen/pg/property_grid_manager.rb +415 -0
  254. data/lib/wx/doc/gen/pg/property_grid_page.rb +354 -0
  255. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +165 -0
  256. data/lib/wx/doc/gen/picker_base.rb +152 -0
  257. data/lib/wx/doc/gen/platform_info.rb +622 -0
  258. data/lib/wx/doc/gen/popup_window.rb +107 -0
  259. data/lib/wx/doc/gen/progress_dialog.rb +100 -0
  260. data/lib/wx/doc/gen/property_sheet_dialog.rb +216 -0
  261. data/lib/wx/doc/gen/prt/event_list.rb +17 -0
  262. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +44 -0
  263. data/lib/wx/doc/gen/prt/post_script_dc.rb +30 -0
  264. data/lib/wx/doc/gen/prt/preview_frame.rb +78 -0
  265. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +151 -0
  266. data/lib/wx/doc/gen/prt/print_data.rb +804 -0
  267. data/lib/wx/doc/gen/prt/print_dialog.rb +55 -0
  268. data/lib/wx/doc/gen/prt/printer.rb +518 -0
  269. data/lib/wx/doc/gen/prt/printer_dc.rb +37 -0
  270. data/lib/wx/doc/gen/query_layout_info_event.rb +106 -0
  271. data/lib/wx/doc/gen/radio_box.rb +306 -0
  272. data/lib/wx/doc/gen/radio_button.rb +159 -0
  273. data/lib/wx/doc/gen/rbn/event_list.rb +136 -0
  274. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +1132 -0
  275. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +308 -0
  276. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +45 -0
  277. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +458 -0
  278. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +63 -0
  279. data/lib/wx/doc/gen/rbn/ribbon_control.rb +143 -0
  280. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +229 -0
  281. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +55 -0
  282. data/lib/wx/doc/gen/rbn/ribbon_page.rb +174 -0
  283. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +270 -0
  284. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +45 -0
  285. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +360 -0
  286. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +42 -0
  287. data/lib/wx/doc/gen/rearrange_ctrl.rb +78 -0
  288. data/lib/wx/doc/gen/rearrange_list.rb +123 -0
  289. data/lib/wx/doc/gen/region.rb +380 -0
  290. data/lib/wx/doc/gen/region_iterator.rb +76 -0
  291. data/lib/wx/doc/gen/rich_tool_tip.rb +154 -0
  292. data/lib/wx/doc/gen/rtc/event_list.rb +125 -0
  293. data/lib/wx/doc/gen/rtc/rich_text_box.rb +445 -0
  294. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +1188 -0
  295. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +41 -0
  296. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +538 -0
  297. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +2103 -0
  298. data/lib/wx/doc/gen/rtc/rich_text_event.rb +173 -0
  299. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +181 -0
  300. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +319 -0
  301. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +193 -0
  302. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +102 -0
  303. data/lib/wx/doc/gen/rtc/rich_text_image.rb +337 -0
  304. data/lib/wx/doc/gen/rtc/rich_text_object.rb +2922 -0
  305. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1240 -0
  306. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +258 -0
  307. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +344 -0
  308. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +227 -0
  309. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +59 -0
  310. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +169 -0
  311. data/lib/wx/doc/gen/sash_event.rb +147 -0
  312. data/lib/wx/doc/gen/sash_layout_window.rb +232 -0
  313. data/lib/wx/doc/gen/sash_window.rb +171 -0
  314. data/lib/wx/doc/gen/scaled_dc.rb +10 -0
  315. data/lib/wx/doc/gen/screen_dc.rb +30 -0
  316. data/lib/wx/doc/gen/scroll_bar.rb +204 -0
  317. data/lib/wx/doc/gen/scrolled_canvas.rb +410 -0
  318. data/lib/wx/doc/gen/scrolled_control.rb +410 -0
  319. data/lib/wx/doc/gen/scrolled_window.rb +430 -0
  320. data/lib/wx/doc/gen/search_ctrl.rb +159 -0
  321. data/lib/wx/doc/gen/secret_store.rb +116 -0
  322. data/lib/wx/doc/gen/simplebook.rb +110 -0
  323. data/lib/wx/doc/gen/single_choice_dialog.rb +89 -0
  324. data/lib/wx/doc/gen/sizer.rb +945 -0
  325. data/lib/wx/doc/gen/sizer_item.rb +244 -0
  326. data/lib/wx/doc/gen/slider.rb +342 -0
  327. data/lib/wx/doc/gen/spin_button.rb +157 -0
  328. data/lib/wx/doc/gen/spin_ctrl.rb +231 -0
  329. data/lib/wx/doc/gen/spin_ctrl_double.rb +192 -0
  330. data/lib/wx/doc/gen/spin_double_event.rb +55 -0
  331. data/lib/wx/doc/gen/spin_event.rb +51 -0
  332. data/lib/wx/doc/gen/splash_screen.rb +113 -0
  333. data/lib/wx/doc/gen/splitter_event.rb +99 -0
  334. data/lib/wx/doc/gen/splitter_window.rb +498 -0
  335. data/lib/wx/doc/gen/static_bitmap.rb +256 -0
  336. data/lib/wx/doc/gen/static_box.rb +180 -0
  337. data/lib/wx/doc/gen/static_box_sizer.rb +85 -0
  338. data/lib/wx/doc/gen/static_line.rb +83 -0
  339. data/lib/wx/doc/gen/static_text.rb +127 -0
  340. data/lib/wx/doc/gen/status_bar.rb +290 -0
  341. data/lib/wx/doc/gen/stc/event_list.rb +221 -0
  342. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +4474 -0
  343. data/lib/wx/doc/gen/stc/styled_text_event.rb +8762 -0
  344. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +129 -0
  345. data/lib/wx/doc/gen/svg_file_dc.rb +164 -0
  346. data/lib/wx/doc/gen/system_options.rb +129 -0
  347. data/lib/wx/doc/gen/system_settings.rb +507 -0
  348. data/lib/wx/doc/gen/task_bar_icon.rb +127 -0
  349. data/lib/wx/doc/gen/task_bar_icon_event.rb +88 -0
  350. data/lib/wx/doc/gen/text_attr.rb +756 -0
  351. data/lib/wx/doc/gen/text_ctrl.rb +1033 -0
  352. data/lib/wx/doc/gen/text_entry.rb +441 -0
  353. data/lib/wx/doc/gen/text_entry_dialog.rb +220 -0
  354. data/lib/wx/doc/gen/text_validator.rb +245 -0
  355. data/lib/wx/doc/gen/time_picker_ctrl.rb +128 -0
  356. data/lib/wx/doc/gen/timer.rb +119 -0
  357. data/lib/wx/doc/gen/timer_event.rb +68 -0
  358. data/lib/wx/doc/gen/tip_provider.rb +63 -0
  359. data/lib/wx/doc/gen/tip_window.rb +51 -0
  360. data/lib/wx/doc/gen/toggle_button.rb +182 -0
  361. data/lib/wx/doc/gen/tool_bar.rb +890 -0
  362. data/lib/wx/doc/gen/tool_tip.rb +86 -0
  363. data/lib/wx/doc/gen/toolbook.rb +118 -0
  364. data/lib/wx/doc/gen/top_level_window.rb +497 -0
  365. data/lib/wx/doc/gen/tree_ctrl.rb +1052 -0
  366. data/lib/wx/doc/gen/tree_event.rb +127 -0
  367. data/lib/wx/doc/gen/treebook.rb +180 -0
  368. data/lib/wx/doc/gen/ui_action_simulator.rb +109 -0
  369. data/lib/wx/doc/gen/utils.rb +273 -0
  370. data/lib/wx/doc/gen/v_list_box.rb +272 -0
  371. data/lib/wx/doc/gen/v_scrolled_canvas.rb +195 -0
  372. data/lib/wx/doc/gen/v_scrolled_window.rb +191 -0
  373. data/lib/wx/doc/gen/validator.rb +68 -0
  374. data/lib/wx/doc/gen/variant.rb +294 -0
  375. data/lib/wx/doc/gen/window.rb +2917 -0
  376. data/lib/wx/doc/gen/window_dc.rb +38 -0
  377. data/lib/wx/doc/gen/window_disabler.rb +30 -0
  378. data/lib/wx/doc/gen/with_images.rb +84 -0
  379. data/lib/wx/doc/gen/wizard.rb +257 -0
  380. data/lib/wx/doc/gen/wizard_event.rb +113 -0
  381. data/lib/wx/doc/gen/wizard_page.rb +65 -0
  382. data/lib/wx/doc/gen/wizard_page_simple.rb +88 -0
  383. data/lib/wx/doc/gen/wrap_sizer.rb +79 -0
  384. data/lib/wx/doc/gen/xml_node.rb +316 -0
  385. data/lib/wx/doc/gen/xml_resource.rb +320 -0
  386. data/lib/wx/doc/generic_validator.rb +5 -0
  387. data/lib/wx/doc/pg/pg_property.rb +5 -0
  388. data/lib/wx/doc/tip_window.rb +18 -6
  389. data/lib/wx/doc/variant.rb +30 -0
  390. data/lib/wx/grid/events/evt_list.rb +166 -0
  391. data/lib/wx/html/events/evt_list.rb +27 -0
  392. data/lib/wx/html/simple_html_listbox.rb +46 -33
  393. data/lib/wx/keyword_defs.rb +9 -0
  394. data/lib/wx/pg/events/evt_list.rb +73 -0
  395. data/lib/wx/pg/pg_property.rb +85 -52
  396. data/lib/wx/pg/property_grid_interface.rb +12 -2
  397. data/lib/wx/rbn/events/evt_list.rb +102 -0
  398. data/lib/wx/rtc/events/evt_list.rb +98 -0
  399. data/lib/wx/rtc/ext/rich_text_ctrl.rb +24 -0
  400. data/lib/wx/stc/events/evt_list.rb +178 -0
  401. data/lib/wx/version.rb +1 -1
  402. data/lib/wx/wxruby/cmd/setup.rb +6 -0
  403. data/rakelib/configure.rb +9 -0
  404. data/rakelib/gem.rake +84 -66
  405. data/rakelib/gem.rb +4 -20
  406. data/rakelib/lib/config/linux.rb +1 -1
  407. data/rakelib/lib/config/macosx.rb +15 -1
  408. data/rakelib/lib/config/pkgman/linux.rb +7 -2
  409. data/rakelib/lib/config/unixish.rb +3 -3
  410. data/rakelib/lib/config.rb +19 -8
  411. data/rakelib/lib/core/include/swigdirector.inc +3 -3
  412. data/rakelib/lib/core/include/swigrubyerrors.inc +4 -8
  413. data/rakelib/lib/core/include/swigrubyrun.inc +20 -4
  414. data/rakelib/lib/core/include/swigrun.inc +189 -0
  415. data/rakelib/lib/core/package.rb +3 -1
  416. data/rakelib/lib/core/spec.rb +1 -1
  417. data/rakelib/lib/director/accelerator.rb +1 -1
  418. data/rakelib/lib/director/animation.rb +1 -0
  419. data/rakelib/lib/director/app_traits.rb +1 -1
  420. data/rakelib/lib/director/aui_manager.rb +21 -14
  421. data/rakelib/lib/director/aui_mdi_child_frame.rb +2 -0
  422. data/rakelib/lib/director/aui_mdi_parent_frame.rb +4 -0
  423. data/rakelib/lib/director/aui_notebook.rb +20 -3
  424. data/rakelib/lib/director/aui_tab_ctrl.rb +64 -106
  425. data/rakelib/lib/director/bitmap_combobox.rb +4 -2
  426. data/rakelib/lib/director/calendar_ctrl.rb +72 -14
  427. data/rakelib/lib/director/clipboard.rb +2 -0
  428. data/rakelib/lib/director/data_object.rb +15 -7
  429. data/rakelib/lib/director/date_picker_ctrl.rb +4 -1
  430. data/rakelib/lib/director/display.rb +81 -0
  431. data/rakelib/lib/director/event.rb +33 -16
  432. data/rakelib/lib/director/event_handler.rb +27 -2
  433. data/rakelib/lib/director/functions.rb +9 -0
  434. data/rakelib/lib/director/geometry.rb +5 -0
  435. data/rakelib/lib/director/grid_ctrl.rb +123 -28
  436. data/rakelib/lib/director/help_provider.rb +1 -1
  437. data/rakelib/lib/director/html_listbox.rb +30 -4
  438. data/rakelib/lib/director/hvscrolled.rb +154 -0
  439. data/rakelib/lib/director/image_list.rb +1 -0
  440. data/rakelib/lib/director/mdi_frame.rb +4 -0
  441. data/rakelib/lib/director/menu.rb +56 -15
  442. data/rakelib/lib/director/menu_bar.rb +62 -0
  443. data/rakelib/lib/director/menu_item.rb +7 -1
  444. data/rakelib/lib/director/num_validator.rb +27 -0
  445. data/rakelib/lib/director/numeric_property_validator.rb +9 -0
  446. data/rakelib/lib/director/persistent_window.rb +16 -0
  447. data/rakelib/lib/director/pgproperty.rb +3 -2
  448. data/rakelib/lib/director/popup_window.rb +2 -0
  449. data/rakelib/lib/director/preview_frame.rb +29 -6
  450. data/rakelib/lib/director/printer.rb +59 -5
  451. data/rakelib/lib/director/property_grid.rb +37 -18
  452. data/rakelib/lib/director/property_grid_interface.rb +10 -8
  453. data/rakelib/lib/director/property_grid_manager.rb +99 -39
  454. data/rakelib/lib/director/property_grid_page.rb +60 -0
  455. data/rakelib/lib/director/rich_tooltip.rb +22 -0
  456. data/rakelib/lib/director/richtext_ctrl.rb +5 -0
  457. data/rakelib/lib/director/richtext_object.rb +13 -4
  458. data/rakelib/lib/director/richtext_style_listbox.rb +11 -2
  459. data/rakelib/lib/director/scrolled_t.rb +3 -0
  460. data/rakelib/lib/director/searchctrl.rb +1 -0
  461. data/rakelib/lib/director/task_bar_icon.rb +14 -8
  462. data/rakelib/lib/director/text_validator.rb +9 -0
  463. data/rakelib/lib/director/tip_window.rb +117 -6
  464. data/rakelib/lib/director/tool_bar.rb +6 -0
  465. data/rakelib/lib/director/top_level_window.rb +0 -1
  466. data/rakelib/lib/director/utils.rb +3 -1
  467. data/rakelib/lib/director/validator.rb +12 -0
  468. data/rakelib/lib/director/variant.rb +64 -20
  469. data/rakelib/lib/director/vlistbox.rb +29 -22
  470. data/rakelib/lib/director/window.rb +12 -2
  471. data/rakelib/lib/director/xml_resource.rb +6 -0
  472. data/rakelib/lib/generate/doc/aui_manager.yaml +1 -1
  473. data/rakelib/lib/generate/doc/rich_tool_tip.yaml +26 -0
  474. data/rakelib/lib/generate/doc.rb +12 -7
  475. data/rakelib/lib/generate/interface.rb +16 -1
  476. data/rakelib/lib/specs/interfaces.rb +6 -2
  477. data/rakelib/lib/swig_runner.rb +12 -12
  478. data/rakelib/lib/typemap/aui_tabctrl.rb +46 -0
  479. data/rakelib/lib/typemap/common.rb +3 -3
  480. data/rakelib/lib/typemap/print_page_range.rb +32 -8
  481. data/samples/art/wxruby-512x512.png +0 -0
  482. data/samples/calendar/calendar.rb +64 -1
  483. data/samples/dialogs/dialogs.rb +172 -0
  484. data/samples/dialogs/tip.xpm +157 -0
  485. data/samples/drawing/maths_images.rb +1 -1
  486. data/samples/event/event.rb +1 -1
  487. data/samples/printing/printing2.rb +1 -1
  488. data/samples/sampler.rb +26 -8
  489. data/samples/text/textctrl.rb +2 -2
  490. data/samples/treectrl/treectrl.rb +2 -2
  491. data/tests/lib/leaked_process_event_exception_test.rb +1 -1
  492. data/tests/lib/leaked_queued_event_exception_test.rb +1 -1
  493. data/tests/lib/wxapp_runner.rb +31 -41
  494. data/tests/lib/wxframe_runner.rb +23 -11
  495. data/tests/lib/wxrb_test.rb +58 -0
  496. data/tests/test_app_event_filter.rb +1 -1
  497. data/tests/test_app_exit_exception.rb +3 -3
  498. data/tests/test_app_init_exception.rb +3 -3
  499. data/tests/test_app_traits.rb +24 -21
  500. data/tests/test_art.rb +7 -7
  501. data/tests/test_art_provider.rb +1 -1
  502. data/tests/test_basic.rb +2 -2
  503. data/tests/test_book_controls.rb +1 -1
  504. data/tests/test_box_sizer.rb +1 -1
  505. data/tests/test_clipboard.rb +5 -5
  506. data/tests/test_combo_ctrl.rb +2 -2
  507. data/tests/test_config.rb +11 -1
  508. data/tests/test_dc.rb +1 -1
  509. data/tests/test_dialog.rb +1 -1
  510. data/tests/test_event_handling.rb +1 -1
  511. data/tests/test_events.rb +1 -1
  512. data/tests/test_exceptions.rb +2 -2
  513. data/tests/test_ext_controls.rb +10 -10
  514. data/tests/test_file_dialog.rb +1 -1
  515. data/tests/test_font.rb +1 -1
  516. data/tests/test_gdi_object.rb +1 -1
  517. data/tests/test_geometry.rb +2 -2
  518. data/tests/test_grid_sizer.rb +2 -2
  519. data/tests/test_intl.rb +1 -1
  520. data/tests/test_item_data.rb +12 -12
  521. data/tests/test_list_ctrl.rb +1 -1
  522. data/tests/test_log.rb +2 -2
  523. data/tests/test_media_ctrl.rb +1 -1
  524. data/tests/test_menu.rb +114 -43
  525. data/tests/test_proof_check.rb +1 -1
  526. data/tests/test_propgrid.rb +857 -0
  527. data/tests/test_richtext.rb +10 -24
  528. data/tests/test_secret_store.rb +1 -1
  529. data/tests/test_sizer.rb +1 -1
  530. data/tests/test_std_controls.rb +8 -8
  531. data/tests/test_styled_text_ctrl.rb +1 -1
  532. data/tests/test_timer.rb +1 -1
  533. data/tests/test_tree_ctrl.rb +1 -1
  534. data/tests/test_validators.rb +79 -36
  535. data/tests/test_variant.rb +1 -1
  536. data/tests/test_window.rb +11 -11
  537. data/tests/testapp.rb +2 -2
  538. data/tests/testapp_noframe.rb +2 -2
  539. metadata +402 -12
  540. data/lib/wx/aui/aui_tab_ctrl.rb +0 -18
  541. data/rakelib/lib/director/hvscrolled_window.rb +0 -140
@@ -0,0 +1,1379 @@
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