Class: Gtk::DropTarget

Inherits:
Object
  • Object
show all
Defined in:
lib/gtk4/drop-target.rb

Instance Method Summary collapse

Constructor Details

#initialize(type, actions) ⇒ DropTarget

Returns a new instance of DropTarget.



20
21
22
23
24
25
26
27
# File 'lib/gtk4/drop-target.rb', line 20

def initialize(type, actions)
  if type.is_a?(Array)
    initialize_raw(GLib::Type::INVALID, actions)
    set_gtypes(type)
  else
    initialize_raw(type, actions)
  end
end

Instance Method Details

#initialize_rawObject



19
# File 'lib/gtk4/drop-target.rb', line 19

alias_method :initialize_raw, :initialize