wxPostScriptDC(3)

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

✨ wxPostScriptDC(3) ✨

okay bestie, so this page lives in the Erlang Module Definition section, and it's all about wxPostScriptDC πŸ’…

πŸŽ€ NAME πŸŽ€

wxPostScriptDC β€” this defines the wxWidgets Encapsulated PostScript device context, which can write PostScript files on any platform. no cap. every single one. 🌈

πŸ’– DESCRIPTION πŸ’–

See wxDC for descriptions of the member functions. (yes literally just go look at wxDC, it's all there, iykyk 🫢)

🌸 Starting a document 🌸

Okay so this part actually matters, listen up πŸ‘‘

A document should be started with a call to wxDC:startDoc/2 prior to calling any function that executes a drawing operation. that's the rule, that's the vibe check, periodt. ✨

However (and this is the fun little exception πŸ’€), some functions β€” like wxDC:setFont/2 β€” may be legitimately called even before wxDC:startDoc/2. so like, set your font first, it's fine, the DC isn't gonna be weird about it. πŸŽ€

This class is derived, and can use functions, from:

  • wxDC

wxWidgets docs: wxPostScriptDC ⭐


πŸ¦‹ DATA TYPES πŸ¦‹

  • wxPostScriptDC() :: wx:wx_object().

it's giving... object. that's the whole type. slay. πŸ’œ

πŸ‘‘ FUNCTIONS πŸ‘‘

  • destroy(This :: wxPostScriptDC()) -> ok.

Destroys the object. bye bestie, it was iconic, we're letting it go πŸ«ΆπŸ’€

  • new() -> wxPostScriptDC().

(the no-argument glow-up version ✨)

  • new(PrintData) -> wxPostScriptDC() when PrintData :: wxPrintData:wxPrintData().

Constructs a PostScript printer device context from a wxPrintData object. chef's kiss, you hand it the print data, you get a device context back πŸ‘‘πŸ”₯


and that's the whole page babe, you ate it πŸ’…

this one's from Ericsson AB, wx 2.6, module definition energy β€” go make some PostScript files, main character πŸ’–πŸŒΈ

πŸ“¦ where this page comes from