pub struct TextRenderer<UD: Copy = ()> {
pub renderables_resize: usize,
/* private fields */
}
Fields§
§renderables_resize: usize
Implementations§
Source§impl<UD: Copy> TextRenderer<UD>
impl<UD: Copy> TextRenderer<UD>
pub fn new(width: usize, height: usize) -> Self
pub fn clear(&mut self)
pub fn include(&mut self, fonts: &[Font], layout: &Layout<UD>)
pub fn include_consumed( &mut self, fonts: &[Font], layout: &Layout<UD>, ) -> impl Iterator<Item = (GlyphPosition<UD>, TextRendererGlyph)> + '_
pub fn glyph(&self, key: &GlyphRasterConfig) -> Option<TextRendererGlyph>
pub fn consume_renderables( &mut self, ) -> impl Iterator<Item = (GlyphPosition<UD>, TextRendererGlyph)> + '_
pub fn image(&self) -> &[u8] ⓘ
pub fn atlas_size(&self) -> [usize; 3]
pub fn into_image(self) -> (Vec<u8>, [usize; 3])
pub fn into_inner(self) -> TextRendererUnpacked<UD>
pub fn render_to_stream<V, B>(&mut self, stream: &mut VertexStream<V, B>)
Trait Implementations§
Source§impl<UD: Clone + Copy> Clone for TextRenderer<UD>
impl<UD: Clone + Copy> Clone for TextRenderer<UD>
Source§fn clone(&self) -> TextRenderer<UD>
fn clone(&self) -> TextRenderer<UD>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<UD> Freeze for TextRenderer<UD>
impl<UD> RefUnwindSafe for TextRenderer<UD>where
UD: RefUnwindSafe,
impl<UD> Send for TextRenderer<UD>where
UD: Send,
impl<UD> Sync for TextRenderer<UD>where
UD: Sync,
impl<UD> Unpin for TextRenderer<UD>where
UD: Unpin,
impl<UD> UnwindSafe for TextRenderer<UD>where
UD: UnwindSafe,
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