Example: Fullscreen and Maximize #223
Labels
A-other
Area: Other, does not fit neatly into any of the other buckets
example
help wanted
Extra attention is needed
I'd like to add an example that highlights the Fullscreen and Maximize capabilities of the framework.
We already have a
Window.maximize
API - so that piece would be easy to hook-up.Glfw also has the capability to create a 'full-screen' window - we need to hook up those APIs completely in
reason-glfw
: https://github.com/bryphe/reason-glfw/issues/58 but once we have that - we can add a wrapper around those raw GLFW APIs on ourWindow
API likeWindow.toggleFullscreen
.The example itself would be relatively simple:
Maximize
. When clicked, this would callWindow.maximize
, and change state to be labeledRestore
. When clicked, this would restore the Window to its pre-maximized dimensions (we might need a new API for this!)Start Fullscreen
. When clicked, this would callWindow.fullscreen
. Ideally, we could detect the full-screen state and change the label toStop Fullscreen
.This would be a good exercise and demonstration of the windowing behavior of Revery on different platforms.
The text was updated successfully, but these errors were encountered: