Class: Wx::BusyCursor

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/classes/busycursor.rb

Overview

Emulates the wxWidgets BusyCursor class, by providing a scope within which a busy cursor will be shown

Class Method Summary collapse

Class Method Details

.busy(cursor = Wx::HOURGLASS_CURSOR) ⇒ Object

Only one class method, optionally accepting a cursor that should be shown, defaulting to an hour glass cursor.



6
7
8
9
10
11
# File 'lib/wx/classes/busycursor.rb', line 6

def self.busy(cursor = Wx::HOURGLASS_CURSOR)
  Wx::begin_busy_cursor(cursor)
  yield
ensure
  Wx::end_busy_cursor
end