summaryrefslogtreecommitdiffstats
path: root/graphics/src/window/gl_compositor.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-06-14 18:10:14 +0200
committerLibravatar GitHub <noreply@github.com>2020-06-14 18:10:14 +0200
commit50c37ff3d7f0cafb203d659b9c4bebf8f11d9b9d (patch)
tree6cb1e2cfa8e2933b8edf4cc05e9fb60724903904 /graphics/src/window/gl_compositor.rs
parentf131969c47bb4a32d60d5be4c2bece0688b0a418 (diff)
parent4c0286e8acdf0792a9680f6f8212a534a51e3da0 (diff)
downloadiced-50c37ff3d7f0cafb203d659b9c4bebf8f11d9b9d.tar.gz
iced-50c37ff3d7f0cafb203d659b9c4bebf8f11d9b9d.tar.bz2
iced-50c37ff3d7f0cafb203d659b9c4bebf8f11d9b9d.zip
Merge pull request #406 from hecrj/feature/background-color
Add `background_color` to `Application` and `Sandbox`
Diffstat (limited to 'graphics/src/window/gl_compositor.rs')
-rw-r--r--graphics/src/window/gl_compositor.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/src/window/gl_compositor.rs b/graphics/src/window/gl_compositor.rs
index 542213b5..2ba39d6e 100644
--- a/graphics/src/window/gl_compositor.rs
+++ b/graphics/src/window/gl_compositor.rs
@@ -1,4 +1,4 @@
-use crate::{Size, Viewport};
+use crate::{Color, Size, Viewport};
use iced_native::mouse;
use core::ffi::c_void;
@@ -61,6 +61,7 @@ pub trait GLCompositor: Sized {
&mut self,
renderer: &mut Self::Renderer,
viewport: &Viewport,
+ background_color: Color,
output: &<Self::Renderer as iced_native::Renderer>::Output,
overlay: &[T],
) -> mouse::Interaction;