wxruby3 0.9.0-x64-mingw-ucrt → 0.9.1-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +4 -4
  2. data/ext/wxbase32u_gcc_custom.dll +0 -0
  3. data/ext/wxbase32u_net_gcc_custom.dll +0 -0
  4. data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
  5. data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
  6. data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
  7. data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
  8. data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
  9. data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
  10. data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
  11. data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
  12. data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
  13. data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
  14. data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
  15. data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
  16. data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
  17. data/lib/wx/core/const.rb +83 -0
  18. data/lib/wx/core/events/evt_list.rb +24 -0
  19. data/lib/wx/doc/const.rb +66 -66
  20. data/lib/wx/doc/event.rb +0 -6
  21. data/lib/wx/doc/functions.rb +9 -9
  22. data/lib/wx/doc/gen/activity_indicator.rb +2 -2
  23. data/lib/wx/doc/gen/animation_ctrl.rb +2 -2
  24. data/lib/wx/doc/gen/app_traits.rb +1 -1
  25. data/lib/wx/doc/gen/art_provider.rb +1 -1
  26. data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +2 -2
  27. data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +2 -2
  28. data/lib/wx/doc/gen/banner_window.rb +2 -2
  29. data/lib/wx/doc/gen/bitmap.rb +2 -2
  30. data/lib/wx/doc/gen/bitmap_button.rb +2 -2
  31. data/lib/wx/doc/gen/bitmap_combo_box.rb +4 -4
  32. data/lib/wx/doc/gen/button.rb +2 -2
  33. data/lib/wx/doc/gen/calendar_ctrl.rb +2 -2
  34. data/lib/wx/doc/gen/check_box.rb +2 -2
  35. data/lib/wx/doc/gen/check_list_box.rb +3 -3
  36. data/lib/wx/doc/gen/choice.rb +2 -2
  37. data/lib/wx/doc/gen/collapsible_pane.rb +2 -2
  38. data/lib/wx/doc/gen/colour_picker_ctrl.rb +2 -2
  39. data/lib/wx/doc/gen/combo_box.rb +4 -4
  40. data/lib/wx/doc/gen/combo_ctrl.rb +5 -5
  41. data/lib/wx/doc/gen/command_link_button.rb +2 -2
  42. data/lib/wx/doc/gen/control.rb +2 -2
  43. data/lib/wx/doc/gen/core.rb +2 -2
  44. data/lib/wx/doc/gen/cursor.rb +1 -1
  45. data/lib/wx/doc/gen/data_object.rb +1 -1
  46. data/lib/wx/doc/gen/date_picker_ctrl.rb +2 -2
  47. data/lib/wx/doc/gen/dc.rb +2 -2
  48. data/lib/wx/doc/gen/defs.rb +3 -3
  49. data/lib/wx/doc/gen/dial_up_event.rb +42 -0
  50. data/lib/wx/doc/gen/dial_up_manager.rb +129 -0
  51. data/lib/wx/doc/gen/dialog.rb +2 -2
  52. data/lib/wx/doc/gen/dir_picker_ctrl.rb +2 -2
  53. data/lib/wx/doc/gen/editable_list_box.rb +2 -2
  54. data/lib/wx/doc/gen/event.rb +7 -1
  55. data/lib/wx/doc/gen/event_list.rb +30 -2
  56. data/lib/wx/doc/gen/events.rb +11 -15
  57. data/lib/wx/doc/gen/file_ctrl.rb +200 -0
  58. data/lib/wx/doc/gen/file_ctrl_event.rb +80 -0
  59. data/lib/wx/doc/gen/file_dialog.rb +1 -1
  60. data/lib/wx/doc/gen/file_picker_ctrl.rb +2 -2
  61. data/lib/wx/doc/gen/font.rb +1 -1
  62. data/lib/wx/doc/gen/font_picker_ctrl.rb +2 -2
  63. data/lib/wx/doc/gen/frame.rb +4 -4
  64. data/lib/wx/doc/gen/gauge.rb +2 -2
  65. data/lib/wx/doc/gen/generic_dir_ctrl.rb +2 -2
  66. data/lib/wx/doc/gen/graphics_context.rb +1 -1
  67. data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
  68. data/lib/wx/doc/gen/grid/grid_ctrl.rb +2 -2
  69. data/lib/wx/doc/gen/header_ctrl.rb +3 -3
  70. data/lib/wx/doc/gen/help_controller.rb +39 -0
  71. data/lib/wx/doc/gen/html/html_easy_printing.rb +1 -1
  72. data/lib/wx/doc/gen/html/html_help_controller.rb +39 -0
  73. data/lib/wx/doc/gen/html/html_list_box.rb +5 -5
  74. data/lib/wx/doc/gen/html/html_window.rb +1 -1
  75. data/lib/wx/doc/gen/hyperlink_ctrl.rb +2 -2
  76. data/lib/wx/doc/gen/list_box.rb +5 -5
  77. data/lib/wx/doc/gen/list_ctrl.rb +3 -3
  78. data/lib/wx/doc/gen/mdi_frame.rb +4 -4
  79. data/lib/wx/doc/gen/media_ctrl.rb +2 -2
  80. data/lib/wx/doc/gen/menu_item.rb +76 -76
  81. data/lib/wx/doc/gen/mini_frame.rb +2 -2
  82. data/lib/wx/doc/gen/notebook.rb +2 -2
  83. data/lib/wx/doc/gen/panel.rb +2 -2
  84. data/lib/wx/doc/gen/pg/property_grid.rb +2 -2
  85. data/lib/wx/doc/gen/pg/property_grid_interface.rb +2 -2
  86. data/lib/wx/doc/gen/pg/property_grid_manager.rb +2 -2
  87. data/lib/wx/doc/gen/platform_info.rb +1 -1
  88. data/lib/wx/doc/gen/property_sheet_dialog.rb +2 -2
  89. data/lib/wx/doc/gen/prt/preview_frame.rb +1 -1
  90. data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
  91. data/lib/wx/doc/gen/prt/printer.rb +1 -1
  92. data/lib/wx/doc/gen/radio_box.rb +4 -4
  93. data/lib/wx/doc/gen/radio_button.rb +2 -2
  94. data/lib/wx/doc/gen/rbn/ribbon_control.rb +1 -1
  95. data/lib/wx/doc/gen/rearrange_ctrl.rb +2 -2
  96. data/lib/wx/doc/gen/rearrange_list.rb +2 -2
  97. data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +2 -2
  98. data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +1 -1
  99. data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +2 -2
  100. data/lib/wx/doc/gen/rtc/rich_text_printing.rb +1 -1
  101. data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +9 -9
  102. data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +2 -2
  103. data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
  104. data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
  105. data/lib/wx/doc/gen/sash_event.rb +3 -0
  106. data/lib/wx/doc/gen/sash_layout_window.rb +2 -2
  107. data/lib/wx/doc/gen/sash_window.rb +1 -1
  108. data/lib/wx/doc/gen/scroll_bar.rb +2 -2
  109. data/lib/wx/doc/gen/scrolled_canvas.rb +2 -2
  110. data/lib/wx/doc/gen/scrolled_control.rb +2 -2
  111. data/lib/wx/doc/gen/scrolled_window.rb +2 -2
  112. data/lib/wx/doc/gen/search_ctrl.rb +2 -2
  113. data/lib/wx/doc/gen/slider.rb +2 -2
  114. data/lib/wx/doc/gen/spin_button.rb +1 -1
  115. data/lib/wx/doc/gen/splitter_window.rb +2 -2
  116. data/lib/wx/doc/gen/static_bitmap.rb +2 -2
  117. data/lib/wx/doc/gen/static_box.rb +6 -6
  118. data/lib/wx/doc/gen/static_line.rb +2 -2
  119. data/lib/wx/doc/gen/static_text.rb +2 -2
  120. data/lib/wx/doc/gen/status_bar.rb +2 -2
  121. data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +3 -3
  122. data/lib/wx/doc/gen/text_ctrl.rb +2 -2
  123. data/lib/wx/doc/gen/time_picker_ctrl.rb +2 -2
  124. data/lib/wx/doc/gen/toggle_button.rb +2 -2
  125. data/lib/wx/doc/gen/tool_bar.rb +2 -2
  126. data/lib/wx/doc/gen/top_level_window.rb +2 -2
  127. data/lib/wx/doc/gen/tree_ctrl.rb +2 -2
  128. data/lib/wx/doc/gen/utils.rb +1 -1
  129. data/lib/wx/doc/gen/v_list_box.rb +2 -2
  130. data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
  131. data/lib/wx/doc/gen/window.rb +5 -5
  132. data/lib/wx/doc/gen/xml_resource.rb +1 -1
  133. data/lib/wx/doc/window.rb +5 -0
  134. data/lib/wx/keyword_defs.rb +43 -6
  135. data/lib/wx/version.rb +1 -1
  136. data/lib/wxruby_aui.so +0 -0
  137. data/lib/wxruby_core.so +0 -0
  138. data/lib/wxruby_grid.so +0 -0
  139. data/lib/wxruby_html.so +0 -0
  140. data/lib/wxruby_pg.so +0 -0
  141. data/lib/wxruby_prt.so +0 -0
  142. data/lib/wxruby_rbn.so +0 -0
  143. data/lib/wxruby_rtc.so +0 -0
  144. data/lib/wxruby_stc.so +0 -0
  145. data/rakelib/lib/config/macosx.rb +1 -1
  146. data/samples/text/richtext.rb +0 -30
  147. data/tests/test_app_exit_exception.rb +36 -0
  148. data/tests/test_app_init_exception.rb +20 -0
  149. data/tests/test_book_controls.rb +29 -0
  150. data/tests/test_exceptions.rb +41 -0
  151. data/tests/test_sizer.rb +43 -0
  152. data/tests/test_std_controls.rb +36 -0
  153. metadata +12 -2
