Struct x11rb::properties::WmSizeHints [−][src]
A structure representing a WM_SIZE_HINTS
property.
Fields
position: Option<(WmSizeHintsSpecification, i32, i32)>
The position that the window should be assigned.
Note that current versions of ICCCM only make use of the WmSizeHintsSpecification
field.
The later two fields exist only for backwards compatibility.
size: Option<(WmSizeHintsSpecification, i32, i32)>
The size that the window should be assigned.
Note that current versions of ICCCM only make use of the WmSizeHintsSpecification
field.
The later two fields exist only for backwards compatibility.
min_size: Option<(i32, i32)>
The minimum size that the window may be assigned.
max_size: Option<(i32, i32)>
The maximum size that the window may be assigned.
size_increment: Option<(i32, i32)>
The increment to be used for sizing the window together with base_size
.
aspect: Option<(AspectRatio, AspectRatio)>
The minimum and maximum aspect ratio.
base_size: Option<(i32, i32)>
The base size of the window.
This is used together with size_increment
.
win_gravity: Option<Gravity>
The gravity that is used to make room for window decorations.
Implementations
impl WmSizeHints
[src]
pub fn new() -> Self
[src]
Get a new, empty WmSizeHints
structure.
pub fn get<C: RequestConnection>(
conn: &C,
window: Window,
property: impl Into<Atom>
) -> Result<WmSizeHintsCookie<'_, C>, ConnectionError>
[src]
conn: &C,
window: Window,
property: impl Into<Atom>
) -> Result<WmSizeHintsCookie<'_, C>, ConnectionError>
Send a GetProperty
request for the given property of the given window
pub fn get_normal_hints<C: RequestConnection>(
conn: &C,
window: Window
) -> Result<WmSizeHintsCookie<'_, C>, ConnectionError>
[src]
conn: &C,
window: Window
) -> Result<WmSizeHintsCookie<'_, C>, ConnectionError>
Send a GetProperty
request for the WM_NORMAL_HINTS
property of the given window
pub fn from_reply(reply: &GetPropertyReply) -> Result<Self, ParseError>
[src]
Construct a new WmSizeHints
instance from a GetPropertyReply
.
The original WmSizeHints
request must have been for a WM_SIZE_HINTS
property for this
function to return sensible results.
pub fn set_normal_hints<'a, C: RequestConnection + ?Sized>(
&self,
conn: &'a C,
window: Window
) -> Result<VoidCookie<'a, C>, ConnectionError>
[src]
&self,
conn: &'a C,
window: Window
) -> Result<VoidCookie<'a, C>, ConnectionError>
Set these WM_SIZE_HINTS
on some window as the WM_NORMAL_HINTS
property.
pub fn set<'a, C: RequestConnection + ?Sized>(
&self,
conn: &'a C,
window: Window,
property: impl Into<Atom>
) -> Result<VoidCookie<'a, C>, ConnectionError>
[src]
&self,
conn: &'a C,
window: Window,
property: impl Into<Atom>
) -> Result<VoidCookie<'a, C>, ConnectionError>
Set these WM_SIZE_HINTS
on some window as the given property.
Trait Implementations
impl Clone for WmSizeHints
[src]
fn clone(&self) -> WmSizeHints
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for WmSizeHints
[src]
impl Debug for WmSizeHints
[src]
impl Default for WmSizeHints
[src]
fn default() -> WmSizeHints
[src]
impl Serialize for WmSizeHints
[src]
type Bytes = Vec<u8>
The value returned by serialize
. Read more
fn serialize(&self) -> Self::Bytes
[src]
fn serialize_into(&self, bytes: &mut Vec<u8>)
[src]
impl TryParse for WmSizeHints
[src]
Auto Trait Implementations
impl RefUnwindSafe for WmSizeHints
impl Send for WmSizeHints
impl Sync for WmSizeHints
impl Unpin for WmSizeHints
impl UnwindSafe for WmSizeHints
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> TryParseFd for T where
T: TryParse,
[src]
T: TryParse,
pub fn try_parse_fd(
&'a [u8],
&mut Vec<RawFdContainer, Global>
) -> Result<(T, &'a [u8]), ParseError>
[src]
&'a [u8],
&mut Vec<RawFdContainer, Global>
) -> Result<(T, &'a [u8]), ParseError>