Module Tk::Tcllib::Cursor
In: tk/lib/tkextlib/tcllib/cursor.rb

Methods

Constants

PACKAGE_NAME = 'cursor'.freeze

Public Class methods

[Source]

# File tk/lib/tkextlib/tcllib/cursor.rb, line 82
      def self.cursor_display(win=None)
        tk_call_without_enc('::cursor::display', _epath(win))
      end

[Source]

# File tk/lib/tkextlib/tcllib/cursor.rb, line 32
      def self.cursor_display(win=None)
        Tk::Tcllib::Cursor.not_available
      end

[Source]

# File tk/lib/tkextlib/tcllib/cursor.rb, line 36
      def self.cursor_propagate(win, cursor)
        Tk::Tcllib::Cursor.not_available
      end

[Source]

# File tk/lib/tkextlib/tcllib/cursor.rb, line 86
      def self.cursor_propagate(win, cursor)
        #tk_call_without_enc('::cursor::propagate', win.path, cursor)
        tk_call_without_enc('::cursor::propagate', _epath(win), cursor)
      end

[Source]

# File tk/lib/tkextlib/tcllib/cursor.rb, line 40
      def self.cursor_restore(win, cursor = None)
        Tk::Tcllib::Cursor.not_available
      end

[Source]

# File tk/lib/tkextlib/tcllib/cursor.rb, line 91
      def self.cursor_restore(win, cursor = None)
        #tk_call_without_enc('::cursor::restore', win.path, cursor)
        tk_call_without_enc('::cursor::restore', _epath(win), cursor)
      end

[Source]

# File tk/lib/tkextlib/tcllib/cursor.rb, line 28
      def self.not_available
        fail RuntimeError, "'tkextlib/tcllib/cursor' extension is not available on your current environment."
      end

[Source]

# File tk/lib/tkextlib/tcllib/cursor.rb, line 16
      def self.package_name
        PACKAGE_NAME
      end

[Source]

# File tk/lib/tkextlib/tcllib/cursor.rb, line 20
      def self.package_version
        begin
          TkPackage.require('cursor')
        rescue
          ''
        end
      end

[Validate]