Comments (1)
We already have glfwGetMonitorWorkarea which is equivalent to your glfwGetMonitorRect
for the work area (area you can position a window within).
If you need more than the work area, you can get the monitor position with glfwGetMonitorPos
and glfwGetVideoMode
for the width and height.
For windows we have glfwSetWindowSize
and glfwSetWindowPos
as well as glfwGetWindowFrameSize for the frame size expressed as a distance from the drawable window.
Are you asking for the a utility functions which are some combination of the above? Since there are two types of area for both windows and monitors there might be two functions needed for each.
from glfw.
Related Issues (20)
- Compilation issues manylinux HOT 3
- Remove support for the original MinGW distribution
- Update the minimum CMake version to 3.16
- Question: Potential issue with error mutex? HOT 2
- Can't link glfw application on mac HOT 9
- Likely memory leaks HOT 1
- allow creation on remote (X11) displays
- glfwWindowHint(GLFW_DOUBLEBUFFER, GL_FALSE); on Ubuntu22.04.4's libnvidia-egl-wayland1
- Documentation doesn't fully specify the expected GLFWreallocatefun behavior
- compile error version 3.4 HOT 1
- wctype.h file not found | required in glfw/src/win32_platform.h
- VkWin32SurfaceCreateInfoKHR not found nor is the function prototype PFN_vkCreateWin32SurfaceKHR
- GLFW_DECORATED set false cause vsync HOT 1
- Drastic decrease in performance when running full screen vs almost full screen
- GLFW Wayland Support HOT 8
- Crash on my computer HOT 3
- REDEFINES If include NULL HOT 2
- GLFW window crashes after copying/cutting data to clipboard on Hyprland Wayland compositor
- IS this a bug: sharing.c example, should resize of window independent to each other. HOT 5
- Ubuntu can't run glfwGetX11Display is null HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glfw.