module UIng::Drop::Target

Overview

A Window or Area that receives drops.

Direct including types

Defined in:

uing/drop/target.cr

Instance Method Summary

Instance Method Detail

def clear_drop_handler : Nil #

[View source]
def clear_on_drop : Nil #

EXPERIMENTAL


[View source]
def drop_handler : Handler | Nil #

[View source]
def drop_handler=(handler : Handler) : Nil #

Replaces the current registration on the UI thread. Failure preserves the previous handler. Native child receivers retain their own behavior; an Area is an exclusive drop zone and rejection does not retry Window.


[View source]
def drop_handler=(handler : Nil) : Nil #

[View source]
def on_drop(accepts : Format = Format::All, &block : Event -> Bool) : Nil #

Explicit Handlers must first be removed with clear_drop_handler.

EXPERIMENTAL


[View source]
def on_drop(callback : Nil) : Nil #

EXPERIMENTAL


[View source]