Module: Tk::TkTable::ConfigMethod

Includes:
TkItemConfigMethod
Included in:
Tk::TkTable
Defined in:
lib/tkextlib/tktable/tktable.rb,
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__!, #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_nil, num_or_nil, num_or_str, #num_or_str, number, #number, string, #string, uninstall_cmd, untrust

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



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

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

#current_window_configinfo(tagOrId, slot = nil) ⇒ Object



119
120
121
# File 'lib/tkextlib/tktable/tktable.rb', line 119

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

#tag_cget(tagOrId, option) ⇒ Object



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

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

#tag_cget_strict(tagOrId, option) ⇒ Object



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

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

#tag_cget_tkstring(tagOrId, option) ⇒ Object



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

def tag_cget_tkstring(tagOrId, option)
  itemcget_tkstring(['tag', tagid(tagOrId)], option)
end

#tag_configinfo(tagOrId, slot = nil) ⇒ Object



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

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

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



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

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

#window_cget(tagOrId, option) ⇒ Object



99
100
101
# File 'lib/tkextlib/tktable/tktable.rb', line 99

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

#window_cget_strict(tagOrId, option) ⇒ Object



102
103
104
# File 'lib/tkextlib/tktable/tktable.rb', line 102

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

#window_cget_tkstring(tagOrId, option) ⇒ Object



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

def window_cget_tkstring(tagOrId, option)
  itemcget_tkstring(['window', tagid(tagOrId)], option)
end

#window_configinfo(tagOrId, slot = nil) ⇒ Object



116
117
118
# File 'lib/tkextlib/tktable/tktable.rb', line 116

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

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



105
106
107
108
109
110
111
112
113
114
115
# File 'lib/tkextlib/tktable/tktable.rb', line 105

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