pub struct Context {
font_metrics: FontMetrix,
font_features: FontFeatures,
line_space: i32,
}
Fields§
§font_metrics: FontMetrix
§font_features: FontFeatures
§line_space: i32
Implementations§
Source§impl Context
impl Context
pub fn new(pango_context: Context) -> Self
pub fn update(&mut self, pango_context: Context)
pub fn update_font_features(&mut self, font_features: FontFeatures)
pub fn update_line_space(&mut self, line_space: i32)
pub fn itemize(&self, line: &StyledLine) -> Vec<Item>
pub fn create_layout(&self) -> Layout
pub fn font_description(&self) -> &FontDescription
pub fn cell_metrics(&self) -> &CellMetrics
pub fn font_features(&self) -> &FontFeatures
pub fn font_families(&self) -> HashSet<GString>
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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