pub struct SimulatedMacBridge { /* private fields */ }Expand description
Hermetic simulated Mac bridge driver for tests and non-Mac host environments.
Implementations§
Source§impl SimulatedMacBridge
impl SimulatedMacBridge
Sourcepub fn new_failing() -> Self
pub fn new_failing() -> Self
Create a simulated bridge driver that fails simulated foreign calls (for error testing).
Trait Implementations§
Source§impl Clone for SimulatedMacBridge
impl Clone for SimulatedMacBridge
Source§impl Debug for SimulatedMacBridge
impl Debug for SimulatedMacBridge
Source§impl Default for SimulatedMacBridge
impl Default for SimulatedMacBridge
Source§impl MacBridgeDriver for SimulatedMacBridge
impl MacBridgeDriver for SimulatedMacBridge
Source§fn shape_line(
&self,
text: &str,
_font_family: &str,
font_size: f32,
is_rtl: bool,
) -> Result<RawCoreTextLine, MacFontAdapterError>
fn shape_line( &self, text: &str, _font_family: &str, font_size: f32, is_rtl: bool, ) -> Result<RawCoreTextLine, MacFontAdapterError>
Request the native platform shaper to lay out a single line of text.
Source§fn rasterize_glyph(
&self,
font_postscript_name: &str,
glyph_id: u16,
font_size_px: f32,
) -> Result<Option<RawCoreGraphicsRaster>, MacFontAdapterError>
fn rasterize_glyph( &self, font_postscript_name: &str, glyph_id: u16, font_size_px: f32, ) -> Result<Option<RawCoreGraphicsRaster>, MacFontAdapterError>
Request the native platform rasterizer to rasterize a specific glyph.
Auto Trait Implementations§
impl Freeze for SimulatedMacBridge
impl RefUnwindSafe for SimulatedMacBridge
impl Send for SimulatedMacBridge
impl Sync for SimulatedMacBridge
impl Unpin for SimulatedMacBridge
impl UnsafeUnpin for SimulatedMacBridge
impl UnwindSafe for SimulatedMacBridge
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