Namespace
- CLASS Tk::Iwidgets::Hierarchy::IconCommand
- CLASS Tk::Iwidgets::Hierarchy::IndicatorCommand
- CLASS Tk::Iwidgets::Hierarchy::QueryCommand
Methods
- #
- B
- C
- D
- E
- G
- I
- M
- P
- R
- S
- T
- X
- Y
Included Modules
Constants
ItemConfCMD | = | ['tag'.freeze, 'configure'.freeze].freeze |
TkCommandNames | = | ['::iwidgets::hierarchy'.freeze].freeze |
WidgetClassName | = | 'Hierarchy'.freeze |
Instance Public methods
__validation_class_list()
Link
bbox(index)
Link
based on Tk::Text widget
clear()
Link
collapse(node)
Link
compare(idx1, op, idx2)
Link
current()
Link
debug()
Link
debug=(boolean)
Link
delete(first, last=None)
Link
dlineinfo(index)
Link
draw(mode=None)
Link
# File ext/tk/lib/tkextlib/iwidgets/hierarchy.rb, line 189 def draw(mode=None) case mode when None # do nothing when 'now', :now mode = '-now' when 'eventually', :eventually mode = '-eventually' when String, Symbol mode = mode.to_s mode = '-' << mode if mode[0] != ?- end tk_call(@path, 'draw', mode) end
expand(node)
Link
expanded?(node)
Link
get(*index)
Link
index(index)
Link
insert(index, chars, *tags)
Link
# File ext/tk/lib/tkextlib/iwidgets/hierarchy.rb, line 303 def insert(index, chars, *tags) if tags[0].kind_of? Array # multiple chars-taglist argument :: str, [tag,...], str, [tag,...], ... args = [chars] while tags.size > 0 args << tags.shift.collect{|x|_get_eval_string(x)}.join(' ') # taglist args << tags.shift if tags.size > 0 # chars end super(index, *args) else # single chars-taglist argument :: str, tag, tag, ... if tags.size == 0 super(index, chars) else super(index, chars, tags.collect{|x|_get_eval_string(x)}.join(' ')) end end end
mark_add(*nodes)
Link
mark_clear()
Link
mark_get()
Link
mark_remove(*nodes)
Link
prune(node)
Link
refresh(node)
Link
scan_dragto(x, y)
Link
scan_mark(x, y)
Link
see(index)
Link
selection_add(*nodes)
Link
selection_clear()
Link
selection_get()
Link
selection_remove(*nodes)
Link
toggle(node)
Link
xview(*index)
Link
based on tk/scrollable.rb
xview_moveto(*index)
Link
xview_scroll(*index)
Link
yview(*index)
Link
yview_moveto(*index)
Link