wxruby3 1.8.0 → 1.8.1

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 (391) hide show
  1. checksums.yaml +4 -4
  2. data/lib/wx/doc/stream.rb +7 -3
  3. data/lib/wx/version.rb +1 -1
  4. data/lib/wx/wxruby/cmd/test.rb +8 -2
  5. data/rakelib/lib/config/pkgman/linux.rb +4 -2
  6. data/rakelib/lib/director/derived_dc.rb +41 -32
  7. data/rakelib/lib/director/editable_listbox.rb +10 -8
  8. data/rakelib/lib/director/fs_file.rb +23 -0
  9. data/rakelib/lib/director/ribbon_page.rb +11 -0
  10. data/rakelib/lib/director/top_level_window.rb +12 -4
  11. data/rakelib/lib/specs/interfaces.rb +2 -2
  12. data/tests/test_webview.rb +5 -5
  13. metadata +2 -380
  14. data/assets/repo-social-preview.odg +0 -0
  15. data/assets/repo-social-preview.xcf +0 -0
  16. data/lib/wx/aui/events/evt_list.rb +0 -148
  17. data/lib/wx/core/events/evt_list.rb +0 -1458
  18. data/lib/wx/core/font/encoding.rb +0 -113
  19. data/lib/wx/doc/gen/about_dialog_info.rb +0 -330
  20. data/lib/wx/doc/gen/accelerator.rb +0 -178
  21. data/lib/wx/doc/gen/activity_indicator.rb +0 -83
  22. data/lib/wx/doc/gen/affine_matrix2d.rb +0 -286
  23. data/lib/wx/doc/gen/animation.rb +0 -275
  24. data/lib/wx/doc/gen/animation_ctrl.rb +0 -300
  25. data/lib/wx/doc/gen/any_button.rb +0 -191
  26. data/lib/wx/doc/gen/app.rb +0 -463
  27. data/lib/wx/doc/gen/app_traits.rb +0 -396
  28. data/lib/wx/doc/gen/art_provider.rb +0 -617
  29. data/lib/wx/doc/gen/aui/aui_dock_art.rb +0 -455
  30. data/lib/wx/doc/gen/aui/aui_floating_frame.rb +0 -54
  31. data/lib/wx/doc/gen/aui/aui_manager.rb +0 -847
  32. data/lib/wx/doc/gen/aui/aui_manager_event.rb +0 -131
  33. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +0 -180
  34. data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +0 -59
  35. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +0 -130
  36. data/lib/wx/doc/gen/aui/aui_notebook.rb +0 -631
  37. data/lib/wx/doc/gen/aui/aui_notebook_event.rb +0 -233
  38. data/lib/wx/doc/gen/aui/aui_pane_info.rb +0 -769
  39. data/lib/wx/doc/gen/aui/aui_tab_art.rb +0 -352
  40. data/lib/wx/doc/gen/aui/aui_tab_ctrl.rb +0 -14
  41. data/lib/wx/doc/gen/aui/aui_tool_bar.rb +0 -510
  42. data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +0 -340
  43. data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +0 -244
  44. data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +0 -257
  45. data/lib/wx/doc/gen/aui/event_list.rb +0 -179
  46. data/lib/wx/doc/gen/banner_window.rb +0 -124
  47. data/lib/wx/doc/gen/bitmap.rb +0 -731
  48. data/lib/wx/doc/gen/bitmap_button.rb +0 -123
  49. data/lib/wx/doc/gen/bitmap_combo_box.rb +0 -221
  50. data/lib/wx/doc/gen/book_ctrl_base.rb +0 -274
  51. data/lib/wx/doc/gen/book_ctrl_event.rb +0 -66
  52. data/lib/wx/doc/gen/box_sizer.rb +0 -85
  53. data/lib/wx/doc/gen/brush.rb +0 -251
  54. data/lib/wx/doc/gen/busy_info.rb +0 -157
  55. data/lib/wx/doc/gen/button.rb +0 -182
  56. data/lib/wx/doc/gen/calculate_layout_event.rb +0 -62
  57. data/lib/wx/doc/gen/calendar_ctrl.rb +0 -505
  58. data/lib/wx/doc/gen/calendar_date_attr.rb +0 -138
  59. data/lib/wx/doc/gen/calendar_event.rb +0 -147
  60. data/lib/wx/doc/gen/caret.rb +0 -97
  61. data/lib/wx/doc/gen/check_box.rb +0 -175
  62. data/lib/wx/doc/gen/check_list_box.rb +0 -121
  63. data/lib/wx/doc/gen/choice.rb +0 -175
  64. data/lib/wx/doc/gen/choicebook.rb +0 -116
  65. data/lib/wx/doc/gen/client_dc.rb +0 -43
  66. data/lib/wx/doc/gen/clipboard.rb +0 -144
  67. data/lib/wx/doc/gen/collapsible_pane.rb +0 -138
  68. data/lib/wx/doc/gen/collapsible_pane_event.rb +0 -46
  69. data/lib/wx/doc/gen/colour.rb +0 -333
  70. data/lib/wx/doc/gen/colour_dialog.rb +0 -190
  71. data/lib/wx/doc/gen/colour_picker_ctrl.rb +0 -110
  72. data/lib/wx/doc/gen/colour_picker_event.rb +0 -77
  73. data/lib/wx/doc/gen/combo_box.rb +0 -292
  74. data/lib/wx/doc/gen/combo_ctrl.rb +0 -662
  75. data/lib/wx/doc/gen/command_link_button.rb +0 -134
  76. data/lib/wx/doc/gen/config_base.rb +0 -10
  77. data/lib/wx/doc/gen/context_help_button.rb +0 -56
  78. data/lib/wx/doc/gen/control.rb +0 -277
  79. data/lib/wx/doc/gen/control_with_items.rb +0 -253
  80. data/lib/wx/doc/gen/core.rb +0 -45
  81. data/lib/wx/doc/gen/credential_entry_dialog.rb +0 -137
  82. data/lib/wx/doc/gen/cursor.rb +0 -193
  83. data/lib/wx/doc/gen/data_format.rb +0 -85
  84. data/lib/wx/doc/gen/data_object.rb +0 -436
  85. data/lib/wx/doc/gen/data_object_simple_base.rb +0 -10
  86. data/lib/wx/doc/gen/date_event.rb +0 -49
  87. data/lib/wx/doc/gen/date_picker_ctrl.rb +0 -161
  88. data/lib/wx/doc/gen/dc.rb +0 -1631
  89. data/lib/wx/doc/gen/dc_overlay.rb +0 -102
  90. data/lib/wx/doc/gen/defs.rb +0 -2802
  91. data/lib/wx/doc/gen/dial_up_event.rb +0 -45
  92. data/lib/wx/doc/gen/dial_up_manager.rb +0 -149
  93. data/lib/wx/doc/gen/dialog.rb +0 -541
  94. data/lib/wx/doc/gen/dir_dialog.rb +0 -164
  95. data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +0 -90
  96. data/lib/wx/doc/gen/dir_picker_ctrl.rb +0 -125
  97. data/lib/wx/doc/gen/display.rb +0 -238
  98. data/lib/wx/doc/gen/drag_drop.rb +0 -299
  99. data/lib/wx/doc/gen/drag_image.rb +0 -116
  100. data/lib/wx/doc/gen/editable_list_box.rb +0 -109
  101. data/lib/wx/doc/gen/event.rb +0 -990
  102. data/lib/wx/doc/gen/event_blocker.rb +0 -50
  103. data/lib/wx/doc/gen/event_filter.rb +0 -92
  104. data/lib/wx/doc/gen/event_list.rb +0 -1644
  105. data/lib/wx/doc/gen/events.rb +0 -2809
  106. data/lib/wx/doc/gen/evt_handler.rb +0 -229
  107. data/lib/wx/doc/gen/ext_help_controller.rb +0 -155
  108. data/lib/wx/doc/gen/file_ctrl.rb +0 -231
  109. data/lib/wx/doc/gen/file_ctrl_event.rb +0 -83
  110. data/lib/wx/doc/gen/file_dialog.rb +0 -353
  111. data/lib/wx/doc/gen/file_dialog_custom_control.rb +0 -165
  112. data/lib/wx/doc/gen/file_dialog_customize_hook.rb +0 -158
  113. data/lib/wx/doc/gen/file_dir_picker_event.rb +0 -100
  114. data/lib/wx/doc/gen/file_picker_ctrl.rb +0 -132
  115. data/lib/wx/doc/gen/file_system.rb +0 -232
  116. data/lib/wx/doc/gen/find_dialog_event.rb +0 -126
  117. data/lib/wx/doc/gen/find_replace_data.rb +0 -60
  118. data/lib/wx/doc/gen/find_replace_dialog.rb +0 -58
  119. data/lib/wx/doc/gen/flex_grid_sizer.rb +0 -199
  120. data/lib/wx/doc/gen/font.rb +0 -1379
  121. data/lib/wx/doc/gen/font_data.rb +0 -151
  122. data/lib/wx/doc/gen/font_dialog.rb +0 -88
  123. data/lib/wx/doc/gen/font_picker_ctrl.rb +0 -143
  124. data/lib/wx/doc/gen/font_picker_event.rb +0 -65
  125. data/lib/wx/doc/gen/frame.rb +0 -352
  126. data/lib/wx/doc/gen/fs_file.rb +0 -337
  127. data/lib/wx/doc/gen/functions.rb +0 -10
  128. data/lib/wx/doc/gen/gauge.rb +0 -157
  129. data/lib/wx/doc/gen/gb_sizer_item.rb +0 -68
  130. data/lib/wx/doc/gen/gcdc.rb +0 -46
  131. data/lib/wx/doc/gen/gdi_common.rb +0 -1271
  132. data/lib/wx/doc/gen/gdi_object.rb +0 -31
  133. data/lib/wx/doc/gen/generic_about_dialog.rb +0 -140
  134. data/lib/wx/doc/gen/generic_dir_ctrl.rb +0 -223
  135. data/lib/wx/doc/gen/geometry.rb +0 -661
  136. data/lib/wx/doc/gen/graphics_context.rb +0 -1184
  137. data/lib/wx/doc/gen/graphics_object.rb +0 -750
  138. data/lib/wx/doc/gen/grid/event_list.rb +0 -191
  139. data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +0 -40
  140. data/lib/wx/doc/gen/grid/grid_cell_attr.rb +0 -280
  141. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +0 -35
  142. data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +0 -37
  143. data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +0 -49
  144. data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +0 -35
  145. data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +0 -46
  146. data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +0 -38
  147. data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +0 -45
  148. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +0 -40
  149. data/lib/wx/doc/gen/grid/grid_cell_editor.rb +0 -197
  150. data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +0 -39
  151. data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +0 -44
  152. data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +0 -45
  153. data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +0 -79
  154. data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +0 -46
  155. data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +0 -35
  156. data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +0 -108
  157. data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +0 -35
  158. data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +0 -49
  159. data/lib/wx/doc/gen/grid/grid_ctrl.rb +0 -3037
  160. data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +0 -95
  161. data/lib/wx/doc/gen/grid/grid_event.rb +0 -129
  162. data/lib/wx/doc/gen/grid/grid_range_select_event.rb +0 -104
  163. data/lib/wx/doc/gen/grid/grid_size_event.rb +0 -85
  164. data/lib/wx/doc/gen/grid/grid_string_table.rb +0 -142
  165. data/lib/wx/doc/gen/grid/grid_table_base.rb +0 -317
  166. data/lib/wx/doc/gen/grid/grid_table_message.rb +0 -81
  167. data/lib/wx/doc/gen/grid_bag_sizer.rb +0 -323
  168. data/lib/wx/doc/gen/grid_sizer.rb +0 -195
  169. data/lib/wx/doc/gen/gui_event_loop.rb +0 -159
  170. data/lib/wx/doc/gen/h_scrolled_window.rb +0 -562
  171. data/lib/wx/doc/gen/header_ctrl.rb +0 -880
  172. data/lib/wx/doc/gen/header_ctrl_event.rb +0 -133
  173. data/lib/wx/doc/gen/help_controller.rb +0 -238
  174. data/lib/wx/doc/gen/help_provider.rb +0 -98
  175. data/lib/wx/doc/gen/html/event_list.rb +0 -38
  176. data/lib/wx/doc/gen/html/html_cell.rb +0 -536
  177. data/lib/wx/doc/gen/html/html_cell_event.rb +0 -69
  178. data/lib/wx/doc/gen/html/html_data_object.rb +0 -42
  179. data/lib/wx/doc/gen/html/html_easy_printing.rb +0 -203
  180. data/lib/wx/doc/gen/html/html_help_controller.rb +0 -382
  181. data/lib/wx/doc/gen/html/html_help_data.rb +0 -159
  182. data/lib/wx/doc/gen/html/html_help_window.rb +0 -258
  183. data/lib/wx/doc/gen/html/html_link_event.rb +0 -41
  184. data/lib/wx/doc/gen/html/html_list_box.rb +0 -346
  185. data/lib/wx/doc/gen/html/html_printout.rb +0 -109
  186. data/lib/wx/doc/gen/html/html_window.rb +0 -461
  187. data/lib/wx/doc/gen/hyperlink_ctrl.rb +0 -311
  188. data/lib/wx/doc/gen/hyperlink_event.rb +0 -44
  189. data/lib/wx/doc/gen/icon.rb +0 -267
  190. data/lib/wx/doc/gen/icon_location.rb +0 -40
  191. data/lib/wx/doc/gen/image.rb +0 -1371
  192. data/lib/wx/doc/gen/image_list.rb +0 -168
  193. data/lib/wx/doc/gen/info_bar.rb +0 -195
  194. data/lib/wx/doc/gen/keyboard_state.rb +0 -140
  195. data/lib/wx/doc/gen/list_box.rb +0 -304
  196. data/lib/wx/doc/gen/list_ctrl.rb +0 -1774
  197. data/lib/wx/doc/gen/list_event.rb +0 -208
  198. data/lib/wx/doc/gen/listbook.rb +0 -116
  199. data/lib/wx/doc/gen/locale.rb +0 -4293
  200. data/lib/wx/doc/gen/log.rb +0 -603
  201. data/lib/wx/doc/gen/mb_conv.rb +0 -10
  202. data/lib/wx/doc/gen/mdi_client_window.rb +0 -47
  203. data/lib/wx/doc/gen/mdi_frame.rb +0 -324
  204. data/lib/wx/doc/gen/media_ctrl.rb +0 -269
  205. data/lib/wx/doc/gen/media_event.rb +0 -117
  206. data/lib/wx/doc/gen/memory_dc.rb +0 -174
  207. data/lib/wx/doc/gen/menu.rb +0 -509
  208. data/lib/wx/doc/gen/menu_bar.rb +0 -287
  209. data/lib/wx/doc/gen/menu_item.rb +0 -362
  210. data/lib/wx/doc/gen/message_dialog.rb +0 -238
  211. data/lib/wx/doc/gen/mini_frame.rb +0 -108
  212. data/lib/wx/doc/gen/mirror_dc.rb +0 -22
  213. data/lib/wx/doc/gen/mouse_state.rb +0 -150
  214. data/lib/wx/doc/gen/multi_choice_dialog.rb +0 -80
  215. data/lib/wx/doc/gen/non_owned_window.rb +0 -49
  216. data/lib/wx/doc/gen/notebook.rb +0 -278
  217. data/lib/wx/doc/gen/num_validator.rb +0 -37
  218. data/lib/wx/doc/gen/number_entry_dialog.rb +0 -93
  219. data/lib/wx/doc/gen/object.rb +0 -59
  220. data/lib/wx/doc/gen/owner_drawn_combo_box.rb +0 -395
  221. data/lib/wx/doc/gen/paint_dc.rb +0 -27
  222. data/lib/wx/doc/gen/palette.rb +0 -92
  223. data/lib/wx/doc/gen/panel.rb +0 -127
  224. data/lib/wx/doc/gen/pen.rb +0 -511
  225. data/lib/wx/doc/gen/persistence_manager.rb +0 -135
  226. data/lib/wx/doc/gen/persistent_object.rb +0 -52
  227. data/lib/wx/doc/gen/persistent_window.rb +0 -241
  228. data/lib/wx/doc/gen/pg/event_list.rb +0 -106
  229. data/lib/wx/doc/gen/pg/numeric_property_validator.rb +0 -54
  230. data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +0 -292
  231. data/lib/wx/doc/gen/pg/pg_cell.rb +0 -177
  232. data/lib/wx/doc/gen/pg/pg_editor.rb +0 -721
  233. data/lib/wx/doc/gen/pg/pg_multi_button.rb +0 -152
  234. data/lib/wx/doc/gen/pg/pg_properties.rb +0 -2829
  235. data/lib/wx/doc/gen/pg/pg_property.rb +0 -2078
  236. data/lib/wx/doc/gen/pg/pg_validation_info.rb +0 -344
  237. data/lib/wx/doc/gen/pg/property_grid.rb +0 -740
  238. data/lib/wx/doc/gen/pg/property_grid_event.rb +0 -184
  239. data/lib/wx/doc/gen/pg/property_grid_interface.rb +0 -1098
  240. data/lib/wx/doc/gen/pg/property_grid_manager.rb +0 -415
  241. data/lib/wx/doc/gen/pg/property_grid_page.rb +0 -354
  242. data/lib/wx/doc/gen/pg/property_grid_page_state.rb +0 -165
  243. data/lib/wx/doc/gen/picker_base.rb +0 -152
  244. data/lib/wx/doc/gen/platform_info.rb +0 -622
  245. data/lib/wx/doc/gen/popup_window.rb +0 -107
  246. data/lib/wx/doc/gen/progress_dialog.rb +0 -100
  247. data/lib/wx/doc/gen/property_sheet_dialog.rb +0 -216
  248. data/lib/wx/doc/gen/prt/event_list.rb +0 -17
  249. data/lib/wx/doc/gen/prt/page_setup_dialog.rb +0 -44
  250. data/lib/wx/doc/gen/prt/post_script_dc.rb +0 -30
  251. data/lib/wx/doc/gen/prt/preview_frame.rb +0 -78
  252. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +0 -151
  253. data/lib/wx/doc/gen/prt/print_data.rb +0 -804
  254. data/lib/wx/doc/gen/prt/print_dialog.rb +0 -55
  255. data/lib/wx/doc/gen/prt/printer.rb +0 -518
  256. data/lib/wx/doc/gen/prt/printer_dc.rb +0 -37
  257. data/lib/wx/doc/gen/query_layout_info_event.rb +0 -106
  258. data/lib/wx/doc/gen/radio_box.rb +0 -306
  259. data/lib/wx/doc/gen/radio_button.rb +0 -159
  260. data/lib/wx/doc/gen/rbn/event_list.rb +0 -136
  261. data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +0 -1142
  262. data/lib/wx/doc/gen/rbn/ribbon_bar.rb +0 -308
  263. data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +0 -45
  264. data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +0 -458
  265. data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +0 -63
  266. data/lib/wx/doc/gen/rbn/ribbon_control.rb +0 -143
  267. data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +0 -229
  268. data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +0 -55
  269. data/lib/wx/doc/gen/rbn/ribbon_page.rb +0 -174
  270. data/lib/wx/doc/gen/rbn/ribbon_panel.rb +0 -270
  271. data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +0 -45
  272. data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +0 -360
  273. data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +0 -42
  274. data/lib/wx/doc/gen/rearrange_ctrl.rb +0 -78
  275. data/lib/wx/doc/gen/rearrange_list.rb +0 -123
  276. data/lib/wx/doc/gen/region.rb +0 -380
  277. data/lib/wx/doc/gen/region_iterator.rb +0 -76
  278. data/lib/wx/doc/gen/rich_tool_tip.rb +0 -154
  279. data/lib/wx/doc/gen/rt/event_list.rb +0 -17
  280. data/lib/wx/doc/gen/rt/shared_evt_handler.rb +0 -14
  281. data/lib/wx/doc/gen/rt/thread_event.rb +0 -71
  282. data/lib/wx/doc/gen/rtc/event_list.rb +0 -125
  283. data/lib/wx/doc/gen/rtc/rich_text_box.rb +0 -445
  284. data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +0 -1188
  285. data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +0 -41
  286. data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +0 -538
  287. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +0 -2103
  288. data/lib/wx/doc/gen/rtc/rich_text_event.rb +0 -173
  289. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +0 -181
  290. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +0 -319
  291. data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +0 -193
  292. data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +0 -102
  293. data/lib/wx/doc/gen/rtc/rich_text_image.rb +0 -337
  294. data/lib/wx/doc/gen/rtc/rich_text_object.rb +0 -2922
  295. data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +0 -1240
  296. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +0 -258
  297. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +0 -344
  298. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +0 -227
  299. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +0 -59
  300. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +0 -169
  301. data/lib/wx/doc/gen/sash_event.rb +0 -147
  302. data/lib/wx/doc/gen/sash_layout_window.rb +0 -232
  303. data/lib/wx/doc/gen/sash_window.rb +0 -171
  304. data/lib/wx/doc/gen/scaled_dc.rb +0 -10
  305. data/lib/wx/doc/gen/screen_dc.rb +0 -30
  306. data/lib/wx/doc/gen/scroll_bar.rb +0 -204
  307. data/lib/wx/doc/gen/scrolled_canvas.rb +0 -410
  308. data/lib/wx/doc/gen/scrolled_control.rb +0 -410
  309. data/lib/wx/doc/gen/scrolled_window.rb +0 -430
  310. data/lib/wx/doc/gen/search_ctrl.rb +0 -159
  311. data/lib/wx/doc/gen/secret_store.rb +0 -116
  312. data/lib/wx/doc/gen/simplebook.rb +0 -110
  313. data/lib/wx/doc/gen/single_choice_dialog.rb +0 -89
  314. data/lib/wx/doc/gen/sizer.rb +0 -945
  315. data/lib/wx/doc/gen/sizer_item.rb +0 -244
  316. data/lib/wx/doc/gen/slider.rb +0 -342
  317. data/lib/wx/doc/gen/spin_button.rb +0 -157
  318. data/lib/wx/doc/gen/spin_ctrl.rb +0 -231
  319. data/lib/wx/doc/gen/spin_ctrl_double.rb +0 -192
  320. data/lib/wx/doc/gen/spin_double_event.rb +0 -55
  321. data/lib/wx/doc/gen/spin_event.rb +0 -51
  322. data/lib/wx/doc/gen/splash_screen.rb +0 -113
  323. data/lib/wx/doc/gen/splitter_event.rb +0 -99
  324. data/lib/wx/doc/gen/splitter_window.rb +0 -498
  325. data/lib/wx/doc/gen/static_bitmap.rb +0 -256
  326. data/lib/wx/doc/gen/static_box.rb +0 -180
  327. data/lib/wx/doc/gen/static_box_sizer.rb +0 -85
  328. data/lib/wx/doc/gen/static_line.rb +0 -83
  329. data/lib/wx/doc/gen/static_text.rb +0 -127
  330. data/lib/wx/doc/gen/status_bar.rb +0 -290
  331. data/lib/wx/doc/gen/stc/event_list.rb +0 -221
  332. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +0 -4474
  333. data/lib/wx/doc/gen/stc/styled_text_event.rb +0 -8762
  334. data/lib/wx/doc/gen/std_dialog_button_sizer.rb +0 -129
  335. data/lib/wx/doc/gen/svg_file_dc.rb +0 -164
  336. data/lib/wx/doc/gen/system_options.rb +0 -129
  337. data/lib/wx/doc/gen/system_settings.rb +0 -507
  338. data/lib/wx/doc/gen/task_bar_icon.rb +0 -127
  339. data/lib/wx/doc/gen/task_bar_icon_event.rb +0 -88
  340. data/lib/wx/doc/gen/text_attr.rb +0 -756
  341. data/lib/wx/doc/gen/text_ctrl.rb +0 -1033
  342. data/lib/wx/doc/gen/text_entry.rb +0 -441
  343. data/lib/wx/doc/gen/text_entry_dialog.rb +0 -220
  344. data/lib/wx/doc/gen/text_validator.rb +0 -245
  345. data/lib/wx/doc/gen/time_picker_ctrl.rb +0 -128
  346. data/lib/wx/doc/gen/timer.rb +0 -119
  347. data/lib/wx/doc/gen/timer_event.rb +0 -68
  348. data/lib/wx/doc/gen/tip_provider.rb +0 -63
  349. data/lib/wx/doc/gen/tip_window.rb +0 -51
  350. data/lib/wx/doc/gen/toggle_button.rb +0 -182
  351. data/lib/wx/doc/gen/tool_bar.rb +0 -890
  352. data/lib/wx/doc/gen/tool_tip.rb +0 -86
  353. data/lib/wx/doc/gen/toolbook.rb +0 -118
  354. data/lib/wx/doc/gen/top_level_window.rb +0 -516
  355. data/lib/wx/doc/gen/tree_ctrl.rb +0 -1052
  356. data/lib/wx/doc/gen/tree_event.rb +0 -127
  357. data/lib/wx/doc/gen/treebook.rb +0 -180
  358. data/lib/wx/doc/gen/ui_action_simulator.rb +0 -109
  359. data/lib/wx/doc/gen/utils.rb +0 -273
  360. data/lib/wx/doc/gen/v_list_box.rb +0 -272
  361. data/lib/wx/doc/gen/v_scrolled_canvas.rb +0 -195
  362. data/lib/wx/doc/gen/v_scrolled_window.rb +0 -191
  363. data/lib/wx/doc/gen/validator.rb +0 -68
  364. data/lib/wx/doc/gen/variant.rb +0 -294
  365. data/lib/wx/doc/gen/web/event_list.rb +0 -95
  366. data/lib/wx/doc/gen/web/web_view.rb +0 -1136
  367. data/lib/wx/doc/gen/web/web_view_event.rb +0 -210
  368. data/lib/wx/doc/gen/web/web_view_handler.rb +0 -318
  369. data/lib/wx/doc/gen/window.rb +0 -2917
  370. data/lib/wx/doc/gen/window_dc.rb +0 -38
  371. data/lib/wx/doc/gen/window_disabler.rb +0 -30
  372. data/lib/wx/doc/gen/with_images.rb +0 -84
  373. data/lib/wx/doc/gen/wizard.rb +0 -257
  374. data/lib/wx/doc/gen/wizard_event.rb +0 -113
  375. data/lib/wx/doc/gen/wizard_page.rb +0 -65
  376. data/lib/wx/doc/gen/wizard_page_simple.rb +0 -88
  377. data/lib/wx/doc/gen/wrap_sizer.rb +0 -79
  378. data/lib/wx/doc/gen/xml_node.rb +0 -316
  379. data/lib/wx/doc/gen/xml_resource.rb +0 -320
  380. data/lib/wx/grid/events/evt_list.rb +0 -166
  381. data/lib/wx/html/events/evt_list.rb +0 -27
  382. data/lib/wx/pg/events/evt_list.rb +0 -73
  383. data/lib/wx/rbn/events/evt_list.rb +0 -102
  384. data/lib/wx/rt/events/evt_list.rb +0 -8
  385. data/lib/wx/rtc/events/evt_list.rb +0 -98
  386. data/lib/wx/rtc/ext/rich_text_ctrl.rb +0 -24
  387. data/lib/wx/stc/events/evt_list.rb +0 -178
  388. data/lib/wx/web/events/evt_list.rb +0 -74
  389. data/samples/art/wxruby-512x512.png +0 -0
  390. data/tests/assets/test.css +0 -1
  391. data/tests/assets/test.html +0 -9