@@ -434,7 +434,7 @@ module Wx
434
434
  def get_button; end
435
435
 
436
436
  # Returns the number of mouse clicks for this event: 1 for a simple click, 2 for a double-click, 3 for a triple-click and so on.
437
- # Currently this function is implemented only in {Wx::Mac} and returns -1 for the other platforms (you can still distinguish simple clicks from double-clicks as they generate different kinds of events however).
437
+ # Currently this function is implemented only in wxMac and returns -1 for the other platforms (you can still distinguish simple clicks from double-clicks as they generate different kinds of events however).
438
438
  # @return [Integer]
439
439
  def get_click_count; end
440
440
  alias_method :click_count, :get_click_count
@@ -1006,7 +1006,7 @@ module Wx
1006
1006
  end # PressAndTapEvent
1007
1007
 
1008
1008
  # This event class contains information about key press and release events.
1009
- # The main information carried by this event is the key being pressed or released. It can be accessed using one of {Wx::KeyEvent#get_unicode_key}, {Wx::KeyEvent#get_key_code} or {Wx::KeyEvent#get_raw_key_code} functions. For the printable characters, {Wx::KeyEvent#get_unicode_key} should be used as it works for any keys, including non-Latin-1 characters that can be entered when using national keyboard layouts. {Wx::KeyEvent#get_key_code} should be used to handle special characters (such as cursor arrows keys or HOME or INS and so on) which correspond to {Wx::KeyCode} enum elements above the {Wx::K_START} constant. While {Wx::KeyEvent#get_key_code} also returns the character code for Latin-1 keys for compatibility, it doesn't work for Unicode characters in general and will return {Wx::K_NONE} for any non-Latin-1 ones. If both {Wx::KeyEvent#get_unicode_key} and {Wx::KeyEvent#get_key_code} return {Wx::K_NONE} then the key has no WXK_xxx mapping and {Wx::KeyEvent#get_raw_key_code} can be used to distinguish between keys, but raw key codes are platform specific. For these reasons, it is recommended to always use {Wx::KeyEvent#get_unicode_key} and only fall back to {Wx::KeyEvent#get_key_code} if {Wx::KeyEvent#get_unicode_key} returned {Wx::K_NONE}, meaning that the event corresponds to a non-printable special keys, then optionally check {Wx::KeyEvent#get_raw_key_code} if {Wx::KeyEvent#get_key_code} also returned {Wx::K_NONE} or simply ignore that key.
1009
+ # The main information carried by this event is the key being pressed or released. It can be accessed using one of {Wx::KeyEvent#get_unicode_key}, {Wx::KeyEvent#get_key_code} or {Wx::KeyEvent#get_raw_key_code} functions. For the printable characters, {Wx::KeyEvent#get_unicode_key} should be used as it works for any keys, including non-Latin-1 characters that can be entered when using national keyboard layouts. {Wx::KeyEvent#get_key_code} should be used to handle special characters (such as cursor arrows keys or HOME or INS and so on) which correspond to {Wx::KeyCode} enum elements above the {Wx::KeyCode::K_START} constant. While {Wx::KeyEvent#get_key_code} also returns the character code for Latin-1 keys for compatibility, it doesn't work for Unicode characters in general and will return {Wx::KeyCode::K_NONE} for any non-Latin-1 ones. If both {Wx::KeyEvent#get_unicode_key} and {Wx::KeyEvent#get_key_code} return {Wx::KeyCode::K_NONE} then the key has no WXK_xxx mapping and {Wx::KeyEvent#get_raw_key_code} can be used to distinguish between keys, but raw key codes are platform specific. For these reasons, it is recommended to always use {Wx::KeyEvent#get_unicode_key} and only fall back to {Wx::KeyEvent#get_key_code} if {Wx::KeyEvent#get_unicode_key} returned {Wx::KeyCode::K_NONE}, meaning that the event corresponds to a non-printable special keys, then optionally check {Wx::KeyEvent#get_raw_key_code} if {Wx::KeyEvent#get_key_code} also returned {Wx::KeyCode::K_NONE} or simply ignore that key.
1010
1010
  # While these three functions can be used with the events of {Wx::EVT_KEY_DOWN}, {Wx::EVT_KEY_UP} and {Wx::EVT_CHAR} types, the values returned by them are different for the first two events and the last one. For the latter, the key returned corresponds to the character that would appear in e.g. a text zone if the user pressed the key in it. As such, its value depends on the current state of the Shift key and, for the letters, on the state of Caps Lock modifier. For example, if A key is pressed without Shift being held down, {Wx::KeyEvent} of type {Wx::EVT_CHAR} generated for this key press will return (from either {Wx::KeyEvent#get_key_code} or {Wx::KeyEvent#get_unicode_key} as their meanings coincide for ASCII characters) key code of 97 corresponding the ASCII value of a. And if the same key is pressed but with Shift being held (or Caps Lock being active), then the key could would be 65, i.e. ASCII value of capital A.
