Sha256: 68f2c17a43cffafc49498151d2285ca05d61f3b910e05b9641a1986e84767a02

Contents?: true

Size: 601 Bytes

Versions: 19

Compression:

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

19 entries across 19 versions & 1 rubygems

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