Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/graphics/Device.d @ 9:950d84783eac
Removing direct tango deps.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 09 Mar 2009 14:26:40 +0100 |
parents | f36c67707cb3 |
children | 735224fcc45f |
comparison
equal
deleted
inserted
replaced
8:2847134a5fc0 | 9:950d84783eac |
---|---|
35 | 35 |
36 import java.lang.Runnable; | 36 import java.lang.Runnable; |
37 import java.lang.System; | 37 import java.lang.System; |
38 | 38 |
39 import java.lang.all; | 39 import java.lang.all; |
40 import tango.util.Convert; | |
41 import tango.io.Stdout; | |
42 | 40 |
43 /** | 41 /** |
44 * This class is the abstract superclass of all device objects, | 42 * This class is the abstract superclass of all device objects, |
45 * such as the Display device and the Printer device. Devices | 43 * such as the Display device and the Printer device. Devices |
46 * can have a graphics context (GC) created for them, and they | 44 * can have a graphics context (GC) created for them, and they |
875 if (null !is cast(Transform)object ) transforms++; | 873 if (null !is cast(Transform)object ) transforms++; |
876 } | 874 } |
877 } | 875 } |
878 if (objectCount !is 0) { | 876 if (objectCount !is 0) { |
879 String string = "Summary: "; | 877 String string = "Summary: "; |
880 if (colors !is 0) string ~= to!(String)(colors) ~ " Color(s), "; | 878 if (colors !is 0) string ~= String_valueOf(colors) ~ " Color(s), "; |
881 if (cursors !is 0) string ~= to!(String)(cursors) ~ " Cursor(s), "; | 879 if (cursors !is 0) string ~= String_valueOf(cursors) ~ " Cursor(s), "; |
882 if (fonts !is 0) string ~= to!(String)(fonts) ~ " Font(s), "; | 880 if (fonts !is 0) string ~= String_valueOf(fonts) ~ " Font(s), "; |
883 if (gcs !is 0) string ~= to!(String)(gcs) ~ " GC(s), "; | 881 if (gcs !is 0) string ~= String_valueOf(gcs) ~ " GC(s), "; |
884 if (images !is 0) string ~= to!(String)(images) ~ " Image(s), "; | 882 if (images !is 0) string ~= String_valueOf(images) ~ " Image(s), "; |
885 if (paths !is 0) string ~= to!(String)(paths) ~ " Path(s), "; | 883 if (paths !is 0) string ~= String_valueOf(paths) ~ " Path(s), "; |
886 if (patterns !is 0) string ~= to!(String)(patterns) ~ " Pattern(s), "; | 884 if (patterns !is 0) string ~= String_valueOf(patterns) ~ " Pattern(s), "; |
887 if (regions !is 0) string ~= to!(String)(regions) ~ " Region(s), "; | 885 if (regions !is 0) string ~= String_valueOf(regions) ~ " Region(s), "; |
888 if (textLayouts !is 0) string ~= to!(String)(textLayouts) ~ " TextLayout(s), "; | 886 if (textLayouts !is 0) string ~= String_valueOf(textLayouts) ~ " TextLayout(s), "; |
889 if (transforms !is 0) string ~= to!(String)(transforms) ~ " Transforms(s), "; | 887 if (transforms !is 0) string ~= String_valueOf(transforms) ~ " Transforms(s), "; |
890 if (string.length !is 0) { | 888 if (string.length !is 0) { |
891 string = string.substring (0, string.length - 2); | 889 string = string.substring (0, string.length - 2); |
892 Stderr.formatln ( "{}", string); | 890 getDwtLogger().error ( "{}", string); |
893 } | 891 } |
894 for (int i=0; i<errors.length; i++) { | 892 for (int i=0; i<errors.length; i++) { |
895 if (errors [i] !is null) ExceptionPrintStackTrace( errors [i], Stderr); | 893 if (errors [i] !is null) ExceptionPrintStackTrace( errors [i]); |
896 } | 894 } |
897 } | 895 } |
898 } | 896 } |
899 } | 897 } |
900 } | 898 } |