Class: Gtk::DropTarget
- Inherits:
-
Object
- Object
- Gtk::DropTarget
- Defined in:
- lib/gtk4/drop-target.rb
Instance Method Summary collapse
-
#initialize(type, actions) ⇒ DropTarget
constructor
A new instance of DropTarget.
- #initialize_raw ⇒ Object
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_raw ⇒ Object
19 |
# File 'lib/gtk4/drop-target.rb', line 19 alias_method :initialize_raw, :initialize |