[ease/text: 2/4] Add PangoColor support to EaseColor
- From: Nate Stedman <natesm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease/text: 2/4] Add PangoColor support to EaseColor
- Date: Mon, 29 Nov 2010 04:53:42 +0000 (UTC)
commit c2e3a461748018f303dfacf7d9682cd85546ffdc
Author: Nate Stedman <natesm gmail com>
Date: Sun Nov 28 19:11:12 2010 -0500
Add PangoColor support to EaseColor
ease-core/ease-color.vala | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/ease-core/ease-color.vala b/ease-core/ease-color.vala
index fe4fba8..b760715 100644
--- a/ease-core/ease-color.vala
+++ b/ease-core/ease-color.vala
@@ -356,6 +356,26 @@ public class Ease.Color : GLib.Object
}
/**
+ * A Pango.Color representation of this color. Changes made to the returned
+ * color are not reflected in this color. Note that Pango colors do not
+ * support an alpha value. When being set, the alpha will be set to full,
+ * when retrieved, the alpha value will be ignored.
+ */
+ public Pango.Color pango
+ {
+ get
+ {
+ return { red16, green16, blue16 };
+ }
+ set
+ {
+ red16 = value.red;
+ green16 = value.green;
+ blue16 = value.blue;
+ }
+ }
+
+ /**
* Creates an opaque color.
*/
public Color.rgb(double r, double g, double b)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]