Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example: Fullscreen and Maximize #223

Open
bryphe opened this issue Jan 20, 2019 · 0 comments
Open

Example: Fullscreen and Maximize #223

bryphe opened this issue Jan 20, 2019 · 0 comments
Labels
A-other Area: Other, does not fit neatly into any of the other buckets example help wanted Extra attention is needed

Comments

@bryphe
Copy link
Member

bryphe commented Jan 20, 2019

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 our Window API like Window.toggleFullscreen.

The example itself would be relatively simple:

  • A button labeled Maximize. When clicked, this would call Window.maximize, and change state to be labeled Restore. When clicked, this would restore the Window to its pre-maximized dimensions (we might need a new API for this!)
  • A button labeled Start Fullscreen. When clicked, this would call Window.fullscreen. Ideally, we could detect the full-screen state and change the label to Stop Fullscreen.

This would be a good exercise and demonstration of the windowing behavior of Revery on different platforms.

@bryphe bryphe added help wanted Extra attention is needed example labels Jan 20, 2019
@glennsl glennsl added the A-other Area: Other, does not fit neatly into any of the other buckets label Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-other Area: Other, does not fit neatly into any of the other buckets example help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants