Sha256: e34b3866223c63b53fb540bbab60c19e9dcb9a4ae979a78d0baeb76e77facd54

Contents?: true

Size: 901 Bytes

Versions: 5

Compression:

Stored size: 901 Bytes

Contents

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

require_relative './window'

module WXRuby3

  class Director

    class Slider < Window

      def setup
        super
      end

      def process(gendoc: false)
        defmod = super
        # fix documentation errors for scroll events
        def_item = defmod.find_item('wxSlider')
        if def_item
          def_item.event_types.each do |evt_spec|
            case evt_spec.first
            when 'EVT_COMMAND_SCROLL_THUMBRELEASE', 'EVT_COMMAND_SCROLL_CHANGED'
              if evt_spec[2] == 0
                evt_spec[2] = 1       # incorrectly documented without 'id' argument
                evt_spec[4] = true    # ignore extracted docs
              end
            end
          end
        end
        defmod
      end
    end # class Slider

  end # class Director

end # module WXRuby3

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.rc.3 rakelib/lib/director/slider.rb
wxruby3-0.9.0.pre.rc.2 rakelib/lib/director/slider.rb
wxruby3-0.9.0.pre.rc.1 rakelib/lib/director/slider.rb
wxruby3-0.9.0.pre.beta.14 rakelib/lib/director/slider.rb
wxruby3-0.9.0.pre.beta.13 rakelib/lib/director/slider.rb