wxWindowDC(3)
β¨ NAME β¨
wxWindowDC β bestie, this is the Erlang module for a DC you gotta construct when your app wants to paint on the whole entire area of a window π
β that's the client area and the decorations, no cap.
πΈ DESCRIPTION πΈ
Okay so listen. This thing should normally be constructed as a temporary stack object β like, build it, use it, let it go. Do not store a wxWindowDC object anywhere. It's giving "here for a good time not a long time" π¦
Now, which DC are you actually supposed to reach for? Depends on the vibe:
- Drawing on a window from inside an
EVT_PAINT()handler? That's not it, queen β construct awxPaintDCobject instead. π - Drawing on the client area of a window from outside an
EVT_PAINT()handler? Also not this one β construct awxClientDCobject instead. β¨
A wxWindowDC object is initialized to use the same font and colours as the window it's associated with. Matching energy, fr fr. π
See also:
wxDCwxMemoryDCwxPaintDCwxClientDCwxScreenDC
This class is derived, and can use functions, from:
wxDC
wxWidgets docs: wxWindowDC
π DATA TYPES π
wxWindowDC() :: wx:wx_object().
π₯ FUNCTIONS π₯
destroy/1
destroy(This :: wxWindowDC()) -> ok.
Destroys the object. Bye bye, slay, gone. πβ¨
new/1
new(Window) -> wxWindowDC() when Window :: wxWindow:wxWindow().
Constructor. π«Ά
Pass a pointer to the window on which you wish to paint. That's it, that's the whole thing β hand it the window, get your DC, go make art. π¨
and that's the whole page, bestie β go paint something iconic π
This was thewxWindowDCmanual page fromwx 2.6, brought to you by Ericsson AB. Mwah, take care of her π
π¦ 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