Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4028)

Unified Diff: sky/engine/core/painting/Color.dart

Issue 1160453006: Provide Point+Size, Point-Point, Point.toSize(), and Rect.toPoint(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/engine/core/painting/Point.dart » ('j') | sky/engine/core/painting/Rect.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/Color.dart
diff --git a/sky/engine/core/painting/Color.dart b/sky/engine/core/painting/Color.dart
index 5789e40e653c8e75268699279296a0b9548b5c21..0ea9fa98063b04f72b28f81c733c91f4f9d3110f 100644
--- a/sky/engine/core/painting/Color.dart
+++ b/sky/engine/core/painting/Color.dart
@@ -16,6 +16,7 @@ class Color {
((b & 0xff) << 0));
bool operator ==(other) => other is Color && _value == other._value;
+
int get hashCode => _value.hashCode;
String toString() => "Color(0x${_value.toRadixString(16).padLeft(8, '0')})";
}
« no previous file with comments | « no previous file | sky/engine/core/painting/Point.dart » ('j') | sky/engine/core/painting/Rect.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698