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