wxWindowDC(3erl)

okay so welcome to wxWindowDC(3erl), the Erlang Module Definition page for the wxWindowDC class β€” bestie, we're painting whole windows today πŸ’…βœ¨

πŸŽ€ NAME πŸŽ€

wxWindowDC β€” literally the functions for the wxWindowDC class. periodt.

🌸 DESCRIPTION 🌸

If an application wishes to paint on the whole area of a window (client and decorations), it must construct a wxWindowDC. Normally you construct it as a temporary stack object; do not store a wxWindowDC object.

bestie warning: temporary stack object only. Do not store that wxWindowDC object, okay? 🫢

To draw on a window from inside an EVT_PAINT() handler, construct a wxPaintDC object instead.

To draw on the client area of a window from outside an EVT_PAINT() handler, construct a wxClientDC object.

A wxWindowDC object is initialized to use the same font and colours as the window it is associated with.

See: wxDC, wxMemoryDC, wxPaintDC, wxClientDC, wxScreenDC.

This class is derived (and can use functions) from: wxDC.

The wxWidgets docs pointer is literally wxWidgets docs: wxWindowDC.

πŸ¦‹ DATA TYPES πŸ¦‹

wxWindowDC() = wx:wx_object()

πŸ’– EXPORTS πŸ’–

  • new(Window) -> wxWindowDC() β€” constructor vibes ✨
new(Window) -> wxWindowDC()

Types: Window = wxWindow:wxWindow()

Constructor. Pass a pointer to the window on which you wish to paint.

  • destroy(This :: wxWindowDC()) -> ok β€” destroys the object.
destroy(This :: wxWindowDC()) -> ok

Destroys the object.

okay that's the whole page! huge thanks to the wxWidgets team, version wx 2.2.2.1, and the footer label wxWindowDC(3erl) β€” the original footer has no date listed, so that's the entire cute sign-off πŸ’œ

πŸ“¦ where this page comes from