24 lines
774 B
C
24 lines
774 B
C
/*
|
|
* geom.h -- backend-neutral window geometry constraint functions
|
|
*
|
|
* These functions operate only on WNormalHints and the screen dimensions;
|
|
* they do not call any display-system API and can be unit-tested without
|
|
* a running display.
|
|
*
|
|
* Phase 5: extracted from window.c so tests can link src/geom.o alone.
|
|
*/
|
|
|
|
#ifndef WM_GEOM_H_
|
|
#define WM_GEOM_H_
|
|
|
|
/* Forward declaration — matches typedef struct WWindow WWindow in window.h */
|
|
typedef struct WWindow WWindow;
|
|
|
|
void wWindowConstrainSize(WWindow *wwin,
|
|
unsigned int *nwidth, unsigned int *nheight);
|
|
void wWindowCropSize(WWindow *wwin,
|
|
unsigned int maxW, unsigned int maxH,
|
|
unsigned int *width, unsigned int *height);
|
|
|
|
#endif /* WM_GEOM_H_ */
|