guix icon indicating copy to clipboard operation
guix copied to clipboard

Assign user data to widgets

Open ematt opened this issue 1 year ago • 0 comments
trafficstars

How can I retrieve user data through a widget? I would like to store a pointer inside GX_WIDGET to be retrieved later in the event handler.

Reading the documentation, gx_widget_user_data is meant to store user data. The problem is that converting from a pointer to an integer is not portable.

How can user data be assigned to a widget?

ematt avatar Sep 09 '24 07:09 ematt