10-19-2012 07:01 PM
This might be a very simple question, but I can't find any examples to figure it out with. I want to use screen_set_group_property_iv, the first argument is of type screen_group_t. But when you create a screen group, you do it with a const char*. screen_group_t doesn't appear to be defined as cont char*. So what is the proper way to reference the group ID that I created for use in this function? Can I just cast my ID string to screen_group_t?
10-20-2012 12:29 AM - edited 10-20-2012 12:30 AM
there are around a dozen references to screen_group_t in screen.h.
This one may be of interest:
10-20-2012 02:53 AM
10-20-2012 10:22 PM
You can't arbitrarily look up a screen_group_t by name, but screen_get_window_property_pv() can be used to retrieve a screen_group_t from a window with the SCREEN_PROPERTY_GROUP type.
It can also be queried from some other objects, like events... scan the docs for SCREEN_PROPERTY_GROUP:
10-20-2012 10:27 PM
fyi, the reason you aren't typically permitted to look up groups or windows by name is that it's a security/usability concern. If you start messing around with the internals of some of these objects without the knowledge of the intermediate framework, it can lead to state being out-of-sync, things misbehaving visually, or crashes. (eg. imagine changing the source buffer dimensions of a video window or cascades UI while rendering code is running).