From 2ba5caff31513d2d5fa7db7c9beb6b62c8600806 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Tue, 15 May 2018 14:43:21 +0100 Subject: [PATCH] Add fullscreen requesting for windows --- ui/canvas.go | 1 + ui/window.go | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/ui/canvas.go b/ui/canvas.go index f2d4ddcd9c..4b84cb0dd2 100644 --- a/ui/canvas.go +++ b/ui/canvas.go @@ -3,6 +3,7 @@ package ui // Canvas defines a graphical canvas to which a CanvasObject or Container can be added. // Each canvas has a scale which is automatically applied during the render process. type Canvas interface { + Content() CanvasObject SetContent(CanvasObject) Refresh(CanvasObject) Contains(CanvasObject) bool diff --git a/ui/window.go b/ui/window.go index 93d0d13cf0..4d5b9106d0 100644 --- a/ui/window.go +++ b/ui/window.go @@ -9,6 +9,13 @@ type Window interface { Title() string // SetTitle updates the current title of the window SetTitle(string) + + // Fullscreen returns whether or not this window is currently full screen + Fullscreen() bool + // SetFullscreen changes the requested fullscreen property + // true for a fullscreen window and false to unset this. + SetFullscreen(bool) + // Show the window on screen Show() // Hide the window from the user.