Sha256: 3beb6ca55845d1e6599f8d64f8256a3237106f3767d5bb61fa6109fd84782be7

Contents?: true

Size: 346 Bytes

Versions: 11

Compression:

Stored size: 346 Bytes

Contents

# Emulates the wxWidgets WindowUpdateLocker class, by providing a scope within
# which window can be updated without refreshing
class Wx::WindowUpdateLocker
  # Only one class method accepting a window that will be
  # frozen while the block is executed
  def self.update(win)
    win.freeze
    yield
  ensure
    win.thaw
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.rc.3-x64-mingw-ucrt lib/wx/core/window_update_locker.rb
wxruby3-0.9.0.pre.rc.2-x64-mingw-ucrt lib/wx/core/window_update_locker.rb
wxruby3-0.9.0.pre.rc.1-x64-mingw-ucrt lib/wx/core/window_update_locker.rb
wxruby3-0.9.0.pre.beta.14-x64-mingw-ucrt lib/wx/core/window_update_locker.rb
wxruby3-0.9.0.pre.beta.13-x64-mingw-ucrt lib/wx/core/window_update_locker.rb
wxruby3-0.9.0.pre.beta.11-x64-mingw-ucrt lib/wx/core/window_update_locker.rb
wxruby3-0.9.0.pre.beta.10-x64-mingw-ucrt lib/wx/core/window_update_locker.rb
wxruby3-0.9.0.pre.beta.9-x64-mingw-ucrt lib/wx/core/window_update_locker.rb
wxruby3-0.9.0.pre.beta.8-x64-mingw-ucrt lib/wx/core/window_update_locker.rb
wxruby3-0.9.0.pre.beta.2-x64-mingw-ucrt-3.2-3.2.2 lib/wx/core/window_update_locker.rb
wxruby3-0.9.0.pre.beta.1-x64-mingw-ucrt-3.2 lib/wx/core/window_update_locker.rb