wClientDC

A wClientDC must be constructed if an application wishes to paint on the client area of a window.

Like other DC object, wClientDC need nim's destructors to release the resource.

Superclass:wDC

Procs

proc ClientDC(canvas: wWindow): wClientDC {...}{.raises: [wNilAccess, IndexDefect,
    wFontError, wPenError, wBrushError], tags: [RootEffect].}
Constructor.
proc delete(self: var wClientDC) {...}{.raises: [], tags: [].}
Nim's destructors will delete this object by default. However, sometimes you maybe want to do that by yourself. (Nim's destructors don't work in some version?)

Methods

method getSize(self: wClientDC): wSize {...}{.raises: [Exception], tags: [RootEffect].}
Gets the size of the device context.