Sha256: fb00af9ffe26a45e18b8da573a6be06843ece4971c18694b9063ce9758c30dec

Contents?: true

Size: 1.06 KB

Versions: 7

Compression:

Stored size: 1.06 KB

Contents

# :stopdoc:
# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.
# :startdoc:


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

7 entries across 7 versions & 1 rubygems

Version Path
wxruby3-0.9.7-x64-mingw-ucrt lib/wx/doc/event_blocker.rb
wxruby3-0.9.5-x64-mingw-ucrt lib/wx/doc/event_blocker.rb
wxruby3-0.9.4-x64-mingw-ucrt lib/wx/doc/event_blocker.rb
wxruby3-0.9.3-x64-mingw-ucrt lib/wx/doc/event_blocker.rb
wxruby3-0.9.2-x64-mingw-ucrt lib/wx/doc/event_blocker.rb
wxruby3-0.9.1-x64-mingw-ucrt lib/wx/doc/event_blocker.rb
wxruby3-0.9.0-x64-mingw-ucrt lib/wx/doc/event_blocker.rb