wxFileDataObject(3)
π wxFileDataObject(3) π
okay bestie, welcome to the Erlang module definition for wxFileDataObject, and trust me, this one is lowkey iconic once you get it. it's a whole module page, manual name and everything, so grab your strawberry drink π and let's go.
β¨ NAME β¨
wxFileDataObject β no cap, it's a specialization of wxDataObject for file names. that's the whole vibe. π
π¦ DESCRIPTION π¦
So here's the tea: your program gets to work with this thing just as if it were a list of absolute file names. literally just a cute lil list of paths, as far as you're concerned. π
But bestie, the internal glow-up is the real moment. Internally it uses the same format as Explorer and other compatible programs under Windows or GNOME/KDE file manager under Unix, which makes it possible to receive files from them using this class. it's giving unbothered interoperability. β¨
See also these icons, go check them out:
wxDataObjectwxTextDataObjectwxBitmapDataObjectwxDataObject
(yes, wxDataObject is in there twice. no, we don't question the list. we simply respect it. π)
This class is derived, and can use functions, from:
wxDataObject
wxWidgets docs: wxFileDataObject
π DATA TYPES π
wxFileDataObject() :: wx:wx_object().
that's it. that's the type. wx:wx_object() and vibes. π«Ά
πΈ FUNCTIONS πΈ
addFile(This, File) -> ok
when:
This :: wxFileDataObject(),File :: unicode:chardata().
Adds a file to the file list represented by this data object. psa though bestie: (Windows only) β so don't come for it on other platforms, it said what it said. π
destroy(This :: wxFileDataObject()) -> ok.
Destroys the object. rip to it, but respectfully. πͺ¦π
getFilenames(This) -> [unicode:charlist()]
when This :: wxFileDataObject().
Returns the array of file names. all of them. every single one. slay. π₯
new() -> wxFileDataObject().
Constructor. it makes a new one. that's the whole function, and honestly? main character energy. π
reminder bestie: everything literal β the flags, the types, the paths β stays exactly as written. we keep the receipts around here. π§Ύβ¨
and that's the page!! mwah π this lil manual dropped as part of wx 2.6 from Ericsson AB, and yes the page itself is styled wxFileDataObject(3) β love that for us. see you in the next one, bestie, stay slaying your Unix π
ππ
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms