bitflags.rs 748 B

123456789101112131415161718192021222324252627282930
  1. bitflags! {
  2. /// Constants shared by multiple CSS Box Alignment properties
  3. ///
  4. /// These constants match Gecko's `NS_STYLE_ALIGN_*` constants.
  5. #[derive(MallocSizeOf, ToComputedValue)]
  6. #[repr(C)]
  7. pub struct AlignFlags: u8 {
  8. /// 'auto'
  9. const AUTO = 0;
  10. /// 'normal'
  11. const NORMAL = 1;
  12. /// 'start'
  13. const START = 1 << 1;
  14. /// 'end'
  15. const END = 1 << 2;
  16. /// 'flex-start'
  17. const FLEX_START = 1 << 3;
  18. }
  19. }
  20. bitflags! {
  21. #[repr(C)]
  22. pub struct DebugFlags: u32 {
  23. /// Flag with the topmost bit set of the u32
  24. const BIGGEST_ALLOWED = 1 << 31;
  25. }
  26. }
  27. #[no_mangle]
  28. pub extern "C" fn root(flags: AlignFlags, bigger_flags: DebugFlags) {}