module TkTextTagConfig - tk-0.2.0 Documentation

# module TkTextTagConfig

### Public Instance Methods

current_tag_configinfo(tagOrId, slot=nil) click to toggle source

    # File lib/tk/text.rb, line 47
    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 66
    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 35
    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 38
    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 32
    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 44
    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 41
    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 54
    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 57
    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 51
    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 63
    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 60
    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 14
    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 19
    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 24
    def __item_pathname(id)
      if id.kind_of?(Array)
        id = tagid(id[1])
      end
      [self.path, id].join(';')
    end