Sha256: 3dc7698fbe9aef6b1dd465d0a7bca6f6382bfb46a44d57f0ad0191914373890a

Contents?: true

Size: 1.5 KB

Versions: 16

Compression:

Stored size: 1.5 KB

Contents

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

###
# wxRuby3 wxWidgets interface director
###

module WXRuby3

  class Director

    class FileSystem < Director

      def setup
        super
        spec.items << 'wxFileSystemHandler' << 'wxArchiveFSHandler' << 'wxMemoryFSHandler'
        spec.disable_proxies
        spec.make_abstract 'wxFileSystem'
        spec.gc_as_untracked 'wxFileSystem'
        # ignore all instance methods
        # we only want the static methods to be able to add/remove file system handlers
        spec.ignore %w[
          wxFileSystem::ChangePathTo
          wxFileSystem::FindFileInPath
          wxFileSystem::FindFirst
          wxFileSystem::FindNext
          wxFileSystem::GetPath
          wxFileSystem::OpenFile
        ]
        # redefine to allow more precise arg disown
        spec.ignore 'wxFileSystem::AddHandler (wxFileSystemHandler *)', ignore_doc: true
        spec.extend_interface 'wxFileSystem', 'static void AddHandler (wxFileSystemHandler *in_handler)'
        spec.disown 'wxFileSystemHandler *in_handler'
        spec.make_abstract 'wxFileSystemHandler'
        # ignore unuseful methods
        spec.ignore 'wxMemoryFSHandler::AddFile (const wxString &, const void *, size_t)',
                    'wxMemoryFSHandler::AddFileWithMimeType(const wxString &, const void *, size_t, const wxString &)'
        spec.do_not_generate :enums
      end
    end # class FileSystem

  end # class Director

end # module WXRuby3

Version data entries

16 entries across 16 versions & 1 rubygems

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