Sha256: c6487d084bc70be9e7025ef314052a9d8e74a53d5be365a0cbc17f71b18805e2

Contents?: true

Size: 772 Bytes

Versions: 21

Compression:

Stored size: 772 Bytes

Contents

---
:wxEventBlocker:
  :detail:
    :pre:
      :programlisting:
        - :pattern: !ruby/regexp /.*/
          :replace: |
            
            ```ruby
              class MyWindow

                ...
            
                def do_something
                  # block all events directed to this window
                  Wx::EventBlocker.blocked_for(self) do
                    # while we do 1000 function_that_sends_events calls 
                    1000.times { |i| function_that_sends_events(i) }
                  end
                  # old event handler restored; generated event(s) from next call will be processed
                  function_that_sends_events(0)
                end

                ... 
            
              end
            ```

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
wxruby3-1.4.2 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-1.4.1 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-1.4.0 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-1.3.1 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-1.3.0 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-1.2.1 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-1.2.0 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-1.1.2 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-1.1.1 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-1.1.0 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-1.0.1 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-0.9.8 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-0.9.7 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-0.9.5 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-0.9.4 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-0.9.3 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-0.9.2 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-0.9.1 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-0.9.0 rakelib/lib/generate/doc/event_blocker.yaml
wxruby3-0.9.0.pre.rc.3 rakelib/lib/generate/doc/event_blocker.yaml