pub enum WindowIdentifierType {
X11(c_ulong),
Wayland(String),
}Available on crate feature
backend only.Expand description
Supported WindowIdentifier kinds
Variants§
Implementations§
Source§impl WindowIdentifierType
impl WindowIdentifierType
Sourcepub fn set_parent_of(&self, window: &impl IsA<Window>) -> bool
Available on crate features gtk4_wayland or gtk4_x11 only.
pub fn set_parent_of(&self, window: &impl IsA<Window>) -> bool
gtk4_wayland or gtk4_x11 only.Sets the given window as a modal child of the window represented by self.
The different combinations of window types and their support is as per follows.
- Wayland child window, Wayland parent window - supported.
- Wayland child window, X11 parent window - unsupported.
- X11 child window, Wayland parent window - unsupported.
- X11 child window, X11 parent window - supported.
This is useful in backend implementations as the portal dialogs have to be modal and grouped together with the application that launched the request.
Realizes the window if it is not realized yet.
Returns true on success.
Trait Implementations§
Source§impl Clone for WindowIdentifierType
impl Clone for WindowIdentifierType
Source§fn clone(&self) -> WindowIdentifierType
fn clone(&self) -> WindowIdentifierType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowIdentifierType
impl Debug for WindowIdentifierType
Source§impl<'de> Deserialize<'de> for WindowIdentifierType
impl<'de> Deserialize<'de> for WindowIdentifierType
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
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 Display for WindowIdentifierType
impl Display for WindowIdentifierType
Source§impl FromStr for WindowIdentifierType
impl FromStr for WindowIdentifierType
Source§impl PartialEq for WindowIdentifierType
impl PartialEq for WindowIdentifierType
Source§impl Serialize for WindowIdentifierType
impl Serialize for WindowIdentifierType
Source§impl Type for WindowIdentifierType
impl Type for WindowIdentifierType
impl Eq for WindowIdentifierType
impl StructuralPartialEq for WindowIdentifierType
Auto Trait Implementations§
impl Freeze for WindowIdentifierType
impl RefUnwindSafe for WindowIdentifierType
impl Send for WindowIdentifierType
impl Sync for WindowIdentifierType
impl Unpin for WindowIdentifierType
impl UnwindSafe for WindowIdentifierType
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
Source§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
Source§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.