wWindowDC

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

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

Superclass:wDC

Procs

proc WindowDC(canvas: wWindow): wWindowDC {...}{.raises: [wNilAccess, IndexDefect,
    wFontError, wPenError, wBrushError], tags: [RootEffect].}
Constructor.
proc delete(self: var wWindowDC) {...}{.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: wWindowDC): wSize {...}{.raises: [Exception], tags: [RootEffect].}
Gets the size of the device context.