Module: Tk::Tcllib::Tooltip (Ruby 2.3.4)

In Files

  • tk/lib/tkextlib/tcllib/tooltip.rb

Class/Module Index [+]

Quicksearch

Tk::Tcllib::Tooltip

Public Class Methods

clear(glob_path_pat = None)
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 47
def self.clear(glob_path_pat = None)
  self.clear_glob(glob_path_pat)
end
            
clear_children(*args)
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 59
def self.clear_children(*args)
  self.clear_glob("{#{args.collect{|w| s = _get_eval_string(w); "#{s},#{s}.*"}.join(',')}}")
end
            
clear_glob(glob_path_pat)
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 51
def self.clear_glob(glob_path_pat)
  tk_call_without_enc('::tooltip::tooltip', 'clear', glob_path_pat)
end
            
clear_widgets(*args)
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 55
def self.clear_widgets(*args)
  self.clear_glob("{#{args.collect{|w| _get_eval_string(w)}.join(',')}}")
end
            
database_class()
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 43
def self.database_class
  WidgetClassNames[self::WidgetClassName]
end
            
database_classname()
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 40
def self.database_classname
  self::WidgetClassName
end
            
delay(millisecs=None)
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 63
def self.delay(millisecs=None)
  number(tk_call_without_enc('::tooltip::tooltip', 'delay', millisecs))
end
            
delay=(millisecs)
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 66
def self.delay=(millisecs)
  self.delay(millisecs)
end
            
disable()
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 77
def self.disable
  tk_call_without_enc('::tooltip::tooltip', 'disable')
  false
end
            
enable()
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 85
def self.enable
  tk_call_without_enc('::tooltip::tooltip', 'enable')
  true
end
            
erase(widget)
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 102
def self.erase(widget)
  tk_call_without_enc('::tooltip::tooltip', widget.path, '')
end
            
fade(mode)
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 73
def self.fade(mode)
  tk_call_without_enc('::tooltip::tooltip', 'fade', mode)
end
            
fade?()
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 70
def self.fade?
  bool(tk_call_without_enc('::tooltip::tooltip', 'fade'))
end
            
off()
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 81
def self.off
  self.disable
end
            
on()
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 89
def self.on
  self.enable
end
            
package_name()
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 20
def self.package_name
  PACKAGE_NAME
end
            
package_version()
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 24
def self.package_version
  begin
    TkPackage.require('tooltip')
  rescue
    ''
  end
end
            
register(widget, msg, keys=nil)
 
               # File tk/lib/tkextlib/tcllib/tooltip.rb, line 93
def self.register(widget, msg, keys=nil)
  if keys.kind_of?(Hash)
    args = hash_kv(keys) << msg
  else
    args = msg
  end
  tk_call('::tooltip::tooltip', widget.path, *args)
end