Sha256: 720eafc2fe398f6fe585dbebd59c87d15c85da00762eade24f0ef35af557f4a5

Contents?: true

Size: 381 Bytes

Versions: 52

Compression:

Stored size: 381 Bytes

Contents

# Emulates the wxWidgets BusyCursor class, by providing a scope within
# which a busy cursor will be shown
class Wx::BusyCursor
  # Only one class method, optionally accepting a cursor that should be
  # shown, defaulting to an hour glass cursor.
  def self.busy(cursor = Wx::HOURGLASS_CURSOR)
    Wx::begin_busy_cursor(cursor)
    yield
  ensure
    Wx::end_busy_cursor
  end
end

Version data entries

52 entries across 52 versions & 4 rubygems

Version Path
wxruby3-0.9.0.pre.rc.3 lib/wx/core/busycursor.rb
wxruby3-0.9.0.pre.rc.2 lib/wx/core/busycursor.rb
wxruby3-0.9.0.pre.rc.1 lib/wx/core/busycursor.rb
wxruby3-0.9.0.pre.beta.14 lib/wx/core/busycursor.rb
wxruby3-0.9.0.pre.beta.13 lib/wx/core/busycursor.rb
wxruby3-0.9.0.pre.beta.11 lib/wx/core/busycursor.rb
wxruby3-0.9.0.pre.beta.10 lib/wx/core/busycursor.rb
wxruby3-0.9.0.pre.beta.9 lib/wx/core/busycursor.rb
wxruby3-0.9.0.pre.beta.8 lib/wx/core/busycursor.rb
wxruby64-2.0.1-x64-mingw32 lib/wx/classes/busycursor.rb
wxruby-ruby19-2.0.1-x86-mingw32 lib/wx/classes/busycursor.rb
wxruby-ruby19-2.0.1-x86-linux lib/wx/classes/busycursor.rb
wxruby-ruby19-2.0.1-x86-darwin-9 lib/wx/classes/busycursor.rb
wxruby-2.0.1-x86-mswin32-60 lib/wx/classes/busycursor.rb
wxruby-2.0.1-x86-mingw32 lib/wx/classes/busycursor.rb
wxruby-2.0.1-x86-linux lib/wx/classes/busycursor.rb
wxruby-2.0.1-universal-darwin-9 lib/wx/classes/busycursor.rb
wxruby-1.9.7-i386-mswin32 lib/wx/classes/busycursor.rb
wxruby-1.9.10-universal-darwin-9 lib/wx/classes/busycursor.rb
wxruby-1.9.10-x86-linux lib/wx/classes/busycursor.rb