Sha256: d9571ae8c8eaf74364b31adaa5bff53f14d42294c31603e1172778d507c0de4d

Contents?: true

Size: 838 Bytes

Versions: 16

Compression:

Stored size: 838 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 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

16 entries across 16 versions & 1 rubygems

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