Trait widgetry::TextExt

source ·
pub trait TextExt {
    // Required methods
    fn text_widget(self, ctx: &EventCtx<'_>) -> Widget;
    fn batch_text(self, ctx: &EventCtx<'_>) -> Widget;
}

Required Methods§

source

fn text_widget(self, ctx: &EventCtx<'_>) -> Widget

source

fn batch_text(self, ctx: &EventCtx<'_>) -> Widget

Implementations on Foreign Types§

source§

impl TextExt for &str

source§

fn text_widget(self, ctx: &EventCtx<'_>) -> Widget

source§

fn batch_text(self, ctx: &EventCtx<'_>) -> Widget

source§

impl TextExt for String

source§

fn text_widget(self, ctx: &EventCtx<'_>) -> Widget

source§

fn batch_text(self, ctx: &EventCtx<'_>) -> Widget

Implementors§