[Xcb] How to associate user/misc pointer with an xcb_window_t

Sam Varshavchik mrsam at courier-mta.com
Wed Dec 25 08:18:59 PST 2013


I am going through xcb's developer documentation. I'm looking for a way to  
associate a generic miscellaneous pointer with a window, specifically an  
xcb_window_t.

It's a common design paradigm with UI libraries: a way to stash some  
generic/miscellaneous pointer to application-specific data, associating it  
with the UI library's resource, such as a window. The application can  
subsequently retrieve it, when it wants to find the application-specific  
data that's associated with the window.

So, for example, if I get an xcb_expose_event_t, I can take the referenced  
xcb_window_t, retrieve the application data, and know what to do with this  
window.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20131225/34bd6ab5/attachment.pgp>


More information about the Xcb mailing list