feat: add fill_raw method and Raw associated type for text::Renderer
This commit is contained in:
parent
6bbe189809
commit
b26890f76e
7 changed files with 49 additions and 4 deletions
|
|
@ -88,11 +88,13 @@ where
|
|||
Font = A::Font,
|
||||
Paragraph = A::Paragraph,
|
||||
Editor = A::Editor,
|
||||
Raw = A::Raw,
|
||||
>,
|
||||
{
|
||||
type Font = A::Font;
|
||||
type Paragraph = A::Paragraph;
|
||||
type Editor = A::Editor;
|
||||
type Raw = A::Raw;
|
||||
|
||||
const ICON_FONT: Self::Font = A::ICON_FONT;
|
||||
const CHECKMARK_ICON: char = A::CHECKMARK_ICON;
|
||||
|
|
@ -135,6 +137,10 @@ where
|
|||
);
|
||||
}
|
||||
|
||||
fn fill_raw(&mut self, raw: Self::Raw) {
|
||||
delegate!(self, renderer, renderer.fill_raw(raw));
|
||||
}
|
||||
|
||||
fn fill_text(
|
||||
&mut self,
|
||||
text: core::Text<String, Self::Font>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue