#[repr(transparent)]pub struct XComponentRaw(pub *mut OH_NativeXComponent);Tuple Fields§
§0: *mut OH_NativeXComponentImplementations§
Source§impl XComponentRaw
impl XComponentRaw
Sourcepub fn size(&self, win: WindowRaw) -> Result<XComponentSize>
pub fn size(&self, win: WindowRaw) -> Result<XComponentSize>
Get the current XComponent’s surface size
Sourcepub fn offset(&self, win: WindowRaw) -> Result<XComponentOffset>
pub fn offset(&self, win: WindowRaw) -> Result<XComponentOffset>
Get the offset of the surface held by the current XComponent.
Trait Implementations§
Source§impl Clone for XComponentRaw
impl Clone for XComponentRaw
Source§fn clone(&self) -> XComponentRaw
fn clone(&self) -> XComponentRaw
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 XComponentRaw
impl Debug for XComponentRaw
impl Copy for XComponentRaw
Auto Trait Implementations§
impl Freeze for XComponentRaw
impl RefUnwindSafe for XComponentRaw
impl !Send for XComponentRaw
impl !Sync for XComponentRaw
impl Unpin for XComponentRaw
impl UnsafeUnpin for XComponentRaw
impl UnwindSafe for XComponentRaw
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