logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

s3dw_handle_click - handle click on widget

Author

SimonWunderlich
           Author of s3d

s3d                                                                                         S3DW_HANDLE_CLICK(3)

Description

       If you want your widgets on mouseclicks (believe me, you want that), you have to call this either in your
       clickhandler-function or specify it itself as the clickhandler.

            // way 1:
            s3d_set_callback(S3D_EVENT_OBJ_CLICK,s3dw_handle_click);

            // way 2:
            ...
            void click(struct s3d_evt *evt)
            {
                    s3dw_handle_click(evt);
                    ....
                    // your own clickhandler code
                    ...
            }
            ....
            s3d_set_callback(S3D_EVENT_OBJ_CLICK,click);

Name

       s3dw_handle_click - handle click on widget

Synopsis

#include<s3dw.h>ints3dw_handle_click(conststructs3d_evt*event);

See Also