# File tk/lib/tkextlib/tkDND/shape.rb, line 23
def self.package_name
PACKAGE_NAME
end
# File tk/lib/tkextlib/tkDND/shape.rb, line 41
def self.package_patchlevel
Tk.tk_call('set', 'shape_patchlevel')
end
# File tk/lib/tkextlib/tkDND/shape.rb, line 53
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
# File tk/lib/tkextlib/tkDND/shape.rb, line 66
def shape_get(kind=nil)
if kind
list(tk_call('shape', 'get', @path, "-#{kind}"))
else
list(tk_call('shape', 'get', @path))
end
end
# File tk/lib/tkextlib/tkDND/shape.rb, line 74
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