pub struct ChangeWindowAttributesAux {
Show 15 fields pub background_pixmap: Option<Pixmap>, pub background_pixel: Option<u32>, pub border_pixmap: Option<Pixmap>, pub border_pixel: Option<u32>, pub bit_gravity: Option<Gravity>, pub win_gravity: Option<Gravity>, pub backing_store: Option<BackingStore>, pub backing_planes: Option<u32>, pub backing_pixel: Option<u32>, pub override_redirect: Option<Bool32>, pub save_under: Option<Bool32>, pub event_mask: Option<EventMask>, pub do_not_propogate_mask: Option<EventMask>, pub colormap: Option<Colormap>, pub cursor: Option<Cursor>,
}
Expand description

Auxiliary and optional information for the change_window_attributes function

Fields§

§background_pixmap: Option<Pixmap>§background_pixel: Option<u32>§border_pixmap: Option<Pixmap>§border_pixel: Option<u32>§bit_gravity: Option<Gravity>§win_gravity: Option<Gravity>§backing_store: Option<BackingStore>§backing_planes: Option<u32>§backing_pixel: Option<u32>§override_redirect: Option<Bool32>§save_under: Option<Bool32>§event_mask: Option<EventMask>§do_not_propogate_mask: Option<EventMask>§colormap: Option<Colormap>§cursor: Option<Cursor>

Implementations§

source§

impl ChangeWindowAttributesAux

source

fn try_parse(value: &[u8], value_mask: u32) -> Result<(Self, &[u8]), ParseError>

source§

impl ChangeWindowAttributesAux

source

fn serialize(&self, value_mask: u32) -> Vec<u8>

source

fn serialize_into(&self, bytes: &mut Vec<u8>, value_mask: u32)

source§

impl ChangeWindowAttributesAux

source

fn switch_expr(&self) -> u32

source§

impl ChangeWindowAttributesAux

source

pub fn new() -> Self

Create a new instance with all fields unset / not present.

source

pub fn background_pixmap<I>(self, value: I) -> Self
where I: Into<Option<Pixmap>>,

Set the background_pixmap field of this structure.

source

pub fn background_pixel<I>(self, value: I) -> Self
where I: Into<Option<u32>>,

Set the background_pixel field of this structure.

source

pub fn border_pixmap<I>(self, value: I) -> Self
where I: Into<Option<Pixmap>>,

Set the border_pixmap field of this structure.

source

pub fn border_pixel<I>(self, value: I) -> Self
where I: Into<Option<u32>>,

Set the border_pixel field of this structure.

source

pub fn bit_gravity<I>(self, value: I) -> Self
where I: Into<Option<Gravity>>,

Set the bit_gravity field of this structure.

source

pub fn win_gravity<I>(self, value: I) -> Self
where I: Into<Option<Gravity>>,

Set the win_gravity field of this structure.

source

pub fn backing_store<I>(self, value: I) -> Self

Set the backing_store field of this structure.

source

pub fn backing_planes<I>(self, value: I) -> Self
where I: Into<Option<u32>>,

Set the backing_planes field of this structure.

source

pub fn backing_pixel<I>(self, value: I) -> Self
where I: Into<Option<u32>>,

Set the backing_pixel field of this structure.

source

pub fn override_redirect<I>(self, value: I) -> Self
where I: Into<Option<Bool32>>,

Set the override_redirect field of this structure.

source

pub fn save_under<I>(self, value: I) -> Self
where I: Into<Option<Bool32>>,

Set the save_under field of this structure.

source

pub fn event_mask<I>(self, value: I) -> Self
where I: Into<Option<EventMask>>,

Set the event_mask field of this structure.

source

pub fn do_not_propogate_mask<I>(self, value: I) -> Self
where I: Into<Option<EventMask>>,

Set the do_not_propogate_mask field of this structure.

source

pub fn colormap<I>(self, value: I) -> Self
where I: Into<Option<Colormap>>,

Set the colormap field of this structure.

source

pub fn cursor<I>(self, value: I) -> Self
where I: Into<Option<Cursor>>,

Set the cursor field of this structure.

Trait Implementations§

source§

impl Clone for ChangeWindowAttributesAux

source§

fn clone(&self) -> ChangeWindowAttributesAux

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ChangeWindowAttributesAux

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ChangeWindowAttributesAux

source§

fn default() -> ChangeWindowAttributesAux

Returns the “default value” for a type. Read more
source§

impl Copy for ChangeWindowAttributesAux

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.