use std::ops::BitOr;
pub enum Capabilities {
PreeditText = 1 << 0,
Focus = 1 << 3,
}
impl BitOr for Capabilities {
type Output = u32;
fn bitor(self, rhs: Self) -> Self::Output {
self as u32 | rhs as u32
}
}
pub enum Modifiers {
Empty = 0,
Release = 1 << 30,
}
impl BitOr for Modifiers {
type Output = u32;
fn bitor(self, rhs: Self) -> Self::Output {
self as u32 | rhs as u32
}
}