Sha256: 984f33ee886ad330e9caabd71f7a718dbb3186c0c7c4d1f25bb5928f33844d79

Contents?: true

Size: 969 Bytes

Versions: 15

Compression:

Stored size: 969 Bytes

Contents

# :stopdoc:
# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.
# :startdoc:


module Wx

  # Mixin module providing Array extensions.
  module ArrayExt

    # 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.
    # @return [Wx::Size]
    def to_size; end

    # 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.
    # @return [Wx::Point]
    def to_point; end

    # 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.
    # @return [Wx::RealPoint]
    def to_real_point; end

  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wxruby3-1.3.0 lib/wx/doc/array_ext.rb
wxruby3-1.2.1 lib/wx/doc/array_ext.rb
wxruby3-1.2.0 lib/wx/doc/array_ext.rb
wxruby3-1.1.2 lib/wx/doc/array_ext.rb
wxruby3-1.1.1 lib/wx/doc/array_ext.rb
wxruby3-1.1.0 lib/wx/doc/array_ext.rb
wxruby3-1.0.1 lib/wx/doc/array_ext.rb
wxruby3-0.9.8 lib/wx/doc/array_ext.rb
wxruby3-0.9.7 lib/wx/doc/array_ext.rb
wxruby3-0.9.5 lib/wx/doc/array_ext.rb
wxruby3-0.9.4 lib/wx/doc/array_ext.rb
wxruby3-0.9.3 lib/wx/doc/array_ext.rb
wxruby3-0.9.2 lib/wx/doc/array_ext.rb
wxruby3-0.9.1 lib/wx/doc/array_ext.rb
wxruby3-0.9.0 lib/wx/doc/array_ext.rb