xcb_change_property - Online Linux Manual PageSection : 3
Updated : libxcb 1.13.1
Source : X Version 11
Note : XCB Requests

NAMExcb_change_property − Changes a window property

SYNOPSIS#include <xcb/xproto.h>

Request functionxcb_void_cookie_t xcb_change_property(xcb_connection_t *conn, uint8_t mode, xcb_window_t window, xcb_atom_t property, xcb_atom_t type, uint8_t format, uint32_t data_len, const void *data);

REQUEST ARGUMENTSconn The XCB connection to X11. mode One of the following values: XCB_PROP_MODE_REPLACE Discard the previous property value and store the new data. XCB_PROP_MODE_PREPEND Insert the new data before the beginning of existing data. The format must match existing property value. If the property is undefined, it is treated as defined with the correct type and format with zero-length data. XCB_PROP_MODE_APPEND Insert the new data after the beginning of existing data. The format must match existing property value. If the property is undefined, it is treated as defined with the correct type and format with zero-length data. window The window whose property you want to change. property The property you want to change (an atom). type The type of the property you want to change (an atom). format Specifies whether the data should be viewed as a list of 8-bit, 16-bit or 32-bit quantities. Possible values are 8, 16 and 32. This information allows the X server to correctly perform byte-swap operations as necessary. data_len Specifies the number of elements (see format). data The property data.

DESCRIPTIONSets or updates a property on the specified window. Properties are for example the window title (WM_NAME) or its minimum size (WM_NORMAL_HINTS). Protocols such as EWMH also use properties - for example EWMH defines the window title, encoded as UTF-8 string, in the _NET_WM_NAME property.

RETURN VALUEReturns an xcb_void_cookie_t. Errors (if any) have to be handled in the event loop. If you want to handle errors directly with xcb_request_check instead, use xcb_change_property_checked. See xcb-requests(3) for details.

ERRORSxcb_alloc_error_t The X server could not store the property (no memory?). xcb_atom_error_t property or type do not refer to a valid atom. xcb_match_error_t TODO: reasons? xcb_value_error_t TODO: reasons? xcb_window_error_t The specified window does not exist.

EXAMPLE/* * Sets the WM_NAME property of the window to "XCB Example". * */ void my_example(xcb_connection_t *conn, xcb_window_t window) { xcb_change_property(conn, XCB_PROP_MODE_REPLACE, window, XCB_ATOM_WM_NAME, XCB_ATOM_STRING, 8, strlen("XCB Example"), "XCB Example"); xcb_flush(conn); }

SEE ALSOxcb-requests(3), xcb-examples(3), xcb_intern_atom(3), xprop(1)

AUTHORGenerated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
0
Johanes Gumabo
Data Size   :   13,763 byte
man-xcb_change_property.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 237,093
Visitor ID   :     :  
Visitor IP   :   3.22.74.192   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.