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__!, #current_itemconfiginfo, #itemcget, #itemcget_strict, #itemcget_tkstring, #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_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


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

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

#current_window_configinfo(tagOrId, slot = nil) ⇒ Object


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

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

#tag_cget(tagOrId, option) ⇒ Object


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

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

#tag_cget_strict(tagOrId, option) ⇒ Object


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

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

#tag_cget_tkstring(tagOrId, option) ⇒ Object


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

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

#tag_configinfo(tagOrId, slot = nil) ⇒ Object


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

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

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


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

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

#window_cget(tagOrId, option) ⇒ Object


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

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

#window_cget_strict(tagOrId, option) ⇒ Object


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

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

#window_cget_tkstring(tagOrId, option) ⇒ Object


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

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

#window_configinfo(tagOrId, slot = nil) ⇒ Object


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

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

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


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

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