[−][src]Trait piet_common::Text
Associated Types
type FontBuilder: FontBuilder
type Font: Font
type TextLayoutBuilder: TextLayoutBuilder
type TextLayout: TextLayout
type Coord: RoundFrom<f64> + Into<f64>
Required methods
fn new_font_by_name<impl RoundInto>(
&mut self,
name: &str,
size: impl RoundInto
) -> Result<Self::FontBuilder, Error> where
impl RoundInto: RoundInto<Self::Coord>,
&mut self,
name: &str,
size: impl RoundInto
) -> Result<Self::FontBuilder, Error> where
impl RoundInto
fn new_text_layout(
&mut self,
font: &Self::Font,
text: &str
) -> Result<Self::TextLayoutBuilder, Error>
&mut self,
font: &Self::Font,
text: &str
) -> Result<Self::TextLayoutBuilder, Error>
Implementations on Foreign Types
impl Text for CairoText[src]
type Coord = f64
type Font = CairoFont
type FontBuilder = CairoFontBuilder
type TextLayout = CairoTextLayout
type TextLayoutBuilder = CairoTextLayoutBuilder
fn new_font_by_name<impl RoundInto>(
&mut self,
name: &str,
size: impl RoundInto
) -> Result<<CairoText as Text>::FontBuilder, Error> where
impl RoundInto: RoundInto<<CairoText as Text>::Coord>, [src]
&mut self,
name: &str,
size: impl RoundInto
) -> Result<<CairoText as Text>::FontBuilder, Error> where
impl RoundInto
fn new_text_layout(
&mut self,
font: &<CairoText as Text>::Font,
text: &str
) -> Result<<CairoText as Text>::TextLayoutBuilder, Error>[src]
&mut self,
font: &<CairoText as Text>::Font,
text: &str
) -> Result<<CairoText as Text>::TextLayoutBuilder, Error>