Skip to main content

IFrnTopLevel

Struct IFrnTopLevel 

Source
pub struct IFrnTopLevel { /* private fields */ }

Implementations§

Source§

impl IFrnTopLevel

Source

pub fn from_impl<T: IFrnTopLevelImpl + 'static>( value: T, ) -> ComPtr<IFrnTopLevel>

Wraps a Rust implementation into a COM object native code can call.

Source

pub fn get_client_size(&self) -> Result<FrnSize, HResult>

IFrnTopLevel::GetClientSize

Source

pub fn get_scaling(&self) -> Result<f64, HResult>

IFrnTopLevel::GetScaling

Source

pub fn invalidate(&self) -> Result<(), HResult>

IFrnTopLevel::Invalidate

Source

pub fn point_to_client(&self, point: FrnPoint) -> Result<FrnPoint, HResult>

IFrnTopLevel::PointToClient

Source

pub fn point_to_screen(&self, point: FrnPoint) -> Result<FrnPoint, HResult>

IFrnTopLevel::PointToScreen

Source

pub fn set_cursor(&self, cursor: Option<&IFrnCursor>) -> Result<(), HResult>

IFrnTopLevel::SetCursor

Source

pub fn create_gl_render_target( &self, context: Option<&IFrnGlContext>, ) -> Result<Option<ComPtr<IFrnGlSurfaceRenderTarget>>, HResult>

IFrnTopLevel::CreateGlRenderTarget

Source

pub fn create_software_render_target( &self, ) -> Result<Option<ComPtr<IFrnSoftwareRenderTarget>>, HResult>

IFrnTopLevel::CreateSoftwareRenderTarget

Source

pub fn create_metal_render_target( &self, device: Option<&IFrnMetalDevice>, ) -> Result<Option<ComPtr<IFrnMetalRenderTarget>>, HResult>

IFrnTopLevel::CreateMetalRenderTarget

Source

pub fn obtain_ns_view_handle(&self) -> Result<*mut c_void, HResult>

IFrnTopLevel::ObtainNSViewHandle

Source

pub fn obtain_ns_view_handle_retained(&self) -> Result<*mut c_void, HResult>

IFrnTopLevel::ObtainNSViewHandleRetained

Source

pub fn create_native_control_host( &self, ) -> Result<Option<ComPtr<IFrnNativeControlHost>>, HResult>

IFrnTopLevel::CreateNativeControlHost

Source

pub fn get_input_method( &self, ) -> Result<Option<ComPtr<IFrnTextInputMethod>>, HResult>

IFrnTopLevel::GetInputMethod

Source

pub fn set_transparency_mode( &self, mode: FrnWindowTransparencyMode, ) -> Result<(), HResult>

IFrnTopLevel::SetTransparencyMode

Source

pub fn get_current_display_id(&self) -> Result<u32, HResult>

IFrnTopLevel::GetCurrentDisplayId

Source

pub unsafe fn begin_drag_and_drop_operation( &self, effects: FrnDragDropEffects, point: FrnPoint, source: Option<&IFrnClipboardDataSource>, callback: Option<&IFrnDndResultCallback>, source_handle: *mut c_void, ) -> Result<(), HResult>

IFrnTopLevel::BeginDragAndDropOperation

§Safety

Raw pointer arguments must satisfy the native method’s contract.

Methods from Deref<Target = IUnknown>§

Source

pub unsafe fn query_interface_raw( &self, riid: &Guid, ppv: *mut *mut c_void, ) -> u32

§Safety

Raw COM call; ppv must be valid for writes.

Source

pub unsafe fn add_ref(&self) -> u32

§Safety

Raw reference-count manipulation.

Source

pub unsafe fn release(&self) -> u32

§Safety

Raw reference-count manipulation; self may be dangling afterwards.

Trait Implementations§

Source§

impl Deref for IFrnTopLevel

Source§

type Target = IUnknown

The resulting type after dereferencing.
Source§

fn deref(&self) -> &IUnknown

Dereferences the value.
Source§

impl<T: IFrnTopLevelImpl> ImplementedBy<T> for IFrnTopLevel

Source§

impl Interface for IFrnTopLevel

Source§

const IID: Guid

The interface’s IID as written in the IDL.
Source§

const NAME: &'static str = "IFrnTopLevel"

IDL name, for diagnostics.
Source§

type Vtbl = IFrnTopLevelVtbl

Source§

fn matches_iid(iid: &Guid) -> bool

true if iid names this interface or one of its bases (including IUnknown). Both the IDL value and the value materialized by com.h (see Guid::as_com_h_materialized) are accepted.
Source§

fn as_unknown(&self) -> &IUnknown

Source§

fn as_raw(&self) -> *mut Self

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

fn static_constructor()

The static constructor of a type: work done once per thread, after the properties of the type are registered and before its first instance exists (class handlers, affects_render, metadata overrides). Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> IUnknownImpl for T
where T: ?Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.