4 writes to _value
Microsoft.Maui.Controls (4)
32 references to _value
Microsoft.Maui.Controls (32)
SetterSpecificity.cs (32)
45 public bool IsDefault => _value == 0ul;
46 public bool IsHandler => _value == 0xFFFFFFFFFFFFFFFF;
47 public bool IsVsm => (_value & 0x0100000000000000) != 0;
48 public bool IsVsmImplicit => (_value & 0x0000000004000000) != 0;
49 public bool IsManual => ((_value >> 28) & 0xFFFF) == 1;
51 public bool IsDynamicResource => ((_value >> 24) & 0x02) != 0;
52 public bool IsBinding => ((_value >> 24) & 0x01) != 0;
57 var manual = (ushort)((_value >> 28) & 0xFFFF);
65 var style = (ushort)((_value >> 44) & 0xFFF);
68 return (style, (byte)((_value >> 16) & 0xFF), (byte)((_value >> 8) & 0xFF), (byte)(_value & 0xFF));
187 style: (ushort)((_value >> 44) & 0xFFF),
188 id: (byte)((_value >> 16) & 0xFF),
189 @class: (byte)((_value >> 8) & 0xFF),
190 type: (byte)(_value & 0xFF));
195 return new SetterSpecificity(_value - 0x0000100000000000);
198 public override bool Equals(object obj) => obj is SetterSpecificity s && s._value == _value;
199 public override int GetHashCode() => _value.GetHashCode();
201 public static bool operator <(SetterSpecificity left, SetterSpecificity right) => left._value < right._value;
202 public static bool operator >(SetterSpecificity left, SetterSpecificity right) => left._value > right._value;
203 public static bool operator >=(SetterSpecificity left, SetterSpecificity right) => left._value >= right._value;
204 public static bool operator <=(SetterSpecificity left, SetterSpecificity right) => left._value <= right._value;
205 public static bool operator ==(SetterSpecificity left, SetterSpecificity right) => left._value == right._value;
206 public static bool operator !=(SetterSpecificity left, SetterSpecificity right) => left._value != right._value;