Function xcb::ffi::xproto::xcb_intern_atom [−][src]
pub unsafe extern "C" fn xcb_intern_atom(
c: *mut xcb_connection_t,
only_if_exists: u8,
name_len: u16,
name: *const c_char
) -> xcb_intern_atom_cookie_t
Get atom identifier by name
Retrieves the identifier (xcb_atom_t TODO) for the atom with the specified
name. Atoms are used in protocols like EWMH, for example to store window titles
(_NET_WM_NAME
atom) as property of a window.
If only_if_exists
is 0, the atom will be created if it does not already exist.
If only_if_exists
is 1, XCB_ATOM_NONE
will be returned if the atom does
not yet exist.