pub trait IFrnWindowBaseImpl: IFrnTopLevelImpl {
Show 17 methods
// Required methods
fn get_frame_size(&self) -> Result<FrnSize, HResult>;
fn set_frame_theme_variant(
&self,
mode: FrnPlatformThemeVariant,
) -> Result<(), HResult>;
fn set_parent(&self, parent: Option<&IFrnWindowBase>) -> Result<(), HResult>;
fn show(&self, activate: bool, is_dialog: bool) -> Result<(), HResult>;
fn hide(&self) -> Result<(), HResult>;
fn close(&self) -> Result<(), HResult>;
fn activate(&self) -> Result<(), HResult>;
fn set_min_max_size(
&self,
min_size: FrnSize,
max_size: FrnSize,
) -> Result<(), HResult>;
fn resize(
&self,
width: f64,
height: f64,
reason: FrnPlatformResizeReason,
) -> Result<(), HResult>;
fn begin_move_drag(&self) -> Result<(), HResult>;
fn begin_resize_drag(&self, edge: FrnWindowEdge) -> Result<(), HResult>;
fn get_position(&self) -> Result<FrnPoint, HResult>;
fn set_position(&self, point: FrnPoint) -> Result<(), HResult>;
fn set_top_most(&self, value: bool) -> Result<(), HResult>;
fn set_main_menu(&self, menu: Option<&IFrnMenu>) -> Result<(), HResult>;
fn obtain_ns_window_handle(&self) -> Result<*mut c_void, HResult>;
fn obtain_ns_window_handle_retained(&self) -> Result<*mut c_void, HResult>;
}Expand description
Implement this to provide IFrnWindowBase to native code (see IFrnWindowBase::from_impl).
Required Methods§
fn get_frame_size(&self) -> Result<FrnSize, HResult>
fn set_frame_theme_variant( &self, mode: FrnPlatformThemeVariant, ) -> Result<(), HResult>
fn set_parent(&self, parent: Option<&IFrnWindowBase>) -> Result<(), HResult>
fn show(&self, activate: bool, is_dialog: bool) -> Result<(), HResult>
fn hide(&self) -> Result<(), HResult>
fn close(&self) -> Result<(), HResult>
fn activate(&self) -> Result<(), HResult>
fn set_min_max_size( &self, min_size: FrnSize, max_size: FrnSize, ) -> Result<(), HResult>
fn resize( &self, width: f64, height: f64, reason: FrnPlatformResizeReason, ) -> Result<(), HResult>
fn begin_move_drag(&self) -> Result<(), HResult>
fn begin_resize_drag(&self, edge: FrnWindowEdge) -> Result<(), HResult>
fn get_position(&self) -> Result<FrnPoint, HResult>
fn set_position(&self, point: FrnPoint) -> Result<(), HResult>
fn set_top_most(&self, value: bool) -> Result<(), HResult>
fn obtain_ns_window_handle(&self) -> Result<*mut c_void, HResult>
fn obtain_ns_window_handle_retained(&self) -> Result<*mut c_void, HResult>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".