Sha256: 0669b876bfb239c0cfb69305d33569227954253f18fdc8ac2dca57d050a8d22f

Contents?: true

Size: 779 Bytes

Versions: 9

Compression:

Stored size: 779 Bytes

Contents

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

require_relative './window'

module WXRuby3

  class Director

    class AnyButton < Window

      def setup
        super
        if Config.instance.wx_port == :wxQT
          # pure abstract so use wxRuby specific impl class
          spec.add_header_code <<~__HEREDOC
            class wxRubyAnyButton : public wxAnyButton
            {
            public:
              wxRubyAnyButton() : wxAnyButton() {}

              int QtGetEventType() const wxOVERRIDE { return -1; }
            };
            __HEREDOC
          spec.use_class_implementation('wxAnyButton', 'wxRubyAnyButton')
        end
      end
    end # class AnyButton

  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/any_button.rb
wxruby3-0.9.0.pre.rc.2 rakelib/lib/director/any_button.rb
wxruby3-0.9.0.pre.rc.1 rakelib/lib/director/any_button.rb
wxruby3-0.9.0.pre.beta.14 rakelib/lib/director/any_button.rb
wxruby3-0.9.0.pre.beta.13 rakelib/lib/director/any_button.rb
wxruby3-0.9.0.pre.beta.11 rakelib/lib/director/any_button.rb
wxruby3-0.9.0.pre.beta.10 rakelib/lib/director/any_button.rb
wxruby3-0.9.0.pre.beta.9 rakelib/lib/director/any_button.rb
wxruby3-0.9.0.pre.beta.8 rakelib/lib/director/any_button.rb