wxruby3 1.5.3 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/wxruby3/swig/RubyStockObjects.i +1 -0
- data/lib/wx/aui/auifloatframe.rb +1 -1
- data/lib/wx/aui/auimanager.rb +1 -1
- data/lib/wx/aui/auinotebook.rb +2 -2
- data/lib/wx/core/animation.rb +1 -1
- data/lib/wx/core/cursor.rb +10 -0
- data/lib/wx/core/dataformat.rb +1 -1
- data/lib/wx/core/dialog.rb +1 -1
- data/lib/wx/core/file_dialog.rb +1 -1
- data/lib/wx/core/geometry.rb +34 -0
- data/lib/wx/core/hboxsizer.rb +22 -0
- data/lib/wx/core/hyperlink_ctrl.rb +18 -0
- data/lib/wx/core/point.rb +12 -3
- data/lib/wx/core/position.rb +58 -0
- data/lib/wx/core/sizer.rb +163 -28
- data/lib/wx/core/splash_screen.rb +3 -3
- data/lib/wx/core/toolbar.rb +2 -2
- data/lib/wx/core/vboxsizer.rb +22 -0
- data/lib/wx/doc/aui/auimanager.rb +6 -3
- data/lib/wx/doc/aui/auinotebook.rb +6 -3
- data/lib/wx/doc/config.rb +14 -8
- data/lib/wx/doc/controlwithitems.rb +7 -3
- data/lib/wx/doc/core.rb +21 -0
- data/lib/wx/doc/geometry.rb +47 -7
- data/lib/wx/doc/graphics_object.rb +24 -0
- data/lib/wx/doc/grid/grid.rb +18 -9
- data/lib/wx/doc/hboxsizer.rb +41 -5
- data/lib/wx/doc/list_ctrl.rb +12 -6
- data/lib/wx/doc/menu.rb +6 -3
- data/lib/wx/doc/notebook.rb +6 -3
- data/lib/wx/doc/pg/pg_property.rb +18 -9
- data/lib/wx/doc/pg/property_grid_interface.rb +4 -4
- data/lib/wx/doc/region_iterator.rb +1 -1
- data/lib/wx/doc/rtc/rich_text_composite_object.rb +6 -3
- data/lib/wx/doc/rtc/rich_text_ctrl.rb +6 -3
- data/lib/wx/doc/rtc/rich_text_paragraph.rb +6 -3
- data/lib/wx/doc/sizer.rb +6 -3
- data/lib/wx/doc/stc/styled_text_ctrl.rb +6 -3
- data/lib/wx/doc/textctrl.rb +6 -3
- data/lib/wx/doc/tree_ctrl.rb +7 -3
- data/lib/wx/doc/v_list_box.rb +6 -3
- data/lib/wx/doc/variant.rb +1 -1
- data/lib/wx/doc/vboxsizer.rb +41 -5
- data/lib/wx/doc/window.rb +6 -3
- data/lib/wx/helpers.rb +36 -10
- data/lib/wx/keyword_ctors.rb +12 -14
- data/lib/wx/keyword_defs.rb +11 -2
- data/lib/wx/pg/pg_property.rb +1 -1
- data/lib/wx/rtc/richtext_formatting_dialog.rb +3 -3
- data/lib/wx/rtc/richtext_style_organiser_dialog.rb +3 -3
- data/lib/wx/rtc/symbol_picker_dialog.rb +3 -3
- data/lib/wx/version.rb +1 -1
- data/rakelib/lib/config/mingw.rb +1 -1
- data/rakelib/lib/config.rb +6 -0
- data/rakelib/lib/director/affine_matrix.rb +33 -0
- data/rakelib/lib/director/animation_ctrl.rb +1 -1
- data/rakelib/lib/director/app.rb +1 -1
- data/rakelib/lib/director/aui_manager.rb +2 -2
- data/rakelib/lib/director/aui_notebook.rb +1 -1
- data/rakelib/lib/director/aui_tab_art.rb +4 -4
- data/rakelib/lib/director/ctrl_with_items.rb +1 -1
- data/rakelib/lib/director/cursor.rb +11 -1
- data/rakelib/lib/director/dc.rb +2 -2
- data/rakelib/lib/director/defs.rb +1 -1
- data/rakelib/lib/director/derived_dc.rb +14 -14
- data/rakelib/lib/director/dialog.rb +3 -3
- data/rakelib/lib/director/gdicommon.rb +2 -2
- data/rakelib/lib/director/geometry.rb +55 -3
- data/rakelib/lib/director/graphics_context.rb +8 -3
- data/rakelib/lib/director/graphics_object.rb +29 -2
- data/rakelib/lib/director/html_listbox.rb +6 -5
- data/rakelib/lib/director/hvscrolled_window.rb +140 -0
- data/rakelib/lib/director/hyperlink_ctrl.rb +38 -1
- data/rakelib/lib/director/menu_item.rb +1 -1
- data/rakelib/lib/director/persistent_window.rb +2 -2
- data/rakelib/lib/director/pgeditor.rb +1 -1
- data/rakelib/lib/director/pgproperties.rb +4 -4
- data/rakelib/lib/director/pgproperty.rb +1 -1
- data/rakelib/lib/director/pgvalidation_info.rb +1 -1
- data/rakelib/lib/director/print_data.rb +1 -1
- data/rakelib/lib/director/property_grid_event.rb +1 -1
- data/rakelib/lib/director/property_grid_page.rb +1 -1
- data/rakelib/lib/director/property_grid_page_state.rb +1 -1
- data/rakelib/lib/director/ribbon_tool_bar.rb +1 -1
- data/rakelib/lib/director/richtext_buffer.rb +1 -1
- data/rakelib/lib/director/richtext_formatting_dialog.rb +1 -1
- data/rakelib/lib/director/richtext_paragraph_layout_box.rb +1 -1
- data/rakelib/lib/director/richtext_style_listbox.rb +2 -1
- data/rakelib/lib/director/scrolled_t.rb +22 -0
- data/rakelib/lib/director/sizer.rb +51 -0
- data/rakelib/lib/director/styled_text_event.rb +1 -1
- data/rakelib/lib/director/textctrl.rb +2 -2
- data/rakelib/lib/director/tree_ctrl.rb +1 -1
- data/rakelib/lib/director/utils.rb +1 -1
- data/rakelib/lib/director/variant.rb +1 -1
- data/rakelib/lib/director/vlistbox.rb +5 -3
- data/rakelib/lib/director/window.rb +14 -3
- data/rakelib/lib/extractor/function.rb +46 -15
- data/rakelib/lib/generate/doc/hyperlink_ctrl.yaml +22 -0
- data/rakelib/lib/generate/doc/scrolled_canvas.yaml +38 -0
- data/rakelib/lib/generate/doc/scrolled_control.yaml +38 -0
- data/rakelib/lib/generate/doc/scrolled_window.yaml +38 -0
- data/rakelib/lib/specs/interfaces.rb +2 -2
- data/rakelib/lib/typemap/print_page_range.rb +1 -1
- data/samples/scrolling/tn_varscroll.png +0 -0
- data/samples/scrolling/varscroll.rb +416 -0
- data/samples/widgets/hyperlink.rb +85 -60
- metadata +12 -6
- data/rakelib/lib/director/vscrolled_window.rb +0 -62
- /data/samples/{controls → scrolling}/htlbox.rb +0 -0
- /data/samples/{etc → scrolling}/scrollwin.rb +0 -0
- /data/samples/{controls → scrolling}/tn_htlbox.png +0 -0
- /data/samples/{etc → scrolling}/tn_scrollwin.png +0 -0
data/lib/wx/doc/core.rb
CHANGED
@@ -12,6 +12,27 @@ module Wx
|
|
12
12
|
# In case #wxrb_debug returns true #wxrb_trace_level= is also defined)
|
13
13
|
# @return [Integer]
|
14
14
|
attr_reader :wrb_trace_level
|
15
|
+
|
16
|
+
# Returns true if WXWIDGETS_VERSION >= ver
|
17
|
+
# @param [String,Array(Integer)] ver version string or integer array (1-3)
|
18
|
+
# @return [Boolean] true if WXWIDGETS_VERSION >= ver, false otherwise
|
19
|
+
def self.at_least_wxwidgets?(ver) end
|
20
|
+
|
21
|
+
# Returns true if WXWIDGETS_VERSION <= ver
|
22
|
+
# @param [String,Array(Integer)] ver version string or integer array (1-3)
|
23
|
+
# @return [Boolean] true if WXWIDGETS_VERSION <= ver, false otherwise
|
24
|
+
def self.up_to_wxwidgets?(ver) end
|
25
|
+
|
26
|
+
# Returns true if WXWIDGETS_VERSION < ver
|
27
|
+
# @param [String,Array(Integer)] ver version string or integer array (1-3)
|
28
|
+
# @return [Boolean] true if WXWIDGETS_VERSION < ver, false otherwise
|
29
|
+
def before_wxwidgets?(ver) end
|
30
|
+
|
31
|
+
# Returns true if WXWIDGETS_VERSION > ver
|
32
|
+
# @param [String,Array(Integer)] ver version string or integer array (1-3)
|
33
|
+
# @return [Boolean] true if WXWIDGETS_VERSION > ver, false otherwise
|
34
|
+
def after_wxwidgets?(ver) end
|
35
|
+
|
15
36
|
end
|
16
37
|
|
17
38
|
end
|
data/lib/wx/doc/geometry.rb
CHANGED
@@ -80,23 +80,23 @@ module Wx
|
|
80
80
|
|
81
81
|
class Point2DDouble
|
82
82
|
|
83
|
-
# @return [
|
83
|
+
# @return [Float]
|
84
84
|
def get_x; end
|
85
85
|
alias :x :get_x
|
86
|
-
# @param [
|
87
|
-
# @return [
|
86
|
+
# @param [Float] v
|
87
|
+
# @return [Float]
|
88
88
|
def set_x(v) end
|
89
89
|
alias :x= :set_x
|
90
90
|
|
91
|
-
# @return [
|
91
|
+
# @return [Float]
|
92
92
|
def get_y; end
|
93
93
|
alias :y :get_y
|
94
|
-
# @param [
|
95
|
-
# @return [
|
94
|
+
# @param [Float] v
|
95
|
+
# @return [Float]
|
96
96
|
def set_y(v) end
|
97
97
|
alias :y= :set_y
|
98
98
|
|
99
|
-
# @param [Wx::
|
99
|
+
# @param [Wx::Point2DDouble] pt
|
100
100
|
# @return [self]
|
101
101
|
def assign(pt) end
|
102
102
|
|
@@ -133,4 +133,44 @@ module Wx
|
|
133
133
|
def /(v) end
|
134
134
|
|
135
135
|
end
|
136
|
+
|
137
|
+
class Rect2DDouble
|
138
|
+
|
139
|
+
# @return [Float]
|
140
|
+
def get_x; end
|
141
|
+
alias :x :get_x
|
142
|
+
# @param [Float] v
|
143
|
+
# @return [Float]
|
144
|
+
def set_x(v) end
|
145
|
+
alias :x= :set_x
|
146
|
+
|
147
|
+
# @return [Float]
|
148
|
+
def get_y; end
|
149
|
+
alias :y :get_y
|
150
|
+
# @param [Float] v
|
151
|
+
# @return [Float]
|
152
|
+
def set_y(v) end
|
153
|
+
alias :y= :set_y
|
154
|
+
|
155
|
+
# @return [Float]
|
156
|
+
def get_width; end
|
157
|
+
alias :width :get_width
|
158
|
+
# @param [Float] v
|
159
|
+
# @return [Float]
|
160
|
+
def set_width(v) end
|
161
|
+
alias :width= :set_width
|
162
|
+
|
163
|
+
# @return [Float]
|
164
|
+
def get_height; end
|
165
|
+
alias :height :get_height
|
166
|
+
# @param [Float] v
|
167
|
+
# @return [Float]
|
168
|
+
def set_height(v) end
|
169
|
+
alias :y= :set_height
|
170
|
+
|
171
|
+
# @param [Wx::Rect2DDouble] pt
|
172
|
+
# @return [self]
|
173
|
+
def assign(pt) end
|
174
|
+
|
175
|
+
end
|
136
176
|
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# :stopdoc:
|
2
|
+
# Copyright (c) 2023 M.J.N. Corino, The Netherlands
|
3
|
+
#
|
4
|
+
# This software is released under the MIT license.
|
5
|
+
# :startdoc:
|
6
|
+
|
7
|
+
|
8
|
+
module Wx
|
9
|
+
|
10
|
+
class GraphicsMatrix < GraphicsObject
|
11
|
+
|
12
|
+
# Applies this matrix to a point.
|
13
|
+
# @param [Wx::Point2DDouble,Array(Float,Float)] pt
|
14
|
+
# @return [Wx::Point2DDouble]
|
15
|
+
def transform_point(pt); end
|
16
|
+
|
17
|
+
# Applies this matrix to a distance (i.e., performs all transforms except translations)..
|
18
|
+
# @param [Wx::Point2DDouble,Array(Float,Float)] p
|
19
|
+
# @return [Wx::Point2DDouble]
|
20
|
+
def transform_distance(p); end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
data/lib/wx/doc/grid/grid.rb
CHANGED
@@ -26,27 +26,36 @@ module Wx::GRID
|
|
26
26
|
# Notice that the blocks returned by this method are not ordered in any particular way and may overlap.
|
27
27
|
# For grids using rows or columns-only selection modes, #each_selected_row_block or #each_selected_col_block
|
28
28
|
# can be more convenient, as they return ordered and non-overlapping blocks.
|
29
|
-
# @
|
30
|
-
#
|
31
|
-
|
29
|
+
# @overload each_selected_block(&block)
|
30
|
+
# @yieldparam [Wx::GRID::GridBlockCoords] selected_block
|
31
|
+
# @return [Object] result of last block execution
|
32
|
+
# @overload each_selected_block()
|
33
|
+
# @return [Enumerator] enumerator
|
34
|
+
def each_selected_block(*) end
|
32
35
|
|
33
36
|
# Iterates an ordered range of non-overlapping selected rows passing each corresponding Wx::GRID::GridBlockCoords
|
34
37
|
# to the given block or returns an enumerator if no block given.
|
35
38
|
#
|
36
39
|
# For the grids using GridSelectRows selection mode, iterates (possibly none) the coordinates of non-overlapping
|
37
40
|
# selected row blocks in the natural order, i.e. from smallest to the biggest row indices.
|
38
|
-
# @
|
39
|
-
#
|
40
|
-
|
41
|
+
# @overload each_selected_row_block(&block)
|
42
|
+
# @yieldparam [Wx::GRID::GridBlockCoords] selected_block
|
43
|
+
# @return [Object] result of last block execution
|
44
|
+
# @overload each_selected_row_block(&block)
|
45
|
+
# @return [Enumerator] enumerator
|
46
|
+
def each_selected_row_block(*) end
|
41
47
|
|
42
48
|
# Iterates an ordered range of non-overlapping selected columns passing each corresponding Wx::GRID::GridBlockCoords
|
43
49
|
# to the given block or returns an enumerator if no block given.
|
44
50
|
#
|
45
51
|
# For the grids using GridSelectColumn selection mode, iterates (possibly none) the coordinates of non-overlapping
|
46
52
|
# selected column blocks in the natural order, i.e. from smallest to the biggest column indices.
|
47
|
-
# @
|
48
|
-
#
|
49
|
-
|
53
|
+
# @overload each_selected_col_block(&block)
|
54
|
+
# @yieldparam [Wx::GRID::GridBlockCoords] selected_block
|
55
|
+
# @return [Object] result of last block execution
|
56
|
+
# @overload each_selected_col_block(&block)
|
57
|
+
# @return [Enumerator] enumerator
|
58
|
+
def each_selected_col_block(*) end
|
50
59
|
|
51
60
|
end
|
52
61
|
|
data/lib/wx/doc/hboxsizer.rb
CHANGED
@@ -11,8 +11,39 @@ module Wx
|
|
11
11
|
class HBoxSizer < Wx::BoxSizer
|
12
12
|
|
13
13
|
# Constructor for a {Wx::HBoxSizer}.
|
14
|
-
# @
|
15
|
-
|
14
|
+
# @overload initialize(&block)
|
15
|
+
# @yieldparam [Wx::HBoxSizer] sizer new HBoxSizer instance
|
16
|
+
# @return [Wx::HBoxSizer]
|
17
|
+
# @overload initialize()
|
18
|
+
# @return [Wx::HBoxSizer]
|
19
|
+
def initialize(*) end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
# Just a shortcut version for creating a horizontal staticbox sizer
|
24
|
+
class HStaticBoxSizer < StaticBoxSizer
|
25
|
+
|
26
|
+
# @overload initialize(box, &block)
|
27
|
+
# This constructor uses an already existing static box.
|
28
|
+
# @param box [Wx::StaticBox] The static box to associate with the sizer (which will take its ownership).
|
29
|
+
# @yieldparam [Wx::HStaticBoxSizer] sizer new HStaticBoxSizer instance
|
30
|
+
# @return [Wx::HStaticBoxSizer]
|
31
|
+
# @overload initialize(box)
|
32
|
+
# This constructor uses an already existing static box.
|
33
|
+
# @param box [Wx::StaticBox] The static box to associate with the sizer (which will take its ownership).
|
34
|
+
# @return [Wx::HStaticBoxSizer]
|
35
|
+
# @overload initialize(parent, label=(''), &block)
|
36
|
+
# This constructor creates a new static box with the given label and parent window.
|
37
|
+
# @param parent [Wx::Window]
|
38
|
+
# @param label [String]
|
39
|
+
# @yieldparam [Wx::HStaticBoxSizer] sizer new HStaticBoxSizer instance
|
40
|
+
# @return [Wx::HStaticBoxSizer]
|
41
|
+
# @overload initialize(parent, label=(''))
|
42
|
+
# This constructor creates a new static box with the given label and parent window.
|
43
|
+
# @param parent [Wx::Window]
|
44
|
+
# @param label [String]
|
45
|
+
# @return [Wx::HStaticBoxSizer]
|
46
|
+
def initialize(*args) end
|
16
47
|
|
17
48
|
end
|
18
49
|
|
@@ -24,9 +55,14 @@ module Wx
|
|
24
55
|
# item on each line to use any remaining space on that line and {Wx::REMOVE_LEADING_SPACES} which removes any spacer
|
25
56
|
# elements from the beginning of a row.
|
26
57
|
# Both of these flags are on by default.
|
27
|
-
# @
|
28
|
-
#
|
29
|
-
|
58
|
+
# @overload initialize(flags=Wx::WRAPSIZER_DEFAULT_FLAGS, &block)
|
59
|
+
# @param flags [Integer]
|
60
|
+
# @yieldparam [Wx::HWrapSizer] sizer new HWrapSizer instance
|
61
|
+
# @return [Wx::HWrapSizer]
|
62
|
+
# @overload initialize(flags=Wx::WRAPSIZER_DEFAULT_FLAGS)
|
63
|
+
# @param flags [Integer]
|
64
|
+
# @return [Wx::HWrapSizer]
|
65
|
+
def initialize(flags) end
|
30
66
|
|
31
67
|
end
|
32
68
|
|
data/lib/wx/doc/list_ctrl.rb
CHANGED
@@ -12,15 +12,21 @@ module Wx
|
|
12
12
|
include Enumerable
|
13
13
|
|
14
14
|
# Iterates all items in the list control passing each item (id) to the given block.
|
15
|
-
# @
|
16
|
-
#
|
17
|
-
|
15
|
+
# @overload each(&block)
|
16
|
+
# @yieldparam [Integer] item
|
17
|
+
# @return [::Object] result of last block iteration
|
18
|
+
# @overload each()
|
19
|
+
# @return [::Enumerator] enumerator
|
20
|
+
def each(*) end
|
18
21
|
|
19
22
|
# Iterates all selected items in the list control (like #get_next_item(item, Wx::LIST_NEXT_ALL, Wx::LIST_STATE_SELECTED))
|
20
23
|
# passing each item (id) to the given block.
|
21
|
-
# @
|
22
|
-
#
|
23
|
-
|
24
|
+
# @overload each_selected(&block)
|
25
|
+
# @yieldparam [Integer] item
|
26
|
+
# @return [::Object] result of last block iteration
|
27
|
+
# @overload each_selected()
|
28
|
+
# @return [::Enumerator] enumerator
|
29
|
+
def each_selected(*) end
|
24
30
|
|
25
31
|
# Returns array of selected items.
|
26
32
|
# @return [Array<Integer>] selected items
|
data/lib/wx/doc/menu.rb
CHANGED
@@ -11,9 +11,12 @@ module Wx
|
|
11
11
|
|
12
12
|
# Yield each menu item to the given block.
|
13
13
|
# Returns an Enumerator if no block given.
|
14
|
-
# @
|
15
|
-
#
|
16
|
-
|
14
|
+
# @overload each_item(&block)
|
15
|
+
# @yieldparam [Wx::MenuItem] item the menu item yielded
|
16
|
+
# @return [Object] last result of block
|
17
|
+
# @overload each_item()
|
18
|
+
# @return [Enumerator] enumerator
|
19
|
+
def each_item(*) end
|
17
20
|
|
18
21
|
end
|
19
22
|
|
data/lib/wx/doc/notebook.rb
CHANGED
@@ -12,9 +12,12 @@ module Wx
|
|
12
12
|
# Iterate each notebook page.
|
13
13
|
# Passes each page to the given block.
|
14
14
|
# Returns an Enumerator if no block given.
|
15
|
-
# @
|
16
|
-
#
|
17
|
-
|
15
|
+
# @overload each_page(&block)
|
16
|
+
# @yieldparam [Wx::Window] page notebook page
|
17
|
+
# @return [Object] last result of block
|
18
|
+
# @overload each_page()
|
19
|
+
# @return [Enumerator] enumerator
|
20
|
+
def each_page(*) end
|
18
21
|
|
19
22
|
end
|
20
23
|
|
@@ -16,9 +16,12 @@ module Wx::PG
|
|
16
16
|
# Iterate each attribute.
|
17
17
|
# Passes the variant for each attribute to the given block.
|
18
18
|
# Returns an Enumerator if no block given.
|
19
|
-
# @
|
20
|
-
#
|
21
|
-
|
19
|
+
# @overload each_attribute(&block)
|
20
|
+
# @yieldparam [Wx::Variant] variant attribute's variant
|
21
|
+
# @return [Object] last result of block
|
22
|
+
# @overload each_attribute()
|
23
|
+
# @return [Enumerator] enumerator
|
24
|
+
def each_attribute(*) end
|
22
25
|
|
23
26
|
end
|
24
27
|
|
@@ -27,16 +30,22 @@ module Wx::PG
|
|
27
30
|
# Iterate each label.
|
28
31
|
# Passes each label string to the given block.
|
29
32
|
# Returns an Enumerator if no block given.
|
30
|
-
# @
|
31
|
-
#
|
32
|
-
|
33
|
+
# @overload each_label(&block)
|
34
|
+
# @yieldparam [String] label label string
|
35
|
+
# @return [Object] last result of block
|
36
|
+
# @overload each_label()
|
37
|
+
# @return [Enumerator] enumerator
|
38
|
+
def each_label(*) end
|
33
39
|
|
34
40
|
# Iterate each choice entry.
|
35
41
|
# Passes each choice entry to the given block.
|
36
42
|
# Returns an Enumerator if no block given.
|
37
|
-
# @
|
38
|
-
#
|
39
|
-
|
43
|
+
# @overload each_entry(&block)
|
44
|
+
# @yieldparam [Wx::PG::ChoiceEntry] entry choice entry
|
45
|
+
# @return [Object] last result of block
|
46
|
+
# @overload each_entry()
|
47
|
+
# @return [Enumerator] enumerator
|
48
|
+
def each_entry(*) end
|
40
49
|
|
41
50
|
end
|
42
51
|
|
@@ -13,18 +13,18 @@ module Wx::PG
|
|
13
13
|
# each property to the block.
|
14
14
|
# Returns an enumerator when no block is given.
|
15
15
|
# The start position defaults to Wx::TOP for forward iteration and Wx::BOTTOM for reverse iteration.
|
16
|
-
# @overload each_property(flags, start, reverse
|
16
|
+
# @overload each_property(flags, start, reverse, &block)
|
17
17
|
# @param flags [Integer] flags specifying iteration (see {Wx::PG::PG_ITERATOR_FLAGS})
|
18
18
|
# @param start [Integer,Wx::PG::Property] start position (either {Wx::Direction::TOP} or {Wx::Direction::BOTTOM} or the property to start at)
|
19
19
|
# @param reverse [true,false] iterate properties in reverse
|
20
20
|
# @yieldparam item [Wx::PG::PGProperty] property
|
21
21
|
# @return [::Object] result of last block execution
|
22
|
-
# @overload each_property(flags, start, reverse
|
22
|
+
# @overload each_property(flags, start, reverse)
|
23
23
|
# @param flags [Integer] flags specifying iteration (see {Wx::PG::PG_ITERATOR_FLAGS})
|
24
24
|
# @param start [Integer,Wx::PG::Property] start position (either {Wx::Direction::TOP} or {Wx::Direction::BOTTOM} or the property to start at)
|
25
25
|
# @param reverse [true,false] iterate properties in reverse
|
26
26
|
# @return [Enumerator] an enumerator
|
27
|
-
def each_property(flags = Wx::PG::PG_ITERATE_DEFAULT, start = nil, reverse
|
27
|
+
def each_property(flags = Wx::PG::PG_ITERATE_DEFAULT, start = nil, reverse = false, &block) end
|
28
28
|
alias :properties :each_property
|
29
29
|
|
30
30
|
# Convenience method to perform reverse iteration.
|
@@ -54,7 +54,7 @@ module Wx::PG
|
|
54
54
|
# @overload each_property_attribute(id)
|
55
55
|
# @param id [String,Wx::PG::PGProperty] (name of) property to iterate attributes of
|
56
56
|
# @return [Enumerator] an enumerator
|
57
|
-
def each_property_attribute
|
57
|
+
def each_property_attribute(id) end
|
58
58
|
alias :property_attributes :each_property_attribute
|
59
59
|
|
60
60
|
# Returns the current grid state.
|
@@ -13,9 +13,12 @@ module Wx
|
|
13
13
|
|
14
14
|
# Yield each child object to the given block.
|
15
15
|
# Returns an Enumerator if no block given.
|
16
|
-
# @
|
17
|
-
#
|
18
|
-
|
16
|
+
# @overload each_child(&block)
|
17
|
+
# @yieldparam [Wx::RTC::RichTextObject] child the child object yielded
|
18
|
+
# @return [Object] last result of block
|
19
|
+
# @overload each_child()
|
20
|
+
# @return [Enumerator] enumerator
|
21
|
+
def each_child(*) end
|
19
22
|
|
20
23
|
end
|
21
24
|
|
@@ -13,9 +13,12 @@ module Wx
|
|
13
13
|
|
14
14
|
# Yield each line to the given block.
|
15
15
|
# Returns an Enumerator if no block given.
|
16
|
-
# @
|
17
|
-
#
|
18
|
-
|
16
|
+
# @overload each_line(&block)
|
17
|
+
# @yieldparam [String] line the line yielded
|
18
|
+
# @return [Object] last result of block
|
19
|
+
# @overload each_line()
|
20
|
+
# @return [Enumerator] enumerator
|
21
|
+
def each_line(*) end
|
19
22
|
|
20
23
|
end
|
21
24
|
|
@@ -13,9 +13,12 @@ module Wx
|
|
13
13
|
|
14
14
|
# Yield each line to the given block.
|
15
15
|
# Returns an Enumerator if no block given.
|
16
|
-
# @
|
17
|
-
#
|
18
|
-
|
16
|
+
# @overload each_line(&block)
|
17
|
+
# @yieldparam [Wx::RTC::RichTextLine] line the line yielded
|
18
|
+
# @return [Object] last result of block
|
19
|
+
# @overload each_line()
|
20
|
+
# @return [Enumerator] enumerator
|
21
|
+
def each_line(*) end
|
19
22
|
|
20
23
|
end
|
21
24
|
|
data/lib/wx/doc/sizer.rb
CHANGED
@@ -11,9 +11,12 @@ module Wx
|
|
11
11
|
|
12
12
|
# Yield each child item to the given block.
|
13
13
|
# Returns an Enumerator if no block given.
|
14
|
-
# @
|
15
|
-
#
|
16
|
-
|
14
|
+
# @overload each_child(&block)
|
15
|
+
# @yieldparam [Wx::SizerItem] child the child item yielded
|
16
|
+
# @return [Object] last result of block
|
17
|
+
# @overload each_child()
|
18
|
+
# @return [Enumerator] enumerator
|
19
|
+
def each_child(*) end
|
17
20
|
|
18
21
|
end
|
19
22
|
|
@@ -13,9 +13,12 @@ module Wx
|
|
13
13
|
|
14
14
|
# Yield each line to the given block.
|
15
15
|
# Returns an Enumerator if no block given.
|
16
|
-
# @
|
17
|
-
#
|
18
|
-
|
16
|
+
# @overload each_line(&block)
|
17
|
+
# @yieldparam [String] line the line yielded
|
18
|
+
# @return [Object] last result of block
|
19
|
+
# @overload each_line()
|
20
|
+
# @return [Enumerator] enumerator
|
21
|
+
def each_line(*) end
|
19
22
|
|
20
23
|
end
|
21
24
|
|
data/lib/wx/doc/textctrl.rb
CHANGED
@@ -68,9 +68,12 @@ module Wx
|
|
68
68
|
|
69
69
|
# Yield each line to the given block.
|
70
70
|
# Returns an Enumerator if no block given.
|
71
|
-
# @
|
72
|
-
#
|
73
|
-
|
71
|
+
# @overload each_line(&block)
|
72
|
+
# @yieldparam [String] line the line yielded
|
73
|
+
# @return [Object] last result of block
|
74
|
+
# @overload each_line()
|
75
|
+
# @return [Enumerator] enumerator
|
76
|
+
def each_line(*) end
|
74
77
|
|
75
78
|
# @overload enable_proof_check(text_proof_options = Wx::TextProofOptions.default)
|
76
79
|
# Enable or disable native spell checking on this text control if it is available on the current platform.
|
data/lib/wx/doc/tree_ctrl.rb
CHANGED
@@ -43,9 +43,13 @@ module Wx
|
|
43
43
|
|
44
44
|
# Iterate all child items of the given parent and yield it's id to the given block.
|
45
45
|
# Returns an Enumerator if no block given.
|
46
|
-
# @
|
47
|
-
#
|
48
|
-
#
|
46
|
+
# @overload each_item_child(parent_id, &block)
|
47
|
+
# @param [Wx::TreeItemId] parent_id
|
48
|
+
# @yieldparam [Wx::TreeItemId] child_id the child tree item id yielded
|
49
|
+
# @return [Object] last result of block
|
50
|
+
# @overload each_item_child(parent_id)
|
51
|
+
# @param [Wx::TreeItemId] parent_id
|
52
|
+
# @return [Enumerator] enumerator
|
49
53
|
def each_item_child(parent_id) end
|
50
54
|
|
51
55
|
# Returns an array of tree item ids of the child items of the given parent.
|
data/lib/wx/doc/v_list_box.rb
CHANGED
@@ -10,9 +10,12 @@ module Wx
|
|
10
10
|
class VListBox
|
11
11
|
|
12
12
|
# Iterate selected items. Returns Enumerator if no block given.
|
13
|
-
# @
|
14
|
-
#
|
15
|
-
|
13
|
+
# @overload each_selected(&block)
|
14
|
+
# @yieldparam [Integer] sel selected item index
|
15
|
+
# @return [Object] last return value of block
|
16
|
+
# @overload each_selected()
|
17
|
+
# @return [Enumerator] enumerator
|
18
|
+
def each_selected(*) end
|
16
19
|
|
17
20
|
end
|
18
21
|
|
data/lib/wx/doc/variant.rb
CHANGED
data/lib/wx/doc/vboxsizer.rb
CHANGED
@@ -11,8 +11,39 @@ module Wx
|
|
11
11
|
class VBoxSizer < Wx::BoxSizer
|
12
12
|
|
13
13
|
# Constructor for a {Wx::VBoxSizer}.
|
14
|
-
# @
|
15
|
-
|
14
|
+
# @overload initialize(&block)
|
15
|
+
# @yieldparam [Wx::VBoxSizer] sizer new VBoxSizer instance
|
16
|
+
# @return [Wx::VBoxSizer]
|
17
|
+
# @overload initialize()
|
18
|
+
# @return [Wx::VBoxSizer]
|
19
|
+
def initialize(*) end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
# Just a shortcut version for creating a vertical staticbox sizer
|
24
|
+
class VStaticBoxSizer < StaticBoxSizer
|
25
|
+
|
26
|
+
# @overload initialize(box, &block)
|
27
|
+
# This constructor uses an already existing static box.
|
28
|
+
# @param box [Wx::StaticBox] The static box to associate with the sizer (which will take its ownership).
|
29
|
+
# @yieldparam [Wx::VStaticBoxSizer] sizer new VStaticBoxSizer instance
|
30
|
+
# @return [Wx::VStaticBoxSizer]
|
31
|
+
# @overload initialize(box)
|
32
|
+
# This constructor uses an already existing static box.
|
33
|
+
# @param box [Wx::StaticBox] The static box to associate with the sizer (which will take its ownership).
|
34
|
+
# @return [Wx::VStaticBoxSizer]
|
35
|
+
# @overload initialize(parent, label=(''), &block)
|
36
|
+
# This constructor creates a new static box with the given label and parent window.
|
37
|
+
# @param parent [Wx::Window]
|
38
|
+
# @param label [String]
|
39
|
+
# @yieldparam [Wx::VStaticBoxSizer] sizer new VStaticBoxSizer instance
|
40
|
+
# @return [Wx::VStaticBoxSizer]
|
41
|
+
# @overload initialize(parent, label=(''))
|
42
|
+
# This constructor creates a new static box with the given label and parent window.
|
43
|
+
# @param parent [Wx::Window]
|
44
|
+
# @param label [String]
|
45
|
+
# @return [Wx::VStaticBoxSizer]
|
46
|
+
def initialize(*args) end
|
16
47
|
|
17
48
|
end
|
18
49
|
|
@@ -24,9 +55,14 @@ module Wx
|
|
24
55
|
# item on each line to use any remaining space on that line and {Wx::REMOVE_LEADING_SPACES} which removes any spacer
|
25
56
|
# elements from the beginning of a row.
|
26
57
|
# Both of these flags are on by default.
|
27
|
-
# @
|
28
|
-
#
|
29
|
-
|
58
|
+
# @overload initialize(flags=Wx::WRAPSIZER_DEFAULT_FLAGS, &block)
|
59
|
+
# @param flags [Integer]
|
60
|
+
# @yieldparam [Wx::VWrapSizer] sizer new VWrapSizer instance
|
61
|
+
# @return [Wx::VWrapSizer]
|
62
|
+
# @overload initialize(flags=Wx::WRAPSIZER_DEFAULT_FLAGS)
|
63
|
+
# @param flags [Integer]
|
64
|
+
# @return [Wx::VWrapSizer]
|
65
|
+
def initialize(flags) end
|
30
66
|
|
31
67
|
end
|
32
68
|
|
data/lib/wx/doc/window.rb
CHANGED
@@ -56,9 +56,12 @@ module Wx
|
|
56
56
|
|
57
57
|
# Yield each child window to the given block.
|
58
58
|
# Returns an Enumerator if no block given.
|
59
|
-
# @
|
60
|
-
#
|
61
|
-
|
59
|
+
# @overload each_child(&block)
|
60
|
+
# @yieldparam [Wx::Window] child the child window yielded
|
61
|
+
# @return [Object] last result of block
|
62
|
+
# @overload each_child()
|
63
|
+
# @return [Enumerator] enumerator
|
64
|
+
def each_child(*) end
|
62
65
|
|
63
66
|
# Locks the window from updates while executing the given block.
|
64
67
|
# @param [Proc] block
|