ModelRole.h 410 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. namespace GUI {
  8. enum class ModelRole {
  9. Display,
  10. Sort,
  11. ForegroundColor,
  12. BackgroundColor,
  13. Icon,
  14. IconOpacity,
  15. Font,
  16. MimeData,
  17. TextAlignment,
  18. Search,
  19. Custom = 0x100, // Applications are free to use roles above this number as they please
  20. };
  21. }