Lines Matching refs:cursor
2 # tkextlib/tcllib/cursor.rb
15 PACKAGE_NAME = 'cursor'.freeze
22 TkPackage.require('cursor')
29 fail RuntimeError, "'tkextlib/tcllib/cursor' extension is not available on your current environment."
36 def self.cursor_propagate(win, cursor)
40 def self.cursor_restore(win, cursor = None)
47 # Pops up a dialog with a listbox containing all the cursor names.
48 # Selecting a cursor name will display it in that dialog.
50 #tk_call_without_enc('::cursor::display', parent)
56 def cursor_propagate(cursor)
57 # Sets the cursor for self and all its descendants to cursor.
58 #tk_call_without_enc('::cursor::propagate', @path, cursor)
59 Tk::Tcllib::Cursor.cursor_propagate(self, cursor)
61 def cursor_restore(cursor = None)
62 # Restore the original or previously set cursor for self and all its
63 # descendants. If cursor is specified, that will be used if on any
64 # widget that did not have a preset cursor (set by a previous call
66 #tk_call_without_enc('::cursor::restore', @path, cursor)
67 Tk::Tcllib::Cursor.cursor_restore(self, cursor)
71 # TkPackage.require('cursor', '0.1')
72 TkPackage.require('cursor')
83 tk_call_without_enc('::cursor::display', _epath(win))
86 def self.cursor_propagate(win, cursor)
87 #tk_call_without_enc('::cursor::propagate', win.path, cursor)
88 tk_call_without_enc('::cursor::propagate', _epath(win), cursor)
91 def self.cursor_restore(win, cursor = None)
92 #tk_call_without_enc('::cursor::restore', win.path, cursor)
93 tk_call_without_enc('::cursor::restore', _epath(win), cursor)