Module: Wx::ArrayExt
- Defined in:
- lib/wx/doc/array_ext.rb
Overview
Mixin module providing Array extensions.
Instance Method Summary collapse
-
#to_point ⇒ Wx::Point
Returns a new Wx::Point instance created from the first two elements of the array.
-
#to_real_point ⇒ Wx::RealPoint
(also: #to_real)
Returns a new Wx::RealPoint instance created from the first two elements of the array.
-
#to_size ⇒ Wx::Size
Returns a new Wx::Size instance created from the first two elements of the array.
Instance Method Details
#to_point ⇒ Wx::Point
Returns a new Wx::Point instance created from the first two elements of the array. Any missing element will be supplemented by a Wx::DEFAULT_COORD value. The array is not altered.
23 |
# File 'lib/wx/doc/array_ext.rb', line 23 def to_point; end |
#to_real_point ⇒ Wx::RealPoint Also known as: to_real
Returns a new Wx::RealPoint instance created from the first two elements of the array. Any missing element will be supplemented by a Wx::DEFAULT_COORD value. The array is not altered.
29 |
# File 'lib/wx/doc/array_ext.rb', line 29 def to_real_point; end |
#to_size ⇒ Wx::Size
Returns a new Wx::Size instance created from the first two elements of the array. Any missing element will be supplemented by a Wx::DEFAULT_COORD value. The array is not altered.
17 |
# File 'lib/wx/doc/array_ext.rb', line 17 def to_size; end |