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
sourceimpl<'a> RawRequest for ChangeGc<'a>
impl<'a> RawRequest for ChangeGc<'a>
sourcefn raw_request(&self, c: &Connection, checked: bool) -> u64
fn raw_request(&self, c: &Connection, checked: bool) -> u64
Actual implementation of the request sending Read more
sourceimpl<'a> Request for ChangeGc<'a>
impl<'a> Request for ChangeGc<'a>
type Cookie = VoidCookie
type Cookie = VoidCookie
The default cookie associated to this request.
impl<'a> RequestWithoutReply for ChangeGc<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ChangeGc<'a>
impl<'a> Send for ChangeGc<'a>
impl<'a> Sync for ChangeGc<'a>
impl<'a> Unpin for ChangeGc<'a>
impl<'a> UnwindSafe for ChangeGc<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more