Struct xcb::x::ChangeProperty [−][src]
pub struct ChangeProperty<'a, P: PropEl> {
pub mode: PropMode,
pub window: Window,
pub property: Atom,
pub type: Atom,
pub data: &'a [P],
}
Expand description
Changes a window property
Sets 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.
Example
// Set the WM_NAME property of the window "XCB Example".
conn.send_request(&x::ChangeProperty {
mode: x::PropMode::Replace,
window,
property: x::ATOM_WM_NAME,
r#type: x::ATOM_STRING,
data: b"XCB Example",
});
This request has no reply.
Associated cookie types are VoidCookie and VoidCookieChecked.
Fields
mode: PropMode
window: Window
The window whose property you want to change.
property: Atom
The property you want to change (an atom).
type: Atom
The type of the property you want to change (an atom).
data: &'a [P]
The property data.
Trait Implementations
Actual implementation of the request sending Read more
type Cookie = VoidCookie
type Cookie = VoidCookie
The default cookie associated to this request.
Auto Trait Implementations
impl<'a, P> RefUnwindSafe for ChangeProperty<'a, P> where
P: RefUnwindSafe,
impl<'a, P> Send for ChangeProperty<'a, P> where
P: Sync,
impl<'a, P> Sync for ChangeProperty<'a, P> where
P: Sync,
impl<'a, P> Unpin for ChangeProperty<'a, P>
impl<'a, P> UnwindSafe for ChangeProperty<'a, P> where
P: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more