Struct notan_text::Text
source · [−]pub struct Text<'a> { /* private fields */ }Implementations
sourceimpl<'a> Text<'a>
impl<'a> Text<'a>
pub fn new(width: i32, height: i32) -> Self
pub fn clear_options(&mut self, options: ClearOptions)
pub fn clear_color(&mut self, color: Color)
pub fn use_pipeline<T: GlyphPipeline + 'static>(&mut self)
pub fn transform(&mut self, transform: Mat4)
pub fn region(&mut self, x: f32, y: f32, width: f32, height: f32)
pub fn add<'b>(&'b mut self, text: &'a str) -> AddTextBuilder<'b, 'a> where
'a: 'b,
pub fn chain<'b>(&'b mut self, text: &'a str) -> ChainTextBuilder<'b, 'a> where
'a: 'b,
Trait Implementations
sourceimpl GfxRenderer for Text<'_>
impl GfxRenderer for Text<'_>
sourcefn render(
&self,
device: &mut Device,
extensions: &mut ExtContainer,
target: Option<&RenderTexture>
) -> Result<(), String>
fn render(
&self,
device: &mut Device,
extensions: &mut ExtContainer,
target: Option<&RenderTexture>
) -> Result<(), String>
Send the commands to the gpu to be rendered
impl GfxExtension<Text<'_>> for TextExtension
Auto Trait Implementations
impl<'a> RefUnwindSafe for Text<'a>
impl<'a> Send for Text<'a>
impl<'a> Sync for Text<'a>
impl<'a> Unpin for Text<'a>
impl<'a> UnwindSafe for Text<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more