Skip to main content

IFrnPopup

Struct IFrnPopup 

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

Implementations§

Source§

impl IFrnPopup

Source

pub fn from_impl<T: IFrnPopupImpl + 'static>(value: T) -> ComPtr<IFrnPopup>

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

Source

pub fn set_hit_test_visible(&self, value: bool) -> Result<(), HResult>

IFrnPopup::SetHitTestVisible

Methods from Deref<Target = IFrnWindowBase>§

Source

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

IFrnWindowBase::GetFrameSize

Source

pub fn set_frame_theme_variant( &self, mode: FrnPlatformThemeVariant, ) -> Result<(), HResult>

IFrnWindowBase::SetFrameThemeVariant

Source

pub fn set_parent(&self, parent: Option<&IFrnWindowBase>) -> Result<(), HResult>

IFrnWindowBase::SetParent

Source

pub fn show(&self, activate: bool, is_dialog: bool) -> Result<(), HResult>

IFrnWindowBase::Show

Source

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

IFrnWindowBase::Hide

Source

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

IFrnWindowBase::Close

Source

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

IFrnWindowBase::Activate

Source

pub fn set_min_max_size( &self, min_size: FrnSize, max_size: FrnSize, ) -> Result<(), HResult>

IFrnWindowBase::SetMinMaxSize

Source

pub fn resize( &self, width: f64, height: f64, reason: FrnPlatformResizeReason, ) -> Result<(), HResult>

IFrnWindowBase::Resize

Source

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

IFrnWindowBase::BeginMoveDrag

Source

pub fn begin_resize_drag(&self, edge: FrnWindowEdge) -> Result<(), HResult>

IFrnWindowBase::BeginResizeDrag

Source

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

IFrnWindowBase::GetPosition

Source

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

IFrnWindowBase::SetPosition

Source

pub fn set_top_most(&self, value: bool) -> Result<(), HResult>

IFrnWindowBase::SetTopMost

Source

pub fn set_main_menu(&self, menu: Option<&IFrnMenu>) -> Result<(), HResult>

IFrnWindowBase::SetMainMenu

Source

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

IFrnWindowBase::ObtainNSWindowHandle

Source

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

IFrnWindowBase::ObtainNSWindowHandleRetained

Source

pub fn get_frame_size_from(&self, initial: FrnSize) -> Result<FrnSize, HResult>

GetFrameSize with the value the caller starts the result with: the native side leaves the result as it is when the window has no frame yet (it is not shown), and the reference starts it at (-1, -1) to tell that apart (WindowImplBase.FrameSize). The generated get_frame_size starts it at zero, which reads as a frame of no size.

Methods from Deref<Target = IFrnTopLevel>§

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 IFrnPopup

Source§

type Target = IFrnWindowBase

The resulting type after dereferencing.
Source§

fn deref(&self) -> &IFrnWindowBase

Dereferences the value.
Source§

impl<T: IFrnPopupImpl> ImplementedBy<T> for IFrnPopup

Source§

const VTBL: &'static IFrnPopupVtbl

Source§

impl Interface for IFrnPopup

Source§

const IID: Guid

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

const NAME: &'static str = "IFrnPopup"

IDL name, for diagnostics.
Source§

type Vtbl = IFrnPopupVtbl

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.