# # tkcanvas.rb - Tk canvas classes # $Date: 1995/11/11 11:17:15 $ # by Yukihiro Matsumoto require "tk" class TkCanvas", id @cmdtbl.push id end def canvasx(x, *args) tk_send 'canvasx', x, *args end def canvasy(y, *args) tk_send 'canvasy', y, *args end def coords(tag, *args) tk_send 'coords', tagid(tag), *args end def dchars(tag, first, last=None) tk_send 'dchars', tagid(tag), first, last end def delete(*args) tk_send 'delete', *args end alias remove delete def dtag(tag, tag_to_del=None) tk_send 'dtag', tagid(tag), tag_to_del end def find(*args) tk_send 'find', *args end def itemfocus(tag) tk_send 'find', tagid(tag) end def gettags(tag) tk_send 'gettags', tagid(tag) end def icursor(tag, index) tk_send 'icursor', tagid(tag), index end def index(tag) tk_send 'index', tagid(tag), index end def lower(tag, below=None) tk_send 'lower', tagid(tag), below end def move(tag, x, y) tk_send 'move', tagid(tag), x, y end def itemtype(tag) tk_send 'type', tagid(tag) end def postscript(keys=None) tk_send "postscript", *hash_kv(keys) end def raise(tag, above=None) tk_send 'raise', tagid(tag), above end def scale(tag, x, y, xs, ys) tk_send 'scale', tagid(tag), x, y, xs, ys end def scan_mark(x, y) tk_send 'scan', 'mark', x, y end def scan_dragto(x, y) tk_send 'scan', 'dragto', x, y end def select(*args) tk_send 'select', *args end def xview(*index) tk_send 'xview', *index end def yview(*index) tk_send 'yview', *index end end class TkcItem