Hey,
I'm trying to wrap the low level drawing stuff into a nicer API, and I'm facing some trouble. If I add the following code to the very bottom of ui.nim
Ill get the error: Error: type mismatch: got <proc (a: ptr AreaHandler, area: ptr Area, p: ptr AreaDrawParams){.cdecl, noSideEffect, gcsafe, locks: 0.}> but expected 'proc (a2: ptr AreaHandler, a3: ptr Area, a4: ptr AreaDrawParams){.cdecl.}' for the line: result.handler.draw = dc. Can someone explain why that is, and how to fix it?
Hey, I'm trying to wrap the low level drawing stuff into a nicer API, and I'm facing some trouble. If I add the following code to the very bottom of ui.nim
Ill get the error:
Error: type mismatch: got <proc (a: ptr AreaHandler, area: ptr Area, p: ptr AreaDrawParams){.cdecl, noSideEffect, gcsafe, locks: 0.}> but expected 'proc (a2: ptr AreaHandler, a3: ptr Area, a4: ptr AreaDrawParams){.cdecl.}'
for the line:result.handler.draw = dc
. Can someone explain why that is, and how to fix it?