1011
1011
  # However for the key down and up events the returned key code will instead be A independently of the state of the modifier keys i.e. it depends only on physical key being pressed and is not translated to its logical representation using the current keyboard state. Such untranslated key codes are defined as follows:
1012
1012
  #
@@ -1014,13 +1014,13 @@ module Wx
1014
1014
  # - For the other alphanumeric keys (e.g. 7 or <code>+</code>), the untranslated key code corresponds to the character produced by the key when it is pressed without Shift. E.g. in standard US keyboard layout the untranslated key code for the key <code>=/+</code> in the upper right corner of the keyboard is 61 which is the ASCII value of <code>=</code>.
1015
1015
  # - For the rest of the keys (i.e. special non-printable keys) it is the same as the normal key code as no translation is used anyhow.
1016
1016
  #
1017
- # Notice that the first rule applies to all Unicode letters, not just the usual Latin-1 ones. However for non-Latin-1 letters only {Wx::KeyEvent#get_unicode_key} can be used to retrieve the key code as {Wx::KeyEvent#get_key_code} just returns {Wx::K_NONE} in this case.
1017
+ # Notice that the first rule applies to all Unicode letters, not just the usual Latin-1 ones. However for non-Latin-1 letters only {Wx::KeyEvent#get_unicode_key} can be used to retrieve the key code as {Wx::KeyEvent#get_key_code} just returns {Wx::KeyCode::K_NONE} in this case.
1018
1018
  # Also, note that {Wx::EVT_CHAR} events are not generated for keys which do not have a wxWidgets mapping, so {Wx::KeyEvent#get_raw_key_code} should never be required for this event.
1019
1019
  # To summarize: you should handle {Wx::EVT_CHAR} if you need the translated key and {Wx::EVT_KEY_DOWN} if you only need the value of the key itself, independent of the current keyboard state.
1020
1020
  # Not all key down events may be generated by the user. As an example, {Wx::EVT_KEY_DOWN} with <code>=</code> key code can be generated using the standard US keyboard layout but not using the German one because the <code>=</code> key corresponds to Shift-0 key combination in this layout and the key code for it is 0, not <code>=</code>. Because of this you should avoid requiring your users to type key events that might be impossible to enter on their keyboard.
1021
1021
  #
1022
- # Another difference between key and char events is that another kind of translation is done for the latter ones when the Control key is pressed: char events for ASCII letters in this case carry codes corresponding to the ASCII value of Ctrl-Latter, i.e. 1 for Ctrl-A, 2 for Ctrl-B and so on until 26 for Ctrl-Z. This is convenient for terminal-like applications and can be completely ignored by all the other ones (if you need to handle Ctrl-A it is probably a better idea to use the key event rather than the char one). Notice that currently no translation is done for the presses of <code></code>[, <code>\</code>, <code></code>], <code>^</code> and _ keys which might be mapped to ASCII values from 27 to 31. Since version 2.9.2, the enum values {Wx::K_CONTROL}_A - {Wx::K_CONTROL}_Z can be used instead of the non-descriptive constant values 1-26.
1023
- # Finally, modifier keys only generate key events but no char events at all. The modifiers keys are {Wx::K_SHIFT}, {Wx::K_CONTROL}, {Wx::K_ALT} and various {Wx::K_WINDOWS}_XXX from {Wx::KeyCode} enum.
1022
+ # Another difference between key and char events is that another kind of translation is done for the latter ones when the Control key is pressed: char events for ASCII letters in this case carry codes corresponding to the ASCII value of Ctrl-Latter, i.e. 1 for Ctrl-A, 2 for Ctrl-B and so on until 26 for Ctrl-Z. This is convenient for terminal-like applications and can be completely ignored by all the other ones (if you need to handle Ctrl-A it is probably a better idea to use the key event rather than the char one). Notice that currently no translation is done for the presses of <code></code>[, <code>\</code>, <code></code>], <code>^</code> and _ keys which might be mapped to ASCII values from 27 to 31. Since version 2.9.2, the enum values {Wx::KeyCode::K_CONTROL}_A - {Wx::KeyCode::K_CONTROL}_Z can be used instead of the non-descriptive constant values 1-26.
1023
+ # Finally, modifier keys only generate key events but no char events at all. The modifiers keys are {Wx::KeyCode::K_SHIFT}, {Wx::KeyCode::K_CONTROL}, {Wx::KeyCode::K_ALT} and various {Wx::KeyCode::K_WINDOWS}_XXX from {Wx::KeyCode} enum.
1024
1024
  # Modifier keys events are special in one additional aspect: usually the keyboard state associated with a key press is well defined, e.g. {Wx::KeyboardState#shift_down} returns true only if the Shift key was held pressed when the key that generated this event itself was pressed. There is an ambiguity for the key press events for Shift key itself however. By convention, it is considered to be already pressed when it is pressed and already released when it is released. In other words, {Wx::EVT_KEY_DOWN} event for the Shift key itself will have {Wx::KeyModifier::MOD_SHIFT} in {Wx::KeyEvent#get_modifiers} and {Wx::KeyEvent#shift_down} will return true while the {Wx::EVT_KEY_UP} event for Shift itself will not have {Wx::KeyModifier::MOD_SHIFT} in its modifiers and {Wx::KeyEvent#shift_down} will return false.
1025
1025
  # <b>Tip:</b> You may discover the key codes and modifiers generated by all the keys on your system interactively by running the Key Event Sample wxWidgets sample and pressing some keys in it.
