| In: |
tk/lib/tk/image.rb
|
| Parent: | TkObject |
| TkCommandNames | = | ['image'.freeze].freeze |
| Tk_IMGTBL | = | TkCore::INTERP.create_table |
| Tk_Image_ID | = | ['i'.freeze, '00000'.taint].freeze |
# File tk/lib/tk/image.rb, line 42 def TkImage.names Tk.tk_call_without_enc('image', 'names').split.collect!{|id| (Tk_IMGTBL[id])? Tk_IMGTBL[id] : id } end
# File tk/lib/tk/image.rb, line 17 def initialize(keys=nil) @path = Tk_Image_ID.join('') Tk_Image_ID[1].succ! tk_call_without_enc('image', 'create', @type, @path, *hash_kv(keys, true)) Tk_IMGTBL[@path] = self end
# File tk/lib/tk/image.rb, line 48 def TkImage.types Tk.tk_call_without_enc('image', 'types').split end
# File tk/lib/tk/image.rb, line 24 def delete Tk_IMGTBL.delete(@id) if @id tk_call_without_enc('image', 'delete', @path) self end
# File tk/lib/tk/image.rb, line 29 def height number(tk_call_without_enc('image', 'height', @path)) end