/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
- /*
- * color.d
- *
- * This Scaffold holds the Color implementations for the Linux platform
- *
- * Author: Dave Wilkinson
- *
- */
- module scaffold.color;
- import platform.unix.common;
- import core.color;
- import core.main;
- import core.definitions;
- void ColorGetSystemColor(ref Color clr, SystemColor sysColorIndex)
- {
- // code to get a system color
- switch (sysColorIndex)
- {
- case SystemColor.Window:
- clr.alpha = 1.0;
- clr.red = 0.7;
- clr.green = 0.7;
- clr.blue = 0.7;
- break;
- }
- }