|Subject:||Re: [Chicken-users] iup cells draw callback|
|Date:||Sat, 7 Nov 2015 14:58:50 -0800|
On 2015-10-15 04:04, Martin DeMello wrote:
> it looks like the cb-draw callback has format "iiiiiiC", which doesn't
> match the sigil regex. I take it that means callbacks with a Canvas*
> argument are unsupported in chicken-iup?
that is correct, however support is trivial to add: Add the #\C
character to the regular _expression_ for callback signatures, add a case
for #\C typed arguments in the dispatcher that treats them identically
to #\v typed arguments, use pointer->canvas from the canvas-draw egg in
your callback code to add the right type tags to the raw pointer.
I think that the #\C signature character has been introduced recently in
IUP. Anyway, I added the necessary marshalling code as outlined above to
the iup egg, it is available in the trunk version of the code.
When C++ is your hammer, every problem looks like your thumb.
Chicken-users mailing list
|[Prev in Thread]||Current Thread||[Next in Thread]|