Sha256: dc621ba51c6111542fbc5dd5c07f2109c5276dd29410d7c7dea428144fbe978c

Contents?: true

Size: 393 Bytes

Versions: 11

Compression:

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

11 entries across 11 versions & 1 rubygems

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