wxruby3 0.9.0.pre.beta.11-x64-mingw-ucrt → 0.9.0.pre.beta.14-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/INSTALL.md +85 -0
- data/README.md +2 -0
- data/assets/logo.png +0 -0
- data/assets/logo.svg +170 -0
- data/assets/logo.xcf +0 -0
- data/ext/wxbase32u_gcc_custom.dll +0 -0
- data/ext/wxbase32u_net_gcc_custom.dll +0 -0
- data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
- data/lib/wx/accessors.rb +8 -2
- data/lib/wx/core/array_ext.rb +26 -0
- data/lib/wx/core/art_locator.rb +92 -0
- data/lib/wx/core/artprovider.rb +1 -1
- data/lib/wx/core/bitmap.rb +90 -53
- data/lib/wx/core/cursor.rb +12 -0
- data/lib/wx/core/dataformat.rb +3 -1
- data/lib/wx/core/dc.rb +76 -52
- data/lib/wx/core/enum.rb +4 -0
- data/lib/wx/core/event.rb +38 -5
- data/lib/wx/core/events/evt_list.rb +3 -2
- data/lib/wx/core/evthandler.rb +64 -23
- data/lib/wx/core/icon.rb +50 -35
- data/lib/wx/core/id_helper.rb +32 -0
- data/lib/wx/core/image.rb +63 -53
- data/lib/wx/core/point.rb +14 -0
- data/lib/wx/core/real_point.rb +15 -1
- data/lib/wx/core/rect.rb +42 -7
- data/lib/wx/core/region_iterator.rb +37 -0
- data/lib/wx/core/size.rb +20 -0
- data/lib/wx/core/window.rb +8 -31
- data/lib/wx/doc/array_ext.rb +27 -0
- data/lib/wx/doc/art_locator.rb +57 -0
- data/lib/wx/doc/bitmap.rb +27 -0
- data/lib/wx/doc/clipboard.rb +12 -0
- data/lib/wx/doc/const.rb +77 -0
- data/lib/wx/doc/cursor.rb +16 -0
- data/lib/wx/doc/data_object.rb +1 -2
- data/lib/wx/doc/dc.rb +63 -46
- data/lib/wx/doc/event.rb +24 -0
- data/lib/wx/doc/events.rb +14 -0
- data/lib/wx/doc/evthandler.rb +24 -3
- data/lib/wx/doc/extra/00_starting.md +1 -1
- data/lib/wx/doc/extra/06_geometry.md +10 -4
- data/lib/wx/doc/extra/10_art.md +105 -0
- data/lib/wx/doc/gc_dc.rb +21 -0
- data/lib/wx/doc/gdi_common.rb +122 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +1 -4
- data/lib/wx/doc/gen/animation.rb +3 -3
- data/lib/wx/doc/gen/animation_ctrl.rb +4 -4
- data/lib/wx/doc/gen/any_button.rb +1 -1
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +1 -1
- data/lib/wx/doc/gen/aui/aui_manager.rb +2 -2
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +3 -3
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +3 -3
- data/lib/wx/doc/gen/aui/aui_notebook.rb +2 -2
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +6 -6
- data/lib/wx/doc/gen/bitmap.rb +1 -1
- data/lib/wx/doc/gen/bitmap_button.rb +2 -2
- data/lib/wx/doc/gen/book_ctrl_base.rb +4 -4
- data/lib/wx/doc/gen/brush.rb +1 -1
- data/lib/wx/doc/gen/button.rb +2 -2
- data/lib/wx/doc/gen/calendar_ctrl.rb +3 -3
- data/lib/wx/doc/gen/calendar_date_attr.rb +1 -1
- data/lib/wx/doc/gen/check_box.rb +2 -2
- data/lib/wx/doc/gen/check_list_box.rb +3 -3
- data/lib/wx/doc/gen/choice.rb +2 -2
- data/lib/wx/doc/gen/choicebook.rb +2 -2
- data/lib/wx/doc/gen/collapsible_pane.rb +2 -2
- data/lib/wx/doc/gen/colour.rb +1 -3
- data/lib/wx/doc/gen/colour_dialog.rb +1 -2
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/combo_box.rb +4 -4
- data/lib/wx/doc/gen/context_help_button.rb +1 -1
- data/lib/wx/doc/gen/control.rb +3 -3
- data/lib/wx/doc/gen/core.rb +2 -2
- data/lib/wx/doc/gen/data_format.rb +1 -1
- data/lib/wx/doc/gen/data_object.rb +6 -6
- data/lib/wx/doc/gen/date_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/dc.rb +9 -9
- data/lib/wx/doc/gen/defs.rb +0 -4
- data/lib/wx/doc/gen/dialog.rb +3 -3
- data/lib/wx/doc/gen/dir_dialog.rb +2 -4
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +2 -2
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/drag_drop.rb +13 -1
- data/lib/wx/doc/gen/editable_list_box.rb +2 -2
- data/lib/wx/doc/gen/event.rb +0 -1
- data/lib/wx/doc/gen/event_list.rb +18 -16
- data/lib/wx/doc/gen/events.rb +87 -2
- data/lib/wx/doc/gen/ext_help_controller.rb +2 -2
- data/lib/wx/doc/gen/file_dialog.rb +1 -1
- data/lib/wx/doc/gen/file_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/font.rb +6 -6
- data/lib/wx/doc/gen/font_dialog.rb +1 -2
- data/lib/wx/doc/gen/font_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/frame.rb +5 -5
- data/lib/wx/doc/gen/fs_file.rb +2 -2
- data/lib/wx/doc/gen/gauge.rb +2 -2
- data/lib/wx/doc/gen/gdi_common.rb +18 -21
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +2 -2
- data/lib/wx/doc/gen/graphics_context.rb +4 -4
- data/lib/wx/doc/gen/graphics_object.rb +2 -2
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +1 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +7 -7
- data/lib/wx/doc/gen/help_controller.rb +1 -1
- data/lib/wx/doc/gen/html/html_cell.rb +4 -4
- data/lib/wx/doc/gen/html/html_easy_printing.rb +6 -6
- data/lib/wx/doc/gen/html/html_help_controller.rb +6 -6
- data/lib/wx/doc/gen/html/html_help_frame.rb +2 -2
- data/lib/wx/doc/gen/html/html_help_window.rb +6 -6
- data/lib/wx/doc/gen/html/html_list_box.rb +6 -6
- data/lib/wx/doc/gen/html/html_printout.rb +4 -4
- data/lib/wx/doc/gen/html/html_window.rb +4 -4
- data/lib/wx/doc/gen/icon.rb +6 -6
- data/lib/wx/doc/gen/image.rb +7 -7
- data/lib/wx/doc/gen/list_box.rb +4 -4
- data/lib/wx/doc/gen/list_ctrl.rb +5 -5
- data/lib/wx/doc/gen/listbook.rb +2 -2
- data/lib/wx/doc/gen/locale.rb +8 -8
- data/lib/wx/doc/gen/log.rb +2 -2
- data/lib/wx/doc/gen/mdi_frame.rb +5 -5
- data/lib/wx/doc/gen/media_ctrl.rb +4 -4
- data/lib/wx/doc/gen/menu.rb +12 -12
- data/lib/wx/doc/gen/menu_item.rb +1 -1
- data/lib/wx/doc/gen/message_dialog.rb +2 -4
- data/lib/wx/doc/gen/mini_frame.rb +2 -2
- data/lib/wx/doc/gen/notebook.rb +3 -3
- data/lib/wx/doc/gen/number_entry_dialog.rb +0 -1
- data/lib/wx/doc/gen/object.rb +0 -1
- data/lib/wx/doc/gen/panel.rb +2 -2
- data/lib/wx/doc/gen/pen.rb +2 -2
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +1 -1
- data/lib/wx/doc/gen/pg/pg_cell.rb +1 -1
- data/lib/wx/doc/gen/pg/pg_properties.rb +20 -20
- data/lib/wx/doc/gen/pg/pg_property.rb +12 -12
- data/lib/wx/doc/gen/pg/property_grid.rb +3 -3
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +14 -14
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +3 -3
- data/lib/wx/doc/gen/pg/property_grid_page.rb +2 -2
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +2 -2
- data/lib/wx/doc/gen/popup_window.rb +3 -3
- data/lib/wx/doc/gen/property_sheet_dialog.rb +3 -3
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/printer.rb +1 -1
- data/lib/wx/doc/gen/radio_box.rb +4 -4
- data/lib/wx/doc/gen/radio_button.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +12 -12
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +1 -1
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +2 -2
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +11 -11
- data/lib/wx/doc/gen/region.rb +1 -1
- data/lib/wx/doc/gen/region_iterator.rb +76 -0
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +10 -10
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +19 -19
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +2 -2
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +4 -4
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +1 -1
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +6 -6
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +1 -1
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +2 -2
- data/lib/wx/doc/gen/sash_event.rb +1 -1
- data/lib/wx/doc/gen/sash_layout_window.rb +2 -2
- data/lib/wx/doc/gen/sash_window.rb +1 -1
- data/lib/wx/doc/gen/scroll_bar.rb +150 -0
- data/lib/wx/doc/gen/scrolled_canvas.rb +2 -2
- data/lib/wx/doc/gen/scrolled_control.rb +2 -2
- data/lib/wx/doc/gen/scrolled_window.rb +2 -2
- data/lib/wx/doc/gen/simplebook.rb +2 -2
- data/lib/wx/doc/gen/sizer.rb +3 -3
- data/lib/wx/doc/gen/slider.rb +2 -2
- data/lib/wx/doc/gen/spin_button.rb +2 -2
- data/lib/wx/doc/gen/spin_ctrl.rb +2 -2
- data/lib/wx/doc/gen/splash_screen.rb +1 -1
- data/lib/wx/doc/gen/splitter_window.rb +2 -2
- data/lib/wx/doc/gen/static_bitmap.rb +2 -2
- data/lib/wx/doc/gen/static_box.rb +4 -4
- data/lib/wx/doc/gen/static_box_sizer.rb +1 -1
- data/lib/wx/doc/gen/static_line.rb +2 -2
- data/lib/wx/doc/gen/static_text.rb +2 -2
- data/lib/wx/doc/gen/status_bar.rb +2 -2
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +3 -3
- data/lib/wx/doc/gen/task_bar_icon.rb +2 -2
- data/lib/wx/doc/gen/text_attr.rb +3 -3
- data/lib/wx/doc/gen/text_ctrl.rb +3 -3
- data/lib/wx/doc/gen/text_entry_dialog.rb +6 -8
- data/lib/wx/doc/gen/text_validator.rb +1 -1
- data/lib/wx/doc/gen/time_picker_ctrl.rb +2 -2
- data/lib/wx/doc/gen/tip_provider.rb +1 -3
- data/lib/wx/doc/gen/toggle_button.rb +2 -2
- data/lib/wx/doc/gen/tool_bar.rb +10 -10
- data/lib/wx/doc/gen/toolbook.rb +2 -2
- data/lib/wx/doc/gen/top_level_window.rb +4 -4
- data/lib/wx/doc/gen/tree_ctrl.rb +4 -4
- data/lib/wx/doc/gen/treebook.rb +2 -2
- data/lib/wx/doc/gen/utils.rb +5 -42
- data/lib/wx/doc/gen/v_list_box.rb +2 -2
- data/lib/wx/doc/gen/v_scrolled_window.rb +2 -2
- data/lib/wx/doc/gen/variant.rb +10 -10
- data/lib/wx/doc/gen/window.rb +9 -14
- data/lib/wx/doc/gen/wizard.rb +2 -2
- data/lib/wx/doc/gen/wizard_event.rb +1 -1
- data/lib/wx/doc/gen/xml_node.rb +2 -2
- data/lib/wx/doc/gen/xml_resource.rb +3 -3
- data/lib/wx/doc/graphics_context.rb +42 -0
- data/lib/wx/doc/icon.rb +18 -0
- data/lib/wx/doc/id_helper.rb +25 -0
- data/lib/wx/doc/image.rb +33 -0
- data/lib/wx/doc/region_iterator.rb +31 -0
- data/lib/wx/doc/scaled_dc.rb +1 -0
- data/lib/wx/doc/window.rb +18 -0
- data/lib/wx/global_const.rb +24 -18
- data/lib/wx/version.rb +1 -1
- data/lib/wx/wxruby/cmd/sampler.rb +3 -21
- data/lib/wxruby_aui.so +0 -0
- data/lib/wxruby_core.so +0 -0
- data/lib/wxruby_grid.so +0 -0
- data/lib/wxruby_html.so +0 -0
- data/lib/wxruby_pg.so +0 -0
- data/lib/wxruby_prt.so +0 -0
- data/lib/wxruby_rbn.so +0 -0
- data/lib/wxruby_rtc.so +0 -0
- data/lib/wxruby_stc.so +0 -0
- data/rakelib/lib/config.rb +4 -4
- data/samples/art/wxruby-128x128.png +0 -0
- data/samples/art/wxruby-256x256.png +0 -0
- data/samples/art/wxruby-64x64.png +0 -0
- data/samples/art/wxruby.ico +0 -0
- data/samples/art/wxruby.png +0 -0
- data/samples/drawing/graphics_drawing.rb +1 -2
- data/samples/propgrid/propgrid.rb +65 -65
- data/samples/sample.xpm +246 -470
- data/samples/treectrl/treectrl.rb +1 -1
- data/tests/art/my_art/sample.xpm +251 -0
- data/tests/art/sample3.xpm +251 -0
- data/tests/art/test_art/bitmap/sample.xpm +251 -0
- data/tests/art/test_art/bitmap/wxruby.bmp +0 -0
- data/tests/art/test_art/bitmap/wxruby.png +0 -0
- data/tests/art/test_art/bitmap/wxruby.xpm +251 -0
- data/tests/art/test_art/cursor/wxruby.bmp +0 -0
- data/tests/art/test_art/icon/sample.xpm +251 -0
- data/tests/art/test_art/icon/wxruby.ico +0 -0
- data/tests/art/test_art/icon/wxruby.png +0 -0
- data/tests/art/test_art/image/sample.xpm +251 -0
- data/tests/art/test_art/image/wxruby.jpg +0 -0
- data/tests/art/test_art/image/wxruby.png +0 -0
- data/tests/art/test_art/sample2.xpm +251 -0
- data/tests/test_art.rb +91 -0
- data/tests/test_clipboard.rb +35 -0
- data/tests/test_dc.rb +70 -0
- data/tests/test_events.rb +12 -0
- data/tests/test_geometry.rb +13 -0
- metadata +48 -5
@@ -65,7 +65,7 @@ module Wx
|
|
65
65
|
# @overload initialize()
|
66
66
|
# Default constructor, you must call {Wx::VScrolledWindow#create} later.
|
67
67
|
# @return [VScrolledWindow]
|
68
|
-
# @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
68
|
+
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PanelNameStr)
|
69
69
|
# This is the normal constructor, no need to call {Wx::VScrolledWindow#create} after using this constructor.
|
70
70
|
# {Wx::VSCROLL} is always automatically added to the style, there is no need to specify it explicitly.
|
71
71
|
# @param parent [Wx::Window] The parent window, must not be NULL.
|
@@ -86,7 +86,7 @@ module Wx
|
|
86
86
|
# @param style [Integer]
|
87
87
|
# @param name [String]
|
88
88
|
# @return [true,false]
|
89
|
-
def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
89
|
+
def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PanelNameStr) end
|
90
90
|
|
91
91
|
# Returns the number of rows the target window contains.
|
92
92
|
#
|
data/lib/wx/doc/gen/variant.rb
CHANGED
@@ -183,7 +183,7 @@ module Wx
|
|
183
183
|
# @overload initialize()
|
184
184
|
# Default constructor.
|
185
185
|
# @return [Variant]
|
186
|
-
# @overload initialize(data, name=
|
186
|
+
# @overload initialize(data, name=(''))
|
187
187
|
# Constructs a variant directly with a {Wx::VariantData} object.
|
188
188
|
# {Wx::Variant} will take ownership of the {Wx::VariantData} and will not increase its reference count.
|
189
189
|
# @param data [Object]
|
@@ -193,47 +193,47 @@ module Wx
|
|
193
193
|
# Constructs a variant from another variant by increasing the reference count.
|
194
194
|
# @param variant [nil,String,Integer,Float,Time,Wx::Font,Wx::Colour,Wx::Variant,Array<WxVariant>,Array<String>,ObjectWx::PG::ColourPropertyValue]
|
195
195
|
# @return [Variant]
|
196
|
-
# @overload initialize(value, name=
|
196
|
+
# @overload initialize(value, name=(''))
|
197
197
|
# Constructs a variant from a string.
|
198
198
|
# @param value [String]
|
199
199
|
# @param name [String]
|
200
200
|
# @return [Variant]
|
201
|
-
# @overload initialize(value, name=
|
201
|
+
# @overload initialize(value, name=(''))
|
202
202
|
# Constructs a variant from a long.
|
203
203
|
# @param value [Integer]
|
204
204
|
# @param name [String]
|
205
205
|
# @return [Variant]
|
206
|
-
# @overload initialize(value, name=
|
206
|
+
# @overload initialize(value, name=(''))
|
207
207
|
# Constructs a variant from a bool.
|
208
208
|
# @param value [true,false]
|
209
209
|
# @param name [String]
|
210
210
|
# @return [Variant]
|
211
|
-
# @overload initialize(value, name=
|
211
|
+
# @overload initialize(value, name=(''))
|
212
212
|
# Constructs a variant from a double.
|
213
213
|
# @param value [Float]
|
214
214
|
# @param name [String]
|
215
215
|
# @return [Variant]
|
216
|
-
# @overload initialize(value, name=
|
216
|
+
# @overload initialize(value, name=(''))
|
217
217
|
# Constructs a variant from a {Wx::LongLong}.
|
218
218
|
# @param value [Integer]
|
219
219
|
# @param name [String]
|
220
220
|
# @return [Variant]
|
221
|
-
# @overload initialize(value, name=
|
221
|
+
# @overload initialize(value, name=(''))
|
222
222
|
# Constructs a variant from a {Wx::ULongLong}.
|
223
223
|
# @param value [Integer]
|
224
224
|
# @param name [String]
|
225
225
|
# @return [Variant]
|
226
|
-
# @overload initialize(value, name=
|
226
|
+
# @overload initialize(value, name=(''))
|
227
227
|
# Constructs a variant from a list of variants.
|
228
228
|
# @param value [Array<Wx::Variant>]
|
229
229
|
# @param name [String]
|
230
230
|
# @return [Variant]
|
231
|
-
# @overload initialize(val, name=
|
231
|
+
# @overload initialize(val, name=(''))
|
232
232
|
# Constructs a variant from a {Wx::DateTime}.
|
233
233
|
# @param val [Time,Date,DateTime]
|
234
234
|
# @param name [String]
|
235
235
|
# @return [Variant]
|
236
|
-
# @overload initialize(val, name=
|
236
|
+
# @overload initialize(val, name=(''))
|
237
237
|
# Constructs a variant from a {Wx::ArrayString}.
|
238
238
|
# @param val [Array<String>]
|
239
239
|
# @param name [String]
|
data/lib/wx/doc/gen/window.rb
CHANGED
@@ -127,27 +127,22 @@ module Wx
|
|
127
127
|
end # WindowVariant
|
128
128
|
|
129
129
|
# Find the deepest window at the mouse pointer position, returning the window and current pointer position in screen coordinates.
|
130
|
-
# Include file: #include <wx/window.h>
|
131
130
|
# @param pt [Array(Integer, Integer), Wx::Point]
|
132
131
|
# @return [Wx::Window]
|
133
132
|
def self.find_window_at_pointer(pt) end
|
134
133
|
|
135
134
|
# Gets the currently active window (implemented for MSW and GTK only currently, always returns NULL in the other ports).
|
136
|
-
# Include file: #include <wx/window.h>
|
137
135
|
# @return [Wx::Window]
|
138
136
|
def self.get_active_window; end
|
139
137
|
|
140
138
|
# Returns the first top level parent of the given window, or in other words, the frame or dialog containing it, or NULL.
|
141
139
|
# Notice that if window is itself already a TLW, it is returned directly.
|
142
|
-
# Include file: #include <wx/window.h>
|
143
140
|
# @param window [Wx::Window]
|
144
141
|
# @return [Wx::Window]
|
145
142
|
def self.get_top_level_parent(window) end
|
146
143
|
|
147
144
|
# Return a string with human-readable platform-specific description of the window useful for diagnostic purposes.
|
148
145
|
# The string returned from this function doesn't have any fixed form and can vary between different wxWidgets ports and versions, but contains some useful description of the window and uniquely identifies it. This can be useful to include in debug or tracing messages.
|
149
|
-
#
|
150
|
-
# Include file: #include <wx/window.h>
|
151
146
|
# @param window [Wx::Window] Window pointer which is allowed to be NULL.
|
152
147
|
# @return [String]
|
153
148
|
def self.dump_window(window) end
|
@@ -1015,19 +1010,19 @@ module Wx
|
|
1015
1010
|
# A synonym for {Wx::Window#centre}.
|
1016
1011
|
# @param dir [Integer]
|
1017
1012
|
# @return [void]
|
1018
|
-
def center(dir=Wx::BOTH) end
|
1013
|
+
def center(dir=Wx::Orientation::BOTH) end
|
1019
1014
|
|
1020
1015
|
# A synonym for {Wx::Window#centre_on_parent}.
|
1021
1016
|
# @param dir [Integer]
|
1022
1017
|
# @return [void]
|
1023
|
-
def center_on_parent(dir=Wx::BOTH) end
|
1018
|
+
def center_on_parent(dir=Wx::Orientation::BOTH) end
|
1024
1019
|
|
1025
1020
|
# Centres the window.
|
1026
1021
|
# If the window is a top level one (i.e. doesn't have a parent), it will be centred relative to the screen anyhow.
|
1027
1022
|
# @see Wx::Window#center
|
1028
1023
|
# @param direction [Integer] Specifies the direction for the centring. May be {Wx::Orientation::HORIZONTAL}, {Wx::Orientation::VERTICAL} or {Wx::Orientation::BOTH}. It may also include the {Wx::CENTRE_ON_SCREEN} flag if you want to centre the window on the entire screen and not on its parent window.
|
1029
1024
|
# @return [void]
|
1030
|
-
def centre(direction=Wx::BOTH) end
|
1025
|
+
def centre(direction=Wx::Orientation::BOTH) end
|
1031
1026
|
|
1032
1027
|
# Centres the window on its parent.
|
1033
1028
|
# This is a more readable synonym for {Wx::Window#centre}.
|
@@ -1036,7 +1031,7 @@ module Wx
|
|
1036
1031
|
# @see Wx::TopLevelWindow#centre_on_screen
|
1037
1032
|
# @param direction [Integer] Specifies the direction for the centring. May be {Wx::Orientation::HORIZONTAL}, {Wx::Orientation::VERTICAL} or {Wx::Orientation::BOTH}.
|
1038
1033
|
# @return [void]
|
1039
|
-
def centre_on_parent(direction=Wx::BOTH) end
|
1034
|
+
def centre_on_parent(direction=Wx::Orientation::BOTH) end
|
1040
1035
|
|
1041
1036
|
# This gets the position of the window in pixels, relative to the parent window for the child windows or relative to the display origin for the top level windows.
|
1042
1037
|
#
|
@@ -1246,7 +1241,7 @@ module Wx
|
|
1246
1241
|
# Should only be called within a {Wx::PaintEvent} handler.
|
1247
1242
|
# @see Wx::Region
|
1248
1243
|
# @see Wx::RegionIterator
|
1249
|
-
# @return [
|
1244
|
+
# @return [Wx::Region]
|
1250
1245
|
def get_update_region; end
|
1251
1246
|
alias_method :update_region, :get_update_region
|
1252
1247
|
|
@@ -2269,7 +2264,7 @@ module Wx
|
|
2269
2264
|
# @see Wx::Window#on_internal_idle
|
2270
2265
|
# @param flags [Integer]
|
2271
2266
|
# @return [void]
|
2272
|
-
def update_window_ui(flags=Wx::UPDATE_UI_NONE) end
|
2267
|
+
def update_window_ui(flags=Wx::UpdateUI::UPDATE_UI_NONE) end
|
2273
2268
|
|
2274
2269
|
# Returns the default font and colours which are used by the control.
|
2275
2270
|
# This is useful if you want to use the same font or colour in your own control as in a standard control which is a much better idea than hard coding specific colours or fonts which might look completely out of place on the users system, especially if it uses themes.
|
@@ -2279,7 +2274,7 @@ module Wx
|
|
2279
2274
|
# @see Wx::Window#inherit_attributes
|
2280
2275
|
# @param variant [WindowVariant]
|
2281
2276
|
# @return [Wx::VisualAttributes]
|
2282
|
-
def self.get_class_default_attributes(variant=Wx::WINDOW_VARIANT_NORMAL) end
|
2277
|
+
def self.get_class_default_attributes(variant=Wx::WindowVariant::WINDOW_VARIANT_NORMAL) end
|
2283
2278
|
|
2284
2279
|
# Finds the window or control which currently has the keyboard focus.
|
2285
2280
|
# Note that this is a static function, so it can be called without needing a {Wx::Window} pointer.
|
@@ -2354,7 +2349,7 @@ module Wx
|
|
2354
2349
|
# @overload initialize()
|
2355
2350
|
# Default constructor.
|
2356
2351
|
# @return [Window]
|
2357
|
-
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
2352
|
+
# @overload initialize(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PanelNameStr)
|
2358
2353
|
# Constructs a window, which can be a child of a frame, dialog or any other non-control window.
|
2359
2354
|
# @param parent [Wx::Window] Pointer to a parent window.
|
2360
2355
|
# @param id [Integer] Window identifier. If {Wx::StandardID::ID_ANY}, will automatically create an identifier. See Window IDs for more information about IDs.
|
@@ -2406,7 +2401,7 @@ module Wx
|
|
2406
2401
|
# @param style [Integer]
|
2407
2402
|
# @param name [String]
|
2408
2403
|
# @return [true,false]
|
2409
|
-
def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::
|
2404
|
+
def create(parent, id, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=Wx::PanelNameStr) end
|
2410
2405
|
|
2411
2406
|
end # Window
|
2412
2407
|
|
data/lib/wx/doc/gen/wizard.rb
CHANGED
@@ -49,7 +49,7 @@ module Wx
|
|
49
49
|
# Default constructor.
|
50
50
|
# Use this if you wish to derive from {Wx::Wizard} and then call {Wx::Wizard#create}, for example if you wish to set an extra style with {Wx::Window#set_extra_style} between the two calls.
|
51
51
|
# @return [Wizard]
|
52
|
-
# @overload initialize(parent, id=Wx::ID_ANY, title=
|
52
|
+
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, title=(''), bitmap=(Wx::BitmapBundle.new()), pos=Wx::DEFAULT_POSITION, style=Wx::DEFAULT_DIALOG_STYLE)
|
53
53
|
# Constructor which really creates the wizard if you use this constructor, you shouldn't call {Wx::Wizard#create}.
|
54
54
|
# Notice that unlike almost all other wxWidgets classes, there is no size parameter in the {Wx::Wizard} constructor because the wizard will have a predefined default size by default. If you want to change this, you should use the {Wx::Wizard#get_page_area_sizer} function.
|
55
55
|
# @param parent [Wx::Window] The parent window, may be NULL.
|
@@ -71,7 +71,7 @@ module Wx
|
|
71
71
|
# @param pos [Array(Integer, Integer), Wx::Point] The position of the dialog, it will be centered on the screen by default.
|
72
72
|
# @param style [Integer] Window style is passed to {Wx::Dialog}.
|
73
73
|
# @return [true,false]
|
74
|
-
def create(parent, id=Wx::ID_ANY, title=
|
74
|
+
def create(parent, id=Wx::StandardID::ID_ANY, title=(''), bitmap=(Wx::BitmapBundle.new()), pos=Wx::DEFAULT_POSITION, style=Wx::DEFAULT_DIALOG_STYLE) end
|
75
75
|
|
76
76
|
# This method is obsolete, use {Wx::Wizard#get_page_area_sizer} instead.
|
77
77
|
# Sets the page size to be big enough for all the pages accessible via the given firstPage, i.e. this page, its next page and so on.
|
@@ -87,7 +87,7 @@ module Wx
|
|
87
87
|
# @param direction [true,false]
|
88
88
|
# @param page [Wx::WizardPage]
|
89
89
|
# @return [WizardEvent]
|
90
|
-
def initialize(type=Wx::EVT_NULL, id=Wx::ID_ANY, direction=true, page=0) end
|
90
|
+
def initialize(type=Wx::EVT_NULL, id=Wx::StandardID::ID_ANY, direction=true, page=0) end
|
91
91
|
|
92
92
|
# Return the direction in which the page is changing: for EVT_WIZARD_PAGE_CHANGING, return true if we're going forward or false otherwise and for EVT_WIZARD_PAGE_CHANGED return true if we came from the previous page and false if we returned from the next one.
|
93
93
|
# @return [true,false]
|
data/lib/wx/doc/gen/xml_node.rb
CHANGED
@@ -106,7 +106,7 @@ module Wx
|
|
106
106
|
#
|
107
107
|
class XmlNode < ::Object
|
108
108
|
|
109
|
-
# @overload initialize(type, name, content=
|
109
|
+
# @overload initialize(type, name, content=(''), lineNo=-1)
|
110
110
|
# A simplified version of the first constructor form, assuming a NULL parent.
|
111
111
|
# @param type [XmlNodeType] One of the {Wx::XmlNodeType} enumeration value.
|
112
112
|
# @param name [String] The name of the node. This is the string which appears between angular brackets.
|
@@ -145,7 +145,7 @@ module Wx
|
|
145
145
|
# @param attrName [String]
|
146
146
|
# @param defaultVal [String]
|
147
147
|
# @return [String]
|
148
|
-
def get_attribute(attrName, defaultVal=
|
148
|
+
def get_attribute(attrName, defaultVal=('')) end
|
149
149
|
alias_method :attribute, :get_attribute
|
150
150
|
|
151
151
|
# Returns the first child of this node.
|
@@ -43,13 +43,13 @@ module Wx
|
|
43
43
|
#
|
44
44
|
class XmlResource < Object
|
45
45
|
|
46
|
-
# @overload initialize(filemask, flags=Wx::XRC_USE_LOCALE, domain=
|
46
|
+
# @overload initialize(filemask, flags=Wx::XmlResourceFlags::XRC_USE_LOCALE, domain=(''))
|
47
47
|
# Constructor.
|
48
48
|
# @param filemask [String] The XRC file, archive file, or wildcard specification that will be used to load all resource files inside a zip archive.
|
49
49
|
# @param flags [Integer] One or more value of the {Wx::XmlResourceFlags} enumeration.
|
50
50
|
# @param domain [String] The name of the gettext catalog to search for translatable strings. By default all loaded catalogs will be searched. This provides a way to allow the strings to only come from a specific catalog.
|
51
51
|
# @return [XmlResource]
|
52
|
-
# @overload initialize(flags=Wx::XRC_USE_LOCALE, domain=
|
52
|
+
# @overload initialize(flags=Wx::XmlResourceFlags::XRC_USE_LOCALE, domain=(''))
|
53
53
|
# Constructor.
|
54
54
|
# @param flags [Integer] One or more value of the {Wx::XmlResourceFlags} enumeration.
|
55
55
|
# @param domain [String] The name of the gettext catalog to search for translatable strings. By default all loaded catalogs will be searched. This provides a way to allow the strings to only come from a specific catalog.
|
@@ -291,7 +291,7 @@ module Wx
|
|
291
291
|
# @param str_id [String]
|
292
292
|
# @param value_if_not_found [Integer]
|
293
293
|
# @return [Integer]
|
294
|
-
def self.get_xrcid(str_id, value_if_not_found=Wx::ID_NONE) end
|
294
|
+
def self.get_xrcid(str_id, value_if_not_found=Wx::StandardID::ID_NONE) end
|
295
295
|
|
296
296
|
# Sets the global resources object and returns a pointer to the previous one (may be NULL).
|
297
297
|
# @param res [Wx::XmlResource]
|
@@ -0,0 +1,42 @@
|
|
1
|
+
|
2
|
+
class Wx::GraphicsContext
|
3
|
+
|
4
|
+
# @overload self.draw_on(window)
|
5
|
+
# Creates a {Wx::GraphicsContext} from a {Wx::Window} and passes that object to the given block.
|
6
|
+
# Deletes the gc object after the block returns.
|
7
|
+
# @see Wx::GraphicsRenderer#create_context
|
8
|
+
# @param window [Wx::Window]
|
9
|
+
# @return [Wx::GraphicsContext]
|
10
|
+
# @overload self.draw_on(windowDC)
|
11
|
+
# Creates a {Wx::GraphicsContext} from a {Wx::WindowDC} and passes that object to the given block.
|
12
|
+
# Deletes the gc object after the block returns.
|
13
|
+
# @see Wx::GraphicsRenderer#create_context
|
14
|
+
# @param windowDC [Wx::WindowDC]
|
15
|
+
# @return [Wx::GraphicsContext]
|
16
|
+
# @overload self.draw_on(memoryDC)
|
17
|
+
# Creates a {Wx::GraphicsContext} from a {Wx::MemoryDC} and passes that object to the given block.
|
18
|
+
# Deletes the gc object after the block returns.
|
19
|
+
# @see Wx::GraphicsRenderer#create_context
|
20
|
+
# @param memoryDC [Wx::MemoryDC]
|
21
|
+
# @return [Wx::GraphicsContext]
|
22
|
+
# @overload self.draw_on(printerDC)
|
23
|
+
# Creates a {Wx::GraphicsContext} from a {Wx::PrinterDC} and passes that object to the given block.
|
24
|
+
# Deletes the gc object after the block returns.
|
25
|
+
# Under GTK+, this will only work when using the GtkPrint printing backend which is available since GTK+ 2.10.
|
26
|
+
# @see Wx::GraphicsRenderer#create_context
|
27
|
+
# @see Printing Under Unix (GTK+)
|
28
|
+
# @param printerDC [Wx::PrinterDC]
|
29
|
+
# @return [Wx::GraphicsContext]
|
30
|
+
# @overload self.draw_on(image)
|
31
|
+
# Creates a {Wx::GraphicsContext} associated with a {Wx::Image} and passes that object to the given block.
|
32
|
+
# Deletes the gc object after the block returns.
|
33
|
+
# 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.
|
34
|
+
# @param image [Wx::Image]
|
35
|
+
# @return [Wx::GraphicsContext]
|
36
|
+
# @overload self.draw_on()
|
37
|
+
# Create a lightweight context that can be used only for measuring text and passes that object to the given block.
|
38
|
+
# Deletes the gc object after the block returns.
|
39
|
+
# @return [Wx::GraphicsContext]
|
40
|
+
def self.draw_on(*args) end
|
41
|
+
|
42
|
+
end
|
data/lib/wx/doc/icon.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
class Wx::Icon
|
3
|
+
|
4
|
+
# Searches for an art file with basename 'name' and creates an Icon if found.
|
5
|
+
# Raises an ArgumentError if not found.
|
6
|
+
# Wx::ArtLocator::find_art is used to look up the art file using ::Kernel#caller_locations to
|
7
|
+
# determine the values for the 'art_path' and 'art_owner' arguments ('art_path' is set to the
|
8
|
+
# absolute path to the folder holding the caller's code and 'art_owner' to the basename of the
|
9
|
+
# caller's source file). The 'art_type' argument is set to <code>:icon</code>.
|
10
|
+
# @param [String,Symbol] name base name of art file
|
11
|
+
# @param [Wx::BitmapType,nil] bmp_type bitmap type for art file (nil means any supported type)
|
12
|
+
# @param [Integer] desired_width
|
13
|
+
# @param [Integer] desired_height
|
14
|
+
# @return [Wx::Icon]
|
15
|
+
# @see Wx::ArtLocator::find_art
|
16
|
+
def self.Icon(name, bmp_type = nil, desired_width=-1, desired_height=-1); end
|
17
|
+
|
18
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
|
2
|
+
module Wx
|
3
|
+
|
4
|
+
# Mixin module to provide convenience method for defining Windows/Control ids.
|
5
|
+
# @example Define an ID module
|
6
|
+
# module MyIDS
|
7
|
+
# include Wx::IDHelper
|
8
|
+
# # by default the offset for the next id is Wx::ID_HIGHEST which makes 'Wx::ID_HIGHEST+1'
|
9
|
+
# # the first id value returned.
|
10
|
+
# MY_FIRST_ID = self.next_id
|
11
|
+
# MY_SECOND_ID = self.next_id # MY_SECOND_ID will have value Wx::ID_HIGHEST+2
|
12
|
+
#
|
13
|
+
# # optionally a user defined offset can be specified like this:
|
14
|
+
# MY_OTHER_ID = self.next_id(MY_FIRST_ID+1000) # MY_OTHER_ID will have value MY_FIRST_ID+1001
|
15
|
+
# MY_OTHER_ID2 = self.next_id # MY_OTHER_ID2 will have value MY_FIRST_ID+1002
|
16
|
+
# end
|
17
|
+
#
|
18
|
+
module IDHelper
|
19
|
+
|
20
|
+
# Provides the singleton method #next_id to the including module.
|
21
|
+
def self.included(base) end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
data/lib/wx/doc/image.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
module Wx
|
3
|
+
|
4
|
+
class Image
|
5
|
+
|
6
|
+
# Returns an array of BitmapTypes identifying the available image handlers.
|
7
|
+
# @return [Array<Wx::BitmapType>]
|
8
|
+
def self.handlers; end
|
9
|
+
|
10
|
+
# Returns an array with the supported file extensions (as 'bmp') of the available image handlers.
|
11
|
+
# @return [Array<String>]
|
12
|
+
def self.extensions; end
|
13
|
+
|
14
|
+
# returns a Hash with all supported extensions per available BitmapType
|
15
|
+
# @return [Hash]
|
16
|
+
def self.handler_extensions; end
|
17
|
+
|
18
|
+
# Searches for an art file with basename 'name' and creates an Image if found.
|
19
|
+
# Raises an ArgumentError if not found.
|
20
|
+
# Wx::ArtLocator::find_art is used to look up the art file using ::Kernel#caller_locations to
|
21
|
+
# determine the values for the 'art_path' and 'art_owner' arguments ('art_path' is set to the
|
22
|
+
# absolute path to the folder holding the caller's code and 'art_owner' to the basename of the
|
23
|
+
# caller's source file). The 'art_type' argument is set to <code>:icon</code>.
|
24
|
+
# @param [String,Symbol] name base name of art file
|
25
|
+
# @param [Wx::BitmapType,nil] bmp_type bitmap type for art file (nil means any supported type)
|
26
|
+
# @param [Integer] index Index of the image to load in the case that the image file contains multiple images. This is only used by GIF, ICO and TIFF handlers. The default value (-1) means "choose the default image" and is interpreted as the first image (index=0) by the GIF and TIFF handler and as the largest and most colourful one by the ICO handler.
|
27
|
+
# @return [Wx::Image]
|
28
|
+
# @see Wx::ArtLocator::find_art
|
29
|
+
def self.Image(name, bmp_type = nil, index=-1); end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
|
2
|
+
class Wx::RegionIterator
|
3
|
+
|
4
|
+
# Creates a Wx::RegionIterator and passes that to the given block.
|
5
|
+
# Removes the iterator after the block finishes.
|
6
|
+
# @param [Wx::Region] region
|
7
|
+
# @yieldparam [Wx::RegionIterator] region_it
|
8
|
+
def self.for_region(region) end
|
9
|
+
|
10
|
+
# Creates a Wx::RegionIterator and iterates each rectangle in the region executing the given block
|
11
|
+
# for each iteration passing the region iterator.
|
12
|
+
# @param [Wx::Region] region
|
13
|
+
# @yieldparam [Wx::RegionIterator] region_it
|
14
|
+
def self.iterate(region) end
|
15
|
+
|
16
|
+
alias :have_rects? :have_rects
|
17
|
+
|
18
|
+
# Moves to the next rectangle of the iterated region.
|
19
|
+
# @return [void]
|
20
|
+
def next_rect; end
|
21
|
+
|
22
|
+
# If a block is given the given block is called for each rectangle in the region passing the rectangle.
|
23
|
+
# If no block is given an Enumerator is returned.
|
24
|
+
# @overload each(&block)
|
25
|
+
# @yieldparam [Wx::Rect] rect
|
26
|
+
# @return [Object]
|
27
|
+
# @overload each()
|
28
|
+
# @return [Enumerator]
|
29
|
+
def each; end
|
30
|
+
|
31
|
+
end
|
data/lib/wx/doc/scaled_dc.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
class Wx::Window
|
3
|
+
|
4
|
+
# Creates an appropriate (temporary) DC to paint on and
|
5
|
+
# passes that to the given block. Deletes the DC when the block returns.
|
6
|
+
# Creates a Wx::PaintDC when called from an evt_paint handler and a
|
7
|
+
# Wx::ClientDC otherwise.
|
8
|
+
# @yieldparam [Wx::PaintDC,Wx::ClientDC] dc dc to paint on
|
9
|
+
# @return [Object] result from block
|
10
|
+
def paint; end
|
11
|
+
|
12
|
+
# Similar to #paint but this time creates a Wx::AutoBufferedPaintDC when called
|
13
|
+
# from an evt_paint handler and a Wx::ClientDC otherwise.
|
14
|
+
# @yieldparam [Wx::AutoBufferedPaintDC,Wx::ClientDC] dc dc to paint on
|
15
|
+
# @return [Object] result from block
|
16
|
+
def paint_buffered; end
|
17
|
+
|
18
|
+
end
|
data/lib/wx/global_const.rb
CHANGED
@@ -7,24 +7,30 @@ module WxGlobalConstants
|
|
7
7
|
def search_nested(mod, sym, path = [])
|
8
8
|
# check any nested modules and/or (enum) classes
|
9
9
|
const_val = nil
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
10
|
+
org_verbose = $VERBOSE
|
11
|
+
begin
|
12
|
+
$VERBOSE = nil
|
13
|
+
mod.constants.each do |c|
|
14
|
+
case cv = mod.const_get(c)
|
15
|
+
when ::Class
|
16
|
+
if cv < Wx::Enum
|
17
|
+
# the only thing of interest in Enum classes are the enum values
|
18
|
+
const_val = cv[sym]
|
19
|
+
elsif cv.name.start_with?('Wx::') # only search Wx namespace
|
20
|
+
# prevent const_missing being triggered here since that may lead to unexpected results
|
21
|
+
const_val = cv.const_get(sym) if cv.constants.include?(sym)
|
22
|
+
const_val = search_nested(cv, sym, path+[mod]) unless const_val || path.include?(cv)
|
23
|
+
end
|
24
|
+
when ::Module
|
25
|
+
if cv.name.start_with?('Wx::') # only search Wx namespace
|
26
|
+
const_val = cv.const_get(sym) if cv.constants.include?(sym)
|
27
|
+
const_val = search_nested(cv, sym, path+[mod]) unless const_val || path.include?(cv)
|
28
|
+
end
|
29
|
+
end unless mod == cv # watch out for infinite recursion
|
30
|
+
break if const_val
|
31
|
+
end
|
32
|
+
ensure
|
33
|
+
$VERBOSE = org_verbose
|
28
34
|
end
|
29
35
|
const_val
|
30
36
|
end
|
data/lib/wx/version.rb
CHANGED
@@ -15,24 +15,6 @@ module WxRuby
|
|
15
15
|
" sampler [help]|[copy DEST]\tRun wxRuby3 Sampler application (or copy samples)."
|
16
16
|
end
|
17
17
|
|
18
|
-
def self.parse_args(args)
|
19
|
-
opts = OptionParser.new
|
20
|
-
opts.banner = "Usage: wxruby [global options] sampler [-h]|[-s PATH]\n"
|
21
|
-
opts.separator ''
|
22
|
-
opts.on('-s PATH', '--save=PATH',
|
23
|
-
'Save wxRuby samples under PATH.') do |v|
|
24
|
-
OPTIONS[:save_path] = v.to_s
|
25
|
-
end
|
26
|
-
opts.on('-h', '--help',
|
27
|
-
'Show this message.') do |v|
|
28
|
-
puts opts
|
29
|
-
puts
|
30
|
-
exit(0)
|
31
|
-
end
|
32
|
-
opts.raise_unknown = false
|
33
|
-
opts.parse!(args)
|
34
|
-
end
|
35
|
-
|
36
18
|
def self.run(argv)
|
37
19
|
if argv == :describe
|
38
20
|
description
|
@@ -47,15 +29,15 @@ module WxRuby
|
|
47
29
|
puts ' Starts the sampler application if called without arguments.'
|
48
30
|
puts ' Otherwise shows this help for argument "help" or copies the included wxRuby'
|
49
31
|
puts ' sample folders under the directory indicated by DEST for argument "copy DEST".'
|
50
|
-
puts ' The directory indicated
|
32
|
+
puts ' The directory indicated by DEST *must* already exist.'
|
51
33
|
puts
|
52
34
|
elsif arg == 'copy'
|
53
35
|
unless File.directory?(dest = argv.shift)
|
54
|
-
STDERR.puts "ERROR: Invalid destination folder #{
|
36
|
+
STDERR.puts "ERROR: Invalid destination folder #{dest}"
|
55
37
|
exit(1)
|
56
38
|
end
|
57
39
|
Dir[File.join(WxRuby::ROOT, 'samples', '*')].each do |fp|
|
58
|
-
FileUtils.cp_r(fp, dest, verbose: true
|
40
|
+
FileUtils.cp_r(fp, dest, verbose: true)
|
59
41
|
end
|
60
42
|
end
|
61
43
|
end
|
data/lib/wxruby_aui.so
CHANGED
Binary file
|
data/lib/wxruby_core.so
CHANGED
Binary file
|
data/lib/wxruby_grid.so
CHANGED
Binary file
|
data/lib/wxruby_html.so
CHANGED
Binary file
|
data/lib/wxruby_pg.so
CHANGED
Binary file
|
data/lib/wxruby_prt.so
CHANGED
Binary file
|
data/lib/wxruby_rbn.so
CHANGED
Binary file
|
data/lib/wxruby_rtc.so
CHANGED
Binary file
|
data/lib/wxruby_stc.so
CHANGED
Binary file
|
data/rakelib/lib/config.rb
CHANGED
@@ -145,11 +145,11 @@ module WXRuby3
|
|
145
145
|
end
|
146
146
|
private :do_run
|
147
147
|
|
148
|
-
def make_ruby_cmd(*cmd)
|
148
|
+
def make_ruby_cmd(*cmd, verbose: true)
|
149
149
|
[
|
150
150
|
FileUtils::RUBY,
|
151
151
|
'-I', rb_lib_path,
|
152
|
-
(verbose? ? '-v' : nil),
|
152
|
+
(verbose && verbose? ? '-v' : nil),
|
153
153
|
*cmd.flatten
|
154
154
|
].compact
|
155
155
|
end
|
@@ -159,8 +159,8 @@ module WXRuby3
|
|
159
159
|
do_run(*cmd.flatten)
|
160
160
|
end
|
161
161
|
|
162
|
-
def run(*cmd, capture: nil)
|
163
|
-
do_run(*make_ruby_cmd(cmd), capture: capture)
|
162
|
+
def run(*cmd, capture: nil, verbose: true)
|
163
|
+
do_run(*make_ruby_cmd(cmd, verbose: verbose), capture: capture)
|
164
164
|
end
|
165
165
|
|
166
166
|
def debug_command(*args)
|
Binary file
|
Binary file
|
Binary file
|
data/samples/art/wxruby.ico
CHANGED
Binary file
|
data/samples/art/wxruby.png
CHANGED
Binary file
|
@@ -155,8 +155,7 @@ class GraphicsWindow < Wx::Window
|
|
155
155
|
def on_paint
|
156
156
|
# We do our drawing now
|
157
157
|
rect = self.get_client_size
|
158
|
-
|
159
|
-
gdc = Wx::GraphicsContext.create(dc)
|
158
|
+
Wx::GraphicsContext.draw_on(self) do |gdc|
|
160
159
|
unless @rtxt
|
161
160
|
create_resources(gdc)
|
162
161
|
end
|