1026
1026
  # If a key down (EVT_KEY_DOWN) event is caught and the event handler does not call <code>event.Skip()</code> then the corresponding char event (EVT_CHAR) will not happen. This is by design and enables the programs that handle both types of events to avoid processing the same key twice. As a consequence, if you do not want to suppress the {Wx::EVT_CHAR} events for the keys you handle, always call <code>event.Skip()</code> in your {Wx::EVT_KEY_DOWN} handler. Not doing may also prevent accelerators defined using this key from working.
@@ -1064,9 +1064,9 @@ module Wx
1064
1064
  def initialize(keyEventType=Wx::EVT_NULL) end
1065
1065
 
1066
1066
  # Returns the key code of the key that generated this event.
1067
- # ASCII symbols return normal ASCII values, while events from special keys such as "left cursor arrow" ({Wx::K_LEFT}) return values outside of the ASCII range. See {Wx::KeyCode} for a full list of the virtual key codes.
1068
- # Note that this method returns a meaningful value only for special non-alphanumeric keys or if the user entered a Latin-1 character (this includes ASCII and the accented letters found in Western European languages but not letters of other alphabets such as e.g. Cyrillic). Otherwise it simply method returns {Wx::K_NONE} and {Wx::KeyEvent#get_unicode_key} should be used to obtain the corresponding Unicode character.
1069
- # Using {Wx::KeyEvent#get_unicode_key} is in general the right thing to do if you are interested in the characters typed by the user, {Wx::KeyEvent#get_key_code} should be only used for special keys (for which {Wx::KeyEvent#get_unicode_key} returns nil). To handle both kinds of keys you might write:
1067
+ # ASCII symbols return normal ASCII values, while events from special keys such as "left cursor arrow" ({Wx::KeyCode::K_LEFT}) return values outside of the ASCII range. See {Wx::KeyCode} for a full list of the virtual key codes.
1068
+ # Note that this method returns a meaningful value only for special non-alphanumeric keys or if the user entered a Latin-1 character (this includes ASCII and the accented letters found in Western European languages but not letters of other alphabets such as e.g. Cyrillic). Otherwise it simply method returns {Wx::KeyCode::K_NONE} and {Wx::KeyEvent#get_unicode_key} should be used to obtain the corresponding Unicode character.
1069
+ # Using {Wx::KeyEvent#get_unicode_key} is in general the right thing to do if you are interested in the characters typed by the user, {Wx::KeyEvent#get_key_code} should be only used for special keys (for which {Wx::KeyEvent#get_unicode_key} returns {Wx::KeyCode::K_NONE}). To handle both kinds of keys you might write:
1070
1070
  # ```ruby
1071
1071
  # def on_char(event)
1072
1072
  # uc = event.get_unicode_key
@@ -1112,7 +1112,7 @@ module Wx
1112
1112
  # Under MSW, the raw key code is the value of wParam parameter of the corresponding message.
1113
1113
  # Under GTK, the raw key code is the keyval field of the corresponding GDK event.
1114
1114
  # Under macOS, the raw key code is the keyCode field of the corresponding NSEvent.
1115
- # Currently the raw key codes are not supported by all ports, use #ifdef {Wx::HAS_RAW_KEY_CODES} to determine if this feature is available.
1115
+ # Currently the raw key codes are not supported by all ports.
1116
1116
  # @return [Integer]
1117
1117
  def get_raw_key_code; end
1118
1118
  alias_method :raw_key_code, :get_raw_key_code
@@ -1122,13 +1122,13 @@ module Wx
1122
1122
  # Under MSW, the raw flags are just the value of lParam parameter of the corresponding message.
1123
1123
  # Under GTK, the raw flags contain the hardware_keycode field of the corresponding GDK event.
1124
1124
  # Under macOS, the raw flags contain the modifiers state.
1125
- # Currently the raw key flags are not supported by all ports, use #ifdef {Wx::HAS_RAW_KEY_CODES} to determine if this feature is available.
1125
+ # Currently the raw key flags are not supported by all ports.
1126
1126
  # @return [Integer]
1127
1127
  def get_raw_key_flags; end
1128
1128
  alias_method :raw_key_flags, :get_raw_key_flags
1129
1129
 
1130
1130
  # Returns the Unicode character corresponding to this key event.
1131
- # If the key pressed doesn't have any character value (e.g. a cursor key) this method will return nil. In this case you should use {Wx::KeyEvent#get_key_code} to retrieve the value of the key.
1131
+ # If the key pressed doesn't have any character value (e.g. a cursor key) this method will return {Wx::KeyCode::K_NONE}. In this case you should use {Wx::KeyEvent#get_key_code} to retrieve the value of the key.
1132
1132
  # This function is only available in Unicode build, i.e. when {Wx::Setup::USE_UNICODE} is 1.
1133
1133
  # @return [String]
1134
1134
  def get_unicode_key; end
@@ -1378,10 +1378,6 @@ module Wx
1378
1378
  # vb_pt = get_view_start # Top left corner of client
1379
1379
  #
1380
1380
  # Wx::RegionIterator.for_region(get_update_region) do |region_it|
1381
- #
1382
- # int vX,vY,vW,vH
1383
- # wxRegionIterator upd(GetUpdateRegion()) # get the update rect list
1384
- #
1385
1381
  # region_it.each do |rct|
1386
1382
  # # rct == Dimensions of client area to repaint in pixels
1387
1383
  #
