pub struct Layouter { /* private fields */ }
Implementations§
Source§impl Layouter
impl Layouter
pub fn new(settings: Settings) -> Layouter
pub fn rasterizer(&self) -> &Rc<RefCell<Rasterizer>>
pub fn is_font_family_known(&self, id: FontFamilyId) -> bool
pub fn is_font_known(&self, id: FontId) -> bool
pub fn define_font_family( &mut self, id: FontFamilyId, definition: FontFamilyDefinition, )
pub fn define_font(&mut self, id: FontId, definition: FontDefinition)
pub fn get_or_layout(&mut self, params: impl LayoutParams) -> Rc<LaidoutText>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layouter
impl !RefUnwindSafe for Layouter
impl !Send for Layouter
impl !Sync for Layouter
impl Unpin for Layouter
impl !UnwindSafe for Layouter
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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