Skip to content

Commit

Permalink
Add fullscreen requesting for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed May 15, 2018
1 parent f78d89c commit 2ba5caf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/canvas.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions ui/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2ba5caf

Please sign in to comment.