-
-
Notifications
You must be signed in to change notification settings - Fork 909
/
StretchDirection.cs
27 lines (26 loc) · 1.35 KB
/
StretchDirection.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) Stride contributors (https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
namespace Stride.UI
{
/// <summary>
/// Describes how scaling applies to content and restricts scaling to named axis types.
/// </summary>
public enum StretchDirection
{
/// <summary>
/// The content stretches to fit the parent according to the Stretch mode.
/// </summary>
/// <userdoc>The content stretches to fit the parent according to the Stretch mode.</userdoc>
Both,
/// <summary>
/// The content scales downward only when it is larger than the parent. If the content is smaller, no scaling upward is performed.
/// </summary>
/// <userdoc>The content scales downward only when it is larger than the parent. If the content is smaller, no scaling upward is performed.</userdoc>
DownOnly,
/// <summary>
/// The content scales upward only when it is smaller than the parent. If the content is larger, no scaling downward is performed.
/// </summary>
/// <userdoc>The content scales upward only when it is smaller than the parent. If the content is larger, no scaling downward is performed.</userdoc>
UpOnly,
}
}