// Token: 0x06001A8B RID: 6795 RVA: 0x000CFDEF File Offset: 0x000CDFEF
 private static uint ComposeRawValue(Enum value)
 {
     return(PropertyValue.GetRawType(PropertyType.Enum) | (Convert.ToUInt32(value) & 134217727U));
 }
Exemple #2
0
 public Property(PropertyId id, PropertyValue value)
 {
     this.id    = id;
     this.value = value;
 }
 // Token: 0x06001A89 RID: 6793 RVA: 0x000CFDC2 File Offset: 0x000CDFC2
 private static uint ComposeRawValue(PropertyType type, float value)
 {
     return(PropertyValue.GetRawType(type) | ((uint)(value * 10000f) & 134217727U));
 }
 // Token: 0x06001A8A RID: 6794 RVA: 0x000CFDD9 File Offset: 0x000CDFD9
 private static uint ComposeRawValue(RGBT color)
 {
     return(PropertyValue.GetRawType(PropertyType.Color) | (color.RawValue & 134217727U));
 }
 // Token: 0x06001A7E RID: 6782 RVA: 0x000CF764 File Offset: 0x000CD964
 public void Set(Enum value)
 {
     this.rawValue = PropertyValue.ComposeRawValue(value);
 }
 // Token: 0x06001A84 RID: 6788 RVA: 0x000CFAEA File Offset: 0x000CDCEA
 private static uint ComposeRawValue(bool value)
 {
     return(PropertyValue.GetRawType(PropertyType.Bool) | (value ? 1U : 0U));
 }
 // Token: 0x06001A7C RID: 6780 RVA: 0x000CF747 File Offset: 0x000CD947
 public void Set(PropertyType type, float value)
 {
     this.rawValue = PropertyValue.ComposeRawValue(type, value);
 }
 // Token: 0x06001A7D RID: 6781 RVA: 0x000CF756 File Offset: 0x000CD956
 public void Set(RGBT color)
 {
     this.rawValue = PropertyValue.ComposeRawValue(color);
 }
 // Token: 0x06001A7B RID: 6779 RVA: 0x000CF738 File Offset: 0x000CD938
 public void Set(LengthUnits lengthUnits, float value)
 {
     this.rawValue = PropertyValue.ComposeRawValue(lengthUnits, value);
 }
 // Token: 0x06001A33 RID: 6707 RVA: 0x000CF349 File Offset: 0x000CD549
 public PropertyValue(LengthUnits lengthUnits, int value)
 {
     this.rawValue = PropertyValue.ComposeRawValue(lengthUnits, value);
 }
 // Token: 0x06001A31 RID: 6705 RVA: 0x000CF32B File Offset: 0x000CD52B
 public PropertyValue(PropertyType type, uint value)
 {
     this.rawValue = PropertyValue.ComposeRawValue(type, value);
 }
 // Token: 0x06001A2F RID: 6703 RVA: 0x000CF30E File Offset: 0x000CD50E
 public PropertyValue(bool value)
 {
     this.rawValue = PropertyValue.ComposeRawValue(value);
 }
 public void SetProperty(PropertyPrecedence propertyPrecedence, PropertyId propertyId, PropertyValue value)
 {
     if (value.IsString)
     {
         this.converter.GetStringValue(value).AddRef();
     }
     else if (value.IsMultiValue)
     {
         this.converter.GetMultiValue(value).AddRef();
     }
     this.converter.ContainerStyleBuildHelper.SetProperty((int)propertyPrecedence, propertyId, value);
 }