Update cosmic-text to 0.19
This commit is contained in:
parent
1d68895e9c
commit
e429a025df
5 changed files with 9 additions and 15 deletions
|
|
@ -102,10 +102,9 @@ impl Default for TextBounds {
|
|||
}
|
||||
|
||||
/// A text area containing text to be rendered along with its overflow behavior.
|
||||
#[derive(Clone)]
|
||||
pub struct TextArea<'a> {
|
||||
/// The buffer containing the text to be rendered.
|
||||
pub buffer: &'a Buffer,
|
||||
pub text: LayoutRunIter<'a>,
|
||||
/// The left edge of the buffer.
|
||||
pub left: f32,
|
||||
/// The top edge of the buffer.
|
||||
|
|
|
|||
|
|
@ -81,8 +81,7 @@ impl TextRenderer {
|
|||
};
|
||||
|
||||
let layout_runs = text_area
|
||||
.buffer
|
||||
.layout_runs()
|
||||
.text
|
||||
.skip_while(|run| !is_run_visible(run))
|
||||
.take_while(is_run_visible);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue