Sha256: 4a96cb54e5046b21ca173dfb2b45c7529978ff7ff3b42fb9a5bf0e0f16eb5934

Contents?: true

Size: 554 Bytes

Versions: 16

Compression:

Stored size: 554 Bytes

Contents

# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.
# 
# Some parts are
# Copyright 2004-2007, wxRuby development team
# released under the MIT-like wxRuby2 license

# 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

16 entries across 16 versions & 1 rubygems

Version Path
wxruby3-1.3.1 lib/wx/core/window_update_locker.rb
wxruby3-1.3.0 lib/wx/core/window_update_locker.rb
wxruby3-1.2.1 lib/wx/core/window_update_locker.rb
wxruby3-1.2.0 lib/wx/core/window_update_locker.rb
wxruby3-1.1.2 lib/wx/core/window_update_locker.rb
wxruby3-1.1.1 lib/wx/core/window_update_locker.rb
wxruby3-1.1.0 lib/wx/core/window_update_locker.rb
wxruby3-1.0.1 lib/wx/core/window_update_locker.rb
wxruby3-0.9.8 lib/wx/core/window_update_locker.rb
wxruby3-0.9.7 lib/wx/core/window_update_locker.rb
wxruby3-0.9.5 lib/wx/core/window_update_locker.rb
wxruby3-0.9.4 lib/wx/core/window_update_locker.rb
wxruby3-0.9.3 lib/wx/core/window_update_locker.rb
wxruby3-0.9.2 lib/wx/core/window_update_locker.rb
wxruby3-0.9.1 lib/wx/core/window_update_locker.rb
wxruby3-0.9.0 lib/wx/core/window_update_locker.rb