1wxDropFilesEvent(3) Erlang Module Definition wxDropFilesEvent(3)
2
3
4
6 wxDropFilesEvent - Functions for wxDropFilesEvent class
7
9 This class is used for drop files events, that is, when files have been
10 dropped onto the window.
11
12 The window must have previously been enabled for dropping by calling
13 wxWindow:dragAcceptFiles/2.
14
15 Important note: this is a separate implementation to the more general
16 drag and drop implementation documented in the overview_dnd. It uses
17 the older, Windows message-based approach of dropping files.
18
19 Remark: Windows only until version 2.8.9, available on all platforms
20 since 2.8.10.
21
22 See: Overview events, wxWindow:dragAcceptFiles/2
23
24 This class is derived (and can use functions) from: wxEvent
25
26 wxWidgets docs: wxDropFilesEvent
27
29 Use wxEvtHandler:connect/3 with wxDropFilesEventType to subscribe to
30 events of this type.
31
33 wxDropFilesEvent() = wx:wx_object()
34
35 wxDropFiles() =
36 #wxDropFiles{type = wxDropFilesEvent:wxDropFilesEventType(),
37 pos = {X :: integer(), Y :: integer()},
38 files = [unicode:chardata()]}
39
40 wxDropFilesEventType() = drop_files
41
43 getPosition(This) -> {X :: integer(), Y :: integer()}
44
45 Types:
46
47 This = wxDropFilesEvent()
48
49 Returns the position at which the files were dropped.
50
51 Returns an array of filenames.
52
53 getNumberOfFiles(This) -> integer()
54
55 Types:
56
57 This = wxDropFilesEvent()
58
59 Returns the number of files dropped.
60
61 getFiles(This) -> [unicode:charlist()]
62
63 Types:
64
65 This = wxDropFilesEvent()
66
67 Returns an array of filenames.
68
69
70
71wxWidgets team. wx 2.2.1 wxDropFilesEvent(3)