Sha256: b5e0ceb4a3d1b74ba0775f50659ca60feee57b734c3b5d629aeec0dd1db81d89

Contents?: true

Size: 926 Bytes

Versions: 3

Compression:

Stored size: 926 Bytes

Contents

module Wx

  class EventBlocker

    class << self

      # Constructs the blocker for the given window and for the given event type and passes the blocker to the
      # given block. The blocker is destroyed after the block returns.
      #
      # If type is Wx::EVT_ANY, then all events for that window are blocked. You can call #block after creation to
      # add other event types to the list of events to block.
      #
      # @note Note that the win window must remain alive until the given block returns (i.e. until Wx::EventBlocker's
      # object destruction).
      # @param [Wx::Window] win the window to block events for
      # @param [Integer] evt_type the event type to block
      # @yieldparam [Wx::EventBlocker] blkr the blocker object
      # @return [Object] the value returned by the block
      def blocked_for(win, evt_type=Wx::EVT_ANY) end
      alias :block_for :blocked_for

    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.rc.3 lib/wx/doc/event_blocker.rb
wxruby3-0.9.0.pre.rc.2 lib/wx/doc/event_blocker.rb
wxruby3-0.9.0.pre.rc.1 lib/wx/doc/event_blocker.rb