@@ -0,0 +1,200 @@
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
+ #
10
+ FC_DEFAULT_STYLE = 1
11
+
12
+ #
13
+ #
14
+ FC_OPEN = 1
15
+
16
+ #
17
+ #
18
+ FC_SAVE = 2
19
+
20
+ #
21
+ #
22
+ FC_MULTIPLE = 4
23
+
24
+ #
25
+ #
26
+ FC_NOSHOWHIDDEN = 8
27
+
28
+ #
29
+ #
30
+ EVT_FILECTRL_SELECTIONCHANGED = 10173
31
+
32
+ #
33
+ #
34
+ EVT_FILECTRL_FILEACTIVATED = 10174
35
+
36
+ #
37
+ #
38
+ EVT_FILECTRL_FOLDERCHANGED = 10175
39
+
40
+ #
41
+ #
42
+ EVT_FILECTRL_FILTERCHANGED = 10176
43
+
44
+ # This control allows the user to select a file.
45
+ # Two implementations of this class exist, one for Gtk and another generic one for all the other ports.
46
+ # This class is only available if {Wx::Setup::USE_FILECTRL} is set to 1.
47
+ # === Styles
48
+ #
49
+ # This class supports the following styles:
50
+ #
51
+ # - {Wx::FC_DEFAULT_STYLE}: The default style: {Wx::FC_OPEN}
52
+ #
53
+ # - {Wx::FC_OPEN}: Creates an file control suitable for opening files. Cannot be combined with {Wx::FC_SAVE}.
54
+ #
55
+ # - {Wx::FC_SAVE}: Creates an file control suitable for saving files. Cannot be combined with {Wx::FC_OPEN}.
56
+ #
57
+ # - {Wx::FC_MULTIPLE}: For open control only, Allows selecting multiple files. Cannot be combined with {Wx::FC_SAVE}
58
+ #
59
+ # - {Wx::FC_NOSHOWHIDDEN}: Hides the "Show Hidden Files" checkbox (Generic only)
60
+ #
61
+ # === Events emitted by this class
62
+ #
63
+ # The following event-handler methods redirect the events to member method or handler blocks for {Wx::FileCtrlEvent} events.
64
+ # Event handler methods for events emitted by this class:
65
+ #
66
+ # - {Wx::EvtHandler#evt_filectrl_fileactivated}(id, meth = nil, &block): The user activated a file(by double-clicking or pressing Enter)
67
+ #
68
+ # - {Wx::EvtHandler#evt_filectrl_selectionchanged}(id, meth = nil, &block): The user changed the current selection(by selecting or deselecting a file)
69
+ #
70
+ # - {Wx::EvtHandler#evt_filectrl_folderchanged}(id, meth = nil, &block): The current folder of the file control has been changed
71
+ #
72
+ # - {Wx::EvtHandler#evt_filectrl_filterchanged}(id, meth = nil, &block): The current file filter of the file control has been changed.
73
+ #
74
+ # ===
75
+ #
76
+ # Category: {Wx::Controls} <div class='appearance'><span class='appearance'>Appearance:</span><table><tr><td> wxMSW Appearance
77
+ # </td><td> wxGTK Appearance
78
+ # </td><td> wxOSX Appearance
79
+ # </td></tr></table></div>
80
+ # Implementations: native under wxGTK port; a generic implementation is used elsewhere.
81
+ # @see Wx::GenericDirCtrl
82
+ #
83
+ #
84
+ class FileCtrl < Control
85
+
86
+ # @overload initialize()
87
+ # @return [Wx::FileCtrl]
88
+ # @overload initialize(parent, id, defaultDirectory=(''), defaultFilename=(''), wildCard=Wx::FILE_SELECTOR_DEFAULT_WILDCARD_STR, style=Wx::FC_DEFAULT_STYLE, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, name=Wx::FILE_CTRL_NAME_STR)
89
+ # Constructs the window.
90
+ # @param parent [Wx::Window] Parent window, must not be non-NULL.
91
+ # @param id [Integer] The identifier for the control.
92
+ # @param defaultDirectory [String] The initial directory shown in the control. Must be a valid path to a directory or the empty string. In case it is the empty string, the current working directory is used.
93
+ # @param defaultFilename [String] The default filename, or the empty string.
94
+ # @param wildCard [String] A wildcard specifying which files can be selected, such as "*.*" or "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif".
95
+ # @param style [Integer] The window style, see {Wx::FC_}* flags.
96
+ # @param pos [Array(Integer, Integer), Wx::Point] Initial position.
97
+ # @param size [Array(Integer, Integer), Wx::Size] Initial size.
98
+ # @param name [String] Control name.
99
+ # @return [Wx::FileCtrl]
100
+ def initialize(*args) end
101
+
102
+ # Create function for two-step construction.
103
+ # See {Wx::FileCtrl#initialize} for details.
104
+ # true if the control was successfully created or false if creation failed.
105
+ # @param parent [Wx::Window]
106
+ # @param id [Integer]
107
+ # @param defaultDirectory [String]
108
+ # @param defaultFilename [String]
109
+ # @param wildCard [String]
110
+ # @param style [Integer]
111
+ # @param pos [Array(Integer, Integer), Wx::Point]
112
+ # @param size [Array(Integer, Integer), Wx::Size]
113
+ # @param name [String]
114
+ # @return [Boolean]
115
+ def create(parent, id, defaultDirectory=(''), defaultFilename=(''), wildCard=Wx::FILE_SELECTOR_DEFAULT_WILDCARD_STR, style=Wx::FC_DEFAULT_STYLE, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, name=Wx::FILE_CTRL_NAME_STR) end
116
+
117
+ # Returns the current directory of the file control (i.e. the directory shown by it).
118
+ # @return [String]
119
+ def get_directory; end
120
+ alias_method :directory, :get_directory
121
+
122
+ # Returns the currently selected filename.
123
+ # For the controls having the {Wx::FC_MULTIPLE} style, use {Wx::FileCtrl#get_filenames} instead.
124
+ # @return [String]
125
+ def get_filename; end
126
+ alias_method :filename, :get_filename
127
+
128
+ # Fills the array filenames with the filenames only of selected items.
129
+ # This function should only be used with the controls having the {Wx::FC_MULTIPLE} style, use {Wx::FileCtrl#get_filename} for the others.
130
+ # filenames is emptied first.
131
+ # @return [Array<String>]
132
+ def get_filenames; end
133
+ alias_method :filenames, :get_filenames
134
+
135
+ # Returns the zero-based index of the currently selected filter.
136
+ # @return [Integer]
137
+ def get_filter_index; end
138
+ alias_method :filter_index, :get_filter_index
139
+
140
+ # Returns the full path (directory and filename) of the currently selected file.
141
+ # For the controls having the {Wx::FC_MULTIPLE} style, use {Wx::FileCtrl#get_paths} instead.
142
+ # @return [String]
143
+ def get_path; end
144
+ alias_method :path, :get_path
145
+
146
+ # Fills the array paths with the full paths of the files chosen.
147
+ # This function should be used with the controls having the {Wx::FC_MULTIPLE} style, use {Wx::FileCtrl#get_path} otherwise.
148
+ # paths is emptied first.
149
+ # @return [Array<String>]
150
+ def get_paths; end
151
+ alias_method :paths, :get_paths
152
+
153
+ # Returns the current wildcard.
154
+ # @return [String]
155
+ def get_wildcard; end
156
+ alias_method :wildcard, :get_wildcard
157
+
158
+ # Sets(changes) the current directory displayed in the control.
159
+ # Returns true on success, false otherwise.
160
+ # @param directory [String]
161
+ # @return [Boolean]
162
+ def set_directory(directory) end
163
+ alias_method :directory=, :set_directory
164
+
165
+ # Selects a certain file.
166
+ # Returns true on success, false otherwise
167
+ # @param filename [String]
168
+ # @return [Boolean]
169
+ def set_filename(filename) end
170
+ alias_method :filename=, :set_filename
171
+
172
+ # Changes to a certain directory and selects a certain file.
173
+ # If path includes the directory part, it must exist, otherwise false is returned and nothing else is done.
174
+ # Returns true on success, false otherwise
175
+ # @param path [String]
176
+ # @return [Boolean]
177
+ def set_path(path) end
178
+ alias_method :path=, :set_path
179
+
180
+ # Sets the current filter index, starting from zero.
181
+ # @param filterIndex [Integer]
182
+ # @return [void]
183
+ def set_filter_index(filterIndex) end
184
+ alias_method :filter_index=, :set_filter_index
185
+
186
+ # Sets the wildcard, which can contain multiple file types, for example: "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif".
187
+ # @param wildCard [String]
188
+ # @return [void]
189
+ def set_wildcard(wildCard) end
190
+ alias_method :wildcard=, :set_wildcard
191
+
192
+ # Sets whether hidden files and folders are shown or not.
193
+ # @param show [Boolean]
194
+ # @return [void]
195
+ def show_hidden(show) end
196
+
197
+ end # FileCtrl
198
+
199
+
200
+ end
@@ -0,0 +1,80 @@
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
+ # A file control event holds information about events associated with {Wx::FileCtrl} objects.
10
+ # === Events using this class
11
+ #
12
+ # The following event-handler methods redirect the events to member method or handler blocks for {Wx::FileCtrlEvent} events.
13
+ # Event handler methods:
14
+ #
15
+ # - {Wx::EvtHandler#evt_filectrl_fileactivated}(id, meth = nil, &block): The user activated a file(by double-clicking or pressing Enter)
16
+ #
17
+ # - {Wx::EvtHandler#evt_filectrl_selectionchanged}(id, meth = nil, &block): The user changed the current selection(by selecting or deselecting a file)
18
+ #
19
+ # - {Wx::EvtHandler#evt_filectrl_folderchanged}(id, meth = nil, &block): The current folder of the file control has been changed
20
+ #
21
+ # - {Wx::EvtHandler#evt_filectrl_filterchanged}(id, meth = nil, &block): The current file filter of the file control has been changed
22
+ #
23
+ # ===
24
+ #
25
+ # Category: {Wx::Events}
26
+ #
27
+ class FileCtrlEvent < CommandEvent
28
+
29
+ # Constructor.
30
+ # @param type [Wx::CommandLinkButton::EventType]
31
+ # @param evtObject [Wx::Object]
32
+ # @param id [Integer]
33
+ # @return [Wx::FileCtrlEvent]
34
+ def initialize(type, evtObject, id) end
35
+
36
+ # Returns the current directory.
37
+ # In case of a <b>EVT_FILECTRL_FOLDERCHANGED</b>, this method returns the new directory.
38
+ # @return [String]
39
+ def get_directory; end
40
+ alias_method :directory, :get_directory
41
+
42
+ # Returns the file selected (assuming it is only one file).
43
+ # @return [String]
44
+ def get_file; end
45
+ alias_method :file, :get_file
46
+
47
+ # Returns the files selected.
48
+ # In case of a <b>EVT_FILECTRL_SELECTIONCHANGED</b>, this method returns the files selected after the event.
49
+ # @return [Array<String>]
50
+ def get_files; end
51
+ alias_method :files, :get_files
52
+
53
+ # Returns the current file filter index.
54
+ # For a <b>EVT_FILECTRL_FILTERCHANGED</b> event, this method returns the new file filter index.
55
+ # @return [Integer]
56
+ def get_filter_index; end
57
+ alias_method :filter_index, :get_filter_index
58
+
59
+ # Sets the files changed by this event.
60
+ # @param files [Array<String>]
61
+ # @return [void]
62
+ def set_files(files) end
63
+ alias_method :files=, :set_files
64
+
65
+ # Sets the directory of this event.
66
+ # @param directory [String]
67
+ # @return [void]
68
+ def set_directory(directory) end
69
+ alias_method :directory=, :set_directory
70
+
71
+ # Sets the filter index changed by this event.
72
+ # @param index [Integer]
73
+ # @return [void]
74
+ def set_filter_index(index) end
75
+ alias_method :filter_index=, :set_filter_index
76
+
77
+ end # FileCtrlEvent
78
+
79
+
80
+ end
@@ -171,7 +171,7 @@ module Wx
171
171
  # @param size [Array(Integer, Integer), Wx::Size] Dialog size. Not implemented.
