proc init(self: wPen; elp: EXTLOGPEN) {...}{.raises: [wPenError], tags: [].}
-
Initializes a pen from EXTLOGPEN struct. Used internally.
proc Pen(elp: EXTLOGPEN): wPen {...}{.inline, discardable, raises: [wPenError], tags: [].}
-
Constructor.
proc init(self: wPen; color = wBlack; style = 0; width = 1) {...}{.raises: [wPenError], tags: [].}
-
Initializes a pen from color, width, and style.
proc Pen(color = wBlack; style = 0; width = 1): wPen {...}{.inline, discardable,
raises: [wPenError], tags: [].}
-
Constructor.
proc init(self: wPen; hPen: HANDLE; copy = true; shared = false) {...}{.raises: [wPenError],
tags: [].}
-
Initializes a pen from system pen handle. If copy is false, the function only wrap the handle to wPen object. If shared is false, the handle will be destroyed together with wPen object by the GC. Otherwise, the caller is responsible for destroying it.
proc Pen(hPen: HANDLE; copy = true; shared = false): wPen {...}{.inline, discardable,
raises: [wPenError], tags: [].}
-
Constructor.
proc init(self: wPen; pen: wPen) {...}{.raises: [wNilAccess, wPenError], tags: [].}
-
Initializes a pen from a wPen object, aka. copy.
proc Pen(pen: wPen): wPen {...}{.inline, discardable, raises: [wNilAccess, wPenError],
tags: [].}
-
Constructor.
proc getColor(self: wPen): wColor {...}{.inline, raises: [], tags: [].}
-
Returns a reference to the pen color.
proc getStyle(self: wPen): DWORD {...}{.inline, raises: [], tags: [].}
-
Returns the pen style.
proc getWidth(self: wPen): int {...}{.inline, raises: [], tags: [].}
-
Returns the pen width.
proc setColor(self: wPen; color: wColor) {...}{.raises: [wPenError], tags: [].}
-
Set the pen color.
proc setStyle(self: wPen; style: DWORD) {...}{.raises: [wPenError], tags: [].}
-
Set the pen style.
proc setWidth(self: wPen; width: int) {...}{.raises: [wPenError], tags: [].}
-
Sets the pen width.