Sha256: 8be481e2196c391e8dec54ad6a05b4a173a4ea0a787325f7c8043f9fa999a96b

Contents?: true

Size: 622 Bytes

Versions: 7

Compression:

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

7 entries across 7 versions & 1 rubygems

Version Path
wxruby3-0.9.7-x64-mingw-ucrt lib/wx/core/busycursor.rb
wxruby3-0.9.5-x64-mingw-ucrt lib/wx/core/busycursor.rb
wxruby3-0.9.4-x64-mingw-ucrt lib/wx/core/busycursor.rb
wxruby3-0.9.3-x64-mingw-ucrt lib/wx/core/busycursor.rb
wxruby3-0.9.2-x64-mingw-ucrt lib/wx/core/busycursor.rb
wxruby3-0.9.1-x64-mingw-ucrt lib/wx/core/busycursor.rb
wxruby3-0.9.0-x64-mingw-ucrt lib/wx/core/busycursor.rb