# File tk/lib/tkextlib/tkDND/shape.rb, line 24 def self.package_name PACKAGE_NAME end
# File tk/lib/tkextlib/tkDND/shape.rb, line 43 def package_patchlevel Tk.tk_call('set', 'shape_patchLevel') end
# File tk/lib/tkextlib/tkDND/shape.rb, line 38 def package_version Tk.tk_call('set', 'shape_version') end
# File tk/lib/tkextlib/tkDND/shape.rb, line 48 def version tk_call('shape', 'version') end
# File 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
# File 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
# File 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
Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.
If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.