module TkTextTagConfig

Public Instance Methods

current_tag_configinfo(tagOrId, slot=nil) click to toggle source
# File lib/tk/text.rb, line 48
def current_tag_configinfo(tagOrId, slot=nil)
  current_itemconfiginfo(['tag', tagOrId], slot)
end
current_window_configinfo(tagOrId, slot=nil) click to toggle source
# File lib/tk/text.rb, line 67
def current_window_configinfo(tagOrId, slot=nil)
  current_itemconfiginfo(['window', tagOrId], slot)
end
tag_cget(tagOrId, option) click to toggle source
# File lib/tk/text.rb, line 36
def tag_cget(tagOrId, option)
  itemcget(['tag', tagOrId], option)
end
tag_cget_strict(tagOrId, option) click to toggle source
# File lib/tk/text.rb, line 39
def tag_cget_strict(tagOrId, option)
  itemcget_strict(['tag', tagOrId], option)
end
tag_cget_tkstring(tagOrId, option) click to toggle source
# File lib/tk/text.rb, line 33
def tag_cget_tkstring(tagOrId, option)
  itemcget_tkstring(['tag', tagOrId], option)
end
tag_configinfo(tagOrId, slot=nil) click to toggle source
# File lib/tk/text.rb, line 45
def tag_configinfo(tagOrId, slot=nil)
  itemconfiginfo(['tag', tagOrId], slot)
end
tag_configure(tagOrId, slot, value=None) click to toggle source
# File lib/tk/text.rb, line 42
def tag_configure(tagOrId, slot, value=None)
  itemconfigure(['tag', tagOrId], slot, value)
end
window_cget(tagOrId, option) click to toggle source
# File lib/tk/text.rb, line 55
def window_cget(tagOrId, option)
  itemcget(['window', tagOrId], option)
end
window_cget_strict(tagOrId, option) click to toggle source
# File lib/tk/text.rb, line 58
def window_cget_strict(tagOrId, option)
  itemcget_strict(['window', tagOrId], option)
end
window_cget_tkstring(tagOrId, option) click to toggle source
# File lib/tk/text.rb, line 52
def window_cget_tkstring(tagOrId, option)
  itemcget_tkstring(['window', tagOrId], option)
end
window_configinfo(tagOrId, slot=nil) click to toggle source
# File lib/tk/text.rb, line 64
def window_configinfo(tagOrId, slot=nil)
  itemconfiginfo(['window', tagOrId], slot)
end
window_configure(tagOrId, slot, value=None) click to toggle source
# File lib/tk/text.rb, line 61
def window_configure(tagOrId, slot, value=None)
  itemconfigure(['window', tagOrId], slot, value)
end

Private Instance Methods

__item_cget_cmd(id) click to toggle source
# File lib/tk/text.rb, line 15
def __item_cget_cmd(id)  # id := [ type, tagOrId ]
  [self.path, id[0], 'cget', id[1]]
end
__item_config_cmd(id) click to toggle source
# File lib/tk/text.rb, line 20
def __item_config_cmd(id)  # id := [ type, tagOrId ]
  [self.path, id[0], 'configure', id[1]]
end
__item_pathname(id) click to toggle source
# File lib/tk/text.rb, line 25
def __item_pathname(id)
  if id.kind_of?(Array)
    id = tagid(id[1])
  end
  [self.path, id].join(';')
end