You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

theme.h 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* Copyright 2023 Pierre Ossman for Cendio AB
  2. *
  3. * Permission is hereby granted, free of charge, to any person obtaining
  4. * a copy of this software and associated documentation files (the
  5. * "Software"), to deal in the Software without restriction, including
  6. * without limitation the rights to use, copy, modify, merge, publish,
  7. * distribute, sublicense, and/or sell copies of the Software, and to
  8. * permit persons to whom the Software is furnished to do so, subject to
  9. * the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be
  12. * included in all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  15. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  16. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  17. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  18. * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  19. * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  20. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  21. * SOFTWARE.
  22. */
  23. #ifndef __FLTK_THEME_H__
  24. #define __FLTK_THEME_H__
  25. #include <FL/Enumerations.H>
  26. #define _THEME_BOX_BASE (FL_FREE_BOXTYPE+20)
  27. #define THEME_UP_FRAME (Fl_Boxtype)(_THEME_BOX_BASE+0)
  28. #define THEME_DOWN_FRAME (Fl_Boxtype)(_THEME_BOX_BASE+1)
  29. #define THEME_THIN_UP_FRAME (Fl_Boxtype)(_THEME_BOX_BASE+2)
  30. #define THEME_THIN_DOWN_FRAME (Fl_Boxtype)(_THEME_BOX_BASE+3)
  31. #define THEME_UP_BOX (Fl_Boxtype)(_THEME_BOX_BASE+4)
  32. #define THEME_DOWN_BOX (Fl_Boxtype)(_THEME_BOX_BASE+5)
  33. #define THEME_THIN_UP_BOX (Fl_Boxtype)(_THEME_BOX_BASE+6)
  34. #define THEME_THIN_DOWN_BOX (Fl_Boxtype)(_THEME_BOX_BASE+7)
  35. #define THEME_ROUND_UP_BOX (Fl_Boxtype)(_THEME_BOX_BASE+8)
  36. #define THEME_ROUND_DOWN_BOX (Fl_Boxtype)(_THEME_BOX_BASE+9)
  37. void init_theme();
  38. #endif