pub struct IFrnWindow { /* private fields */ }Implementations§
Source§impl IFrnWindow
impl IFrnWindow
Sourcepub fn from_impl<T: IFrnWindowImpl + 'static>(value: T) -> ComPtr<IFrnWindow>
pub fn from_impl<T: IFrnWindowImpl + 'static>(value: T) -> ComPtr<IFrnWindow>
Wraps a Rust implementation into a COM object native code can call.
Sourcepub fn set_decorations(&self, value: SystemDecorations) -> Result<(), HResult>
pub fn set_decorations(&self, value: SystemDecorations) -> Result<(), HResult>
IFrnWindow::SetDecorations
Sourcepub fn set_title_bar_color(&self, color: FrnColor) -> Result<(), HResult>
pub fn set_title_bar_color(&self, color: FrnColor) -> Result<(), HResult>
IFrnWindow::SetTitleBarColor
Sourcepub fn set_window_state(&self, state: FrnWindowState) -> Result<(), HResult>
pub fn set_window_state(&self, state: FrnWindowState) -> Result<(), HResult>
IFrnWindow::SetWindowState
Sourcepub fn get_window_state(&self) -> Result<FrnWindowState, HResult>
pub fn get_window_state(&self) -> Result<FrnWindowState, HResult>
IFrnWindow::GetWindowState
Sourcepub fn take_focus_from_children(&self) -> Result<(), HResult>
pub fn take_focus_from_children(&self) -> Result<(), HResult>
IFrnWindow::TakeFocusFromChildren
Sourcepub fn set_extend_client_area(&self, enable: bool) -> Result<(), HResult>
pub fn set_extend_client_area(&self, enable: bool) -> Result<(), HResult>
IFrnWindow::SetExtendClientArea
Sourcepub fn get_extend_title_bar_height(&self) -> Result<f64, HResult>
pub fn get_extend_title_bar_height(&self) -> Result<f64, HResult>
IFrnWindow::GetExtendTitleBarHeight
Sourcepub fn set_extend_title_bar_height(&self, value: f64) -> Result<(), HResult>
pub fn set_extend_title_bar_height(&self, value: f64) -> Result<(), HResult>
IFrnWindow::SetExtendTitleBarHeight
Sourcepub fn get_window_z_order(&self) -> Result<c_long, HResult>
pub fn get_window_z_order(&self) -> Result<c_long, HResult>
IFrnWindow::GetWindowZOrder
Methods from Deref<Target = IFrnWindowBase>§
Sourcepub fn get_frame_size(&self) -> Result<FrnSize, HResult>
pub fn get_frame_size(&self) -> Result<FrnSize, HResult>
IFrnWindowBase::GetFrameSize
Sourcepub fn set_frame_theme_variant(
&self,
mode: FrnPlatformThemeVariant,
) -> Result<(), HResult>
pub fn set_frame_theme_variant( &self, mode: FrnPlatformThemeVariant, ) -> Result<(), HResult>
IFrnWindowBase::SetFrameThemeVariant
Sourcepub fn set_parent(&self, parent: Option<&IFrnWindowBase>) -> Result<(), HResult>
pub fn set_parent(&self, parent: Option<&IFrnWindowBase>) -> Result<(), HResult>
IFrnWindowBase::SetParent
Sourcepub fn show(&self, activate: bool, is_dialog: bool) -> Result<(), HResult>
pub fn show(&self, activate: bool, is_dialog: bool) -> Result<(), HResult>
IFrnWindowBase::Show
Sourcepub fn set_min_max_size(
&self,
min_size: FrnSize,
max_size: FrnSize,
) -> Result<(), HResult>
pub fn set_min_max_size( &self, min_size: FrnSize, max_size: FrnSize, ) -> Result<(), HResult>
IFrnWindowBase::SetMinMaxSize
Sourcepub fn resize(
&self,
width: f64,
height: f64,
reason: FrnPlatformResizeReason,
) -> Result<(), HResult>
pub fn resize( &self, width: f64, height: f64, reason: FrnPlatformResizeReason, ) -> Result<(), HResult>
IFrnWindowBase::Resize
Sourcepub fn begin_move_drag(&self) -> Result<(), HResult>
pub fn begin_move_drag(&self) -> Result<(), HResult>
IFrnWindowBase::BeginMoveDrag
Sourcepub fn begin_resize_drag(&self, edge: FrnWindowEdge) -> Result<(), HResult>
pub fn begin_resize_drag(&self, edge: FrnWindowEdge) -> Result<(), HResult>
IFrnWindowBase::BeginResizeDrag
Sourcepub fn get_position(&self) -> Result<FrnPoint, HResult>
pub fn get_position(&self) -> Result<FrnPoint, HResult>
IFrnWindowBase::GetPosition
IFrnWindowBase::SetMainMenu
Sourcepub fn obtain_ns_window_handle(&self) -> Result<*mut c_void, HResult>
pub fn obtain_ns_window_handle(&self) -> Result<*mut c_void, HResult>
IFrnWindowBase::ObtainNSWindowHandle
Sourcepub fn obtain_ns_window_handle_retained(&self) -> Result<*mut c_void, HResult>
pub fn obtain_ns_window_handle_retained(&self) -> Result<*mut c_void, HResult>
IFrnWindowBase::ObtainNSWindowHandleRetained
Sourcepub fn get_frame_size_from(&self, initial: FrnSize) -> Result<FrnSize, HResult>
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>§
Sourcepub fn get_client_size(&self) -> Result<FrnSize, HResult>
pub fn get_client_size(&self) -> Result<FrnSize, HResult>
IFrnTopLevel::GetClientSize
Sourcepub fn get_scaling(&self) -> Result<f64, HResult>
pub fn get_scaling(&self) -> Result<f64, HResult>
IFrnTopLevel::GetScaling
Sourcepub fn invalidate(&self) -> Result<(), HResult>
pub fn invalidate(&self) -> Result<(), HResult>
IFrnTopLevel::Invalidate
Sourcepub fn point_to_client(&self, point: FrnPoint) -> Result<FrnPoint, HResult>
pub fn point_to_client(&self, point: FrnPoint) -> Result<FrnPoint, HResult>
IFrnTopLevel::PointToClient
Sourcepub fn point_to_screen(&self, point: FrnPoint) -> Result<FrnPoint, HResult>
pub fn point_to_screen(&self, point: FrnPoint) -> Result<FrnPoint, HResult>
IFrnTopLevel::PointToScreen
Sourcepub fn set_cursor(&self, cursor: Option<&IFrnCursor>) -> Result<(), HResult>
pub fn set_cursor(&self, cursor: Option<&IFrnCursor>) -> Result<(), HResult>
IFrnTopLevel::SetCursor
Sourcepub fn create_gl_render_target(
&self,
context: Option<&IFrnGlContext>,
) -> Result<Option<ComPtr<IFrnGlSurfaceRenderTarget>>, HResult>
pub fn create_gl_render_target( &self, context: Option<&IFrnGlContext>, ) -> Result<Option<ComPtr<IFrnGlSurfaceRenderTarget>>, HResult>
IFrnTopLevel::CreateGlRenderTarget
Sourcepub fn create_software_render_target(
&self,
) -> Result<Option<ComPtr<IFrnSoftwareRenderTarget>>, HResult>
pub fn create_software_render_target( &self, ) -> Result<Option<ComPtr<IFrnSoftwareRenderTarget>>, HResult>
IFrnTopLevel::CreateSoftwareRenderTarget
Sourcepub fn create_metal_render_target(
&self,
device: Option<&IFrnMetalDevice>,
) -> Result<Option<ComPtr<IFrnMetalRenderTarget>>, HResult>
pub fn create_metal_render_target( &self, device: Option<&IFrnMetalDevice>, ) -> Result<Option<ComPtr<IFrnMetalRenderTarget>>, HResult>
IFrnTopLevel::CreateMetalRenderTarget
Sourcepub fn obtain_ns_view_handle(&self) -> Result<*mut c_void, HResult>
pub fn obtain_ns_view_handle(&self) -> Result<*mut c_void, HResult>
IFrnTopLevel::ObtainNSViewHandle
Sourcepub fn obtain_ns_view_handle_retained(&self) -> Result<*mut c_void, HResult>
pub fn obtain_ns_view_handle_retained(&self) -> Result<*mut c_void, HResult>
IFrnTopLevel::ObtainNSViewHandleRetained
Sourcepub fn create_native_control_host(
&self,
) -> Result<Option<ComPtr<IFrnNativeControlHost>>, HResult>
pub fn create_native_control_host( &self, ) -> Result<Option<ComPtr<IFrnNativeControlHost>>, HResult>
IFrnTopLevel::CreateNativeControlHost
Sourcepub fn get_input_method(
&self,
) -> Result<Option<ComPtr<IFrnTextInputMethod>>, HResult>
pub fn get_input_method( &self, ) -> Result<Option<ComPtr<IFrnTextInputMethod>>, HResult>
IFrnTopLevel::GetInputMethod
Sourcepub fn set_transparency_mode(
&self,
mode: FrnWindowTransparencyMode,
) -> Result<(), HResult>
pub fn set_transparency_mode( &self, mode: FrnWindowTransparencyMode, ) -> Result<(), HResult>
IFrnTopLevel::SetTransparencyMode
Sourcepub fn get_current_display_id(&self) -> Result<u32, HResult>
pub fn get_current_display_id(&self) -> Result<u32, HResult>
IFrnTopLevel::GetCurrentDisplayId
Sourcepub 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>
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>§
Trait Implementations§
Source§impl Deref for IFrnWindow
impl Deref for IFrnWindow
Source§type Target = IFrnWindowBase
type Target = IFrnWindowBase
Source§fn deref(&self) -> &IFrnWindowBase
fn deref(&self) -> &IFrnWindowBase
Source§impl<T: IFrnWindowImpl> ImplementedBy<T> for IFrnWindow
impl<T: IFrnWindowImpl> ImplementedBy<T> for IFrnWindow
const VTBL: &'static IFrnWindowVtbl
Source§impl Interface for IFrnWindow
impl Interface for IFrnWindow
type Vtbl = IFrnWindowVtbl
Source§fn matches_iid(iid: &Guid) -> bool
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.fn as_unknown(&self) -> &IUnknown
fn as_raw(&self) -> *mut Self
Auto Trait Implementations§
impl !Send for IFrnWindow
impl !Sync for IFrnWindow
impl Freeze for IFrnWindow
impl RefUnwindSafe for IFrnWindow
impl Unpin for IFrnWindow
impl UnsafeUnpin for IFrnWindow
impl UnwindSafe for IFrnWindow
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more