wxMirrorDC(3)
π wxMirrorDC β the Erlang module definition, bestie edition π
okay so this page is all about wxMirrorDC, from the wx Erlang docs. no cap.
β¨ NAME β¨
wxMirrorDC β so like, wxMirrorDC is a simple wrapper class which is always associated with a real wxDC object, and it either forwards all of its operations to it without changes (no mirroring takes place) or exchanges x and y coordinates, which makes it possible to reuse the same code to draw a figure and its mirror -- i.e.
π DESCRIPTION π
β¦reflection related to the diagonal line x == y. yes that's the rest of that sentence, it was a whole vibe split across two sections, we love that for us π¦
Since: 2.5.0
This class is derived, and can use functions, from:
- wxDC
wxWidgets docs: wxMirrorDC
π DATA TYPES π
wxMirrorDC()::wx:wx_object().
it's giving "just an object, but make it iconic." π
π§ FUNCTIONS π§
π destroy
destroy(This :: wxMirrorDC()) -> ok.
Destroys the object. bye babe, it's over, she's gone π«Ά
πΈ new
new(Dc, Mirror) -> wxMirrorDC()
when Dc :: wxDC:wxDC(), Mirror :: boolean().
Creates a (maybe) mirrored DC associated with the real dc. the "maybe" is doing so much heavy lifting here and honestly? respect. π
Everything drawn on wxMirrorDC will appear (and maybe mirrored) on dc. like, whatever you doodle shows up on the real one β possibly flipped, possibly not, lowkey mysterious.
mirror specifies if we do mirror (if it is true) or not (if it is false). that's it, that's the whole switch. true = mirrored, false = not mirrored. periodt. β¨
π friendly reminder bestie: themirrorargument is literally just a boolean,truefor mirror mode,falsefor no mirror mode. don't overthink it, you ate that.
and that's the whole page, no notes π
Ericsson AB made this, it's part of wx version 2.6, and this lil manual page is filed under wxMirrorDC(3). mwah, love u, go draw something mirrored ππβ¨
π¦ 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