wxPostScriptDC(3)
β¨ 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
- 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