Sha256: 71fc56fb9bf60801d894eeeb5996862420c19708b8e4fae24f7765865fe77c14

Contents?: true

Size: 831 Bytes

Versions: 18

Compression:

Stored size: 831 Bytes

Contents

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

###
# wxRuby3 wxWidgets interface director
###

require_relative './window'

module WXRuby3

  class Director

    class FileCtrl < Window

      def setup
        super
        # for GetFileNames and GetPaths
        spec.map 'wxArrayString &filenames', 'wxArrayString &paths', as: 'Array<String>' do
          map_in ignore: true, temp: 'wxArrayString tmp', code: '$1 = &tmp;'
          map_argout code: <<~__HEREDOC
            $result = rb_ary_new();
            for (size_t i=0; i<tmp$argnum.Count() ;++i)
            {
              rb_ary_push($result, WXSTR_TO_RSTR(tmp$argnum.Item(i)));
            }
            __HEREDOC
        end
      end
    end # class FileCtrl

  end # class Director

end # module WXRuby3

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
wxruby3-1.4.2 rakelib/lib/director/file_ctrl.rb
wxruby3-1.4.1 rakelib/lib/director/file_ctrl.rb
wxruby3-1.4.0 rakelib/lib/director/file_ctrl.rb
wxruby3-1.3.1 rakelib/lib/director/file_ctrl.rb
wxruby3-1.3.0 rakelib/lib/director/file_ctrl.rb
wxruby3-1.2.1 rakelib/lib/director/file_ctrl.rb
wxruby3-1.2.0 rakelib/lib/director/file_ctrl.rb
wxruby3-1.1.2 rakelib/lib/director/file_ctrl.rb
wxruby3-1.1.1 rakelib/lib/director/file_ctrl.rb
wxruby3-1.1.0 rakelib/lib/director/file_ctrl.rb
wxruby3-1.0.1 rakelib/lib/director/file_ctrl.rb
wxruby3-0.9.8 rakelib/lib/director/file_ctrl.rb
wxruby3-0.9.7 rakelib/lib/director/file_ctrl.rb
wxruby3-0.9.5 rakelib/lib/director/file_ctrl.rb
wxruby3-0.9.4 rakelib/lib/director/file_ctrl.rb
wxruby3-0.9.3 rakelib/lib/director/file_ctrl.rb
wxruby3-0.9.2 rakelib/lib/director/file_ctrl.rb
wxruby3-0.9.1 rakelib/lib/director/file_ctrl.rb