summaryrefslogtreecommitdiffstats
path: root/wgpu/src/layer
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 /wgpu/src/layer
parent43a7cc2222750b1cada1663b29278b29d3ea232c (diff)
downloadiced-b526ce4958b28208395276dd4078ffe0d780e1d7.tar.gz
iced-b526ce4958b28208395276dd4078ffe0d780e1d7.tar.bz2
iced-b526ce4958b28208395276dd4078ffe0d780e1d7.zip
Rename `viewport` to `clip_bounds`
Diffstat (limited to 'wgpu/src/layer')
-rw-r--r--wgpu/src/layer/text.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/wgpu/src/layer/text.rs b/wgpu/src/layer/text.rs
index c4ea9185..df2f2875 100644
--- a/wgpu/src/layer/text.rs
+++ b/wgpu/src/layer/text.rs
@@ -13,7 +13,7 @@ pub enum Text<'a> {
paragraph: paragraph::Weak,
position: Point,
color: Color,
- viewport: Rectangle,
+ clip_bounds: Rectangle,
},
/// An editor.
#[allow(missing_docs)]
@@ -21,7 +21,7 @@ pub enum Text<'a> {
editor: editor::Weak,
position: Point,
color: Color,
- viewport: Rectangle,
+ clip_bounds: Rectangle,
},
/// A cached text.
Cached(Cached<'a>),
@@ -56,6 +56,6 @@ pub struct Cached<'a> {
/// The shaping strategy of the text.
pub shaping: text::Shaping,
- /// The viewport of the text.
- pub viewport: Rectangle,
+ /// The clip bounds of the text.
+ pub clip_bounds: Rectangle,
}