mirror of
https://github.com/labwc/labwc.git
synced 2026-04-07 08:21:20 -04:00
Sharp borders and flag-controlled bevels for the menus/dialogues
This commit is contained in:
parent
effc16fc05
commit
69e372cc5f
4 changed files with 147 additions and 44 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue