Methods
P
S
V
X
Constants
PACKAGE_NAME = 'Shape'.freeze
 
Class Public methods
package_name()
# File ext/tk/lib/tkextlib/tkDND/shape.rb, line 24
def self.package_name
  PACKAGE_NAME
end
package_patchlevel()
Also aliased as: shape_patchlevel
# File ext/tk/lib/tkextlib/tkDND/shape.rb, line 43
def package_patchlevel
  Tk.tk_call('set', 'shape_patchLevel')
end
package_version()
Also aliased as: shape_version
# File ext/tk/lib/tkextlib/tkDND/shape.rb, line 38
def package_version
  Tk.tk_call('set', 'shape_version')
end
shape_patchlevel()
Alias for: package_patchlevel
shape_version()
Alias for: package_version
version()
Also aliased as: xshape_version
# File ext/tk/lib/tkextlib/tkDND/shape.rb, line 48
def version
  tk_call('shape', 'version')
end
xshape_version()
Alias for: version
Instance Public methods
shape_bounds(kind=nil)
# File ext/tk/lib/tkextlib/tkDND/shape.rb, line 56
def shape_bounds(kind=nil)
  if kind
    ret = tk_call('shape', 'bounds', @path, "-#{kind}")
  else
    ret = tk_call('shape', 'bounds', @path)
  end
  if ret == ""
    nil
  else
    list(ret)
  end
end
shape_get(kind=nil)
# File ext/tk/lib/tkextlib/tkDND/shape.rb, line 69
def shape_get(kind=nil)
  if kind
    list(tk_call('shape', 'get', @path, "-#{kind}"))
  else
    list(tk_call('shape', 'get', @path))
  end
end
shape_offset(x, y, kind=nil)
# File ext/tk/lib/tkextlib/tkDND/shape.rb, line 77
def shape_offset(x, y, kind=nil)
  if kind
    tk_call('shape', 'get', @path, "-#{kind}", x, y)
  else
    tk_call('shape', 'get', @path, x, y)
  end
  self
end
shape_set(*args)
# File ext/tk/lib/tkextlib/tkDND/shape.rb, line 111
def shape_set(*args) # ?kind? ?offset <x> <y>? srckind ?arg ...?
  tk_call('shape', 'set', @path, *(_parse_shapespec_param(args)))
  self
end
shape_update(op, *args)
# File ext/tk/lib/tkextlib/tkDND/shape.rb, line 116
def shape_update(op, *args) # ?kind? ?offset <x> <y>? srckind ?arg ...?
  tk_call('shape', 'update', @path, op, *(_parse_shapespec_param(args)))
  self
end