pub struct ChangeGc<'a> {
pub gc: Gcontext,
pub value_list: &'a [Gc],
}
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]
Values for each of the components specified in the bitmask value_mask
. The
order has to correspond to the order of possible value_mask
bits. See the
example.
Trait Implementations§
source§impl<'a> RawRequest for ChangeGc<'a>
impl<'a> RawRequest for ChangeGc<'a>
source§fn 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
impl<'a> RequestWithoutReply for ChangeGc<'a>
Auto Trait Implementations§
impl<'a> Freeze for ChangeGc<'a>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)