Namespace
- CLASS Tk::Tile::Treeview::Item
- CLASS Tk::Tile::Treeview::Root
- CLASS Tk::Tile::Treeview::Tag
Methods
- #
- B
- C
- D
- E
- F
- G
- I
- M
- N
- P
- R
- S
- T
Included Modules
- Tk::Tile::TileWidget
- Scrollable
- Tk::Tile::TreeviewConfig
Constants
| TkCommandNames | = | ['::ttk::treeview'.freeze].freeze |
| WidgetClassName | = | 'Treeview'.freeze |
Class Public methods
style(*args)
Link
Instance Public methods
__destroy_hook__()
Link
# File ext/tk/lib/tkextlib/tile/treeview.rb, line 1071 def __destroy_hook__ Tk::Tile::Treeview::Item::ItemID_TBL.mutex.synchronize{ Tk::Tile::Treeview::Item::ItemID_TBL.delete(@path) } Tk::Tile::Treeview::Tag::ItemID_TBL.mutex.synchronize{ Tk::Tile::Treeview::Tag::ItemID_TBL.delete(@path) } end
bbox(item, column=None)
Link
children(item)
Link
delete(*items)
Link
detach(*items)
Link
exist?(item)
Link
focus_item(item = nil)
Link
get(item, col)
Link
identify(x, y)
Link
# File ext/tk/lib/tkextlib/tile/treeview.rb, line 1139 def identify(x, y) # tile-0.7.2 or previous ret = simplelist(tk_send('identify', x, y)) case ret[0] when 'heading', 'separator' ret[-1] = num_or_str(ret[-1]) when 'cell' ret[1] = Tk::Tile::Treeview::Item.id2obj(self, ret[1]) ret[-1] = num_or_str(ret[-1]) when 'item', 'row' ret[1] = Tk::Tile::Treeview::Item.id2obj(self, ret[1]) end end
identify_element(x, y)
Link
identify_item(x, y)
Link
identify_region(x, y)
Link
index(item)
Link
insert(parent, idx='end', keys={})
Link
def insert(parent, idx='end', keys={})
keys = _symbolkey2str(keys)
id = keys.delete('id')
if id
num_or_str(tk_send('insert', parent, idx, '-id', id, *hash_kv(keys)))
else
num_or_str(tk_send('insert', parent, idx, *hash_kv(keys)))
end
end
move(item, parent, idx)
Link
def instate(spec, cmd=Proc.new)
tk_send('instate', spec, cmd)
end def state(spec=None)
tk_send('state', spec)
end
next_item(item)
Link
parent_item(item)
Link
prev_item(item)
Link
root()
Link
see(item)
Link
selection_add(*items)
Link
selection_remove(*items)
Link
selection_set(*items)
Link
selection_toggle(*items)
Link
set(item, col, value)
Link
set_children(item, *items)
Link
tag_add(tag, *items)
Link
tag_has(tag)
Link
tag_has?(tag, item)
Link
tag_names()
Link
tag_remove(tag, *items)
Link
tagid(id)
Link