pub struct NativeWindow<'a>(/* private fields */);Expand description
A reference to the AS3 object flash.display.NativeWindow.
Some properties and methods are not yet implemented.
Implementations§
Source§impl<'a> NativeWindow<'a>
impl<'a> NativeWindow<'a>
pub fn get_stage(self) -> Stage<'a>
Sourcepub fn with<F, R>(self, f: F) -> R
pub fn with<F, R>(self, f: F) -> R
Passes the underlying native handle to the provided closure.
The NonNullHandle is only valid for the duration of this closure call.
During the closure call stack, the Flash runtime is in a restricted state
where most APIs are unavailable, and Sync is used to prevent illegal
FFI call ordering.
Trait Implementations§
Source§impl<'a> AsNonNullObject<'a> for NativeWindow<'a>
impl<'a> AsNonNullObject<'a> for NativeWindow<'a>
fn as_non_null_object(self) -> NonNullObject<'a>
Source§impl<'a> AsObject<'a> for NativeWindow<'a>
impl<'a> AsObject<'a> for NativeWindow<'a>
fn as_object(self) -> Object<'a>
Source§unsafe fn as_unchecked<T: AsObject<'a>>(self) -> T
unsafe fn as_unchecked<T: AsObject<'a>>(self) -> T
Casts this object to
T without checks. Read moreSource§unsafe fn from_unchecked<O: AsObject<'a>>(object: O) -> Self
unsafe fn from_unchecked<O: AsObject<'a>>(object: O) -> Self
Casts an object to
Self without checks. Read morefn as_ptr(self) -> FREObject
fn is_null(self) -> bool
fn get_property(self, name: UCStr) -> Result<Object<'a>, ExternalError<'a>>
fn set_property<O: AsObject<'a>>( self, name: UCStr, value: O, ) -> Result<(), ExternalError<'a>>
fn call_method( self, name: UCStr, args: Option<&[Object<'_>]>, ) -> Result<Object<'a>, ExternalError<'a>>
Source§impl<'a> Clone for NativeWindow<'a>
impl<'a> Clone for NativeWindow<'a>
Source§fn clone(&self) -> NativeWindow<'a>
fn clone(&self) -> NativeWindow<'a>
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<'a> Debug for NativeWindow<'a>
impl<'a> Debug for NativeWindow<'a>
Source§impl Display for NativeWindow<'_>
impl Display for NativeWindow<'_>
Source§impl From<NativeWindow<'_>> for FREObject
impl From<NativeWindow<'_>> for FREObject
Source§fn from(object: NativeWindow<'_>) -> Self
fn from(object: NativeWindow<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<NativeWindow<'a>> for NonNullObject<'a>
impl<'a> From<NativeWindow<'a>> for NonNullObject<'a>
Source§fn from(object: NativeWindow<'a>) -> Self
fn from(object: NativeWindow<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for NativeWindow<'a>
impl<'a> PartialEq for NativeWindow<'a>
Source§impl ToUcstrLossy for NativeWindow<'_>
impl ToUcstrLossy for NativeWindow<'_>
fn to_ucstr_lossy(&self) -> UCStr
impl<'a> Copy for NativeWindow<'a>
impl<'a> Eq for NativeWindow<'a>
impl<'a> StructuralPartialEq for NativeWindow<'a>
Auto Trait Implementations§
impl<'a> Freeze for NativeWindow<'a>
impl<'a> RefUnwindSafe for NativeWindow<'a>
impl<'a> !Send for NativeWindow<'a>
impl<'a> !Sync for NativeWindow<'a>
impl<'a> Unpin for NativeWindow<'a>
impl<'a> UnsafeUnpin for NativeWindow<'a>
impl<'a> UnwindSafe for NativeWindow<'a>
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