PageRenderTime 19ms CodeModel.GetById 10ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/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
10module scaffold.color;
11
12import platform.unix.common;
13
14import core.color;
15import core.main;
16import core.definitions;
17
18void ColorGetSystemColor(ref Color clr, SystemColor sysColorIndex)
19{
20	// code to get a system color
21	switch (sysColorIndex)
22	{
23		case SystemColor.Window:
24			clr.alpha = 1.0;
25			clr.red = 0.7;
26			clr.green = 0.7;
27			clr.blue = 0.7;
28			break;
29	}
30}
31
32
33
34