Struct x11rb_protocol::protocol::xproto::MapWindowRequest
source · [−]pub struct MapWindowRequest {
pub window: Window,
}
Expand description
Makes a window visible.
Maps the specified window. This means making the window visible (as long as its parent is visible).
This MapWindow request will be translated to a MapRequest request if a window manager is running. The window manager then decides to either map the window or not. Set the override-redirect window attribute to true if you want to bypass this mechanism.
If the window manager decides to map the window (or if no window manager is running), a MapNotify event is generated.
If the window becomes viewable and no earlier contents for it are remembered, the X server tiles the window with its background. If the window’s background is undefined, the existing screen contents are not altered, and the X server generates zero or more Expose events.
If the window type is InputOutput, an Expose event will be generated when the window becomes visible. The normal response to an Expose event should be to repaint the window.
Fields
window
- The window to make visible.
Errors
Match
- The specified window does not exist.
See
MapNotify
: eventExpose
: eventUnmapWindow
: request
Fields
window: Window
Implementations
sourceimpl MapWindowRequest
impl MapWindowRequest
sourcepub fn serialize(self) -> BufWithFds<PiecewiseBuf<'static>>
pub fn serialize(self) -> BufWithFds<PiecewiseBuf<'static>>
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<Self, ParseError>
pub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Trait Implementations
sourceimpl Clone for MapWindowRequest
impl Clone for MapWindowRequest
sourcefn clone(&self) -> MapWindowRequest
fn clone(&self) -> MapWindowRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MapWindowRequest
impl Debug for MapWindowRequest
sourceimpl Default for MapWindowRequest
impl Default for MapWindowRequest
sourcefn default() -> MapWindowRequest
fn default() -> MapWindowRequest
Returns the “default value” for a type. Read more
sourceimpl Hash for MapWindowRequest
impl Hash for MapWindowRequest
sourceimpl Ord for MapWindowRequest
impl Ord for MapWindowRequest
sourceimpl PartialEq<MapWindowRequest> for MapWindowRequest
impl PartialEq<MapWindowRequest> for MapWindowRequest
sourcefn eq(&self, other: &MapWindowRequest) -> bool
fn eq(&self, other: &MapWindowRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MapWindowRequest) -> bool
fn ne(&self, other: &MapWindowRequest) -> bool
This method tests for !=
.
sourceimpl PartialOrd<MapWindowRequest> for MapWindowRequest
impl PartialOrd<MapWindowRequest> for MapWindowRequest
sourcefn partial_cmp(&self, other: &MapWindowRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &MapWindowRequest) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
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 · sourcefn le(&self, other: &Rhs) -> bool
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
sourceimpl Request for MapWindowRequest
impl Request for MapWindowRequest
impl Copy for MapWindowRequest
impl Eq for MapWindowRequest
impl StructuralEq for MapWindowRequest
impl StructuralPartialEq for MapWindowRequest
impl VoidRequest for MapWindowRequest
Auto Trait Implementations
impl RefUnwindSafe for MapWindowRequest
impl Send for MapWindowRequest
impl Sync for MapWindowRequest
impl Unpin for MapWindowRequest
impl UnwindSafe for MapWindowRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more