@@ -1,1184 +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
- # Anti-aliasing modes used by {Wx::GraphicsContext#set_antialias_mode}.
10
- #
11
- #
12
- #
13
- # @wxrb_require USE_GRAPHICS_CONTEXT
14
- class AntialiasMode < Wx::Enum
15
-
16
- # No anti-aliasing.
17
- #
18
- ANTIALIAS_NONE = Wx::AntialiasMode.new(0)
19
-
20
- # The default anti-aliasing.
21
- #
22
- ANTIALIAS_DEFAULT = Wx::AntialiasMode.new(1)
23
-
24
- end # AntialiasMode
25
-
26
- # Interpolation quality used by {Wx::GraphicsContext#set_interpolation_quality}.
27
- #
28
- #
29
- #
30
- # @wxrb_require USE_GRAPHICS_CONTEXT
31
- class InterpolationQuality < Wx::Enum
32
-
33
- # default interpolation, based on type of context, in general medium quality
34
- #
35
- INTERPOLATION_DEFAULT = Wx::InterpolationQuality.new(0)
36
-
37
- # no interpolation
38
- #
39
- INTERPOLATION_NONE = Wx::InterpolationQuality.new(1)
40
-
41
- # fast interpolation, suited for interactivity
42
- #
43
- INTERPOLATION_FAST = Wx::InterpolationQuality.new(2)
44
-
45
- # better quality
46
- #
47
- INTERPOLATION_GOOD = Wx::InterpolationQuality.new(3)
48
-
49
- # best quality, not suited for interactivity
50
- #
51
- INTERPOLATION_BEST = Wx::InterpolationQuality.new(4)
52
-
53
- end # InterpolationQuality
54
-
55
- # Compositing is done using Porter-Duff compositions (see http://keithp.com/~keithp/porterduff/p253-porter.pdf) with {Wx::GraphicsContext#set_composition_mode}.
56
- #
57
- # The description gives a short equation on how the values of a resulting pixel are calculated. R = Result, S = Source, D = Destination, colors premultiplied with alpha Ra, Sa, Da their alpha components
58
- #
59
- # @wxrb_require USE_GRAPHICS_CONTEXT
60
- class CompositionMode < Wx::Enum
61
-
62
- # Indicates invalid or unsupported composition mode.
63
- #
64
- COMPOSITION_INVALID = Wx::CompositionMode.new(-1)
65
-
66
- # R = 0
67
- #
68
- COMPOSITION_CLEAR = Wx::CompositionMode.new(0)
69
-
70
- # R = S
71
- #
72
- COMPOSITION_SOURCE = Wx::CompositionMode.new(1)
73
-
74
- # R = S + D*(1 - Sa)
75
- #
76
- COMPOSITION_OVER = Wx::CompositionMode.new(2)
77
-
78
- # R = S*Da
79
- #
80
- COMPOSITION_IN = Wx::CompositionMode.new(3)
81
-
82
- # R = S*(1 - Da)
83
- #
84
- COMPOSITION_OUT = Wx::CompositionMode.new(4)
85
-
86
- # R = S*Da + D*(1 - Sa)
87
- #
88
- COMPOSITION_ATOP = Wx::CompositionMode.new(5)
89
-
90
- # R = D, essentially a noop
91
- #
92
- COMPOSITION_DEST = Wx::CompositionMode.new(6)
93
-
94
- # R = S*(1 - Da) + D
95
- #
96
- COMPOSITION_DEST_OVER = Wx::CompositionMode.new(7)
97
-
98
- # R = D*Sa
99
- #
100
- COMPOSITION_DEST_IN = Wx::CompositionMode.new(8)
101
-
102
- # R = D*(1 - Sa)
103
- #
104
- COMPOSITION_DEST_OUT = Wx::CompositionMode.new(9)
105
-
106
- # R = S*(1 - Da) + D*Sa
107
- #
108
- COMPOSITION_DEST_ATOP = Wx::CompositionMode.new(10)
109
-
110
- # R = S*(1 - Da) + D*(1 - Sa)
111
- #
112
- COMPOSITION_XOR = Wx::CompositionMode.new(11)
113
-
114
- # R = S + D
115
- #
116
- COMPOSITION_ADD = Wx::CompositionMode.new(12)
117
-
118
- # Result is the absolute value of the difference between the source and the destination.
119
- #
120
- COMPOSITION_DIFF = Wx::CompositionMode.new(13)
121
-
122
- end # CompositionMode
123
-
124
- # Used to indicate what kind of gradient is set in a {Wx::GraphicsPenInfo} object.
125
- #
126
- #
127
- #
128
- # @wxrb_require USE_GRAPHICS_CONTEXT
129
- class GradientType < Wx::Enum
130
-
131
- # No gradient.
132
- #
133
- GRADIENT_NONE = Wx::GradientType.new(0)
134
-
135
- # A gradient that blends two or more colors along an axis.
136
- #
137
- GRADIENT_LINEAR = Wx::GradientType.new(1)
138
-
139
- # A gradient that blends two or more colors across an ellipse.
140
- #
141
- GRADIENT_RADIAL = Wx::GradientType.new(2)
142
-
143
- end # GradientType
144
-
145
- # An empty {Wx::GraphicsPen} object.
146
- #
147
- NULL_GRAPHICS_PEN = nil
148
-
149
- # An empty {Wx::GraphicsBrush} object.
150
- #
151
- NULL_GRAPHICS_BRUSH = nil
152
-
153
- # An empty {Wx::GraphicsFont} object.
154
- #
155
- NULL_GRAPHICS_FONT = nil
156
-
157
- # An empty {Wx::GraphicsBitmap} object.
158
- #
159
- NULL_GRAPHICS_BITMAP = nil
160
-
161
- # An empty {Wx::GraphicsMatrix} object.
162
- #
163
- NULL_GRAPHICS_MATRIX = nil
164
-
165
- # An empty {Wx::GraphicsPath} object.
166
- #
167
- NULL_GRAPHICS_PATH = nil
168
-
169
- # A {Wx::GraphicsContext} instance is the object that is drawn upon.
170
- #
171
- # It is created by a renderer using {Wx::GraphicsRenderer#create_context}. This can be either directly using a renderer instance, or indirectly using the static convenience {Wx::GraphicsContext.create} functions of {Wx::GraphicsContext} that always delegate the task to the default renderer.
172
- #
173
- # ```ruby
174
- # class MyCanvas < Wx::ScrolledWindow
175
- #
176
- # def on_paint(event)
177
- # # Create paint DC
178
- # self.paint do |dc|
179
- # # Create graphics context from it
180
- # Wx::GraphicsContext.draw_on(dc) do |gc|
181
- # # make a path that contains a circle and some lines
182
- # gc.set_pen(Wx::RED_PEN)
183
- # path = gc.create_path
184
- # path.add_circle(50.0, 50.0, 50.0)
185
- # path.move_to_point(0.0, 50.0)
186
- # path.add_line_to_point(100.0, 50.0)
187
- # path.move_to_point(50.0, 0.0)
188
- # path.add_line_to_point(50.0, 100.0)
189
- # path.close_sub_path
190
- # path.add_rectangle(25.0, 25.0, 50.0, 50.0)
191
- #
192
- # gc.stroke_path(path)
193
- # end
194
- # end
195
- # end
196
- # end
197
- # end
198
- # ```
199
- #
200
- # <div class="wxrb-remark">
201
- # <b>Remark:</b>
202
- # <p>For some renderers (like Direct2D or Cairo), the processing of drawing operations may be deferred. For example, Direct2D render targets normally build up a batch of rendering commands but defers processing them, while Cairo operates on a separate surface. To make drawing results visible, you need to update the context's content by either calling {Wx::GraphicsContext#flush} or by destroying the context.
203
- # </p>
204
- # </div>
205
- #
206
- # Category: Graphics Device Interface (GDI), Device Contexts
207
- # @see Wx::GraphicsRenderer#create_context
208
- # @see Wx::GCDC
209
- # @see Wx::DC
210
- #
211
- #
212
- #
213
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
214
- # @wxrb_require USE_GRAPHICS_CONTEXT
215
- class GraphicsContext < GraphicsObject
216
-
217
- # @overload self.create(window)
218
- # Creates a {Wx::GraphicsContext} from a {Wx::Window}.
219
- #
220
- #
221
- # @see Wx::GraphicsRenderer#create_context
222
- # @param window [Wx::Window]
223
- # @return [Wx::GraphicsContext]
224
- # @overload self.create(windowDC)
225
- # Creates a {Wx::GraphicsContext} from a {Wx::WindowDC}.
226
- #
227
- #
228
- # @see Wx::GraphicsRenderer#create_context
229
- # @param windowDC [Wx::WindowDC]
230
- # @return [Wx::GraphicsContext]
231
- # @overload self.create(memoryDC)
232
- # Creates a {Wx::GraphicsContext} from a {Wx::MemoryDC}.
233
- #
234
- #
235
- # @see Wx::GraphicsRenderer#create_context
236
- # @param memoryDC [Wx::MemoryDC]
237
- # @return [Wx::GraphicsContext]
238
- # @overload self.create(printerDC)
239
- # Creates a {Wx::GraphicsContext} from a {Wx::PRT::PrinterDC}.
240
- #
241
- # Under GTK+, this will only work when using the GtkPrint printing backend (which is available since GTK+ 2.10).
242
- # @see Wx::GraphicsRenderer#create_context
243
- # @see Printing Under Unix (GTK+)
244
- # @param printerDC [Wx::PRT::PrinterDC]
245
- # @return [Wx::GraphicsContext]
246
- # @wxrb_require WXMSW|WXOSX|USE_GTKPRINT
247
- # @overload self.create(image)
248
- # Creates a {Wx::GraphicsContext} associated with a {Wx::Image}.
249
- #
250
- # The image specifies the size of the context, as well as whether alpha is supported (if {Wx::Image#has_alpha}) or not and the initial contents of the context. The image object must have a life time greater than that of the new context as the context copies its contents back to the image when it is destroyed.
251
- # @param image [Wx::Image]
252
- # @return [Wx::GraphicsContext]
253
- # @overload self.create()
254
- # Create a lightweight context that can be used only for measuring text.
255
- # @return [Wx::GraphicsContext]
256
- def self.create(*args) end
257
-
258
- # Resets the clipping to original shape.
259
- #
260
- # <div class="wxrb-remark">
261
- # <b>Remark:</b>
262
- # <p>Use {Wx::GraphicsContext#get_clip_box} to cache and restore a previous clipping area.
263
- # </p>
264
- # </div>
265
- # @return [void]
266
- def reset_clip; end
267
-
268
- # @overload clip(region)
269
- # Sets the clipping region to the intersection of the given region and the previously set clipping region.
270
- #
271
- # The clipping region is an area to which drawing is restricted.
272
- #
273
- # <div class="wxrb-remark">
274
- # <b>Remark:</b>
275
- # <p>
276
- #
277
- # - Clipping region should be given in logical coordinates.
278
- # - Calling this function can only make the clipping region smaller, never larger.
279
- # - You need to call {Wx::GraphicsContext#reset_clip} first if you want to set the clipping region exactly to the region specified.
280
- # - If resulting clipping region is empty, then all drawing upon the context is clipped out (all changes made by drawing operations are masked out).
281
- #
282
- # </p>
283
- # </div>
284
- # @param region [Wx::Region]
285
- # @return [void]
286
- # @overload clip(x, y, w, h)
287
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
288
- # @param x [Float]
289
- # @param y [Float]
290
- # @param w [Float]
291
- # @param h [Float]
292
- # @return [void]
293
- # @overload clip(rect)
294
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
295
- # @param rect [Wx::Rect2DDouble]
296
- # @return [void]
297
- def clip(*args) end
298
-
299
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
300
- # @return [Wx::Rect2DDouble]
301
- def get_clip_box; end
302
- alias_method :clip_box, :get_clip_box
303
-
304
- # Creates a native affine transformation matrix from the passed-in values.
305
- #
306
- # The default parameters result in an identity matrix.
307
- # @param a [Float]
308
- # @param b [Float]
309
- # @param c [Float]
310
- # @param d [Float]
311
- # @param tx [Float]
312
- # @param ty [Float]
313
- # @return [Wx::GraphicsMatrix]
314
- def create_matrix(a=1.0, b=0.0, c=0.0, d=1.0, tx=0.0, ty=0.0) end
315
-
316
- # Concatenates the passed-in transform with the current transform of this context.
317
- # @param matrix [Wx::GraphicsMatrix]
318
- # @return [void]
319
- def concat_transform(matrix) end
320
-
321
- # Gets the current transformation matrix of this context.
322
- # @return [Wx::GraphicsMatrix]
323
- def get_transform; end
324
- alias_method :transform, :get_transform
325
-
326
- # Rotates the current transformation matrix (in radians).
327
- #
328
- # This can be useful for applying a tilt to your drawing commands or for drawing radial patterns.
329
- #
330
- # <div class="wxrb-note">
331
- # <b>Note:</b>
332
- # <p>A positive angle will rotate clockwise, negative counterclockwise.
333
- # </p>
334
- # </div>
335
- # @see deg_to_rad
336
- # @param angle [Float] Rotation angle in radians, clockwise.
337
- # @return [void]
338
- def rotate(angle) end
339
-
340
- # Scales (i.e., shrinks or grows) the current transformation matrix.
341
- # @param xScale [Float]
342
- # @param yScale [Float]
343
- # @return [void]
344
- def scale(xScale, yScale) end
345
-
346
- # Sets the current transformation matrix of this context.
347
- # @param matrix [Wx::GraphicsMatrix]
348
- # @return [void]
349
- def set_transform(matrix) end
350
- alias_method :transform=, :set_transform
351
-
352
- # @overload translate(dx, dy)
353
- # Translates (i.e., moves) the current transformation matrix.
354
- # @param dx [Float]
355
- # @param dy [Float]
356
- # @return [void]
357
- # @overload translate(pt)
358
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
359
- # @param pt [Wx::Point2DDouble]
360
- # @return [void]
361
- def translate(*args) end
362
-
363
- # Creates a native brush from a {Wx::Brush}.
364
- # @param brush [Wx::Brush]
365
- # @return [Wx::GraphicsBrush]
366
- def create_brush(brush) end
367
-
368
- # @overload create_linear_gradient_brush(x1, y1, x2, y2, c1, c2, matrix=Wx::NULL_GRAPHICS_MATRIX)
369
- # Creates a native brush with a linear gradient.
370
- #
371
- # The brush starts at (x1, y1) and ends at (x2, y2). Either just the start and end gradient colours (c1 and c2) or full set of gradient stops can be specified.
372
- # The version taking {Wx::GraphicsGradientStops} is new in wxWidgets 2.9.1.
373
- # The matrix parameter was added in wxWidgets 3.1.3.
374
- # @param x1 [Float]
375
- # @param y1 [Float]
376
- # @param x2 [Float]
377
- # @param y2 [Float]
378
- # @param c1 [Wx::Colour,String,Symbol]
379
- # @param c2 [Wx::Colour,String,Symbol]
380
- # @param matrix [Wx::GraphicsMatrix]
381
- # @return [Wx::GraphicsBrush]
382
- # @overload create_linear_gradient_brush(x1, y1, x2, y2, stops, matrix=Wx::NULL_GRAPHICS_MATRIX)
383
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
384
- # @param x1 [Float]
385
- # @param y1 [Float]
386
- # @param x2 [Float]
387
- # @param y2 [Float]
388
- # @param stops [Wx::GraphicsGradientStops]
389
- # @param matrix [Wx::GraphicsMatrix]
390
- # @return [Wx::GraphicsBrush]
391
- def create_linear_gradient_brush(*args) end
392
-
393
- # @overload create_radial_gradient_brush(startX, startY, endX, endY, radius, oColor, cColor, matrix=Wx::NULL_GRAPHICS_MATRIX)
394
- # Creates a native brush with a radial gradient.
395
- #
396
- # The brush originates at (startX, startY) and ends on a circle around (endX, endY) with the given radius.
397
- # The gradient may be specified either by its start and end colours, oColor and cColor, or by a full set of gradient stops.
398
- # The version taking {Wx::GraphicsGradientStops} is new in wxWidgets 2.9.1.
399
- # The ability to apply a transformation matrix to the gradient was added in 3.1.3.
400
- # @param startX [Float]
401
- # @param startY [Float]
402
- # @param endX [Float]
403
- # @param endY [Float]
404
- # @param radius [Float]
405
- # @param oColor [Wx::Colour,String,Symbol]
406
- # @param cColor [Wx::Colour,String,Symbol]
407
- # @param matrix [Wx::GraphicsMatrix]
408
- # @return [Wx::GraphicsBrush]
409
- # @overload create_radial_gradient_brush(startX, startY, endX, endY, radius, stops, matrix=Wx::NULL_GRAPHICS_MATRIX)
410
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
411
- # @param startX [Float]
412
- # @param startY [Float]
413
- # @param endX [Float]
414
- # @param endY [Float]
415
- # @param radius [Float]
416
- # @param stops [Wx::GraphicsGradientStops]
417
- # @param matrix [Wx::GraphicsMatrix]
418
- # @return [Wx::GraphicsBrush]
419
- def create_radial_gradient_brush(*args) end
420
-
421
- # @overload set_brush(brush)
422
- # Sets the brush for filling paths.
423
- # @param brush [Wx::Brush]
424
- # @return [void]
425
- # @overload set_brush(brush)
426
- # Sets the brush for filling paths.
427
- # @param brush [Wx::GraphicsBrush]
428
- # @return [void]
429
- def set_brush(*args) end
430
- alias_method :brush=, :set_brush
431
-
432
- # @overload create_pen(pen)
433
- # Creates a native pen from a {Wx::Pen}.
434
- #
435
- # Prefer to use the overload taking {Wx::GraphicsPenInfo} unless you already have a {Wx::Pen} as constructing one only to pass it to this method is wasteful.
436
- # @param pen [Wx::Pen]
437
- # @return [Wx::GraphicsPen]
438
- # @overload create_pen(info)
439
- # Creates a native pen from a {Wx::GraphicsPenInfo}.
440
- # @param info [Wx::GraphicsPenInfo]
441
- # @return [Wx::GraphicsPen]
442
- def create_pen(*args) end
443
-
444
- # @overload set_pen(pen)
445
- # Sets the pen used for stroking.
446
- # @param pen [Wx::Pen]
447
- # @return [void]
448
- # @overload set_pen(pen)
449
- # Sets the pen used for stroking.
450
- # @param pen [Wx::GraphicsPen]
451
- # @return [void]
452
- def set_pen(*args) end
453
- alias_method :pen=, :set_pen
454
-
455
- # @overload draw_bitmap(bmp, x, y, w, h)
456
- # Draws the bitmap.
457
- #
458
- # In case of a mono bitmap, this is treated as a mask and the current brushed is used for filling.
459
- # @param bmp [Wx::GraphicsBitmap]
460
- # @param x [Float]
461
- # @param y [Float]
462
- # @param w [Float]
463
- # @param h [Float]
464
- # @return [void]
465
- # @overload draw_bitmap(bmp, x, y, w, h)
466
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
467
- # @param bmp [Wx::Bitmap]
468
- # @param x [Float]
469
- # @param y [Float]
470
- # @param w [Float]
471
- # @param h [Float]
472
- # @return [void]
473
- # @overload draw_bitmap(bmp, rect)
474
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
475
- # @param bmp [Wx::GraphicsBitmap]
476
- # @param rect [Wx::Rect2DDouble]
477
- # @return [void]
478
- def draw_bitmap(*args) end
479
-
480
- # @overload draw_ellipse(x, y, w, h)
481
- # Draws an ellipse.
482
- # @param x [Float]
483
- # @param y [Float]
484
- # @param w [Float]
485
- # @param h [Float]
486
- # @return [void]
487
- # @overload draw_ellipse(rect)
488
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
489
- # @param rect [Wx::Rect2DDouble]
490
- # @return [void]
491
- def draw_ellipse(*args) end
492
-
493
- # @overload draw_icon(icon, x, y, w, h)
494
- # Draws the icon.
495
- # @param icon [Wx::Icon]
496
- # @param x [Float]
497
- # @param y [Float]
498
- # @param w [Float]
499
- # @param h [Float]
500
- # @return [void]
501
- # @overload draw_icon(icon, rect)
502
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
503
- # @param icon [Wx::Icon]
504
- # @param rect [Wx::Rect2DDouble]
505
- # @return [void]
506
- def draw_icon(*args) end
507
-
508
- # Draws the path by first filling and then stroking.
509
- # @param path [Wx::GraphicsPath]
510
- # @param fillStyle [Wx::PolygonFillMode]
511
- # @return [void]
512
- def draw_path(path, fillStyle=Wx::PolygonFillMode::ODDEVEN_RULE) end
513
-
514
- # @overload draw_rectangle(x, y, w, h)
515
- # Draws a rectangle.
516
- # @param x [Float]
517
- # @param y [Float]
518
- # @param w [Float]
519
- # @param h [Float]
520
- # @return [void]
521
- # @overload draw_rectangle(rect)
522
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
523
- # @param rect [Wx::Rect2DDouble]
524
- # @return [void]
525
- def draw_rectangle(*args) end
526
-
527
- # @overload draw_rounded_rectangle(x, y, w, h, radius)
528
- # Draws a rounded rectangle.
529
- # @param x [Float]
530
- # @param y [Float]
531
- # @param w [Float]
532
- # @param h [Float]
533
- # @param radius [Float]
534
- # @return [void]
535
- # @overload draw_rounded_rectangle(rect, radius)
536
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
537
- # @param rect [Wx::Rect2DDouble]
538
- # @param radius [Float]
539
- # @return [void]
540
- def draw_rounded_rectangle(*args) end
541
-
542
- # @overload draw_text(str, x, y)
543
- # Draws text at the defined position.
544
- # @param str [String]
545
- # @param x [Float]
546
- # @param y [Float]
547
- # @return [void]
548
- # @overload draw_text(str, pt)
549
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
550
- # @param str [String]
551
- # @param pt [Wx::Point2DDouble]
552
- # @return [void]
553
- # @overload draw_text(str, x, y, angle)
554
- # Draws text at the defined position.
555
- # @param str [String] The text to draw.
556
- # @param x [Float] The x coordinate position to draw the text at.
557
- # @param y [Float] The y coordinate position to draw the text at.
558
- # @param angle [Float] The angle, in radians, relative to the (default) horizontal direction to draw the string.
559
- # @return [void]
560
- # @overload draw_text(str, x, y, backgroundBrush)
561
- # Draws text at the defined position.
562
- # @param str [String] The text to draw.
563
- # @param x [Float] The x coordinate position to draw the text at.
564
- # @param y [Float] The y coordinate position to draw the text at.
565
- # @param backgroundBrush [Wx::GraphicsBrush] Brush to fill the text with.
566
- # @return [void]
567
- # @overload draw_text(str, x, y, angle, backgroundBrush)
568
- # Draws text at the defined position.
569
- # @param str [String] The text to draw.
570
- # @param x [Float] The x coordinate position to draw the text at.
571
- # @param y [Float] The y coordinate position to draw the text at.
572
- # @param angle [Float] The angle, in radians, relative to the (default) horizontal direction to draw the string.
573
- # @param backgroundBrush [Wx::GraphicsBrush] Brush to fill the text with.
574
- # @return [void]
575
- def draw_text(*args) end
576
-
577
- # @overload clear_rectangle(x, y, w, h)
578
- # Paints a transparent rectangle (only useful for bitmaps or windows).
579
- # @param x [Float]
580
- # @param y [Float]
581
- # @param w [Float]
582
- # @param h [Float]
583
- # @return [void]
584
- # @overload clear_rectangle(rect)
585
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
586
- # @param rect [Wx::Rect2DDouble]
587
- # @return [void]
588
- def clear_rectangle(*args) end
589
-
590
- # Creates a native graphics path which is initially empty.
591
- # @return [Wx::GraphicsPath]
592
- def create_path; end
593
-
594
- # Fills the path with the current brush.
595
- # @param path [Wx::GraphicsPath]
596
- # @param fillStyle [Wx::PolygonFillMode]
597
- # @return [void]
598
- def fill_path(path, fillStyle=Wx::PolygonFillMode::ODDEVEN_RULE) end
599
-
600
- # @overload stroke_line(x1, y1, x2, y2)
601
- # Strokes a single line.
602
- # @param x1 [Float]
603
- # @param y1 [Float]
604
- # @param x2 [Float]
605
- # @param y2 [Float]
606
- # @return [void]
607
- # @overload stroke_line(pt1, pt2)
608
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
609
- # @param pt1 [Wx::Point2DDouble]
610
- # @param pt2 [Wx::Point2DDouble]
611
- # @return [void]
612
- def stroke_line(*args) end
613
-
614
- # Strokes along a path with the current pen.
615
- # @param path [Wx::GraphicsPath]
616
- # @return [void]
617
- def stroke_path(path) end
618
-
619
- # @overload create_font(font, col=Wx::BLACK)
620
- # Creates a native graphics font from a {Wx::Font} and a text colour.
621
- #
622
- # <div class="wxrb-remark">
623
- # <b>Remark:</b>
624
- # <p>For Direct2D graphics, fonts can be created from TrueType fonts only.
625
- # </p>
626
- # </div>
627
- # @param font [Wx::Font,Wx::FontInfo]
628
- # @param col [Wx::Colour,String,Symbol]
629
- # @return [Wx::GraphicsFont]
630
- # @overload create_font(sizeInPixels, facename, flags=Wx::FontFlag::FONTFLAG_DEFAULT, col=Wx::BLACK)
631
- # Creates a font object with the specified attributes.
632
- #
633
- # The use of overload taking {Wx::Font} is preferred, see {Wx::GraphicsRenderer#create_font} for more details.
634
- #
635
- # <div class="wxrb-remark">
636
- # <b>Remark:</b>
637
- # <p>For Direct2D, graphics fonts can be created from TrueType fonts only.
638
- # </p>
639
- # </div>
640
- # @param sizeInPixels [Float]
641
- # @param facename [String]
642
- # @param flags [Integer]
643
- # @param col [Wx::Colour,String,Symbol]
644
- # @return [Wx::GraphicsFont]
645
- def create_font(*args) end
646
-
647
- # @overload set_font(font, colour)
648
- # Sets the font for drawing text.
649
- #
650
- # <div class="wxrb-remark">
651
- # <b>Remark:</b>
652
- # <p>For Direct2D, only TrueType fonts can be used.
653
- # </p>
654
- # </div>
655
- # @param font [Wx::Font,Wx::FontInfo]
656
- # @param colour [Wx::Colour,String,Symbol]
657
- # @return [void]
658
- # @overload set_font(font)
659
- # Sets the font for drawing text.
660
- # @param font [Wx::GraphicsFont]
661
- # @return [void]
662
- def set_font(*args) end
663
- alias_method :font=, :set_font
664
-
665
- # Fills the widths array with the widths from the beginning of text to the corresponding character of text.
666
- # @param text [String]
667
- # @return [Array<Float>]
668
- def get_partial_text_extents(text) end
669
- alias_method :partial_text_extents, :get_partial_text_extents
670
-
671
- # Gets the dimensions of the string using the currently selected font.
672
- # @param text [String] The text string to measure.
673
- # @return [Array(Float,Float,Float,Float)]
674
- def get_text_extent(text) end
675
- alias_method :text_extent, :get_text_extent
676
-
677
- # Begin a new document (relevant only for printing / pdf / etc.) If there is a progress dialog, message will be shown.
678
- # @param message [String]
679
- # @return [Boolean]
680
- def start_doc(message) end
681
-
682
- # Done with that document (relevant only for printing / pdf / etc.).
683
- # @return [void]
684
- def end_doc; end
685
-
686
- # Opens a new page (relevant only for printing / pdf etc.) with the given size in points.
687
- #
688
- # (If both are nil, then the default page size will be used.)
689
- # @param width [Float]
690
- # @param height [Float]
691
- # @return [void]
692
- def start_page(width=0, height=0) end
693
-
694
- # Ends the current page (relevant only for printing / pdf / etc.).
695
- # @return [void]
696
- def end_page; end
697
-
698
- # Creates {Wx::GraphicsBitmap} from an existing {Wx::Bitmap}.
699
- #
700
- # An invalid {Wx::NULL_GRAPHICS_BITMAP} on failure.
701
- # @param bitmap [Wx::Bitmap]
702
- # @return [Wx::GraphicsBitmap]
703
- def create_bitmap(bitmap) end
704
-
705
- # Creates {Wx::GraphicsBitmap} from an existing {Wx::Image}.
706
- #
707
- # This method is more efficient than converting {Wx::Image} to {Wx::Bitmap} first and then calling {Wx::GraphicsContext#create_bitmap}, but otherwise has the same effect.
708
- # An invalid {Wx::NULL_GRAPHICS_BITMAP} on failure.
709
- # @param image [Wx::Image]
710
- # @return [Wx::GraphicsBitmap]
711
- def create_bitmap_from_image(image) end
712
-
713
- # Extracts a sub-bitmap from an existing bitmap.
714
- # @param bitmap [Wx::GraphicsBitmap]
715
- # @param x [Float]
716
- # @param y [Float]
717
- # @param w [Float]
718
- # @param h [Float]
719
- # @return [Wx::GraphicsBitmap]
720
- def create_sub_bitmap(bitmap, x, y, w, h) end
721
-
722
- # All rendering will be done into a fully transparent, temporary context.
723
- #
724
- # Layers can be nested by making balanced calls to {Wx::GraphicsContext#begin_layer}/EndLayer().
725
- # @param opacity [Float]
726
- # @return [void]
727
- def begin_layer(opacity) end
728
-
729
- # Composites back the drawings into the context with the opacity given at the {Wx::GraphicsContext#begin_layer} call.
730
- # @return [void]
731
- def end_layer; end
732
-
733
- # Push the current state (like transformations, clipping region and quality settings) of the context on a stack.
734
- #
735
- # Multiple balanced calls to {Wx::GraphicsContext#push_state} and {Wx::GraphicsContext#pop_state} can be nested.
736
- # @see Wx::GraphicsContext#pop_state
737
- # @return [void]
738
- def push_state; end
739
-
740
- # Sets current state of the context to the state saved by a preceding call to {Wx::GraphicsContext#push_state} and removes that state from the stack of saved states.
741
- #
742
- #
743
- # @see Wx::GraphicsContext#push_state
744
- # @return [void]
745
- def pop_state; end
746
-
747
- # Make sure that the current content of this context is immediately visible.
748
- # @return [void]
749
- def flush; end
750
-
751
- # Sets the antialiasing mode; returns true if it supported.
752
- # @param antialias [Wx::AntialiasMode]
753
- # @return [Boolean]
754
- def set_antialias_mode(antialias) end
755
- alias_method :antialias_mode=, :set_antialias_mode
756
-
757
- # Returns the current shape antialiasing mode.
758
- # @return [Wx::AntialiasMode]
759
- def get_antialias_mode; end
760
- alias_method :antialias_mode, :get_antialias_mode
761
-
762
- # Sets the interpolation quality; returns true if it is supported.
763
- #
764
- # <div class="wxrb-remark">
765
- # <b>Remark:</b>
766
- # <p>Not implemented in the Cairo backend currently.
767
- # </p>
768
- # </div>
769
- # @param interpolation [Wx::InterpolationQuality]
770
- # @return [Boolean]
771
- def set_interpolation_quality(interpolation) end
772
- alias_method :interpolation_quality=, :set_interpolation_quality
773
-
774
- # Returns the current interpolation quality.
775
- # @return [Wx::InterpolationQuality]
776
- def get_interpolation_quality; end
777
- alias_method :interpolation_quality, :get_interpolation_quality
778
-
779
- # Sets the compositing operator, returns true if it supported.
780
- # @param op [Wx::CompositionMode]
781
- # @return [Boolean]
782
- def set_composition_mode(op) end
783
- alias_method :composition_mode=, :set_composition_mode
784
-
785
- # Returns the current compositing operator.
786
- # @return [Wx::CompositionMode]
787
- def get_composition_mode; end
788
- alias_method :composition_mode, :get_composition_mode
789
-
790
- # Returns the size of the graphics context in device coordinates.
791
- # @return [Array(Float,Float)]
792
- def get_size; end
793
- alias_method :size, :get_size
794
-
795
- # Returns the resolution of the graphics context in device points per inch.
796
- # @return [Array(Float,Float)]
797
- def get_dpi; end
798
- alias_method :dpi, :get_dpi
799
-
800
- # Returns the associated window, if any.
801
- #
802
- # If this context was created using {Wx::GraphicsContext.create} overload taking {Wx::Window} or {Wx::WindowDC}, this method returns the corresponding window. Otherwise, returns nil.
803
- # A possibly nil window pointer.
804
- # @return [Wx::Window]
805
- def get_window; end
806
- alias_method :window, :get_window
807
-
808
- # Helper to determine if a 0.5 offset should be applied for the drawing operation.
809
- # @return [Boolean]
810
- def should_offset; end
811
-
812
- # Indicates whether the context should try to offset for pixel boundaries.
813
- #
814
- # This only makes sense on bitmap devices like screen. By default, this is turned off.
815
- # @param enable [Boolean]
816
- # @return [void]
817
- def enable_offset(enable=true) end
818
-
819
- # Helper to determine if a 0.5 offset should be applied for the drawing operation.
820
- # @return [void]
821
- def disable_offset; end
822
-
823
- # Helper to determine if a 0.5 offset should be applied for the drawing operation.
824
- # @return [Boolean]
825
- def offset_enabled; end
826
-
827
- # @overload from_dip(sz)
828
- # Convert DPI-independent pixel values to the value in pixels appropriate for the graphics context.
829
- #
830
- # See {Wx::Window#from_dip} and {Wx::DC#from_dip} for more info about converting device independent pixel values.
831
- # @param sz [Array(Integer, Integer), Wx::Size]
832
- # @return [Wx::Size]
833
- # @overload from_dip(pt)
834
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
835
- # @param pt [Array(Integer, Integer), Wx::Point]
836
- # @return [Wx::Point]
837
- # @overload from_dip(d)
838
- # Convert DPI-independent value in pixels to the value in pixels appropriate for the graphics context.
839
- #
840
- # This is the same as the <code>Wx::GraphicsContext#from_dip(const Wx::Size&)</code> overload, but assumes that the resolution is the same in horizontal and vertical directions.
841
- # @param d [Integer]
842
- # @return [Integer]
843
- def from_dip(*args) end
844
-
845
- # @overload to_dip(sz)
846
- # Convert pixel values of the current graphics context to DPI-independent pixel values.
847
- #
848
- # See {Wx::Window#to_dip} and {Wx::DC#to_dip} for more info about converting device independent pixel values.
849
- # @param sz [Array(Integer, Integer), Wx::Size]
850
- # @return [Wx::Size]
851
- # @overload to_dip(pt)
852
- # This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
853
- # @param pt [Array(Integer, Integer), Wx::Point]
854
- # @return [Wx::Point]
855
- # @overload to_dip(d)
856
- # Convert pixel values of the current graphics context to DPI-independent pixel values.
857
- #
858
- # This is the same as ToDIP(const {Wx::Size}&) overload, but assumes that the resolution is the same in horizontal and vertical directions.
859
- # @param d [Integer]
860
- # @return [Integer]
861
- def to_dip(*args) end
862
-
863
- end # GraphicsContext
864
-
865
- # Represents a single gradient stop in a collection of gradient stops as represented by {Wx::GraphicsGradientStops}.
866
- #
867
- # Category: Graphics Device Interface (GDI)
868
- #
869
- #
870
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
871
- # @wxrb_require USE_GRAPHICS_CONTEXT
872
- class GraphicsGradientStop < ::Object
873
-
874
- # Return the stop colour.
875
- # @return [Wx::Colour,String,Symbol]
876
- def get_colour; end
877
- alias_method :colour, :get_colour
878
-
879
- # Change the stop colour.
880
- # @param col [Wx::Colour,String,Symbol] The new colour.
881
- # @return [void]
882
- def set_colour(col) end
883
- alias_method :colour=, :set_colour
884
-
885
- # Return the stop position.
886
- # @return [Float]
887
- def get_position; end
888
- alias_method :position, :get_position
889
-
890
- # Change the stop position.
891
- # @param pos [Float] The new position, must always be in [0, 1] range.
892
- # @return [void]
893
- def set_position(pos) end
894
- alias_method :position=, :set_position
895
-
896
- end # GraphicsGradientStop
897
-
898
- # Represents a collection of {Wx::GraphicGradientStop} values for use with CreateLinearGradientBrush and CreateRadialGradientBrush.
899
- #
900
- # The stops are maintained in order of position. If two or more stops are added with the same position, then the one(s) added later come later. This can be useful for producing discontinuities in the colour gradient.
901
- # Notice that this class is write-once; you can't modify the stops once they had been added.
902
- #
903
- # Category: Graphics Device Interface (GDI)
904
- #
905
- #
906
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
907
- # @wxrb_require USE_GRAPHICS_CONTEXT
908
- class GraphicsGradientStops < ::Object
909
-
910
- # @overload add(stop)
911
- # Add a new stop.
912
- # @param stop [Wx::GraphicsGradientStop]
913
- # @return [void]
914
- # @overload add(col, pos)
915
- # Add a new stop.
916
- # @param col [Wx::Colour]
917
- # @param pos [Float]
918
- # @return [void]
919
- def add(*args) end
920
-
921
- # Initializes the gradient stops with the given boundary colours.
922
- #
923
- # Creates a {Wx::GraphicsGradientStops} instance with start colour given by startCol and end colour given by endCol.
924
- # @param startCol [Wx::Colour]
925
- # @param endCol [Wx::Colour]
926
- # @return [Wx::GraphicsGradientStops]
927
- def initialize(startCol=Wx::TRANSPARENT_COLOUR, endCol=Wx::TRANSPARENT_COLOUR) end
928
-
929
- #
930
- #
931
- # The stop at the given index.
932
- # @param n [unsigned] The index, must be in [0, {Wx::GraphicsGradientStops#get_count}) range.
933
- # @return [Wx::GraphicsGradientStop]
934
- def item(n) end
935
-
936
- #
937
- #
938
- # The number of stops.
939
- # @return [Integer]
940
- def get_count; end
941
- alias_method :count, :get_count
942
-
943
- # Set the start colour to col.
944
- # @param col [Wx::Colour]
945
- # @return [void]
946
- def set_start_colour(col) end
947
- alias_method :start_colour=, :set_start_colour
948
-
949
- #
950
- #
951
- # The start colour.
952
- # @return [Wx::Colour]
953
- def get_start_colour; end
954
- alias_method :start_colour, :get_start_colour
955
-
956
- # Set the end colour to col.
957
- # @param col [Wx::Colour]
958
- # @return [void]
959
- def set_end_colour(col) end
960
- alias_method :end_colour=, :set_end_colour
961
-
962
- #
963
- #
964
- # The end colour.
965
- # @return [Wx::Colour]
966
- def get_end_colour; end
967
- alias_method :end_colour, :get_end_colour
968
-
969
- end # GraphicsGradientStops
970
-
971
- # This class is a helper used for {Wx::GraphicsPen} creation using the named parameter idiom: it allows specifying various {Wx::GraphicsPen} attributes using the chained calls to its clearly named methods instead of passing them in the fixed order to {Wx::GraphicsPen} constructors.
972
- #
973
- # Typically, you would use {Wx::GraphicsPenInfo} with a {Wx::GraphicsContext}. For example, to start drawing with a dotted blue pen slightly wider than normal you could, write the following:
974
- # ```ruby
975
- # ctx = Wx::GraphicsContext.create(dc)
976
- #
977
- # ctx.set_pen(Wx::GraphicsPenInfo.new(Wx::BLUE).width(1.25).style(Wx::PENSTYLE_DOT))
978
- # ```
979
- #
980
- #
981
- # @note This class is <b>untracked</b> and should not be derived from nor instances extended!
982
- # @wxrb_require USE_GRAPHICS_CONTEXT
983
- class GraphicsPenInfo < ::Object
984
-
985
- # Constructor, which can set the colour, width and style for the pen.
986
- # @param colour [Wx::Colour,String,Symbol]
987
- # @param width [Float]
988
- # @param style [Wx::PenStyle]
989
- # @return [Wx::GraphicsPenInfo]
990
- def initialize(colour=(Wx::Colour.new()), width=1.0, style=Wx::PenStyle::PENSTYLE_SOLID) end
991
-
992
- # Sets the colour for the pen.
993
- # @param col [Wx::Colour,String,Symbol]
994
- # @return [Wx::GraphicsPenInfo]
995
- def colour(col) end
996
-
997
- # Sets the line width for the pen.
998
- # @param width [Float]
999
- # @return [Wx::GraphicsPenInfo]
1000
- def width(width) end
1001
-
1002
- # Sets the style for the pen.
1003
- # @param style [Wx::PenStyle]
1004
- # @return [Wx::GraphicsPenInfo]
1005
- def style(style) end
1006
-
1007
- # Sets the bitmap used for stippling.
1008
- #
1009
- # When the pen is used, a repeating pattern of this bitmap will be drawn.
1010
- # @param stipple [Wx::Bitmap]
1011
- # @return [Wx::GraphicsPenInfo]
1012
- def stipple(stipple) end
1013
-
1014
- # Sets the join for the pen, which is the appearance of where two lines meet or overlap.
1015
- # @param join [Wx::PenJoin]
1016
- # @return [Wx::GraphicsPenInfo]
1017
- def join(join) end
1018
-
1019
- # Sets the cap (i.e., the end point) for the pen.
1020
- # @param cap [Wx::PenCap]
1021
- # @return [Wx::GraphicsPenInfo]
1022
- def cap(cap) end
1023
-
1024
- # @overload linear_gradient(x1, y1, x2, y2, c1, c2, matrix=Wx::NULL_GRAPHICS_MATRIX)
1025
- # Applies a linear gradient to the pen.
1026
- #
1027
- # <div class="wxrb-remark">
1028
- # <b>Remark:</b>
1029
- # <p>The starting and ending coordinates define the direction of the gradient. Along with north, south, east and west, diagonal directions can also be used.
1030
- # </p>
1031
- # </div>
1032
- # @param x1 [Float] The x coordinate of the starting point of the gradient.
1033
- # @param y1 [Float] The y coordinate of the starting point of the gradient.
1034
- # @param x2 [Float] The x coordinate of the ending point of the gradient.
1035
- # @param y2 [Float] The y coordinate of the ending point of the gradient.
1036
- # @param c1 [Wx::Colour,String,Symbol] The starting colour.
1037
- # @param c2 [Wx::Colour,String,Symbol] The ending colour.
1038
- # @param matrix [Wx::GraphicsMatrix] An optional transformation to apply to the gradient.
1039
- # @return [Wx::GraphicsPenInfo]
1040
- # @overload linear_gradient(x1, y1, x2, y2, stops, matrix=Wx::NULL_GRAPHICS_MATRIX)
1041
- # Applies a linear gradient to the pen, including discontinuous stops in the pattern.
1042
- #
1043
- # <div class="wxrb-remark">
1044
- # <b>Remark:</b>
1045
- # <p>The starting and ending coordinates define the direction of the gradient. Along with north, south, east and west, diagonal directions can also be used.
1046
- # </p>
1047
- # </div>
1048
- # @param x1 [Float] The x coordinate of the starting point of the gradient.
1049
- # @param y1 [Float] The y coordinate of the starting point of the gradient.
1050
- # @param x2 [Float] The x coordinate of the ending point of the gradient.
1051
- # @param y2 [Float] The y coordinate of the ending point of the gradient.
1052
- # @param stops [Wx::GraphicsGradientStops] A series of stops to include in the pattern.
1053
- # @param matrix [Wx::GraphicsMatrix] An optional transformation to apply to the gradient.
1054
- # @return [Wx::GraphicsPenInfo]
1055
- def linear_gradient(*args) end
1056
-
1057
- # @overload radial_gradient(startX, startY, endX, endY, radius, oColor, cColor, matrix=Wx::NULL_GRAPHICS_MATRIX)
1058
- # Applies a radial (i.e., circular) gradient to the pen.
1059
- #
1060
- # <div class="wxrb-remark">
1061
- # <b>Remark:</b>
1062
- # <p>The starting and ending coordinates define the direction of the gradient. Along with north, south, east and west, diagonal directions can also be used.
1063
- # </p>
1064
- # </div>
1065
- # @param startX [Float] The x coordinate of the starting point of the gradient.
1066
- # @param startY [Float] The startY coordinate of the starting point of the gradient.
1067
- # @param endX [Float] The endX coordinate of the end of the circle.
1068
- # @param endY [Float] The endY coordinate of the end of the circle.
1069
- # @param radius [Float] The radius of the circle of the gradient (around endX and endY).
1070
- # @param oColor [Wx::Colour,String,Symbol] The outer colour.
1071
- # @param cColor [Wx::Colour,String,Symbol] The center colour.
1072
- # @param matrix [Wx::GraphicsMatrix] An optional transformation to apply to the gradient.
1073
- # @return [Wx::GraphicsPenInfo]
1074
- # @overload radial_gradient(startX, startY, endX, endY, radius, stops, matrix=Wx::NULL_GRAPHICS_MATRIX)
1075
- # Applies a radial (i.e., circular) gradient to the pen, including discontinuous stops in the pattern.
1076
- #
1077
- # <div class="wxrb-remark">
1078
- # <b>Remark:</b>
1079
- # <p>The starting and ending coordinates define the direction of the gradient. Along with north, south, east and west, diagonal directions can also be used.
1080
- # </p>
1081
- # </div>
1082
- # @param startX [Float] The x coordinate of the starting point of the gradient.
1083
- # @param startY [Float] The startY coordinate of the starting point of the gradient.
1084
- # @param endX [Float] The endX coordinate of the end of the circle.
1085
- # @param endY [Float] The endY coordinate of the end of the circle.
1086
- # @param radius [Float] The radius of the circle of the gradient (around endX and endY).
1087
- # @param stops [Wx::GraphicsGradientStops] A series of stops to include in the pattern.
1088
- # @param matrix [Wx::GraphicsMatrix] An optional transformation to apply to the gradient.
1089
- # @return [Wx::GraphicsPenInfo]
1090
- def radial_gradient(*args) end
1091
-
1092
- # Returns the pen's colour.
1093
- # @return [Wx::Colour]
1094
- def get_colour; end
1095
-
1096
- # Returns the pen's stipple bitmap.
1097
- # @return [Wx::Bitmap]
1098
- def get_stipple; end
1099
-
1100
- # Returns the pen's style.
1101
- # @return [Wx::PenStyle]
1102
- def get_style; end
1103
-
1104
- # Returns the pen's joining method.
1105
- # @return [Wx::PenJoin]
1106
- def get_join; end
1107
-
1108
- # Returns the pen's cap (i.e., end-point style).
1109
- # @return [Wx::PenCap]
1110
- def get_cap; end
1111
-
1112
- # Returns the number of dashes in the pen's dash pattern.
1113
- # @return [Integer]
1114
- def get_dash_count; end
1115
- alias_method :dash_count, :get_dash_count
1116
-
1117
- # Returns whether the pen is transparent.
1118
- # @return [Boolean]
1119
- def is_transparent; end
1120
- alias_method :transparent?, :is_transparent
1121
-
1122
- # Returns the pen's line width.
1123
- # @return [Float]
1124
- def get_width; end
1125
-
1126
- # Returns the pen's gradient type.
1127
- # @return [Wx::GradientType]
1128
- def get_gradient_type; end
1129
- alias_method :gradient_type, :get_gradient_type
1130
-
1131
- # Returns the x coordinate of the starting point (if using a gradient).
1132
- # @return [Float]
1133
- def get_x1; end
1134
- alias_method :x1, :get_x1
1135
-
1136
- # Returns the y coordinate of the starting point (if using a gradient).
1137
- # @return [Float]
1138
- def get_y1; end
1139
- alias_method :y1, :get_y1
1140
-
1141
- # Returns the x coordinate of the ending point (if using a gradient).
1142
- # @return [Float]
1143
- def get_x2; end
1144
- alias_method :x2, :get_x2
1145
-
1146
- # Returns the y coordinate of the ending point (if using a gradient).
1147
- # @return [Float]
1148
- def get_y2; end
1149
- alias_method :y2, :get_y2
1150
-
1151
- # Returns the x coordinate of the starting point (if using a gradient).
1152
- # @return [Float]
1153
- def get_start_x; end
1154
- alias_method :start_x, :get_start_x
1155
-
1156
- # Returns the y coordinate of the starting point (if using a gradient).
1157
- # @return [Float]
1158
- def get_start_y; end
1159
- alias_method :start_y, :get_start_y
1160
-
1161
- # Returns the x coordinate of the ending point (if using a gradient).
1162
- # @return [Float]
1163
- def get_end_x; end
1164
- alias_method :end_x, :get_end_x
1165
-
1166
- # Returns the y coordinate of the ending point (if using a gradient).
1167
- # @return [Float]
1168
- def get_end_y; end
1169
- alias_method :end_y, :get_end_y
1170
-
1171
- # Returns the radius of the radial gradient.
1172
- # @return [Float]
1173
- def get_radius; end
1174
- alias_method :radius, :get_radius
1175
-
1176
- # Returns the stops of the gradient.
1177
- # @return [Wx::GraphicsGradientStops]
1178
- def get_stops; end
1179
- alias_method :stops, :get_stops
1180
-
1181
- end # GraphicsPenInfo
1182
-
1183
-
1184
- end