172
172
  # @param name [String] Dialog name. Not implemented.
173
173
  # @return [Wx::FileDialog]
174
- def initialize(parent, message=Wx::FileSelectorPromptStr, defaultDir=(''), defaultFile=(''), wildcard=Wx::FILE_SELECTOR_DEFAULT_WILDCARD_STR, style=Wx::FD_DEFAULT_STYLE, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, name=Wx::FileDialogNameStr) end
174
+ def initialize(parent, message=Wx::FILE_SELECTOR_PROMPT_STR, defaultDir=(''), defaultFile=(''), wildcard=Wx::FILE_SELECTOR_DEFAULT_WILDCARD_STR, style=Wx::FD_DEFAULT_STYLE, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, name=Wx::FILE_DIALOG_NAME_STR) end
175
175
 
176
176
  # Returns the path of the file currently selected in dialog.
177
177
  # Notice that this file is not necessarily going to be accepted by the user, so calling this function mostly makes sense from an update UI event handler of a custom file dialog extra control to update its state depending on the currently selected file.
@@ -49,7 +49,7 @@ module Wx
49
49
 
50
50
  # @overload initialize()
51
51
  # @return [Wx::FilePickerCtrl]
52
- # @overload initialize(parent, id, path=(''), message=Wx::FileSelectorPromptStr, wildcard=Wx::FILE_SELECTOR_DEFAULT_WILDCARD_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::FLP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::FilePickerCtrlNameStr)
52
+ # @overload initialize(parent, id, path=(''), message=Wx::FILE_SELECTOR_PROMPT_STR, wildcard=Wx::FILE_SELECTOR_DEFAULT_WILDCARD_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::FLP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::FILE_PICKER_CTRL_NAME_STR)
53
53
  # Initializes the object and calls {Wx::FilePickerCtrl#create} with all the parameters.
54
54
  # @param parent [Wx::Window]
55
55
  # @param id [Integer]
@@ -77,7 +77,7 @@ module Wx
77
77
  # @param validator [Wx::Validator] Validator which can be used for additional data checks.
78
78
  # @param name [String] Control name.
79
79
  # @return [Boolean]
80
- def create(parent, id, path=(''), message=Wx::FileSelectorPromptStr, wildcard=Wx::FILE_SELECTOR_DEFAULT_WILDCARD_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::FLP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::FilePickerCtrlNameStr) end
80
+ def create(parent, id, path=(''), message=Wx::FILE_SELECTOR_PROMPT_STR, wildcard=Wx::FILE_SELECTOR_DEFAULT_WILDCARD_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::FLP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::FILE_PICKER_CTRL_NAME_STR) end
81
81
 
82
82
  # Similar to {Wx::FilePickerCtrl#get_path} but returns the path of the currently selected file as a {Wx::FileName} object.
83
83
  # @return [String]
@@ -940,7 +940,7 @@ module Wx
940
940
  # <code>[light|bold] [italic] [FACE-NAME] [POINTSIZE] [ENCODING]</code>
