NAME

SDL2::DropEvent - File drop event structure

SYNOPSIS

use SDL2 qw[:all];
# TODO: I need to whip up a quick example

DESCRIPTION

A SDL2::DropEvent structure is generated to request a file open by the system. This event is enabled by default, you can disable it with SDL_EventState( ... ).

Note: if this event is enabled, you must free the filename in the event.

Fields

type - SDL_DROPBEGIN or SDL_DROPFILE or SDL_DROPTEXT or SDL_DROPCOMPLETE
timestamp - In milliseconds, populated using SDL_GetTicks( )
file - The file name, which should be freed with SDL_free(), is NULL on begin/complete
windowID - The window that was dropped on, if any

LICENSE

Copyright (C) Sanko Robinson.

This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License 2. Other copyrights, terms, and conditions may apply to data transmitted through this module.

AUTHOR

Sanko Robinson <sanko@cpan.org>