Sha256: f07a63832d86937a06287be413ff90b3eae84de258a4b1defeefedcfe9c36ed6

Contents?: true

Size: 1.1 KB

Versions: 9

Compression:

Stored size: 1.1 KB

Contents

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

require_relative './event_handler'

module WXRuby3

  class Director

    class NumericPropertyValidator < EvtHandler

      def setup
        super
        # need a custom implementation to handle event handler proc cleanup
        spec.add_header_code <<~__HEREDOC
          class WXRubyNumericPropertyValidator : public wxNumericPropertyValidator
          {
          public:
            WXRubyNumericPropertyValidator(NumericType numericType, int base=10) 
              : wxNumericPropertyValidator(numericType, base) {}
            virtual ~WXRubyNumericPropertyValidator() 
            {
              wxRuby_ReleaseEvtHandlerProcs(this);
            }               
          };
        __HEREDOC
        spec.use_class_implementation 'wxNumericPropertyValidator', 'WXRubyNumericPropertyValidator'
        spec.no_proxy 'wxNumericPropertyValidator::Clone'
        spec.do_not_generate :variables, :defines, :enums, :functions
      end

    end # class NumericPropertyValidator

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