Module: Tk::TkTable::ConfigMethod

Includes:
TkItemConfigMethod
Included in:
Tk::TkTable
Defined in:
ext/lib/tkextlib/tktable/tktable.rb,
ext/lib/tkextlib/tktable/tktable.rb

Constant Summary

Constants included from TkUtil

TkUtil::None, TkUtil::RELEASE_DATE

Instance Method Summary collapse

Methods included from TkItemConfigMethod

__IGNORE_UNKNOWN_CONFIGURE_OPTION__, #__check_available_itemconfigure_options, #__current_itemconfiginfo, __set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!, #current_itemconfiginfo, #itemcget, #itemcget_strict, #itemconfiginfo, #itemconfigure, #tagid

Methods included from TkItemConfigOptkeys

#__conv_item_keyonly_opts, #itemconfig_hash_kv

Methods included from TkUtil

_conv_args, #_conv_args, #_fromUTF8, _get_eval_enc_str, #_get_eval_enc_str, #_get_eval_string, _get_eval_string, _symbolkey2str, #_symbolkey2str, #_toUTF8, bool, #bool, callback, eval_cmd, #hash_kv, hash_kv, install_cmd, num_or_str, #num_or_str, number, #number, string, #string, uninstall_cmd

Methods included from TkTreatItemFont

#kanjifont_copy, #kanjitagfont_configure, #latintagfont_configure, #latintagfont_copy, #tagfont_configinfo, #tagfont_configure, #tagfont_copy

Instance Method Details

#current_tag_configinfo(tagOrId, slot = nil) ⇒ Object



89
90
91
# File 'ext/lib/tkextlib/tktable/tktable.rb', line 89

def current_tag_configinfo(tagOrId, slot=nil)
  current_itemconfiginfo(['tag', tagid(tagOrId)], slot)
end

#current_window_configinfo(tagOrId, slot = nil) ⇒ Object



113
114
115
# File 'ext/lib/tkextlib/tktable/tktable.rb', line 113

def current_window_configinfo(tagOrId, slot=nil)
  current_itemconfiginfo(['window', tagid(tagOrId)], slot)
end

#tag_cget(tagOrId, option) ⇒ Object



77
78
79
# File 'ext/lib/tkextlib/tktable/tktable.rb', line 77

def tag_cget(tagOrId, option)
  itemcget(['tag', tagid(tagOrId)], option)
end

#tag_cget_strict(tagOrId, option) ⇒ Object



80
81
82
# File 'ext/lib/tkextlib/tktable/tktable.rb', line 80

def tag_cget_strict(tagOrId, option)
  itemcget_strict(['tag', tagid(tagOrId)], option)
end

#tag_configinfo(tagOrId, slot = nil) ⇒ Object



86
87
88
# File 'ext/lib/tkextlib/tktable/tktable.rb', line 86

def tag_configinfo(tagOrId, slot=nil)
  itemconfiginfo(['tag', tagid(tagOrId)], slot)
end

#tag_configure(tagOrId, slot, value = None) ⇒ Object



83
84
85
# File 'ext/lib/tkextlib/tktable/tktable.rb', line 83

def tag_configure(tagOrId, slot, value=None)
  itemconfigure(['tag', tagid(tagOrId)], slot, value)
end

#window_cget(tagOrId, option) ⇒ Object



93
94
95
# File 'ext/lib/tkextlib/tktable/tktable.rb', line 93

def window_cget(tagOrId, option)
  itemcget(['window', tagid(tagOrId)], option)
end

#window_cget_strict(tagOrId, option) ⇒ Object



96
97
98
# File 'ext/lib/tkextlib/tktable/tktable.rb', line 96

def window_cget_strict(tagOrId, option)
  itemcget_strict(['window', tagid(tagOrId)], option)
end

#window_configinfo(tagOrId, slot = nil) ⇒ Object



110
111
112
# File 'ext/lib/tkextlib/tktable/tktable.rb', line 110

def window_configinfo(tagOrId, slot=nil)
  itemconfiginfo(['window', tagid(tagOrId)], slot)
end

#window_configure(tagOrId, slot, value = None) ⇒ Object



99
100
101
102
103
104
105
106
107
108
109
# File 'ext/lib/tkextlib/tktable/tktable.rb', line 99

def window_configure(tagOrId, slot, value=None)
  if slot == :window || slot == 'window'
    value = _epath(value)
  elsif slot.kind_of?(Hash)
    if slot.key?(:window) || slot.key?('window')
      slot = _symbolkey2str(slot)
      slot['window'] = _epath(slot['window'])
    end
  end
  itemconfigure(['window', tagid(tagOrId)], slot, value)
end