bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Argument Passing for CDKButton's Callback function


From: Aarian P. Aleahmad
Subject: Argument Passing for CDKButton's Callback function
Date: Wed, 27 Jan 2016 19:26:15 +0330
User-agent: Roundcube Webmail/0.7.2

Hi there

I've modified the "button.h", thus now you can implicitly pass arguments to the callback function of a CDKButton. You can set the argument prior to calling the function via setCDKButtonCBArgs macro and get the args using the getCDKButtonCDArgs macro, while you're inside the CB function. Since this feature is added implicitly using some macros, this version IS backward compatible with the previous versions of CDK.

Yours Truly
Aarian,

Attachment: button.c
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]