module TkCanvasItemConfig - tk-0.1.2 Documentation

# module TkCanvasItemConfig

### Private Instance Methods

__item_methodcall_optkeys(id) click to toggle source

    # File lib/tk/canvas.rb, line 23
    def __item_methodcall_optkeys(id)
      {'coords'=>'coords'}
    end

__item_pathname(tagOrId) click to toggle source

    # File lib/tk/canvas.rb, line 36
    def __item_pathname(tagOrId)
      if tagOrId.kind_of?(TkcItem) || tagOrId.kind_of?(TkcTag)
        self.path + ';' + tagOrId.id.to_s
      else
        self.path + ';' + tagOrId.to_s
      end
    end

__item_strval_optkeys(id) click to toggle source
Calls superclass method

    # File lib/tk/canvas.rb, line 14
    def __item_strval_optkeys(id)
      # maybe need to override
      super(id) + [
        'fill', 'activefill', 'disabledfill',
        'outline', 'activeoutline', 'disabledoutline'
      ]
    end

__item_val2ruby_optkeys(id) click to toggle source
Calls superclass method

    # File lib/tk/canvas.rb, line 28
    def __item_val2ruby_optkeys(id)  # { key=>proc, ... }
      super(id).update('window'=>proc{|i, v| window(v)},
                       'tags'=>proc{|i, v|
                         simplelist(v).collect{|tag| TkcTag.id2obj(self, tag)}
                       })
    end