Struct xcb::x::ChangeGc [−][src]
Expand description
change graphics context components
Changes the components specified by value_mask
for the specified graphics context.
Example
// Change the foreground and background component
// of a graphics context to white on black.
// `value_list` components order must be in the same order
// than in the `Gc` enum.
conn.send_request(&x::ChangeGc {
gc,
value_list: &[
x::Gc::Foreground(screen.white_pixel()),
x::Gc::Background(screen.black_pixel()),
],
});
conn.flush()?;
This request has no reply.
Associated cookie types are VoidCookie and VoidCookieChecked.
Fields
gc: Gcontext
The graphics context to change.
value_list: &'a [Gc]
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> RefUnwindSafe for ChangeGc<'a>
impl<'a> UnwindSafe for ChangeGc<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more