Sha256: d75255b32dd2178213544d60de7e04291ff0cf1ea82877be761a145caa67e06a

Contents?: true

Size: 334 Bytes

Versions: 9

Compression:

Stored size: 334 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

9 entries across 9 versions & 1 rubygems

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