Struct x11rb_protocol::protocol::xproto::CreateWindowAux

source ·
pub struct CreateWindowAux {
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 create_window 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 CreateWindowAux

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 CreateWindowAux

source§

fn clone(&self) -> CreateWindowAux

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 CreateWindowAux

source§

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

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

impl Default for CreateWindowAux

source§

fn default() -> CreateWindowAux

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

impl<'de> Deserialize<'de> for CreateWindowAux

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 CreateWindowAux

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 CreateWindowAux

source§

fn cmp(&self, other: &CreateWindowAux) -> 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 CreateWindowAux

source§

fn eq(&self, other: &CreateWindowAux) -> 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 CreateWindowAux

source§

fn partial_cmp(&self, other: &CreateWindowAux) -> 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 CreateWindowAux

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 CreateWindowAux

source§

impl Eq for CreateWindowAux

source§

impl StructuralPartialEq for CreateWindowAux

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>,