wxGCDC(3erl)
π wxGCDC(3erl) β Erlang Module Definition π
okay bestie, welcome to the wxGCDC manual page. we're doing the Erlang module definition together, and honestly? it's giving niche but iconic π
β¨ NAME β¨
wxGCDC β Functions for wxGCDC class.
π¦ DESCRIPTION π¦
wxGCDC is a device context that draws on a wxGraphicsContext.
wxGCDC does its best to implement the wxDC API, but the following features are not (fully) implemented because wxGraphicsContext doesn't support them:
bestie, the page doesn't spell out that list here β that's the whole situation π moving on!
See: wxDC, wxGraphicsContext
This class is derived (and can use functions) from: wxDC
wxWidgets docs: wxGCDC
π§ DATA TYPES π§
wxGCDC() = wx:wx_object()
π EXPORTS π
new() -> wxGCDC()
Constructs a fresh wxGCDC. yes ma'am, zero arguments, all vibes β¨
new(WindowDC) -> wxGCDC()
Types:
WindowDC =
wxWindowDC:wxWindowDC() |
wxMemoryDC:wxMemoryDC() |
wxGraphicsContext:wxGraphicsContext()
Constructs a wxGCDC from a wxWindowDC. exactly that, no cap π«Ά
destroy(This :: wxGCDC()) -> ok
Destroys this wxGCDC object and returns ok. bye bestie π
getGraphicsContext(This) -> wxGraphicsContext:wxGraphicsContext()
Types:
This = wxGCDC()
Retrieves associated wxGraphicsContext.
setGraphicsContext(This, Context) -> ok
Types:
This = wxGCDC()
Context = wxGraphicsContext:wxGraphicsContext()
Set the graphics context to be used for this wxGCDC.
π¨ ownership tea: Note that this object takes ownership of context and will delete it when it is destroyed or when setGraphicsContext/2 is called again. so yeah, it's owned by this object now β that's the arrangement π
Also, unlike the constructor taking wxGraphicsContext, this method will reapply the current font, pen and brush, so that this object continues to use them, if they had been changed before (which is never the case when constructing wxGCDC directly from wxGraphicsContext).
and that's the whole page, bestie! footer vibe check: wxWidgets team, wx 2.2.2.1, wxGCDC(3erl). mwah π
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms