Sha256: de8cb13d19bac4809848cfad82abe34cad3efa8c81c00d68e074c9630767d80f

Contents?: true

Size: 966 Bytes

Versions: 9

Compression:

Stored size: 966 Bytes

Contents

###
# wxRuby3 wxWidgets interface director
# Copyright (c) M.J.N. Corino, The Netherlands
###

module WXRuby3

  class Director

    class Object < Director

      def setup
        spec.make_abstract('wxObject')
        spec.ignore %w[wxObject::Ref wxObject::UnRef wxObject::GetRefData wxObject::IsKindOf wxObject::GetClassInfo]
        spec.no_proxy 'wxObject'
        spec.add_extend_code 'wxObject', <<~__HEREDOC
          // Returns the string name of the C++ wx class which this object is wrapping.
          // The doubled wx_ name is to fool renamer.rb, which strips the wx_ prefix.
          // The actual final method is called wx_class
          VALUE wx_wx_class() {
          wxString class_name( self->GetClassInfo()->GetClassName() );
          VALUE rb_class_name = WXSTR_TO_RSTR(class_name);
          return rb_class_name;
          }
          __HEREDOC
        super
      end
    end # class Object

  end # class Director

end # module WXRuby3

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.rc.3 rakelib/lib/director/object.rb
wxruby3-0.9.0.pre.rc.2 rakelib/lib/director/object.rb
wxruby3-0.9.0.pre.rc.1 rakelib/lib/director/object.rb
wxruby3-0.9.0.pre.beta.14 rakelib/lib/director/object.rb
wxruby3-0.9.0.pre.beta.13 rakelib/lib/director/object.rb
wxruby3-0.9.0.pre.beta.11 rakelib/lib/director/object.rb
wxruby3-0.9.0.pre.beta.10 rakelib/lib/director/object.rb
wxruby3-0.9.0.pre.beta.9 rakelib/lib/director/object.rb
wxruby3-0.9.0.pre.beta.8 rakelib/lib/director/object.rb