1
0
Fork 0
forked from wry/wry

macros: auto generate bitflag variants

This commit is contained in:
Julian Orth 2026-02-26 15:50:01 +01:00
parent 39289cdd44
commit 71294b0fd1
9 changed files with 129 additions and 71 deletions

View file

@ -25,10 +25,10 @@ pub const ANCHOR_BOTTOM_RIGHT: u32 = 8;
bitflags! {
Edge: u32;
E_TOP = 1 << 0,
E_BOTTOM = 1 << 1,
E_LEFT = 1 << 2,
E_RIGHT = 1 << 3,
E_TOP,
E_BOTTOM,
E_LEFT,
E_RIGHT,
}
impl Edge {