Sharp borders and flag-controlled bevels for the menus/dialogues

This commit is contained in:
Jack Zeal 2026-03-25 21:08:20 -07:00
parent effc16fc05
commit 69e372cc5f
4 changed files with 147 additions and 44 deletions

View file

@ -3,6 +3,9 @@
#define LABWC_LAB_SCENE_RECT_H
#include <wayland-server-core.h>
// Ensure we can access theme data to decide if we need bevels
extern struct rcxml rc;
struct wlr_scene_tree;
struct lab_scene_rect_options {

View file

@ -65,4 +65,15 @@
#define LAB_WLR_VERSION_AT_LEAST(major, minor, micro) \
(WLR_VERSION_NUM >= (((major) << 16) | ((minor) << 8) | (micro)))
/**
* PIXEL () - calculate pixel offset in an array of "bw" columns wide.
*
* @param x x-coordinate
* @param y y-coordinate
* Assumes "bw" was defined externally
*/
#define PIXEL(x,y) (bw * y + x)
#endif /* LABWC_MACROS_H */