pub struct GA(/* private fields */);
Available on crate features
kernel
and user
only.Expand description
HWND::GetAncestor
flags
(u32
).
Implementations§
source§impl GA
impl GA
sourcepub const unsafe fn from_raw(v: u32) -> Self
pub const unsafe fn from_raw(v: u32) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
sourcepub const fn raw(&self) -> u32
pub const fn raw(&self) -> u32
Returns the primitive integer underlying value.
This method is similar to Into
, but it
is const
, therefore it can be used in
const contexts.
source§impl GA
impl GA
sourcepub const PARENT: Self = _
pub const PARENT: Self = _
Retrieves the parent window. This does not include the owner as it does
with the HWND::GetParent
function.
sourcepub const ROOT: Self = _
pub const ROOT: Self = _
Retrieves the root window by walking the chain of parent windows.
Returns the
closest
parent with WS::OVERLAPPED
or
WS::POPUP
.
sourcepub const ROOTOWNER: Self = _
pub const ROOTOWNER: Self = _
Retrieves the owned root window by walking the chain of parent and owner
windows returned by
HWND::GetParent
.
Returns the
furthest
parent with WS::OVERLAPPED
or
WS::POPUP
which usually is the main
application window.
Trait Implementations§
source§impl IntUnderlying for GA
impl IntUnderlying for GA
source§impl Ord for GA
impl Ord for GA
source§impl PartialOrd for GA
impl PartialOrd for GA
1.0.0 · source§fn 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 moreimpl Copy for GA
impl Eq for GA
impl NativeConst for GA
impl Send for GA
impl StructuralPartialEq for GA
Auto Trait Implementations§
impl Freeze for GA
impl RefUnwindSafe for GA
impl Sync for GA
impl Unpin for GA
impl UnwindSafe for GA
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