summaryrefslogtreecommitdiffstats
path: root/widget/src/shader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'widget/src/shader.rs')
-rw-r--r--widget/src/shader.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/widget/src/shader.rs b/widget/src/shader.rs
index 5b18ec7d..82432c6c 100644
--- a/widget/src/shader.rs
+++ b/widget/src/shader.rs
@@ -70,12 +70,11 @@ where
tree::State::new(P::State::default())
}
- fn width(&self) -> Length {
- self.width
- }
-
- fn height(&self) -> Length {
- self.height
+ fn size(&self) -> Size<Length> {
+ Size {
+ width: self.width,
+ height: self.height,
+ }
}
fn layout(