pub struct WmHints {
pub input: Option<bool>,
pub initial_state: Option<WmHintsState>,
pub icon_pixmap: Option<Pixmap>,
pub icon_window: Option<Window>,
pub icon_position: Option<(i32, i32)>,
pub icon_mask: Option<Pixmap>,
pub window_group: Option<Window>,
pub urgent: bool,
}
Expand description
A structure representing a WM_HINTS
property.
Fields§
§input: Option<bool>
Whether the window manager may set the input focus to this window.
See ICCCM §4.1.7 for details.
initial_state: Option<WmHintsState>
The state that the window should be when it leaves the Withdrawn state.
icon_pixmap: Option<Pixmap>
A pixmap that represents the icon of this window.
icon_window: Option<Window>
A window that should be used as icon.
icon_position: Option<(i32, i32)>
The position where the icon should be shown.
icon_mask: Option<Pixmap>
A mask for icon_pixmap
.
This allows nonrectangular icons.
window_group: Option<Window>
A window that represents a group of windows.
The specified window is called the “group leader”. All windows with the same group leader are part of the same group.
urgent: bool
Indication that the window contents are urgent.
Urgency means that a timely response of the user is required. The window manager must make some effort to draw the user’s attention to this window while this flag is set.
Implementations§
Source§impl WmHints
impl WmHints
Sourcepub fn get<C: RequestConnection>(
conn: &C,
window: Window,
) -> Result<WmHintsCookie<'_, C>, ConnectionError>
pub fn get<C: RequestConnection>( conn: &C, window: Window, ) -> Result<WmHintsCookie<'_, C>, ConnectionError>
Send a GetProperty
request for the WM_HINTS
property of the given window
Sourcepub fn from_reply(reply: &GetPropertyReply) -> Result<Option<Self>, ParseError>
pub fn from_reply(reply: &GetPropertyReply) -> Result<Option<Self>, ParseError>
Construct a new WmHints
instance from a GetPropertyReply
.
The original WmHints
request must have been for a WM_HINTS
property for this
function to return sensible results.
Sourcepub fn set<'a, C: RequestConnection + ?Sized>(
&self,
conn: &'a C,
window: Window,
) -> Result<VoidCookie<'a, C>, ConnectionError>
pub fn set<'a, C: RequestConnection + ?Sized>( &self, conn: &'a C, window: Window, ) -> Result<VoidCookie<'a, C>, ConnectionError>
Set these WM_HINTS
on some window.
Trait Implementations§
impl Copy for WmHints
Auto Trait Implementations§
impl Freeze for WmHints
impl RefUnwindSafe for WmHints
impl Send for WmHints
impl Sync for WmHints
impl Unpin for WmHints
impl UnwindSafe for WmHints
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)