Struct solstice_2d::text::Text [−][src]
pub struct Text { /* fields omitted */ }
Implementations
impl Text
[src]
impl Text
[src]pub fn new(ctx: &mut Context) -> Result<Self, GraphicsError>
[src]
pub fn add_font(&mut self, font_data: FontVec) -> FontId
[src]
pub fn set_text(&mut self, text: Text<'_>, bounds: Rectangle, ctx: &mut Context)
[src]
pub fn texture(&self) -> &Image
[src]
pub fn geometry(
&mut self,
ctx: &mut Context
) -> Geometry<&IndexedMesh<Vertex2D, u16>>
[src]
&mut self,
ctx: &mut Context
) -> Geometry<&IndexedMesh<Vertex2D, u16>>
Auto Trait Implementations
impl RefUnwindSafe for Text
impl RefUnwindSafe for Text
impl UnwindSafe for Text
impl UnwindSafe for Text
Blanket Implementations
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,