# module Tk::Tcllib::Crosshair

### Constants

PACKAGE_NAME
TkCommandNames

### Public Class Methods

cget(w, slot) click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 88
    def cget(w, slot)
      current_itemconfiginfo(w, slot).values[0]
    end

configinfo(w, slot = nil) click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 82
    def configinfo(w, slot = nil)
      itemconfiginfo(w, slot)
    end

configure(w, slot, value=None) click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 79
    def configure(w, slot, value=None)
      itemconfigure(w, slot, value)
    end

crosshair(w, keys={}) click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 37
    def self.crosshair(w, keys={})
      Tk.tk_call('::crosshair::crosshair', w, *hash_kv(keys))
      w
    end

current_configinfo(w, slot = nil) click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 85
    def current_configinfo(w, slot = nil)
      current_itemconfiginfo(w, slot)
    end

off(w) click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 45
    def self.off(w)
      Tk.tk_call('::crosshair::off', w)
      w
    end

on(w, keys={}) click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 41
    def self.on(w, keys={})
      self.crosshair(w, keys)
    end

package_name() click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 19
    def self.package_name
      PACKAGE_NAME
    end

package_version() click to toggle source

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

track_off(w) click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 55
    def self.track_off(w)
      Tk.tk_call('::crosshair::track_off', w)
      w
    end

track_on(w, &b) click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 50
    def self.track_on(w, &b)
      Tk.tk_call('::crosshair::track_on', w, b)
      w
    end

### Private Class Methods

__item_config_cmd(id) click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 70
    def __item_config_cmd(id)
      # maybe need to override
      ['::crosshair::configure', id]
    end

__item_methodcall_optkeys(id) click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 65
    def __item_methodcall_optkeys(id)
      {}
    end

### Public Instance Methods

crosshair_cget(slot) click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 115
    def crosshair_cget(slot)
      Tk::Tcllib::Crosshair.cget(self, slot)
    end

crosshair_configinfo(slot = nil) click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 109
    def crosshair_configinfo(slot = nil)
      Tk::Tcllib::Crosshair.configinfo(self, slot)
    end

crosshair_configure(*args) click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 106
    def crosshair_configure(*args)
      Tk::Tcllib::Crosshair.configure(self, *args)
    end

crosshair_current_configinfo(slot = nil) click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 112
    def crosshair_current_configinfo(slot = nil)
      Tk::Tcllib::Crosshair.current_configinfo(self, slot)
    end

crosshair_off() click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 97
    def crosshair_off
      Tk::Tcllib::Crosshair.off(self)
    end

crosshair_on(keys={}) click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 94
    def crosshair_on(keys={})
      Tk::Tcllib::Crosshair.on(self, keys)
    end

crosshair_track_off() click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 103
    def crosshair_track_off
      Tk::Tcllib::Crosshair.track_off(self)
    end

crosshair_track_on(&b) click to toggle source

    # File lib/tkextlib/tcllib/crosshair.rb, line 100
    def crosshair_track_on(&b)
      Tk::Tcllib::Crosshair.track_on(self, &b)
    end