Skip to content

Commit

Permalink
Remove traits TextApi, TextApiExt, EditableTextApi
Browse files Browse the repository at this point in the history
These are not the ideal type-erased API in KAS,
and likely also not elsewhere.
  • Loading branch information
dhardy committed Mar 12, 2024
1 parent b527338 commit 8828bb3
Show file tree
Hide file tree
Showing 3 changed files with 235 additions and 328 deletions.
2 changes: 1 addition & 1 deletion src/display/glyph_pos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ impl TextDisplay {
///
/// This may be used as follows:
/// ```no_run
/// # use kas_text::{Glyph, Text, TextApi, TextApiExt, Vec2};
/// # use kas_text::{Glyph, Text, Vec2};
/// # fn draw(_: Vec<(f32, Glyph)>) {}
/// let mut text = Text::new("Some example text");
/// text.prepare();
Expand Down
4 changes: 2 additions & 2 deletions src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub trait FormattableText: std::cmp::PartialEq + std::fmt::Debug {
/// It is expected that [`FontToken::start`] of yielded items is strictly
/// increasing; if not, formatting may not be applied correctly.
///
/// The default [font size][crate::TextApi::set_font_size] (`dpem`) is passed
/// The default [font size][crate::Text::set_font_size] (`dpem`) is passed
/// as a reference.
///
/// For plain text this iterator will be empty.
Expand Down Expand Up @@ -82,7 +82,7 @@ pub trait FormattableTextDyn: std::fmt::Debug {
/// It is expected that [`FontToken::start`] of yielded items is strictly
/// increasing; if not, formatting may not be applied correctly.
///
/// The default [font size][crate::TextApi::set_font_size] (`dpem`) is passed
/// The default [font size][crate::Text::set_font_size] (`dpem`) is passed
/// as a reference.
///
/// For plain text this iterator will be empty.
Expand Down
Loading

0 comments on commit 8828bb3

Please sign in to comment.