wxScreenDC(3erl)

✨ NAME ✨

okay so bestie, this is wxScreenDC(3erl) β€” Erlang Module Definition realness, and it’s all about wxScreenDC. The name section is literally: wxScreenDC β€” Functions for wxScreenDC class. That’s it, that’s the name, slay. πŸ’…

🌸 DESCRIPTION 🌸

A wxScreenDC can be used to paint on the screen, periodt. ✨

🚨 bestie warning: this should normally be constructed as a temporary stack object; don’t store a wxScreenDC object. Like, do not keep it around, okay? πŸ™ˆ

When you’re using multiple monitors, wxScreenDC corresponds to the entire virtual screen composed of all of them. Notice that coordinates on wxScreenDC can be negative in this case, see wxDisplay:getGeometry/1 for more. No cap, negative coords can happen. 😭

  • See: wxDC, wxMemoryDC, wxPaintDC, wxClientDC, wxWindowDC β€” the whole friend group. 🫢
  • This class is derived (and can use functions) from: wxDC. πŸ‘‘
  • wxWidgets docs: wxScreenDC. πŸ“š

πŸŽ€ DATA TYPES πŸŽ€

one (1) data type, and it’s giving:

wxScreenDC() = wx:wx_object()

That’s the whole vibe. πŸ¦‹

πŸ’… EXPORTS πŸ’…

  • new() -> wxScreenDC() β€” Constructor. ✨ The classic new-object moment.
  • destroy(This :: wxScreenDC()) -> ok β€” Destroys the object. πŸ’€ bye bestie, object destroyed.

mwah πŸ’‹ huge shoutout to the wxWidgets team, wx 2.2.2.1, and wxScreenDC(3erl) β€” that’s the footer sign-off, and we’re out. 🫢🌈

πŸ“¦ where this page comes from