Class: TkObject

Class | TkObject
In: | tk/tkutil.c tk/lib/tk.rb
Parent: | TkKernel

### Methods

destroy epath event_generate method_missing path tk_send tk_send_to_list tk_send_to_list_with_enc tk_send_to_list_without_enc tk_send_to_simplelist tk_send_to_simplelist_with_enc tk_send_to_simplelist_without_enc tk_send_with_enc tk_send_without_enc to_eval

### Included Modules

Tk TkConfigMethod TkBindCore

### Public Instance methods

destroy()

[Source]

    # File tk/lib/tk.rb, line 3814
      def destroy
        #tk_call 'trace', 'vdelete', @tk_vn, 'w', @var_id if @var_id
      end

epath()

     --> definition is moved to TkUtil module

def path

      @path

end

[Source]

    # File tk/lib/tk.rb, line 3717
      def epath
        @path
      end

event_generate(context, keys=nil)

[Source]

    # File tk/lib/tk.rb, line 3790
      def event_generate(context, keys=nil)
        if context.kind_of?(TkEvent::Event)
          context.generate(self, ((keys)? keys: {}))
        elsif keys
          #tk_call('event', 'generate', path,
          #       "<#{tk_event_sequence(context)}>", *hash_kv(keys))
          tk_call_without_enc('event', 'generate', path,
                              "<#{tk_event_sequence(context)}>",
                              *hash_kv(keys, true))
        else
          #tk_call('event', 'generate', path, "<#{tk_event_sequence(context)}>")
          tk_call_without_enc('event', 'generate', path,
                              "<#{tk_event_sequence(context)}>")
        end
      end

method_missing(id, *args)

[Source]

    # File tk/lib/tk.rb, line 3755
      def method_missing(id, *args)
        name = id.id2name
        case args.length
        when 1
          if name[-1] == ?=
            configure name[0..-2], args[0]
            args[0]
          else
            configure name, args[0]
            self
          end
        when 0
          begin
            cget(name)
          rescue
            fail NameError,
                 "undefined local variable or method `#{name}' for #{self.to_s}",
                 error_at
          end
        else
          fail NameError, "undefined method `#{name}' for #{self.to_s}", error_at
        end
      end

path()

/

[Source]

    /*************************************/

    static VALUE
    tkobj_path(self)
        VALUE self;
    {
        return rb_ivar_get(self, ID_at_path);
    }

tk_send(cmd, *rest)

[Source]

    # File tk/lib/tk.rb, line 3725
      def tk_send(cmd, *rest)
        tk_call(path, cmd, *rest)
      end

tk_send_to_list(cmd, *rest)

private :tk_send, :tk_send_without_enc, :tk_send_with_enc

[Source]

    # File tk/lib/tk.rb, line 3736
      def tk_send_to_list(cmd, *rest)
        tk_call_to_list(path, cmd, *rest)
      end

tk_send_to_list_with_enc(cmd, *rest)

[Source]

    # File tk/lib/tk.rb, line 3742
      def tk_send_to_list_with_enc(cmd, *rest)
        tk_call_to_list_with_enc(path, cmd, *rest)
      end

tk_send_to_list_without_enc(cmd, *rest)

[Source]

    # File tk/lib/tk.rb, line 3739
      def tk_send_to_list_without_enc(cmd, *rest)
        tk_call_to_list_without_enc(path, cmd, *rest)
      end

tk_send_to_simplelist(cmd, *rest)

[Source]

    # File tk/lib/tk.rb, line 3745
      def tk_send_to_simplelist(cmd, *rest)
        tk_call_to_simplelist(path, cmd, *rest)
      end

tk_send_to_simplelist_with_enc(cmd, *rest)

[Source]

    # File tk/lib/tk.rb, line 3751
      def tk_send_to_simplelist_with_enc(cmd, *rest)
        tk_call_to_simplelist_with_enc(path, cmd, *rest)
      end

tk_send_to_simplelist_without_enc(cmd, *rest)

[Source]

    # File tk/lib/tk.rb, line 3748
      def tk_send_to_simplelist_without_enc(cmd, *rest)
        tk_call_to_simplelist_without_enc(path, cmd, *rest)
      end

tk_send_with_enc(cmd, *rest)

[Source]

    # File tk/lib/tk.rb, line 3731
      def tk_send_with_enc(cmd, *rest)
        tk_call_with_enc(path, cmd, *rest)
      end

tk_send_without_enc(cmd, *rest)

[Source]

    # File tk/lib/tk.rb, line 3728
      def tk_send_without_enc(cmd, *rest)
        tk_call_without_enc(path, cmd, *rest)
      end

to_eval()

[Source]

    # File tk/lib/tk.rb, line 3721
      def to_eval
        @path
      end

[Validate]