This module contains utilities for making Winim development easier.
Imports
-
windef
Converters
converter winimConverterBooleanToBOOL(x: bool): BOOL {....raises: [], tags: [], forbids: [].}
- Converts between Windows' BOOL/WINBOOL and Nim's Boolean type.
converter winimConverterBOOLToBoolean(x: BOOL): bool {....raises: [], tags: [], forbids: [].}
- Converts between Windows' BOOL/WINBOOL and Nim's Boolean type.
converter winimConverterVarObjectToPtrObject[T: object](x: var T): ptr T
-
Pass an object by address if the target is "ptr object". For example:
var msg: MSG while GetMessage(msg, 0, 0, 0) != 0: TranslateMessage(msg) DispatchMessage(msg)