| Module | TkcTagAccess |
| In: |
tk/lib/tk/canvastag.rb
|
Following operators support logical expressions of canvas tags (for Tk8.3+). If tag1.path is ‘t1’ and tag2.path is ‘t2’, then
ltag = tag1 & tag2; ltag.path => "(t1)&&(t2)"
ltag = tag1 | tag2; ltag.path => "(t1)||(t2)"
ltag = tag1 ^ tag2; ltag.path => "(t1)^(t2)"
ltag = - tag1; ltag.path => "!(t1)"
# File tk/lib/tk/canvastag.rb, line 148 def & (tag) if tag.kind_of? TkObject TkcTagString.new(@c, '(' + @id + ')&&(' + tag.path + ')') else TkcTagString.new(@c, '(' + @id + ')&&(' + tag.to_s + ')') end end
# File tk/lib/tk/canvastag.rb, line 164 def ^ (tag) if tag.kind_of? TkObject TkcTagString.new(@c, '(' + @id + ')^(' + tag.path + ')') else TkcTagString.new(@c, '(' + @id + ')^(' + tag.to_s + ')') end end
# File tk/lib/tk/canvastag.rb, line 24 def bind(seq, cmd=Proc.new, *args) @c.itembind(@id, seq, cmd, *args) self end
# File tk/lib/tk/canvastag.rb, line 29 def bind_append(seq, cmd=Proc.new, *args) @c.itembind_append(@id, seq, cmd, *args) self end
def configure(keys)
@c.itemconfigure @id, keys
end
# File tk/lib/tk/canvastag.rb, line 55 def configinfo(key=nil) @c.itemconfiginfo(@id, key) end
# File tk/lib/tk/canvastag.rb, line 47 def configure(key, value=None) @c.itemconfigure(@id, key, value) self end
# File tk/lib/tk/canvastag.rb, line 59 def current_configinfo(key=nil) @c.current_itemconfiginfo(@id, key) end
# File tk/lib/tk/canvastag.rb, line 67 def dchars(first, last=None) @c.dchars(@id, first, last) self end
# File tk/lib/tk/canvastag.rb, line 99 def insert(beforethis, string) @c.insert(@id, beforethis, string) self end
# File tk/lib/tk/canvastag.rb, line 109 def move(xamount, yamount) @c.move(@id, xamount, yamount) self end
# File tk/lib/tk/canvastag.rb, line 119 def scale(xorigin, yorigin, xscale, yscale) @c.scale(@id, xorigin, yorigin, xscale, yscale) self end
# File tk/lib/tk/canvastag.rb, line 124 def select_adjust(index) @c.select('adjust', @id, index) self end
# File tk/lib/tk/canvastag.rb, line 128 def select_from(index) @c.select('from', @id, index) self end