Rename viewport to clip_bounds

This commit is contained in:
Héctor Ramón Jiménez 2023-12-02 15:53:02 +01:00
parent 43a7cc2222
commit b526ce4958
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
11 changed files with 53 additions and 50 deletions

View file

@ -64,7 +64,7 @@ impl text::Renderer for Null {
_paragraph: &Self::Paragraph,
_position: Point,
_color: Color,
_viewport: Rectangle,
_clip_bounds: Rectangle,
) {
}
@ -73,7 +73,7 @@ impl text::Renderer for Null {
_editor: &Self::Editor,
_position: Point,
_color: Color,
_viewport: Rectangle,
_clip_bounds: Rectangle,
) {
}
@ -82,7 +82,7 @@ impl text::Renderer for Null {
_paragraph: Text<'_, Self::Font>,
_position: Point,
_color: Color,
_viewport: Rectangle,
_clip_bounds: Rectangle,
) {
}
}

View file

@ -202,7 +202,7 @@ pub trait Renderer: crate::Renderer {
text: &Self::Paragraph,
position: Point,
color: Color,
viewport: Rectangle,
clip_bounds: Rectangle,
);
/// Draws the given [`Editor`] at the given position and with the given
@ -212,7 +212,7 @@ pub trait Renderer: crate::Renderer {
editor: &Self::Editor,
position: Point,
color: Color,
viewport: Rectangle,
clip_bounds: Rectangle,
);
/// Draws the given [`Text`] at the given position and with the given
@ -222,6 +222,6 @@ pub trait Renderer: crate::Renderer {
text: Text<'_, Self::Font>,
position: Point,
color: Color,
viewport: Rectangle,
clip_bounds: Rectangle,
);
}