Class Tk::BLT::DragDrop::Token
In: tk/lib/tkextlib/blt/dragdrop.rb
Parent: TkWindow

Methods

new  

Constants

WidgetClassName = 'DragDropToken'.freeze

Public Class methods

[Source]

# File tk/lib/tkextlib/blt/dragdrop.rb, line 20
      def initialize(arg)
        if arg.kind_of?(Hash) # arg is a hash includes the widgetpath of token
          arg = _symbolkey2str(arg)
          install_win(nil, arg['widgetname'])
        else  # arg is a drag&drop source
          tk_call('::blt::drag&drop', 'source', arg)
          install_win(nil, tk_call('::blt::drag&drop', 'token', arg))
        end
      end

[Validate]

ruby-doc.org is a community service provided by Happy Camper Studios, a Phoenix, Arizona, Ruby application development company.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.