Functions | |
| xcb_get_property_cookie_t | xcb_get_any_property (xcb_connection_t *c, uint8_t del, xcb_window_t window, xcb_atom_t name, uint32_t long_len) |
| Get any property from a window, from any format. | |
| xcb_get_property_cookie_t | xcb_get_any_property_unchecked (xcb_connection_t *c, uint8_t del, xcb_window_t window, xcb_atom_t name, uint32_t long_len) |
| void | xcb_property_handlers_init (xcb_property_handlers_t *prophs, xcb_event_handlers_t *evenths) |
| Initialize a property handlers structure. | |
| void | xcb_property_handlers_wipe (xcb_property_handlers_t *prophs) |
| Wipe a property handler structure. | |
| xcb_event_handlers_t * | xcb_property_get_event_handlers (xcb_property_handlers_t *prophs) |
| Get a event handlers from a property handlers data structure. | |
| uint8_t | xcb_property_set_handler (xcb_property_handlers_t *prophs, xcb_atom_t name, uint32_t long_len, xcb_generic_property_handler_t handler, void *data) |
| Set a property handler for an event. | |
| uint8_t | xcb_property_set_default_handler (xcb_property_handlers_t *prophs, uint32_t long_len, xcb_generic_property_handler_t handler, void *data) |
| Set the default property handler. | |
| int | xcb_property_changed (xcb_property_handlers_t *prophs, uint8_t state, xcb_window_t window, xcb_atom_t atom) |
| Notify that a property has changed and call handler function callback as needed. | |
| xcb_get_property_cookie_t xcb_get_any_property | ( | xcb_connection_t * | c, | |
| uint8_t | del, | |||
| xcb_window_t | window, | |||
| xcb_atom_t | name, | |||
| uint32_t | long_len | |||
| ) |
Get any property from a window, from any format.
| c | The connection to the X server. | |
| del | Boolean value that determines whether the property is deleted. | |
| window | The window to get property from. | |
| name | The property atom name. | |
| long_len | The maximum length of the property. |
Referenced by xcb_get_text_property().
| xcb_get_property_cookie_t xcb_get_any_property_unchecked | ( | xcb_connection_t * | c, | |
| uint8_t | del, | |||
| xcb_window_t | window, | |||
| xcb_atom_t | name, | |||
| uint32_t | long_len | |||
| ) |
| int xcb_property_changed | ( | xcb_property_handlers_t * | prophs, | |
| uint8_t | state, | |||
| xcb_window_t | window, | |||
| xcb_atom_t | atom | |||
| ) |
Notify that a property has changed and call handler function callback as needed.
| prophs | The property handlers. | |
| state | The property state. | |
| window | The window. | |
| atom | The property atom name. |
References xcb_event_get_xcb_connection(), and xcb_property_get_event_handlers().
| xcb_event_handlers_t* xcb_property_get_event_handlers | ( | xcb_property_handlers_t * | prophs | ) |
Get a event handlers from a property handlers data structure.
| prophs | The property handlers. |
Referenced by xcb_property_changed().
| void xcb_property_handlers_init | ( | xcb_property_handlers_t * | prophs, | |
| xcb_event_handlers_t * | evenths | |||
| ) |
Initialize a property handlers structure.
| prophs | The property handlers data structure pointer. | |
| evenths | The event handlers. |
| void xcb_property_handlers_wipe | ( | xcb_property_handlers_t * | prophs | ) |
Wipe a property handler structure.
| prophs | The property handlers data structure pointer. |
| uint8_t xcb_property_set_default_handler | ( | xcb_property_handlers_t * | prophs, | |
| uint32_t | long_len, | |||
| xcb_generic_property_handler_t | handler, | |||
| void * | data | |||
| ) |
Set the default property handler.
If a property does not have its own handler function, this one will be used.
| prophs | The property handlers. | |
| name | The property atom name. | |
| long_len | The maximum length of the property value that will be handled. | |
| handler | The handler callback function. | |
| data | Optional data that will be passed as argument of the handler callback function. Can be NULL safely if you do not need it. |
| uint8_t xcb_property_set_handler | ( | xcb_property_handlers_t * | prophs, | |
| xcb_atom_t | name, | |||
| uint32_t | long_len, | |||
| xcb_generic_property_handler_t | handler, | |||
| void * | data | |||
| ) |
Set a property handler for an event.
| prophs | The property handlers. | |
| name | The property atom name. | |
| long_len | The maximum length of the property value that will be handled. | |
| handler | The handler callback function. | |
| data | Optional data that will be passed as argument of the handler callback function. Can be NULL safely if you do not need it. |
Referenced by xcb_watch_wm_client_machine(), xcb_watch_wm_icon_name(), and xcb_watch_wm_name().
1.5.6