Methods
- #
- C
- I
- M
- N
Included Modules
Class Public methods
new(parent, index, keys)
Link
# File ext/tk/lib/tk/textimage.rb, line 10 def initialize(parent, index, keys) #unless parent.kind_of?(Tk::Text) # fail ArgumentError, "expect Tk::Text for 1st argument" #end @t = parent if index == 'end' || index == :end @path = TkTextMark.new(@t, tk_call(@t.path, 'index', 'end - 1 chars')) elsif index.kind_of? TkTextMark if tk_call_without_enc(@t.path,'index',index.path) == tk_call_without_enc(@t.path,'index','end') @path = TkTextMark.new(@t, tk_call_without_enc(@t.path, 'index', 'end - 1 chars')) else @path = TkTextMark.new(@t, tk_call_without_enc(@t.path, 'index', index.path)) end else @path = TkTextMark.new(@t, tk_call_without_enc(@t.path, 'index', _get_eval_enc_str(index))) end @path.gravity = 'left' @index = @path.path @id = tk_call_without_enc(@t.path, 'image', 'create', @index, *hash_kv(keys, true)).freeze @path.gravity = 'right' end
Instance Public methods
[](slot)
Link
[]=(slot, value)
Link
cget(slot)
Link
cget_strict(slot)
Link
configinfo(slot = nil)
Link
def configure(slot, value)
tk_call @t.path, 'image', 'configure', @index, "-#{slot}", value
end
configure(slot, value=None)
Link
current_configinfo(slot = nil)
Link
id()
Link
image()
Link
image=(value)
Link