/platform/unix/scaffold/color.d

http://github.com/wilkie/djehuty · D · 34 lines · 17 code · 8 blank · 9 comment · 1 complexity · 225f2d6dadccc2ef6f64550fb9288aa2 MD5 · raw file

  1. /*
  2. * color.d
  3. *
  4. * This Scaffold holds the Color implementations for the Linux platform
  5. *
  6. * Author: Dave Wilkinson
  7. *
  8. */
  9. module scaffold.color;
  10. import platform.unix.common;
  11. import core.color;
  12. import core.main;
  13. import core.definitions;
  14. void ColorGetSystemColor(ref Color clr, SystemColor sysColorIndex)
  15. {
  16. // code to get a system color
  17. switch (sysColorIndex)
  18. {
  19. case SystemColor.Window:
  20. clr.alpha = 1.0;
  21. clr.red = 0.7;
  22. clr.green = 0.7;
  23. clr.blue = 0.7;
  24. break;
  25. }
  26. }