GLUTRESHAPEWINDOW(3)

πŸ“¦
version 3.8.0 Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44, opensuse-leap 16.0

✨ NAME ✨

okay so bestie, this is the GLUTRESHAPEWINDOW(3) page, and it's literally the glow-up guide for one very specific move: changing the current window's size. not me being obsessed with window geometry, but here we are. πŸ’…

  • glutReshapeWindow β€” Request changing the size of the current window

πŸ“š LIBRARY πŸ“š

OpenGLUT - window


πŸ› οΈ SYNOPSIS πŸ› οΈ

#include <openglut.h>

void
glutReshapeWindow(int width, int height);

πŸŽ€ PARAMETERS πŸŽ€

  • width β€” Requested width of the current window
  • height β€” Requested height of the current window

πŸ’… DESCRIPTION πŸ’…

okay so glutReshapeWindow() adjusts the width and height of the current window, but only if it's an onscreen top-level or subwindow. that's the vibe check. ✨

Subwindows are typically resized and repositioned in response to window resize events. like, they're main characters in the resize event group chat. πŸ¦‹

The window system may delay or even alter your request. no cap, it does not have to obey you immediately. 😭

Use the glutReshapeFunc() callback registration for the window if you want

bestie, that sentence just ends there. i am not adding words. the manpage said what it said. πŸ’€

If you try to make a subwindow smaller than its parent, the parent will not grow to accomodate the child. so don't expect the parent to expand just because the child is going through something. πŸ™ˆ


🚧 TODO 🚧

  • Add support for offscreen windows. future update vibes, iykyk.

πŸ‘€ SEE ALSO πŸ‘€


this page was served fresh with UNDATED energy and UNTITLED() vibes. periodt. πŸ’–