Sha256: 2d797c85df16769156ac9442357a4fc3e0c80a05e09c4202713e4a9795baa243

Contents?: true

Size: 1003 Bytes

Versions: 6

Compression:

Stored size: 1003 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
    alias :to_real :to_real_point

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wxruby3-1.5.1 lib/wx/doc/array_ext.rb
wxruby3-1.5.0 lib/wx/doc/array_ext.rb
wxruby3-1.4.2 lib/wx/doc/array_ext.rb
wxruby3-1.4.1 lib/wx/doc/array_ext.rb
wxruby3-1.4.0 lib/wx/doc/array_ext.rb
wxruby3-1.3.1 lib/wx/doc/array_ext.rb