[cogl/wip/cogl-sharp: 11/42] cogl-sharp: Add a ToString() method to Color
- From: Damien Lespiau <dlespiau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/cogl-sharp: 11/42] cogl-sharp: Add a ToString() method to Color
- Date: Mon, 22 Oct 2012 11:10:31 +0000 (UTC)
commit ec9f436254a509691973aac03ed058141eaafbc9
Author: Damien Lespiau <damien lespiau intel com>
Date: Sat Sep 29 18:14:31 2012 +0100
cogl-sharp: Add a ToString() method to Color
cogl-sharp/Color.cs | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/cogl-sharp/Color.cs b/cogl-sharp/Color.cs
index 6ff3121..a04b646 100644
--- a/cogl-sharp/Color.cs
+++ b/cogl-sharp/Color.cs
@@ -51,5 +51,10 @@ namespace Cogl
{
cogl_color_unpremultiply(ref this);
}
+
+ public override String ToString()
+ {
+ return String.Format("({0},{1},{2},{3})", Red, Green, Blue, Alpha);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]