summaryrefslogtreecommitdiffstats
path: root/examples/custom_quad/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/custom_quad/src/main.rs')
-rw-r--r--examples/custom_quad/src/main.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/custom_quad/src/main.rs b/examples/custom_quad/src/main.rs
index 13b08250..cc9ad528 100644
--- a/examples/custom_quad/src/main.rs
+++ b/examples/custom_quad/src/main.rs
@@ -26,12 +26,11 @@ mod quad {
where
Renderer: renderer::Renderer,
{
- fn width(&self) -> Length {
- Length::Shrink
- }
-
- fn height(&self) -> Length {
- Length::Shrink
+ fn size(&self) -> Size<Length> {
+ Size {
+ width: Length::Shrink,
+ height: Length::Shrink,
+ }
}
fn layout(