Module: TkItemConfigMethod (Ruby 2.3.4)

In Files

  • tk/lib/tk/itemconfig.rb

Class/Module Index [+]

Quicksearch

TkItemConfigMethod

Public Class Methods

__IGNORE_UNKNOWN_CONFIGURE_OPTION__()
 
               # File tk/lib/tk/itemconfig.rb, line 124
def TkItemConfigMethod.__IGNORE_UNKNOWN_CONFIGURE_OPTION__
  @mode || false
end
            
__set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!(mode)
 
               # File tk/lib/tk/itemconfig.rb, line 127
def TkItemConfigMethod.__set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!(mode)
  @mode = (mode)? true: false
end
            

Public Instance Methods

__check_available_itemconfigure_options(tagOrId, keys)
 
               # File tk/lib/tk/itemconfig.rb, line 357
def __check_available_itemconfigure_options(tagOrId, keys)
  id = tagid(tagOrId)

  availables = self.__current_itemconfiginfo(id).keys

  # add non-standard keys
  availables |= __font_optkeys.map{|k|
    [k.to_s, "latin#{k}", "ascii#{k}", "kanji#{k}"]
  }.flatten
  availables |= __item_methodcall_optkeys(id).keys.map{|k| k.to_s}
  availables |= __item_keyonly_optkeys(id).keys.map{|k| k.to_s}

  keys = _symbolkey2str(keys)

  keys.delete_if{|k, v| !(availables.include?(k))}
end