wxruby3 0.9.0.pre.beta.11-x64-mingw-ucrt → 0.9.0.pre.beta.13-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/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/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
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
# 6. wxRuby Geometry classes
|
7
7
|
|
8
|
-
## Size (Wx::Size) and position (Wx::Point)
|
8
|
+
## Size (Wx::Size) and position (Wx::Point and Wx::RealPoint)
|
9
9
|
|
10
10
|
The wxWidgets API has a lot methods that require either `wxSize`, `wxPoint` or both type of value as argument. Although
|
11
11
|
this can be specified in C++ still relatively concise like
|
@@ -19,13 +19,13 @@ Wx::Frame.new(nil, -1, 'title', Wx::Point.new(0,0), Wx::Size.new(500,400))
|
|
19
19
|
which starts to feel awkward to specify what are in essence just pairs of integers.
|
20
20
|
|
21
21
|
To provide a simpler, more compact and more Ruby-like, alternative the wxRuby API therefor supports specifying arrays
|
22
|
-
of integer pairs in (almost) all cases where `Wx::Size` or `Wx::Point`
|
23
|
-
to the previous code:
|
22
|
+
of integer (or float in case of Wx::RealPoint) pairs in (almost) all cases where `Wx::Size` or `Wx::Point`
|
23
|
+
(or Wx::RealPoint) is expected. So the following code is equivalent to the previous code:
|
24
24
|
```ruby
|
25
25
|
Wx::Frame.new(nil, -1, 'title', [0,0], [500,400])
|
26
26
|
```
|
27
27
|
|
28
|
-
In addition `Wx::Size` and `Wx::
|
28
|
+
In addition `Wx::Size`, `Wx::Point` and `Wx::RealPoint` support parallel assignment semantics such that you can write code like
|
29
29
|
```ruby
|
30
30
|
win.paint do | dc |
|
31
31
|
# ...
|
@@ -44,6 +44,12 @@ instead of
|
|
44
44
|
end
|
45
45
|
```
|
46
46
|
|
47
|
+
Instances of these classes can also be converted (back) to arrays with their `#to_ary` methods.
|
48
|
+
|
49
|
+
Lastly wxRuby also extends the standard Ruby Array class with conversion methods to explicitly convert
|
50
|
+
arrays to `Wx::Size`, `Wx::Point` or `Wx::RealPoint`; respectively the `#to_size`, `#to_point` and `#to_real_point`
|
51
|
+
methods.
|
52
|
+
|
47
53
|
## Areas (Wx::Rect)
|
48
54
|
|
49
55
|
Like `Wx::Size` and `Wx::Point` wxRuby supports parallel assignment for `Wx::Rect` such that you can write code like
|
@@ -0,0 +1,105 @@
|
|
1
|
+
<!--
|
2
|
+
# @markup markdown
|
3
|
+
# @title 10. wxRuby Locating and loading art
|
4
|
+
-->
|
5
|
+
|
6
|
+
# 9. wxRuby Locating and loading art
|
7
|
+
|
8
|
+
## Introduction
|
9
|
+
|
10
|
+
With C++ wxWidgets applications art (icons, bitmaps, cursors, images) can be loaded in a variety
|
11
|
+
of ways from embedded resources (platform specific binary resources or embedded XPM files) or from
|
12
|
+
binary datasets retrieved from some data source.
|
13
|
+
|
14
|
+
With wxRuby that is for various reasons not a viable option so we are left with the option to
|
15
|
+
load art from files. In and of itself that option is not really too bad but for the issue of locating
|
16
|
+
the art files.
|
17
|
+
Art that is part of the application's design will preferably be stored with the source code but there
|
18
|
+
is not standard for this nor is there any standard support for locating those files from the application
|
19
|
+
code like there is for `require`-s of other code modules.
|
20
|
+
|
21
|
+
The wxRuby framework provides a convenience module `Wx::ArtLocator` to assist in that respect.
|
22
|
+
Wx::ArtLocator aims on the one side to standardize folder structures for storing art files and on the
|
23
|
+
other side to provide runtime support for locating those files from code.
|
24
|
+
|
25
|
+
The main locator method provided is:
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
module Wx::Locator
|
29
|
+
def self.find_art(art_name, art_type: nil, art_path: nil, art_section: nil, bmp_type: nil)
|
30
|
+
# ...
|
31
|
+
end
|
32
|
+
end
|
33
|
+
```
|
34
|
+
|
35
|
+
The 'art_name' argument should provide the base name for matching art files and can be specified as either
|
36
|
+
String or Symbol.
|
37
|
+
|
38
|
+
## Storage locations
|
39
|
+
|
40
|
+
Wx::ArtLocator defines a standardized directory structure that is assumed to be used for application art
|
41
|
+
file storage.
|
42
|
+
Working from a certain (application defined) base search path ('art_path' argument) this structure looks like this:
|
43
|
+
|
44
|
+
<art_path>
|
45
|
+
\art
|
46
|
+
\<art_section>
|
47
|
+
\<art_type>
|
48
|
+
|
49
|
+
Where '<art_path>' is an application supplied search path, 'art' is the default name for Art folders (this can be overridden by an application specific name),
|
50
|
+
'<art_section>' is an application defined id allowing sub-categorizing art and '<art_type>' is the type of art indicator
|
51
|
+
(which can be 'icon', 'bitmap', 'cursor', 'image').
|
52
|
+
Art files can be located at any level in this hierarchy and all sub levels in this hierarchy are optional.
|
53
|
+
When locating files the art locator will test a file's existence at all levels starting with the
|
54
|
+
deepest level working it's way up returning the absolute path of the first file found this way.
|
55
|
+
|
56
|
+
So locating an art file would involve testing for the file at the following paths:
|
57
|
+
1. \<art_path>/art/<art_section>/<art_type>/
|
58
|
+
2. \<art_path>/art/<art_section>/
|
59
|
+
3. \<art_path>/art/
|
60
|
+
4. \<art_path>/
|
61
|
+
|
62
|
+
The first location can be skipped by specifying `nil` for 'art_type'.
|
63
|
+
|
64
|
+
## Bitmap types
|
65
|
+
|
66
|
+
Based on platform and specified '<art_type>' (and optionally a specific Wx::BitmapType) art files with a specific
|
67
|
+
range of extensions will be tested in a specific order.
|
68
|
+
For example for locating an `:icon` (<art_type>) on platform 'WXGTK' the locator will test the preferred extension
|
69
|
+
'.xpm' followed by any of supported extensions of all other supported bitmap types.
|
70
|
+
For platform 'WXMSW' however the same search would test only the extensions '.ico' and '.xpm' (in that
|
71
|
+
order).
|
72
|
+
Specifying a specific Wx::BitmapType for a search will restrict the search to testing only the extensions supported
|
73
|
+
for the specified Wx::BitmapType.
|
74
|
+
|
75
|
+
## Search paths
|
76
|
+
|
77
|
+
To prevent having to specify base search path for every location request Wx::Locator provides 2 options.
|
78
|
+
|
79
|
+
When an explicit specification of a base search path ('art_path) is omitted from a location request the locator
|
80
|
+
will determine one by using `Kernel#caller_locations` to extract the absolute path for the source file containing
|
81
|
+
the caller's code. The result of `File.dirname(src_path)` is than used as base search path.
|
82
|
+
If 'art_section' is also omitted the result of `File.basename(src_path, '.*')` will be used instead.
|
83
|
+
|
84
|
+
This means that calling `Wx::ArtLocator.find_art` from some code in file `/some/lib/path/to/ruby/code.rb` without
|
85
|
+
specifying both 'art_path' and 'art_section' would result in looking for an art file with the base search path
|
86
|
+
being `/some/lib/path/to/ruby/` and using `code` as 'art_section'.
|
87
|
+
|
88
|
+
It is also possible to add 'application global' search paths with the method `Wx::ArtLocator.add_search_path`.
|
89
|
+
Search paths added in this way will be tested after failing to find any matching art file at the initial 'art_path'
|
90
|
+
location. The same location steps apply to these search paths as with the initial 'art_path' (see above).
|
91
|
+
|
92
|
+
## Convenience methods
|
93
|
+
|
94
|
+
Based on the Wx::ArtLocator implementation wxRuby additionally provides a number of convenience methods to
|
95
|
+
easily create Icons, Bitmaps, Cursors and Images from simple ids (symbols).
|
96
|
+
These methods mimic the ease of use of the `wxICON` and `wxBITMAP` macros used with C++ wxWidgets such that
|
97
|
+
creating an Wx::Icon instance could be as easy as:
|
98
|
+
|
99
|
+
```ruby
|
100
|
+
frame.icon = Wx::Icon(:sample)
|
101
|
+
```
|
102
|
+
|
103
|
+
As these methods apply the same search path 'automagic' as `Wx::ArtLocator.find_art` (see [Search paths](#Search-paths))
|
104
|
+
this would search for an art file with base name 'sample' and an appropriate extension (like '.xpm' for the 'WXGTK' platform)
|
105
|
+
in a location starting at the directory in which the caller's code is stored (applying the steps described above).
|
data/lib/wx/doc/gc_dc.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
|
2
|
+
class Wx
|
3
|
+
|
4
|
+
class GCDC < Wx::DC
|
5
|
+
|
6
|
+
private :initialize
|
7
|
+
|
8
|
+
# Creates a Wx::GCDC instance for target and
|
9
|
+
# passes the instance to the given block to draw on.
|
10
|
+
# @overload draw_on(dc)
|
11
|
+
# @param [Wx::WindowDC,Wx::MemoryDC,Wx::PrinterDC] target DC to draw on
|
12
|
+
# @yieldparam [Wx::GCDC] dc GCDC instance to draw on
|
13
|
+
# @return [Object] result from block
|
14
|
+
# @overload draw_on(dc)
|
15
|
+
# @param [Wx::GraphicsContext] gc GraphicsContext to draw on
|
16
|
+
# @yieldparam [Wx::GCDC] dc GCDC instance to draw on
|
17
|
+
# @return [Object] result from block
|
18
|
+
def self.draw_on(arg) end
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
data/lib/wx/doc/gdi_common.rb
CHANGED
@@ -52,6 +52,20 @@ module Wx
|
|
52
52
|
# @return [Wx::Size]
|
53
53
|
def +(arg) end
|
54
54
|
|
55
|
+
alias :get_x :get_width
|
56
|
+
alias :x :get_width
|
57
|
+
alias :get_y :get_height
|
58
|
+
alias :y :get_height
|
59
|
+
|
60
|
+
# Set this size to the given size's width,height values
|
61
|
+
# @param [Wx::Size] sz
|
62
|
+
# @return [self]
|
63
|
+
def assign(sz) end
|
64
|
+
|
65
|
+
# Returns self.
|
66
|
+
# @return [self]
|
67
|
+
def to_size; end
|
68
|
+
|
55
69
|
end
|
56
70
|
|
57
71
|
class Point
|
@@ -110,6 +124,15 @@ module Wx
|
|
110
124
|
def to_real_point; end
|
111
125
|
alias :to_real :to_real_point
|
112
126
|
|
127
|
+
# Returns self.
|
128
|
+
# @return [self]
|
129
|
+
def to_point; end
|
130
|
+
|
131
|
+
# Set this point to the given point's x,y values
|
132
|
+
# @param [Wx::Point] pt
|
133
|
+
# @return [self]
|
134
|
+
def assign(pt) end
|
135
|
+
|
113
136
|
end
|
114
137
|
|
115
138
|
class RealPoint
|
@@ -172,6 +195,15 @@ module Wx
|
|
172
195
|
# @return [Wx::Point] Wx::Point instance from real point coordinates
|
173
196
|
def to_point; end
|
174
197
|
|
198
|
+
# Returns self.
|
199
|
+
# @return [self]
|
200
|
+
def to_real_point; end
|
201
|
+
|
202
|
+
# Set this point to the given point's x,y values
|
203
|
+
# @param [Wx::RealPoint] pt
|
204
|
+
# @return [self]
|
205
|
+
def assign(pt) end
|
206
|
+
|
175
207
|
end
|
176
208
|
|
177
209
|
class Rect
|
@@ -190,6 +222,88 @@ module Wx
|
|
190
222
|
# @return [Boolean]
|
191
223
|
def eql?(other)end
|
192
224
|
|
225
|
+
# Update this rectangle to the union with 'rect'
|
226
|
+
# @param [Wx::Rect] rect
|
227
|
+
# @return [self]
|
228
|
+
def union!(rect) end
|
229
|
+
|
230
|
+
# Update this rectangle to the intersection with 'rect'
|
231
|
+
# @param [Wx::Rect] rect
|
232
|
+
# @return [self]
|
233
|
+
def intersect!(rect) end
|
234
|
+
|
235
|
+
# @overload deflate!(dx, dy)
|
236
|
+
# Decrease the rectangle size.
|
237
|
+
# This method is the opposite from {inflate!}: deflate!(a, b) is equivalent to inflate!(-a, -b). Please refer to {inflate!} for full description.
|
238
|
+
# @param dx [Integer]
|
239
|
+
# @param dy [Integer]
|
240
|
+
# @return [self]
|
241
|
+
# @overload deflate!(diff)
|
242
|
+
# Decrease the rectangle size.
|
243
|
+
# This method is the opposite from {inflate!}: deflate!(a, b) is equivalent to inflate!(-a, -b). Please refer to {inflate!} for full description.
|
244
|
+
# @param diff [Array(Integer, Integer), Wx::Size]
|
245
|
+
# @return [self]
|
246
|
+
# @overload deflate!(diff)
|
247
|
+
# Decrease the rectangle size.
|
248
|
+
# This method is the opposite from {inflate!}: deflate!(a, b) is equivalent to inflate!(-a, -b). Please refer to {inflate!} for full description.
|
249
|
+
# @param diff [Integer]
|
250
|
+
# @return [self]
|
251
|
+
def deflate!(*args) end
|
252
|
+
|
253
|
+
# @overload inflate!(dx, dy)
|
254
|
+
# Increases the size of the rectangle.
|
255
|
+
# The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
|
256
|
+
# Inflating and deflating behaves "naturally". Defined more precisely, that means:
|
257
|
+
# - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)- Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
|
258
|
+
# @see #inflate
|
259
|
+
# @see #deflate!
|
260
|
+
# @param dx [Integer]
|
261
|
+
# @param dy [Integer]
|
262
|
+
# @return [self]
|
263
|
+
# @overload inflate!(diff)
|
264
|
+
# Increases the size of the rectangle.
|
265
|
+
# The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
|
266
|
+
# Inflating and deflating behaves "naturally". Defined more precisely, that means:
|
267
|
+
# - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)- Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
|
268
|
+
# @see deflate
|
269
|
+
# @param diff [Array(Integer, Integer), Wx::Size]
|
270
|
+
# @return [self]
|
271
|
+
# @overload inflate!(diff)
|
272
|
+
# Increases the size of the rectangle.
|
273
|
+
# The left border is moved farther left and the right border is moved farther right by dx. The upper border is moved farther up and the bottom border is moved farther down by dy. (Note that the width and height of the rectangle thus change by 2*dx and 2*dy, respectively.) If one or both of dx and dy are negative, the opposite happens: the rectangle size decreases in the respective direction.
|
274
|
+
# Inflating and deflating behaves "naturally". Defined more precisely, that means:
|
275
|
+
# - "Real" inflates (that is, dx and/or dy = 0) are not constrained. Thus inflating a rectangle can cause its upper left corner to move into the negative numbers. (2.5.4 and older forced the top left coordinate to not fall below (0, 0), which implied a forced move of the rectangle.)- Deflates are clamped to not reduce the width or height of the rectangle below zero. In such cases, the top-left corner is nonetheless handled properly. For example, a rectangle at (10, 10) with size (20, 40) that is inflated by (-15, -15) will become located at (20, 25) at size (0, 10). Finally, observe that the width and height are treated independently. In the above example, the width is reduced by 20, whereas the height is reduced by the full 30 (rather than also stopping at 20, when the width reached zero).
|
276
|
+
# @see deflate
|
277
|
+
# @param diff [Integer]
|
278
|
+
# @return [self]
|
279
|
+
def inflate!(*args) end
|
280
|
+
|
281
|
+
# @overload offset(dx, dy)
|
282
|
+
# Moves the rectangle by the specified offset.
|
283
|
+
# If dx is positive, the rectangle is moved to the right, if dy is positive, it is moved to the bottom, otherwise it is moved to the left or top respectively.
|
284
|
+
# @param dx [Integer]
|
285
|
+
# @param dy [Integer]
|
286
|
+
# @return [Wx::Rect]
|
287
|
+
# @overload offset(pt)
|
288
|
+
# Moves the rectangle by the specified offset.
|
289
|
+
# If dx is positive, the rectangle is moved to the right, if dy is positive, it is moved to the bottom, otherwise it is moved to the left or top respectively.
|
290
|
+
# @param pt [Array(Integer, Integer), Wx::Point]
|
291
|
+
# @return [Wx::Rect]
|
292
|
+
def offset(*args) end
|
293
|
+
|
294
|
+
# @overload offset!(dx, dy)
|
295
|
+
# Moves the rectangle by the specified offset.
|
296
|
+
# If dx is positive, the rectangle is moved to the right, if dy is positive, it is moved to the bottom, otherwise it is moved to the left or top respectively.
|
297
|
+
# @param dx [Integer]
|
298
|
+
# @param dy [Integer]
|
299
|
+
# @return [self]
|
300
|
+
# @overload offset!(pt)
|
301
|
+
# Moves the rectangle by the specified offset.
|
302
|
+
# If dx is positive, the rectangle is moved to the right, if dy is positive, it is moved to the bottom, otherwise it is moved to the left or top respectively.
|
303
|
+
# @param pt [Array(Integer, Integer), Wx::Point]
|
304
|
+
# @return [self]
|
305
|
+
def offset!(*args) end
|
306
|
+
|
193
307
|
alias :& :intersect
|
194
308
|
|
195
309
|
alias :| :union
|
@@ -197,13 +311,20 @@ module Wx
|
|
197
311
|
# Returns the overlap of the rectangle areas.
|
198
312
|
# Does not check negative or zero overlap like #intersect.
|
199
313
|
# @param [Wx::Rect] rect
|
314
|
+
# @return [Wx::Rect]
|
200
315
|
def *(rect) end
|
201
316
|
|
202
|
-
#
|
317
|
+
# Returns a rectangle containing the bounding box of this rectangle and the one passed in as parameter.
|
203
318
|
# Does not ignore empty rectangles like #union
|
204
319
|
# @param [Wx::Rect] rect
|
320
|
+
# @return [Wx::Rect]
|
205
321
|
def +(rect) end
|
206
322
|
|
323
|
+
# Set this rectangle to the given rectangle's position & size values
|
324
|
+
# @param [Wx::Rect] rct
|
325
|
+
# @return [self]
|
326
|
+
def assign(rct) end
|
327
|
+
|
207
328
|
end
|
208
329
|
|
209
330
|
end
|
@@ -22,7 +22,6 @@ module Wx
|
|
22
22
|
# }
|
23
23
|
#
|
24
24
|
# Please see the Dialogs Sample for more examples of using this function and {Wx::AboutDialogInfo} for the description of the information which can be shown in the about dialog.
|
25
|
-
# Include file: #include <wx/aboutdlg.h>
|
26
25
|
# @param info [Wx::AboutDialogInfo]
|
27
26
|
# @param parent [Wx::Window]
|
28
27
|
# @return [void]
|
@@ -31,8 +30,6 @@ module Wx
|
|
31
30
|
# This function does the same thing as {about_box} except that it always uses the generic wxWidgets version of the dialog instead of the native one.
|
32
31
|
# This is mainly useful if you need to customize the dialog by e.g. adding custom controls to it (customizing the native dialog is not currently supported).
|
33
32
|
# See the Dialogs Sample for an example of about dialog customization.
|
34
|
-
#
|
35
|
-
# Include file: #include <wx/aboutdlg.h>
|
36
33
|
# @see Wx::AboutDialogInfo
|
37
34
|
# @param info [Wx::AboutDialogInfo]
|
38
35
|
# @param parent [Wx::Window]
|
@@ -266,7 +263,7 @@ module Wx
|
|
266
263
|
# @param url [String]
|
267
264
|
# @param desc [String]
|
268
265
|
# @return [void]
|
269
|
-
def set_web_site(url, desc=
|
266
|
+
def set_web_site(url, desc=('')) end
|
270
267
|
alias_method :web_site=, :set_web_site
|
271
268
|
|
272
269
|
# Returns true if developers have been set in the dialog info.
|
data/lib/wx/doc/gen/animation.rb
CHANGED
@@ -77,7 +77,7 @@ module Wx
|
|
77
77
|
# Call {Wx::Animation#load} to initialize it.
|
78
78
|
# @see Wx::AnimationCtrl#create_animation
|
79
79
|
# @return [Animation]
|
80
|
-
# @overload initialize(name, type=Wx::ANIMATION_TYPE_ANY)
|
80
|
+
# @overload initialize(name, type=Wx::AnimationType::ANIMATION_TYPE_ANY)
|
81
81
|
# Constructs a new animation object and load the animation data from the given filename.
|
82
82
|
#
|
83
83
|
# @see Wx::AnimationCtrl#create_animation
|
@@ -125,14 +125,14 @@ module Wx
|
|
125
125
|
# @param name [String] A filename.
|
126
126
|
# @param type [AnimationType] One of the {Wx::AnimationType} values; {Wx::AnimationType::ANIMATION_TYPE_ANY} means that the function should try to autodetect the filetype.
|
127
127
|
# @return [true,false]
|
128
|
-
def load_file(name, type=Wx::ANIMATION_TYPE_ANY) end
|
128
|
+
def load_file(name, type=Wx::AnimationType::ANIMATION_TYPE_ANY) end
|
129
129
|
|
130
130
|
# Loads an animation from the given stream.
|
131
131
|
# true if the operation succeeded, false otherwise.
|
132
132
|
# @param stream [IO,Wx::InputStream] The stream to use to load the animation. Under {Wx::GTK} may be any kind of stream; under other platforms this must be a seekable stream.
|
133
133
|
# @param type [AnimationType] One of the {Wx::AnimationType} enumeration values.
|
134
134
|
# @return [true,false]
|
135
|
-
def load(stream, type=Wx::ANIMATION_TYPE_ANY) end
|
135
|
+
def load(stream, type=Wx::AnimationType::ANIMATION_TYPE_ANY) end
|
136
136
|
|
137
137
|
# Returns the list of animation decoders used by the generic animation and {Wx::GenericAnimationCtrl}.
|
138
138
|
# @return [Array<Wx::AnimationDecoder>]
|
@@ -41,7 +41,7 @@ module Wx
|
|
41
41
|
# @param style [Integer]
|
42
42
|
# @param name [String]
|
43
43
|
# @return [AnimationCtrl]
|
44
|
-
def initialize(parent, id, anim=Wx::NULL_ANIMATION, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AC_DEFAULT_STYLE, name=Wx::
|
44
|
+
def initialize(parent, id, anim=Wx::NULL_ANIMATION, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AC_DEFAULT_STYLE, name=Wx::AnimationCtrlNameStr) end
|
45
45
|
|
46
46
|
# Creates the control with the given anim animation.
|
47
47
|
# After control creation you must explicitly call {Wx::AnimationCtrl#play} to start to play the animation. Until that function won't be called, the first frame of the animation is displayed.
|
@@ -55,7 +55,7 @@ module Wx
|
|
55
55
|
# @param style [Integer] The window style, see {Wx::AC_}* flags.
|
56
56
|
# @param name [String] Control name.
|
57
57
|
# @return [true,false]
|
58
|
-
def create(parent, id, anim=Wx::NULL_ANIMATION, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AC_DEFAULT_STYLE, name=Wx::
|
58
|
+
def create(parent, id, anim=Wx::NULL_ANIMATION, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AC_DEFAULT_STYLE, name=Wx::AnimationCtrlNameStr) end
|
59
59
|
|
60
60
|
# Create a new animation object compatible with this control.
|
61
61
|
# A {Wx::Animation} object created using this function is always compatible with controls of this type, see {Wx::Animation#is_compatible_with}.
|
@@ -83,14 +83,14 @@ module Wx
|
|
83
83
|
# @param file [String]
|
84
84
|
# @param animType [AnimationType]
|
85
85
|
# @return [true,false]
|
86
|
-
def load_file(file, animType=Wx::ANIMATION_TYPE_ANY) end
|
86
|
+
def load_file(file, animType=Wx::AnimationType::ANIMATION_TYPE_ANY) end
|
87
87
|
|
88
88
|
# Loads the animation from the given stream and calls {Wx::AnimationCtrl#set_animation}.
|
89
89
|
# See {Wx::Animation#load} for more info.
|
90
90
|
# @param file [IO,Wx::InputStream]
|
91
91
|
# @param animType [AnimationType]
|
92
92
|
# @return [true,false]
|
93
|
-
def load(file, animType=Wx::ANIMATION_TYPE_ANY) end
|
93
|
+
def load(file, animType=Wx::AnimationType::ANIMATION_TYPE_ANY) end
|
94
94
|
|
95
95
|
# Starts playing the animation.
|
96
96
|
# The animation is always played in loop mode (unless the last frame of the animation has an infinite delay time) and always start from the first frame even if you {Wx::stopped} it while some other frame was displayed.
|
@@ -102,7 +102,7 @@ module Wx
|
|
102
102
|
# @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image] The bitmap bundle containing the resolution-dependent bitmaps to display in the button. At default DPI, the size of the bitmap is determined by the default bundle size, i.e. the value returned from {Wx::BitmapBundle#get_default_size}. If the bitmap bundle is invalid, any currently shown bitmaps are removed from the button.
|
103
103
|
# @param dir [Direction] The position of the bitmap inside the button. By default it is positioned to the left of the text, near to the left button border. Other possible values include {Wx::Direction::RIGHT}, {Wx::Direction::TOP} and {Wx::Direction::BOTTOM}.
|
104
104
|
# @return [void]
|
105
|
-
def set_bitmap(bitmap, dir=Wx::LEFT) end
|
105
|
+
def set_bitmap(bitmap, dir=Wx::Direction::LEFT) end
|
106
106
|
alias_method :bitmap=, :set_bitmap
|
107
107
|
|
108
108
|
# Sets the bitmap to be shown when the mouse is over the button.
|
@@ -17,7 +17,7 @@ module Wx::AUI
|
|
17
17
|
# @param id [Integer]
|
18
18
|
# @param style [Integer]
|
19
19
|
# @return [AuiFloatingFrame]
|
20
|
-
def initialize(parent, ownerMgr, pane, id=Wx::ID_ANY, style=(Wx::RESIZE_BORDER|Wx::SYSTEM_MENU|Wx::CAPTION|Wx::FRAME_NO_TASKBAR|Wx::FRAME_FLOAT_ON_PARENT|Wx::CLIP_CHILDREN)) end
|
20
|
+
def initialize(parent, ownerMgr, pane, id=Wx::StandardID::ID_ANY, style=(Wx::RESIZE_BORDER|Wx::SYSTEM_MENU|Wx::CAPTION|Wx::FRAME_NO_TASKBAR|Wx::FRAME_FLOAT_ON_PARENT|Wx::CLIP_CHILDREN)) end
|
21
21
|
|
22
22
|
# @param pane [Wx::AuiPaneInfo]
|
23
23
|
# @return [void]
|
@@ -72,7 +72,7 @@ module Wx::AUI
|
|
72
72
|
# @param managed_wnd [Wx::Window] Specifies the {Wx::Frame} which should be managed.
|
73
73
|
# @param flags [Integer] Specifies the frame management behaviour and visual effects with the {Wx::AUI::AuiManagerOption}'s style flags.
|
74
74
|
# @return [AuiManager]
|
75
|
-
def initialize(managed_wnd=nil, flags=Wx::AUI_MGR_DEFAULT) end
|
75
|
+
def initialize(managed_wnd=nil, flags=Wx::AUI::AuiManagerOption::AUI_MGR_DEFAULT) end
|
76
76
|
|
77
77
|
# @overload add_pane(window, pane_info)
|
78
78
|
# {Wx::AUI::AuiManager#add_pane} tells the frame manager to start managing a child window.
|
@@ -80,7 +80,7 @@ module Wx::AUI
|
|
80
80
|
# @param window [Wx::Window]
|
81
81
|
# @param pane_info [Wx::AuiPaneInfo]
|
82
82
|
# @return [true,false]
|
83
|
-
# @overload add_pane(window, direction=Wx::LEFT, caption=
|
83
|
+
# @overload add_pane(window, direction=Wx::Direction::LEFT, caption=(''))
|
84
84
|
# @param window [Wx::Window]
|
85
85
|
# @param direction [Integer]
|
86
86
|
# @param caption [String]
|
@@ -13,7 +13,7 @@ module Wx::AUI
|
|
13
13
|
|
14
14
|
# @overload initialize()
|
15
15
|
# @return [AuiMDIChildFrame]
|
16
|
-
# @overload initialize(parent, winid, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::
|
16
|
+
# @overload initialize(parent, winid, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FrameNameStr)
|
17
17
|
# @param parent [Wx::AuiMDIParentFrame]
|
18
18
|
# @param winid [Integer]
|
19
19
|
# @param title [String]
|
@@ -32,7 +32,7 @@ module Wx::AUI
|
|
32
32
|
# @param style [Integer]
|
33
33
|
# @param name [String]
|
34
34
|
# @return [true,false]
|
35
|
-
def create(parent, winid, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::
|
35
|
+
def create(parent, winid, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::DEFAULT_FRAME_STYLE, name=Wx::FrameNameStr) end
|
36
36
|
|
37
37
|
# @param menuBar [Wx::MenuBar]
|
38
38
|
# @return [void]
|
@@ -93,7 +93,7 @@ module Wx::AUI
|
|
93
93
|
# @param winid [Integer]
|
94
94
|
# @param name [String]
|
95
95
|
# @return [Wx::StatusBar]
|
96
|
-
def create_status_bar(number=1, style=1, winid=1, name=
|
96
|
+
def create_status_bar(number=1, style=1, winid=1, name=('')) end
|
97
97
|
|
98
98
|
# @return [Wx::StatusBar]
|
99
99
|
def get_status_bar; end
|
@@ -13,7 +13,7 @@ module Wx::AUI
|
|
13
13
|
|
14
14
|
# @overload initialize()
|
15
15
|
# @return [AuiMDIParentFrame]
|
16
|
-
# @overload initialize(parent, winid, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DEFAULT_FRAME_STYLE|Wx::VSCROLL|Wx::HSCROLL), name=Wx::
|
16
|
+
# @overload initialize(parent, winid, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DEFAULT_FRAME_STYLE|Wx::VSCROLL|Wx::HSCROLL), name=Wx::FrameNameStr)
|
17
17
|
# @param parent [Wx::Window]
|
18
18
|
# @param winid [Integer]
|
19
19
|
# @param title [String]
|
@@ -32,7 +32,7 @@ module Wx::AUI
|
|
32
32
|
# @param style [Integer]
|
33
33
|
# @param name [String]
|
34
34
|
# @return [true,false]
|
35
|
-
def create(parent, winid, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DEFAULT_FRAME_STYLE|Wx::VSCROLL|Wx::HSCROLL), name=Wx::
|
35
|
+
def create(parent, winid, title, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=(Wx::DEFAULT_FRAME_STYLE|Wx::VSCROLL|Wx::HSCROLL), name=Wx::FrameNameStr) end
|
36
36
|
|
37
37
|
# @param provider [Wx::AuiTabArt]
|
38
38
|
# @return [void]
|
@@ -92,7 +92,7 @@ module Wx::AUI
|
|
92
92
|
|
93
93
|
# @param orient [Orientation]
|
94
94
|
# @return [void]
|
95
|
-
def tile(orient=Wx::HORIZONTAL) end
|
95
|
+
def tile(orient=Wx::Orientation::HORIZONTAL) end
|
96
96
|
|
97
97
|
# @return [void]
|
98
98
|
def arrange_icons; end
|
@@ -57,7 +57,7 @@ module Wx::AUI
|
|
57
57
|
# @overload initialize()
|
58
58
|
# Default ctor.
|
59
59
|
# @return [AuiNotebook]
|
60
|
-
# @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AUI_NB_DEFAULT_STYLE)
|
60
|
+
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AUI::AuiNotebookOption::AUI_NB_DEFAULT_STYLE)
|
61
61
|
# Constructor.
|
62
62
|
# Creates a {Wx::AuiNotebok} control.
|
63
63
|
# @param parent [Wx::Window]
|
@@ -111,7 +111,7 @@ module Wx::AUI
|
|
111
111
|
# @param size [Array(Integer, Integer), Wx::Size]
|
112
112
|
# @param style [Integer]
|
113
113
|
# @return [true,false]
|
114
|
-
def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
|
114
|
+
def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0) end
|
115
115
|
|
116
116
|
# Deletes all pages.
|
117
117
|
# @return [true,false]
|
@@ -44,7 +44,7 @@ module Wx::AUI
|
|
44
44
|
# @overload initialize()
|
45
45
|
# Default constructor, use {Wx::AUI::AuiToolBar#create} later.
|
46
46
|
# @return [AuiToolBar]
|
47
|
-
# @overload initialize(parent, id=Wx::ID_ANY, position=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AUI_TB_DEFAULT_STYLE)
|
47
|
+
# @overload initialize(parent, id=Wx::StandardID::ID_ANY, position=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AUI::AuiToolBarStyle::AUI_TB_DEFAULT_STYLE)
|
48
48
|
# Constructor creating and initializing the object.
|
49
49
|
# @param parent [Wx::Window]
|
50
50
|
# @param id [Integer]
|
@@ -61,7 +61,7 @@ module Wx::AUI
|
|
61
61
|
# @param size [Array(Integer, Integer), Wx::Size]
|
62
62
|
# @param style [Integer]
|
63
63
|
# @return [true,false]
|
64
|
-
def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AUI_TB_DEFAULT_STYLE) end
|
64
|
+
def create(parent, id=Wx::StandardID::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::AUI::AuiToolBarStyle::AUI_TB_DEFAULT_STYLE) end
|
65
65
|
|
66
66
|
# Sets the style of the window.
|
67
67
|
# Please note that some styles cannot be changed after the window creation and that {Wx::AUI::AuiToolBar#refresh} might need to be called after changing the others for the change to take place immediately.
|
@@ -99,7 +99,7 @@ module Wx::AUI
|
|
99
99
|
def set_font(font) end
|
100
100
|
alias_method :font=, :set_font
|
101
101
|
|
102
|
-
# @overload add_tool(toolId, label, bitmap, short_help_string=
|
102
|
+
# @overload add_tool(toolId, label, bitmap, short_help_string=(''), kind=Wx::ItemKind::ITEM_NORMAL)
|
103
103
|
# @param toolId [Integer]
|
104
104
|
# @param label [String]
|
105
105
|
# @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
@@ -116,7 +116,7 @@ module Wx::AUI
|
|
116
116
|
# @param long_help_string [String]
|
117
117
|
# @param client_data [Wx::Object]
|
118
118
|
# @return [Wx::AuiToolBarItem]
|
119
|
-
# @overload add_tool(toolId, bitmap, disabled_bitmap, toggle=false, client_data=nil, short_help_string=
|
119
|
+
# @overload add_tool(toolId, bitmap, disabled_bitmap, toggle=false, client_data=nil, short_help_string=(''), long_help_string=(''))
|
120
120
|
# @param toolId [Integer]
|
121
121
|
# @param bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
122
122
|
# @param disabled_bitmap [Wx::BitmapBundle,Wx::Bitmap,Wx::Icon,Wx::Image]
|
@@ -131,12 +131,12 @@ module Wx::AUI
|
|
131
131
|
# @param label [String]
|
132
132
|
# @param width [Integer]
|
133
133
|
# @return [Wx::AuiToolBarItem]
|
134
|
-
def add_label(toolId, label=
|
134
|
+
def add_label(toolId, label=(''), width=-1) end
|
135
135
|
|
136
136
|
# @param control [Wx::Control]
|
137
137
|
# @param label [String]
|
138
138
|
# @return [Wx::AuiToolBarItem]
|
139
|
-
def add_control(control, label=
|
139
|
+
def add_control(control, label=('')) end
|
140
140
|
|
141
141
|
# @return [Wx::AuiToolBarItem]
|
142
142
|
def add_separator; end
|
data/lib/wx/doc/gen/bitmap.rb
CHANGED
@@ -531,7 +531,7 @@ module Wx
|
|
531
531
|
# @return [Wx::BitmapBundle]
|
532
532
|
def self.from_resources(name) end
|
533
533
|
|
534
|
-
# @overload self.from_files(path, filename, extension=("
|
534
|
+
# @overload self.from_files(path, filename, extension=("png"))
|
535
535
|
# Create a bundle from bitmaps stored as files.
|
536
536
|
# Looking in path for files using filename as prefix and potentionally a suffix with scale, e.g. "_2x" or "@2x"
|
537
537
|
# @param path [String] Path of the directory containing the files
|
@@ -38,7 +38,7 @@ module Wx
|
|
38
38
|
# @overload initialize()
|
39
39
|
# Default ctor.
|
40
40
|
# @return [BitmapButton]
|
41
|
-
# @overload initialize(parent, id, bitmap, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
41
|
+
# @overload initialize(parent, id, bitmap, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ButtonNameStr)
|
42
42
|
# Constructor, creating and showing a button.
|
43
43
|
# The bitmap parameter is normally the only bitmap you need to provide, and wxWidgets will draw the button correctly in its different states. If you want more control, call any of the functions {Wx::BitmapButton#set_bitmap_pressed}, {Wx::BitmapButton#set_bitmap_focus}, {Wx::BitmapButton#set_bitmap_disabled}.
|
44
44
|
# @see Wx::BitmapButton#create
|
@@ -65,7 +65,7 @@ module Wx
|
|
65
65
|
# @param validator [Wx::Validator]
|
66
66
|
# @param name [String]
|
67
67
|
# @return [true,false]
|
68
|
-
def create(parent, id, bitmap, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::
|
68
|
+
def create(parent, id, bitmap, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, validator=Wx::DEFAULT_VALIDATOR, name=Wx::ButtonNameStr) end
|
69
69
|
|
70
70
|
# Creation function for two-step creation of "Close" button.
|
71
71
|
# It is usually not necessary to use this function directly as {Wx::BitmapButton.new_close_button} is more convenient, but, if required, it can be called on a default-constructed {Wx::BitmapButton} object to achieve the same effect.
|
@@ -144,7 +144,7 @@ module Wx
|
|
144
144
|
# @param select [true,false] Specifies whether the page should be selected.
|
145
145
|
# @param imageId [Integer] Specifies the optional image index for the new page.
|
146
146
|
# @return [true,false]
|
147
|
-
def add_page(page, text, select=false, imageId=Wx::NO_IMAGE) end
|
147
|
+
def add_page(page, text, select=false, imageId=Wx::AUI::AuiMDIClientWindow::NO_IMAGE) end
|
148
148
|
|
149
149
|
# Deletes all pages.
|
150
150
|
# @return [true,false]
|
@@ -167,7 +167,7 @@ module Wx
|
|
167
167
|
# @param select [true,false] Specifies whether the page should be selected.
|
168
168
|
# @param imageId [Integer] Specifies the optional image index for the new page.
|
169
169
|
# @return [true,false]
|
170
|
-
def insert_page(index, page, text, select=false, imageId=Wx::NO_IMAGE) end
|
170
|
+
def insert_page(index, page, text, select=false, imageId=Wx::AUI::AuiMDIClientWindow::NO_IMAGE) end
|
171
171
|
|
172
172
|
# Deletes the specified page, without deleting the associated window.
|
173
173
|
# See {Wx::BookCtrlBase#delete_page} for a note about the events generated by this function.
|
@@ -197,7 +197,7 @@ module Wx
|
|
197
197
|
# @overload initialize()
|
198
198
|
# Default ctor.
|
199
199
|
# @return [BookCtrlBase]
|
200
|
-
# @overload initialize(parent, winid, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=
|
200
|
+
# @overload initialize(parent, winid, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=(''))
|
201
201
|
# Constructs the book control with the given parameters.
|
202
202
|
# See {Wx::BookCtrlBase#create} for two-step construction.
|
203
203
|
# @param parent [Wx::Window]
|
@@ -217,7 +217,7 @@ module Wx
|
|
217
217
|
# @param style [Integer]
|
218
218
|
# @param name [String]
|
219
219
|
# @return [true,false]
|
220
|
-
def create(parent, winid, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=
|
220
|
+
def create(parent, winid, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=0, name=('')) end
|
221
221
|
|
222
222
|
# Sets the width and height of the pages.
|
223
223
|
# This method is currently not implemented for {Wx::GTK}.
|