#include <screen/screen.h> int screen_set_group_property_cv( screen_group_t grp, int pname, int len, const char *param ); int screen_set_group_property_iv( screen_group_t grp, int pname, const int *param ); int screen_set_group_property_llv( screen_group_t grp, int pname, const long long *param ); int screen_set_group_property_pv( screen_group_t grp, int pname, void **param );
- The screen_group_t instance for which to set the property.
- The name of the property to set. The properties that can be set are:
- A single integer containing the name of the window group.
- A single integer containing the idle state of the display for windows in this group. The idle state will be 1 if the system is idle, indicating that no input was received after the idle timeout period. When the idle state is 0, an input event was received prior to the idle timeout period expiring.
- A single integer indicating the amount of time (in seconds) after which the system will enter an idle state.
- A single window handle corresponding to the window that currently has keyboard focus.
- The handle that is passed to the application when events are associated with this window. param must be a buffer with enough storage for one void pointer.
- The maximum number of bytes that can be written to param.
- A buffer where the values will be stored.
These functions set the value of a group property from a user-specified array. No more than len bytes will be written. Each property must be set with the variant corresponding to the type associated with this property. For example, SCREEN_PROPERTY_IDLE_STATE must be set using the screen_set_group_property_iv() function.
- The function succeeded and the value (or values) of the window property are saved in the buffers provided.
- An error occurred (errno is set).