summaryrefslogtreecommitdiffstats
path: root/graphics/src/primitive.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-12-02 15:53:02 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-12-02 15:56:28 +0100
commitb526ce4958b28208395276dd4078ffe0d780e1d7 (patch)
tree802fef9f0b54b6f9cbbeedff14d7f57169db7d6b /graphics/src/primitive.rs
parent43a7cc2222750b1cada1663b29278b29d3ea232c (diff)
downloadiced-b526ce4958b28208395276dd4078ffe0d780e1d7.tar.gz
iced-b526ce4958b28208395276dd4078ffe0d780e1d7.tar.bz2
iced-b526ce4958b28208395276dd4078ffe0d780e1d7.zip
Rename `viewport` to `clip_bounds`
Diffstat (limited to 'graphics/src/primitive.rs')
-rw-r--r--graphics/src/primitive.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/graphics/src/primitive.rs b/graphics/src/primitive.rs
index 837eb77a..ed75776c 100644
--- a/graphics/src/primitive.rs
+++ b/graphics/src/primitive.rs
@@ -32,8 +32,8 @@ pub enum Primitive<T> {
vertical_alignment: alignment::Vertical,
/// The shaping strategy of the text.
shaping: text::Shaping,
- /// The viewport of the text.
- viewport: Rectangle,
+ /// The clip bounds of the text.
+ clip_bounds: Rectangle,
},
/// A paragraph primitive
Paragraph {
@@ -43,8 +43,8 @@ pub enum Primitive<T> {
position: Point,
/// The color of the paragraph.
color: Color,
- /// The viewport of the paragraph.
- viewport: Rectangle,
+ /// The clip bounds of the paragraph.
+ clip_bounds: Rectangle,
},
/// An editor primitive
Editor {
@@ -54,8 +54,8 @@ pub enum Primitive<T> {
position: Point,
/// The color of the editor.
color: Color,
- /// The viewport of the editor.
- viewport: Rectangle,
+ /// The clip bounds of the editor.
+ clip_bounds: Rectangle,
},
/// A quad primitive
Quad {