wxPostScriptDC(3erl)

πŸ’– NAME πŸ’–

okay bestie, welcome to the wxPostScriptDC(3erl) page β€” Erlang module definition and all ✨ This one is about wxPostScriptDC, aka the functions for the wxPostScriptDC class. slay. πŸ’…

🌈 DESCRIPTION 🌈

So wxPostScriptDC defines the wxWidgets Encapsulated PostScript device context. The whole vibe? It can write PostScript files on any platform. Obsessed. πŸ¦‹

See wxDC for descriptions of the member functions β€” that's where the member-function lore lives, iykyk.

πŸš€ Starting a document

Document should be started with a call to wxDC:startDoc/2 prior to calling any function to execute a drawing operation. This is the rule, bestie β€” don't skip it. 😭

However β€” plot twist β€” some functions, like wxDC:setFont/2, may be legitimately called even before wxDC:startDoc/2. So not every call is a pre-startDoc crime. 😌

This class is derived (and can use functions) from: wxDC. Yes, it inherits the whole toolbox, no cap. πŸ”₯

Official wxWidgets docs: wxPostScriptDC.

πŸ¦‹ DATA TYPES πŸ¦‹

wxPostScriptDC() = wx:wx_object()

✨ EXPORTS ✨

  • new() β€” makes a fresh wxPostScriptDC():
new() -> wxPostScriptDC()
  • new(PrintData) β€” makes a wxPostScriptDC() from a wxPrintData:
new(PrintData) -> wxPostScriptDC()
  • Types: PrintData = wxPrintData:wxPrintData()
  • Constructs a PostScript printer device context from a wxPrintData object. periodt. πŸ’–
  • destroy(This :: wxPostScriptDC()) β€” destroys the object:
destroy(This :: wxPostScriptDC()) -> ok

okay that's the whole page, mwah πŸ’‹ β€” big shoutout to the wxWidgets team for the source, the wx 2.2.2.1 version holding it down, and the wxPostScriptDC(3erl) footer/date-slot bestie closing the credits. 🫢✨

πŸ“¦ where this page comes from