Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2011-11-23 22:19:57
Size: 1009
Editor: SheenaSmith
Comment: create page - 11/23 (11/20 61fa4f3238c5)
Revision 2 as of 2013-02-16 04:07:51
Size: 1237
Editor: mikebazz
Comment: added DragDrop note For Mac OSX
Deletions are marked like this. Additions are marked like this.
Line 26: Line 26:
=== Mac OSX ===
To enable drag&drop on your SDL app, you must ''also'' edit your info.plist file. Add/Modify '''Document Types.''' For example, to enable all document types, add the "public.data" mime type as a document type.

DRAFT

SDL_DropEvent

A structure that contains an event used to request a file open by the system.

Data Fields

Uint32

type

the event type; SDL_DROPFILE

char*

file

the file name, which should be freed with SDL_free()

Code Examples

You can add your code example here

Remarks

SDL_DropEvent is a member of the SDL_Event union and is used when an event of type SDL_DROPFILE is reported. You would access it through the event's drop field.

This event is disabled by default. You can enable it with SDL_EventState().

If you enable this event you must free the filename in the event.

Mac OSX

To enable drag&drop on your SDL app, you must also edit your info.plist file. Add/Modify Document Types. For example, to enable all document types, add the "public.data" mime type as a document type.


CategoryStruct, CategoryEvents

None: SDL_DropEvent (last edited 2016-10-13 20:51:29 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit