Skip to main content

euv_core/style/effect/
const.rs

1/// Sentinel `effect_id` denoting no rare paint effect entry in `EffectTable`.
2pub const EFFECT_ID_NONE: u32 = 0;
3
4/// Bitflag on `CompactPaintStyle` indicating a non-transparent solid background color is set.
5pub const COMPACT_PAINT_HAS_BACKGROUND: u32 = 1 << 0;
6
7/// Bitflag on `CompactPaintStyle` indicating scroll chaining stops at this node.
8pub const COMPACT_PAINT_STOP_SCROLL: u32 = 1 << 1;
9
10/// Bitflag on `CompactPaintStyle` indicating pointer/click event bubbling stops at this node.
11pub const COMPACT_PAINT_STOP_EVENT: u32 = 1 << 2;
12
13/// Bit shift of the packed `CursorIcon` discriminant inside `CompactPaintStyle::flags`.
14pub(crate) const COMPACT_PAINT_CURSOR_SHIFT: u32 = 8;
15
16/// Bitmask for the packed `CursorIcon` discriminant inside `CompactPaintStyle::flags`.
17pub(crate) const COMPACT_PAINT_CURSOR_MASK: u32 = 0xFF;
18
19/// Bit shift of the packed `PointerEvents` discriminant inside `CompactPaintStyle::flags`.
20pub(crate) const COMPACT_PAINT_POINTER_SHIFT: u32 = 16;
21
22/// Bitmask for the packed `PointerEvents` discriminant inside `CompactPaintStyle::flags`.
23pub(crate) const COMPACT_PAINT_POINTER_MASK: u32 = 0xFF;
24
25/// Quarter-pixel fixed-point quantization multiplier for compact corner radii.
26pub(crate) const COMPACT_RADIUS_SCALE: f32 = 4.0;
27
28/// Inverse quarter-pixel multiplier decoding compact corner radii back to logical pixels.
29pub(crate) const COMPACT_RADIUS_INV_SCALE: f32 = 0.25;