941
941
  # Tahoma 10 WINDOWS-1252
942
942
  #
943
- # Todoadd an example for {Wx::Mac}
943
+ # Todoadd an example for wxMac
944
944
  #
945
945
  # 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).
946
946
  # 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.
@@ -42,7 +42,7 @@ module Wx
42
42
 
43
43
  # @overload initialize()
44
44
  # @return [Wx::FontPickerCtrl]
45
- # @overload initialize(parent, id, font=Wx::NULL_FONT, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::FNTP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::FontPickerCtrlNameStr)
45
+ # @overload initialize(parent, id, font=Wx::NULL_FONT, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::FNTP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::FONT_PICKER_CTRL_NAME_STR)
46
46
  # Initializes the object and calls {Wx::FontPickerCtrl#create} with all the parameters.
47
47
  # @param parent [Wx::Window]
48
48
  # @param id [Integer]
@@ -66,7 +66,7 @@ module Wx
66
66
  # @param validator [Wx::Validator] Validator which can be used for additional data checks.
67
67
  # @param name [String] Control name.
68
68
  # @return [Boolean]
69
- def create(parent, id, font=Wx::NULL_FONT, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::FNTP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::FontPickerCtrlNameStr) end
69
+ def create(parent, id, font=Wx::NULL_FONT, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::FNTP_DEFAULT_STYLE, validator=Wx::DEFAULT_VALIDATOR, name=Wx::FONT_PICKER_CTRL_NAME_STR) end
70
70
 
71
71
  # Returns the maximum point size value allowed for the user-chosen font.
72
72
  # @return [Integer]
@@ -109,7 +109,7 @@ module Wx
109
109
  # @overload initialize()
110
110
  # Default constructor.
111
111
  # @return [Wx::Frame]
112
- # @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FrameNameStr)
112
+ # @overload initialize(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FRAME_NAME_STR)
113
113
  # Constructor, creating the window.
114
114
  # For Motif, MWM (the Motif Window Manager) should be running for any window styles to work (otherwise all styles take effect).
115
115
  # @see Wx::Frame#create
@@ -138,7 +138,7 @@ module Wx
138
138
  # @param style [Integer]
139
139
  # @param name [String]
140
140
  # @return [Boolean]
141
- def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FrameNameStr) end
141
+ def create(parent, id, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FRAME_NAME_STR) end
142
142
 
143
143
  # Creates a status bar at the bottom of the frame.
144
144
  # A pointer to the status bar if it was created successfully, NULL otherwise.
@@ -152,7 +152,7 @@ module Wx
152
152
  # @param id [Integer] The status bar window identifier. If -1, an identifier will be chosen by wxWidgets.
153
153
  # @param name [String] The status bar window name.
154
154
  # @return [Wx::StatusBar]
155
- def create_status_bar(number=1, style=Wx::STB_DEFAULT_STYLE, id=0, name=Wx::StatusBarNameStr) end
155
+ def create_status_bar(number=1, style=Wx::STB_DEFAULT_STYLE, id=0, name=Wx::STATUS_BAR_NAME_STR) end
156
156
 
157
157
  # Creates a toolbar at the top or left of the frame.
158
158
  # A pointer to the toolbar if it was created successfully, NULL otherwise.
@@ -166,7 +166,7 @@ module Wx
166
166
  # @param id [Integer] The toolbar window identifier. If -1, an identifier will be chosen by wxWidgets.
167
167
  # @param name [String] The toolbar window name.
168
168
  # @return [Wx::ToolBar]
169
- def create_tool_bar(style=Wx::TB_DEFAULT_STYLE, id=Wx::StandardID::ID_ANY, name=Wx::ToolBarNameStr) end
169
+ def create_tool_bar(style=Wx::TB_DEFAULT_STYLE, id=Wx::StandardID::ID_ANY, name=Wx::TOOL_BAR_NAME_STR) end
170
170
 
171
171
  # Method used to show help string of the selected menu toolbar item.
172
172
  # This method is called by the default {Wx::EVT_MENU_HIGHLIGHT} event handler and also by {Wx::ToolBar} to show the optional help string associated with the selected menu or toolbar item. It can be overridden if the default behaviour of showing this string in the frame status bar is not appropriate.
@@ -55,7 +55,7 @@ module Wx
55
55
  # @overload initialize()
56
56
  # Default constructor.
57
57
  # @return [Wx::Gauge]
58
- # @overload initialize(parent, id, range, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::GA_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::GaugeNameStr)
58
+ # @overload initialize(parent, id, range, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::GA_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::GAUGE_NAME_STR)
59
59
  # Constructor, creating and showing a gauge.
60
60
  #
61
61
  # @see Wx::Gauge#create
@@ -81,7 +81,7 @@ module Wx
81
81
  # @param validator [Wx::Validator]
82
82
  # @param name [String]
83
83
  # @return [Boolean]
84
- def create(parent, id, range, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::GA_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::GaugeNameStr) end
84
+ def create(parent, id, range, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::GA_HORIZONTAL, validator=Wx::DEFAULT_VALIDATOR, name=Wx::GAUGE_NAME_STR) end
85
85
 
86
86
  # Returns the maximum position of the gauge.
87
87
  #
@@ -43,7 +43,7 @@ module Wx
43
43
  # @overload initialize()
44
44
  # Default constructor.
45
45
  # @return [Wx::GenericDirCtrl]
46
- # @overload initialize(parent, id=Wx::StandardID::ID_ANY, dir=Wx::DIR_DIALOG_DEFAULT_FOLDER_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DIRCTRL_DEFAULT_STYLE, filter=(''), defaultFilter=0, name=Wx::TreeCtrlNameStr)
46
+ # @overload initialize(parent, id=Wx::StandardID::ID_ANY, dir=Wx::DIR_DIALOG_DEFAULT_FOLDER_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DIRCTRL_DEFAULT_STYLE, filter=(''), defaultFilter=0, name=Wx::TREE_CTRL_NAME_STR)
47
47
  # Main constructor.
48
48
  # @param parent [Wx::Window] Parent window.
49
49
  # @param id [Integer] Window identifier.
@@ -78,7 +78,7 @@ module Wx
78
78
  # @param defaultFilter [Integer]
79
79
  # @param name [String]
80
80
  # @return [Boolean]
81
- def create(parent, id=Wx::StandardID::ID_ANY, dir=Wx::DIR_DIALOG_DEFAULT_FOLDER_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DIRCTRL_DEFAULT_STYLE, filter=(''), defaultFilter=0, name=Wx::TreeCtrlNameStr) end
81
+ def create(parent, id=Wx::StandardID::ID_ANY, dir=Wx::DIR_DIALOG_DEFAULT_FOLDER_STR, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DIRCTRL_DEFAULT_STYLE, filter=(''), defaultFilter=0, name=Wx::TREE_CTRL_NAME_STR) end
82
82
 
