[−][src]Struct breadx::auto::xproto::Window
Fields
xid: XID
Implementations
impl Window
[src]
pub const fn const_from_xid(xid: XID) -> Self
[src]
impl Window
[src]
pub fn map<Conn: Connection>(self, dpy: &mut Display<Conn>) -> Result
[src]
Map this window to the screen.
pub async fn map_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>
) -> Result
[src]
self,
dpy: &'_ mut Display<Conn>
) -> Result
Map this window to the screen, async redox.
pub fn change_property<Conn: Connection, T: AsByteSequence>(
self,
dpy: &mut Display<Conn>,
property: Atom,
property_type: PropertyType,
format: PropertyFormat,
mode: PropMode,
data: &[T]
) -> Result<()>
[src]
self,
dpy: &mut Display<Conn>,
property: Atom,
property_type: PropertyType,
format: PropertyFormat,
mode: PropMode,
data: &[T]
) -> Result<()>
Change a property of the window, given an atom that identifies that property.
pub async fn change_property_async<Conn: Connection, T: AsByteSequence, '_, '_>(
self,
dpy: &'_ mut Display<Conn>,
property: Atom,
property_type: PropertyType,
format: PropertyFormat,
mode: PropMode,
data: &'_ [T]
) -> Result<()>
[src]
self,
dpy: &'_ mut Display<Conn>,
property: Atom,
property_type: PropertyType,
format: PropertyFormat,
mode: PropMode,
data: &'_ [T]
) -> Result<()>
Change a property of the window, async redox.
pub fn delete_property<Conn: Connection>(
self,
dpy: &mut Display<Conn>,
property: Atom
) -> Result
[src]
self,
dpy: &mut Display<Conn>,
property: Atom
) -> Result
Delete a property of this window.
pub async fn delete_property_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>,
property: Atom
) -> Result
[src]
self,
dpy: &'_ mut Display<Conn>,
property: Atom
) -> Result
Delete a property of this window, async redox.
pub fn set_wm_protocols<Conn: Connection>(
self,
dpy: &mut Display<Conn>,
protocols: &[Atom]
) -> Result<()>
[src]
self,
dpy: &mut Display<Conn>,
protocols: &[Atom]
) -> Result<()>
Set the protocols for the WM in regards to this window.
pub async fn set_wm_protocols_async<Conn: Connection, '_, '_>(
self,
dpy: &'_ mut Display<Conn>,
protocols: &'_ [Atom]
) -> Result<()>
[src]
self,
dpy: &'_ mut Display<Conn>,
protocols: &'_ [Atom]
) -> Result<()>
Set the WM protocols for this window, async redox.
pub fn set_title<Conn: Connection>(
self,
dpy: &mut Display<Conn>,
title: &str
) -> Result<()>
[src]
self,
dpy: &mut Display<Conn>,
title: &str
) -> Result<()>
Set the title for this window.
pub async fn set_title_async<Conn: Connection, '_, '_>(
self,
dpy: &'_ mut Display<Conn>,
title: &'_ str
) -> Result<()>
[src]
self,
dpy: &'_ mut Display<Conn>,
title: &'_ str
) -> Result<()>
Set the title for this window, async redox.
pub fn window_attributes<Conn: Connection>(
self,
dpy: &mut Display<Conn>
) -> Result<RequestCookie<GetWindowAttributesRequest>>
[src]
self,
dpy: &mut Display<Conn>
) -> Result<RequestCookie<GetWindowAttributesRequest>>
Get the current set of window attributes for this window.
pub async fn window_attributes_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>
) -> Result<RequestCookie<GetWindowAttributesRequest>>
[src]
self,
dpy: &'_ mut Display<Conn>
) -> Result<RequestCookie<GetWindowAttributesRequest>>
Get the current set of window attributes for this window, async redox.
pub fn window_attributes_immediate<Conn: Connection>(
self,
dpy: &mut Display<Conn>
) -> Result<WindowAttributes>
[src]
self,
dpy: &mut Display<Conn>
) -> Result<WindowAttributes>
Immediately get the current set of window attributes for this window.
pub async fn window_attributes_immediate_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>
) -> Result<WindowAttributes>
[src]
self,
dpy: &'_ mut Display<Conn>
) -> Result<WindowAttributes>
Immediately get the current set of window attributes for this window, async redox.
pub fn geometry<Conn: Connection>(
self,
dpy: &mut Display<Conn>
) -> Result<RequestCookie<GetGeometryRequest>>
[src]
self,
dpy: &mut Display<Conn>
) -> Result<RequestCookie<GetGeometryRequest>>
Get the geometry of this window.
pub async fn geometry_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>
) -> Result<RequestCookie<GetGeometryRequest>>
[src]
self,
dpy: &'_ mut Display<Conn>
) -> Result<RequestCookie<GetGeometryRequest>>
Get the geometry of this window, async redox.
pub fn geometry_immediate<Conn: Connection>(
self,
dpy: &mut Display<Conn>
) -> Result<DrawableGeomtry>
[src]
self,
dpy: &mut Display<Conn>
) -> Result<DrawableGeomtry>
Immediately get the geometry of this window.
pub async fn geometry_immediate_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>
) -> Result<DrawableGeomtry>
[src]
self,
dpy: &'_ mut Display<Conn>
) -> Result<DrawableGeomtry>
Immediately get the geometry of this window, async redox.
pub fn change_attributes<Conn: Connection>(
self,
dpy: &mut Display<Conn>,
props: WindowParameters
) -> Result
[src]
self,
dpy: &mut Display<Conn>,
props: WindowParameters
) -> Result
Change the properties of this window.
pub async fn change_attributes_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>,
props: WindowParameters
) -> Result
[src]
self,
dpy: &'_ mut Display<Conn>,
props: WindowParameters
) -> Result
Change the properties of this window, async redox.
pub fn set_background_color<Conn: Connection>(
self,
dpy: &mut Display<Conn>,
clr: u32
) -> Result<()>
[src]
self,
dpy: &mut Display<Conn>,
clr: u32
) -> Result<()>
Set this window's background color.
pub async fn set_background_color_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>,
clr: u32
) -> Result<()>
[src]
self,
dpy: &'_ mut Display<Conn>,
clr: u32
) -> Result<()>
Set this window's background color, async redox.
pub fn configure<Conn: Connection>(
self,
dpy: &mut Display<Conn>,
props: ConfigureWindowParameters
) -> Result
[src]
self,
dpy: &mut Display<Conn>,
props: ConfigureWindowParameters
) -> Result
Configure the window's physical properties.
pub async fn configure_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>,
props: ConfigureWindowParameters
) -> Result
[src]
self,
dpy: &'_ mut Display<Conn>,
props: ConfigureWindowParameters
) -> Result
Configure the window's physical properties, async redox.
pub fn set_border_width<Conn: Connection>(
self,
dpy: &mut Display<Conn>,
width: u32
) -> Result
[src]
self,
dpy: &mut Display<Conn>,
width: u32
) -> Result
Set the border of this window.
pub async fn set_border_width_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>,
width: u32
) -> Result
[src]
self,
dpy: &'_ mut Display<Conn>,
width: u32
) -> Result
Set the border of this window, async redox.
pub fn set_colormap<Conn: Connection>(
self,
dpy: &mut Display<Conn>,
colormap: Colormap
) -> Result
[src]
self,
dpy: &mut Display<Conn>,
colormap: Colormap
) -> Result
Change the colormap associated with this window.
pub async fn set_colormap_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>,
colormap: Colormap
) -> Result
[src]
self,
dpy: &'_ mut Display<Conn>,
colormap: Colormap
) -> Result
Change the colormap associated with this window.
pub fn change_save_set<Conn: Connection>(
self,
dpy: &mut Display<Conn>,
mode: SetMode
) -> Result
[src]
self,
dpy: &mut Display<Conn>,
mode: SetMode
) -> Result
pub async fn change_save_set_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>,
mode: SetMode
) -> Result
[src]
self,
dpy: &'_ mut Display<Conn>,
mode: SetMode
) -> Result
pub fn resize<Conn: Connection>(
self,
dpy: &mut Display<Conn>,
width: u32,
height: u32
) -> Result
[src]
self,
dpy: &mut Display<Conn>,
width: u32,
height: u32
) -> Result
Resize the window.
pub async fn resize_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>,
width: u32,
height: u32
) -> Result
[src]
self,
dpy: &'_ mut Display<Conn>,
width: u32,
height: u32
) -> Result
Resize the window, async redox.
pub fn move_resize<Conn: Connection>(
self,
dpy: &mut Display<Conn>,
x: i32,
y: i32,
width: u32,
height: u32
) -> Result
[src]
self,
dpy: &mut Display<Conn>,
x: i32,
y: i32,
width: u32,
height: u32
) -> Result
Move and resize the window.
pub async fn move_resize_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>,
x: i32,
y: i32,
width: u32,
height: u32
) -> Result
[src]
self,
dpy: &'_ mut Display<Conn>,
x: i32,
y: i32,
width: u32,
height: u32
) -> Result
Move and resize the window, async redox.
pub fn circulate<Conn: Connection>(
self,
dpy: &mut Display<Conn>,
direction: Circulate
) -> Result
[src]
self,
dpy: &mut Display<Conn>,
direction: Circulate
) -> Result
pub async fn circulate_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>,
direction: Circulate
) -> Result
[src]
self,
dpy: &'_ mut Display<Conn>,
direction: Circulate
) -> Result
pub fn clear_area<Conn: Connection>(
self,
dpy: &mut Display<Conn>,
x: i16,
y: i16,
width: u16,
height: u16,
exposures: bool
) -> Result
[src]
self,
dpy: &mut Display<Conn>,
x: i16,
y: i16,
width: u16,
height: u16,
exposures: bool
) -> Result
Clear an area of the window.
pub async fn clear_area_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>,
x: i16,
y: i16,
width: u16,
height: u16,
exposures: bool
) -> Result
[src]
self,
dpy: &'_ mut Display<Conn>,
x: i16,
y: i16,
width: u16,
height: u16,
exposures: bool
) -> Result
Clear an area of the window, async redox.
pub fn clear<Conn: Connection>(self, dpy: &mut Display<Conn>) -> Result
[src]
Clear the entire window.
pub async fn clear_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>
) -> Result
[src]
self,
dpy: &'_ mut Display<Conn>
) -> Result
Clear the entire window, async redox.
pub fn convert_selection<Conn: Connection>(
self,
dpy: &mut Display<Conn>,
selection: Atom,
target: Atom,
property: Atom,
time: Timestamp
) -> Result
[src]
self,
dpy: &mut Display<Conn>,
selection: Atom,
target: Atom,
property: Atom,
time: Timestamp
) -> Result
pub async fn convert_selection_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>,
selection: Atom,
target: Atom,
property: Atom,
time: Timestamp
) -> Result
[src]
self,
dpy: &'_ mut Display<Conn>,
selection: Atom,
target: Atom,
property: Atom,
time: Timestamp
) -> Result
pub fn set_cursor<Conn: Connection>(
self,
dpy: &mut Display<Conn>,
cursor: Cursor
) -> Result
[src]
self,
dpy: &mut Display<Conn>,
cursor: Cursor
) -> Result
Set the cursor used by this window.
pub async fn set_cursor_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>,
cursor: Cursor
) -> Result
[src]
self,
dpy: &'_ mut Display<Conn>,
cursor: Cursor
) -> Result
Set the cursor used by this window, async redox.
pub fn destroy_subwindows<Conn: Connection>(
self,
dpy: &mut Display<Conn>
) -> Result
[src]
self,
dpy: &mut Display<Conn>
) -> Result
Destroy this window's subwindows.
pub async fn destroy_subwindows_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>
) -> Result
[src]
self,
dpy: &'_ mut Display<Conn>
) -> Result
Destroy this window's subwindows, async redox.
pub fn free<Conn: Connection>(self, dpy: &mut Display<Conn>) -> Result
[src]
Free this window.
pub async fn free_async<Conn: Connection, '_>(
self,
dpy: &'_ mut Display<Conn>
) -> Result
[src]
self,
dpy: &'_ mut Display<Conn>
) -> Result
Free this window, async redox.
Trait Implementations
impl Clone for Window
[src]
impl Copy for Window
[src]
impl Debug for Window
[src]
impl Default for Window
[src]
impl Eq for Window
[src]
impl From<Window> for Drawable
[src]
impl Ord for Window
[src]
pub fn cmp(&self, other: &Window) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Window> for Window
[src]
impl PartialOrd<Window> for Window
[src]
pub fn partial_cmp(&self, other: &Window) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Window) -> bool
[src]
pub fn le(&self, other: &Window) -> bool
[src]
pub fn gt(&self, other: &Window) -> bool
[src]
pub fn ge(&self, other: &Window) -> bool
[src]
impl StructuralEq for Window
[src]
impl StructuralPartialEq for Window
[src]
impl XidType for Window
[src]
Auto Trait Implementations
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnwindSafe for Window
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsByteSequence for T where
T: XidType,
[src]
T: XidType,
pub fn size(&Self) -> usize
[src]
pub fn as_bytes(&Self, &mut [u8]) -> usize
[src]
pub fn from_bytes(&[u8]) -> Option<(T, usize)>
[src]
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>,