// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. namespace FlaxEngine { partial struct FontOptions { /// /// Tests for equality between two objects. /// /// The other object to compare. /// true if this object has the same value as ; otherwise, false public bool Equals(FontOptions other) { return Hinting == other.Hinting && Flags == other.Flags; } /// public override bool Equals(object obj) { return obj is FontOptions other && Equals(other); } /// public override int GetHashCode() { unchecked { return ((int)Hinting * 397) ^ (int)Flags; } } /// /// Tests for equality between two objects. /// /// The first value to compare. /// The second value to compare. /// true if has the same value as ; otherwise, false. public static bool operator ==(FontOptions left, FontOptions right) { return left.Hinting == right.Hinting && left.Flags == right.Flags; } /// /// Tests for inequality between two objects. /// /// The first value to compare. /// The second value to compare. /// true if has a different value than ; otherwise,false. public static bool operator !=(FontOptions left, FontOptions right) { return left.Hinting != right.Hinting || left.Flags != right.Flags; } } }