83
83
  # Tries to expand as much of the given path as possible, so that the filename or directory is visible in the tree control.
84
84
  # @param path [String]
@@ -753,7 +753,7 @@ module Wx
753
753
  # @param startCol [Wx::Colour]
754
754
  # @param endCol [Wx::Colour]
755
755
  # @return [Wx::GraphicsGradientStops]
756
- def initialize(startCol=Wx::TransparentColour, endCol=Wx::TransparentColour) end
756
+ def initialize(startCol=Wx::TRANSPARENT_COLOUR, endCol=Wx::TRANSPARENT_COLOUR) end
757
757
 
758
758
  # Returns the stop at the given index.
759
759
  # @param n [unsigned] The index, must be in [0, {Wx::GraphicsGradientStops#get_count}) range.
@@ -29,7 +29,7 @@ module Wx::GRID
29
29
  # @param outformat [String] strptime()-like format string used the parse the output date/time.
30
30
  # @param informat [String] strptime()-like format string used to parse the string entered in the cell.
31
31
  # @return [Wx::GRID::GridCellDateTimeRenderer]
32
- def initialize(outformat=Wx::DefaultDateTimeFormat, informat=Wx::DefaultDateTimeFormat) end
32
+ def initialize(outformat=Wx::DEFAULT_DATE_TIME_FORMAT, informat=Wx::DEFAULT_DATE_TIME_FORMAT) end
33
33
 
34
34
  end # GridCellDateTimeRenderer
35
35
 
@@ -308,7 +308,7 @@ module Wx::GRID
308
308
  # Default constructor.
309
309
  # You must call {Wx::GRID::Grid#create} to really create the grid window and also call {Wx::GRID::Grid#create_grid} or {Wx::GRID::Grid#set_table} or {Wx::GRID::Grid#assign_table} to initialize its contents.
310
310
  # @return [Wx::GRID::Grid]
311
- # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::WANTS_CHARS, name=Wx::GridNameStr)
311
+ # @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::WANTS_CHARS, name=Wx::GRID_NAME_STR)
312
312
  # Constructor creating the grid window.
313
313
  # You must call either {Wx::GRID::Grid#create_grid} or {Wx::GRID::Grid#set_table} or {Wx::GRID::Grid#assign_table} to initialize the grid contents before using it.
314
314
  # @param parent [Wx::Window]
@@ -329,7 +329,7 @@ module Wx::GRID
329
329
  # @param style [Integer]
330
330
  # @param name [String]
331
331
  # @return [Boolean]
332
- def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::WANTS_CHARS, name=Wx::GridNameStr) end
332
+ def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::WANTS_CHARS, name=Wx::GRID_NAME_STR) end
333
333
 
334
334
  # Creates a grid with the specified initial number of rows and columns.
335
335
  # Call this directly after the grid constructor. When you use this function {Wx::GRID::Grid} will create and manage a simple table of string values for you. All of the grid data will be stored in memory.
@@ -80,7 +80,7 @@ module Wx
80
80
  # Default constructor not creating the underlying window.
81
81
  # You must use {Wx::HeaderCtrl#create} after creating the object using this constructor.
82
82
  # @return [Wx::HeaderCtrl]
83
- # @overload initialize(parent, winid=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::HD_DEFAULT_STYLE, name=Wx::HeaderCtrlNameStr)
83
+ # @overload initialize(parent, winid=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::HD_DEFAULT_STYLE, name=Wx::HEADER_CTRL_NAME_STR)
84
84
  # Constructor creating the window.
85
85
  # Please see {Wx::HeaderCtrl#create} for the parameters documentation.
86
86
  # @param parent [Wx::Window]
@@ -104,7 +104,7 @@ module Wx
104
104
  # if this is undesirable.
105
105
  # @param name [String] The name of the control.
106
106
  # @return [Boolean]
107
- def create(parent, winid=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::HD_DEFAULT_STYLE, name=Wx::HeaderCtrlNameStr) end
107
+ def create(parent, winid=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::HD_DEFAULT_STYLE, name=Wx::HEADER_CTRL_NAME_STR) end
108
108
 
109
109
  # Set the number of columns in the control.
110
110
  # The control will use {Wx::HeaderCtrl#get_column} to get information about all the new columns and refresh itself, i.e. this method also has the same effect as calling {Wx::HeaderCtrl#update_column} for all columns but it should only be used if the number of columns really changed.
@@ -415,7 +415,7 @@ module Wx
415
415
  # Default constructor not creating the underlying window.
416
416
  # You must use {Wx::HeaderCtrlSimple#create} after creating the object using this constructor.
417
417
  # @return [Wx::HeaderCtrlSimple]
418
- # @overload initialize(parent, winid=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::HD_DEFAULT_STYLE, name=Wx::HeaderCtrlNameStr)
418
+ # @overload initialize(parent, winid=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::HD_DEFAULT_STYLE, name=Wx::HEADER_CTRL_NAME_STR)
419
419
  # Constructor creating the window.
420
420
  # Please see the base class {Wx::HeaderCtrl#create} method for the parameters description.
421
421
  # @param parent [Wx::Window]
@@ -6,6 +6,45 @@
6
6
 
7
7
  module Wx
8
8
 
9
+ #
10
+ HF_TOOLBAR = 1
11
+
12
+ #
13
+ HF_CONTENTS = 2
14
+
15
+ #
16
+ HF_INDEX = 4
17
+
18
+ #
19
+ HF_SEARCH = 8
20
+
21
+ #
22
+ HF_BOOKMARKS = 16
23
+
24
+ #
25
+ HF_OPEN_FILES = 32
26
+
27
+ #
28
+ HF_PRINT = 64
29
+
30
+ #
31
+ HF_FLAT_TOOLBAR = 128
32
+
33
+ #
34
+ HF_MERGE_BOOKS = 256
35
+
36
+ #
37
+ HF_ICONS_BOOK = 512
38
+
39
+ #
40
+ HF_ICONS_BOOK_CHAPTER = 1024
41
+
42
+ #
43
+ HF_ICONS_FOLDER = 0
44
+
45
+ #
46
+ HF_DEFAULT_STYLE = 95
47
+
9
48
  #
10
49
  HELP_NETSCAPE = 1
11
50
 
@@ -54,7 +54,7 @@ module Wx::HTML
54
54
  # @param name [String] Name of the printing object. Used by preview frames and setup dialogs.
55
55
  # @param parentWindow [Wx::Window] pointer to the window that will own the preview frame and setup dialogs. May be NULL.
56
56
  # @return [Wx::HTML::HtmlEasyPrinting]
57
- def initialize(name=("Printing"), parentWindow=nil) end
57
+ def initialize(name=("PRINTING"), parentWindow=nil) end
58
58
 
59
59
  # Returns the current name being used for preview frames and setup dialogs.
60
60
  # @return [Wx::String]