Methods
- A
- B
- C
- D
- F
- G
- L
- M
- P
- S
- T
- U
- X
- Y
Included Modules
Constants
PACKAGE_NAME | = | 'Diagrams'.freeze |
Class Public methods
package_name()
Link
package_version()
Link
Instance Public methods
arrow(text=nil, length=nil, head=nil)
Link
# File ext/tk/lib/tkextlib/tcllib/diagrams.rb, line 130 def arrow(text=nil, length=nil, head=nil) if length || head text = '' unless text length = '' unless length list(tk_call('::Diagrams::arrow', text, length, head)) else if text list(tk_call('::Diagrams::arrow', text)) else list(tk_call('::Diagrams::arrow')) end end end
attach(anchor=None)
Link
box(text, width=nil, height=nil)
Link
boxcoords(x1, y1, x2, y2)
Link
bracket(dir, dist, from_pos, to_pos)
Link
circle(text, radius=nil)
Link
color(name=None)
Link
computepos()
Link
currentpos(pos)
Link
diamond(text, width=nil, height=nil)
Link
# File ext/tk/lib/tkextlib/tcllib/diagrams.rb, line 110 def diamond(text, width=nil, height=nil) if width || height width = '' unless width height = '' unless height list(tk_call('::Diagrams::diamond', text, width, height)) else list(tk_call('::Diagrams::diamond', text)) end end
direction(dir)
Link
drawin(canvas)
Link
drum(text, width=nil, height=nil)
Link
fillcolor(name=None)
Link
getpos(anchor, obj)
Link
line(*args)
Link
# File ext/tk/lib/tkextlib/tcllib/diagrams.rb, line 144 def line(*args) ary = [] args.each{|arg| if arg.kind_of?(Array) && arg.length == 2 # [length, angle] ary.concat arg else # ["POSITION", x, y] or length or angle ary << arg end } list(tk_call('::Diagrams::line', *ary)) end
linestyle(style=None)
Link
linewidth(pixels=None)
Link
moveobject(obj)
Link
plaintext(text, width=nil, height=nil)
Link
# File ext/tk/lib/tkextlib/tcllib/diagrams.rb, line 78 def plaintext(text, width=nil, height=nil) if width || height width = '' unless width height = '' unless height list(tk_call('::Diagrams::plaintext', text, width, height)) else list(tk_call('::Diagrams::plaintext', text)) end end
popstate()
Link
position(x, y)
Link
pushstate()
Link
saveps(filename)
Link
slanted(text, width=nil, height=nil, angle=nil)
Link
# File ext/tk/lib/tkextlib/tcllib/diagrams.rb, line 96 def slanted(text, width=nil, height=nil, angle=nil) if width || height || angle width = '' unless width height = '' unless height if angle list(tk_call('::Diagrams::slanted', text, width, height, angle)) else list(tk_call('::Diagrams::slanted', text, width, height)) end else list(tk_call('::Diagrams::slanted', text)) end end
textcolor(name=None)
Link
textfont(fnt=None)
Link
usegap(mode=None)
Link
xgap(val=None)
Link