wxDropFilesEvent(3erl)
π wxDropFilesEvent: Erlang module definition π
Okay so welcome to the wxDropFilesEvent(3erl) page, bestie β this is the Erlang module definition for the wxDropFilesEvent class. It's giving drop-files-event main character energy, and we're gonna get through every single detail together. π¦β¨
πΈ NAME πΈ
wxDropFilesEvent β functions for the wxDropFilesEvent class.
β¨ DESCRIPTION β¨
Okay so this class is used for drop files events β that is, when files have been dropped onto the window. π«Ά
The window must have previously been enabled for dropping by calling wxWindow:dragAcceptFiles/2. Like, no cap, you need that setup first. π
π¨ Important note: this is a separate implementation to the more general drag and drop implementation documented in the overview_dnd. It uses the older, Windows message-based approach of dropping files.
πͺ Remark: Windows only until version 2.8.9, available on all platforms since 2.8.10.
π See: Overview events, wxWindow:dragAcceptFiles/2.
This class is derived (and can use functions) from: wxEvent.
wxWidgets docs: wxDropFilesEvent.
π EVENTS π
Use wxEvtHandler:connect/3 with wxDropFilesEventType to subscribe to events of this type.
π¦ DATA TYPES π¦
wxDropFilesEvent() = wx:wx_object()
wxDropFiles() =
#wxDropFiles{type = wxDropFilesEvent:wxDropFilesEventType(),
pos = {X :: integer(), Y :: integer()},
files = [unicode:chardata()]}
wxDropFilesEventType() = drop_files
π EXPORTS π
π getPosition(This) -> {X :: integer(), Y :: integer()} π
Types:
This = wxDropFilesEvent()
Returns the position at which the files were dropped.
Returns an array of filenames.
π getNumberOfFiles(This) -> integer() π
Types:
This = wxDropFilesEvent()
Returns the number of files dropped.
π getFiles(This) -> [unicode:charlist()] π
Types:
This = wxDropFilesEvent()
Returns an array of filenames.
mwah π β from the wxWidgets team, with wx 2.2.2.1 and manual wxDropFilesEvent(3erl). Stay hydrated, bestie. πβ¨
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms