Beispiel #1
0
 protected override Vector3 MeasureOverride(Vector3 availableSizeWithoutMargins)
 {
     return(ImageSizeHelper.CalculateImageSizeFromAvailable(sprite, availableSizeWithoutMargins, StretchType, StretchDirection, true));
 }
Beispiel #2
0
 /// <inheritdoc/>
 protected override Vector3 MeasureOverride(Vector3 availableSizeWithoutMargins)
 {
     return(sizeToContent
         ? base.MeasureOverride(availableSizeWithoutMargins)
         : ImageSizeHelper.CalculateImageSizeFromAvailable(ButtonImage, availableSizeWithoutMargins, ImageStretchType, ImageStretchDirection, true));
 }
Beispiel #3
0
 protected override Vector3 ArrangeOverride(Vector3 finalSizeWithoutMargins)
 {
     return(ImageSizeHelper.CalculateImageSizeFromAvailable(sprite, finalSizeWithoutMargins, StretchType, StretchDirection, false));
 }
Beispiel #4
0
 /// <inheritdoc/>
 protected override Vector3 ArrangeOverride(Vector3 finalSizeWithoutMargins)
 {
     return(sizeToContent
         ? base.ArrangeOverride(finalSizeWithoutMargins)
         : ImageSizeHelper.CalculateImageSizeFromAvailable(ButtonImage, finalSizeWithoutMargins, ImageStretchType, ImageStretchDirection, false));
 }