// Copyright (c) Wojciech Figat. All rights reserved.
using System;
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 && RasterMode == other.RasterMode;
}
///
public override bool Equals(object obj)
{
return obj is FontOptions other && Equals(other);
}
///
public override int GetHashCode()
{
return HashCode.Combine((int)Hinting, (int)Flags, (int)RasterMode);
}
///
/// 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 && left.RasterMode == right.RasterMode;
}
///
/// 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 || left.RasterMode != right.RasterMode;
}
}
}