wxMirrorDC(3)

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

πŸ’– 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: the mirror argument is literally just a boolean, true for mirror mode, false for 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