Class: TclTkImage
- Inherits:
-
TclTkCommand
- Object
- TclTkObject
- TclTkCommand
- TclTkImage
- Defined in:
- lib/tcltk.rb
Overview
class TclTkImage: tcl/tk images
Instance Method Summary collapse
-
#initialize(interp, t, *args) ⇒ TclTkImage
constructor
initialize(interp, t, *args): generating image is done by TclTkImage.new() destroying is done by image delete (inconsistent, sigh) interp: interpreter(TclTkInterpreter) t: image type (photo, bitmap, etc.) *args: command argument.
Methods inherited from TclTkCommand
Methods inherited from TclTkObject
Constructor Details
#initialize(interp, t, *args) ⇒ TclTkImage
initialize(interp, t, *args):
generating image is done by TclTkImage.new()
destroying is done by image delete (inconsistent, sigh)
interp: interpreter(TclTkInterpreter)
t: image type (photo, bitmap, etc.)
*args: command argument
357 358 359 360 361 362 363 364 365 |
# File 'lib/tcltk.rb', line 357 def initialize(interp, t, *args) # auto-generate tcl/tk representation exp = TclTk._newname("i_") # initialize TclTkObject super(interp._tcltkip(), exp) # generate image res = @ip._eval_args("image create", t, exp, *args) fail("can't create Image") if res != exp end |