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

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<'de> Deserialize<'de> for ChangeWindowAttributesAux

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Hash for ChangeWindowAttributesAux

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for ChangeWindowAttributesAux

source§

fn cmp(&self, other: &ChangeWindowAttributesAux) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for ChangeWindowAttributesAux

source§

fn eq(&self, other: &ChangeWindowAttributesAux) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for ChangeWindowAttributesAux

source§

fn partial_cmp(&self, other: &ChangeWindowAttributesAux) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for ChangeWindowAttributesAux

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for ChangeWindowAttributesAux

source§

impl Eq for ChangeWindowAttributesAux

source§

impl StructuralPartialEq 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.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,