wxFileDataObject(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

πŸ’– 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:

  • wxDataObject
  • wxTextDataObject
  • wxBitmapDataObject
  • wxDataObject

(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