Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
StretchDirection.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 namespace SiliconStudio.Paradox.UI
4 {
5  /// <summary>
6  /// Describes how scaling applies to content and restricts scaling to named axis types.
7  /// </summary>
8  public enum StretchDirection
9  {
10  /// <summary>
11  /// The content stretches to fit the parent according to the Stretch mode.
12  /// </summary>
13  Both,
14  /// <summary>
15  /// The content scales downward only when it is larger than the parent. If the content is smaller, no scaling upward is performed.
16  /// </summary>
17  DownOnly,
18  /// <summary>
19  /// The content scales upward only when it is smaller than the parent. If the content is larger, no scaling downward is performed.
20  /// </summary>
21  UpOnly,
22  }
23 }
The content scales upward only when it is smaller than the parent. If the content is larger...
The content scales downward only when it is larger than the parent. If the content is smaller...
StretchDirection
Describes how scaling applies to content and restricts scaling to named axis types.
The content stretches to fit the parent according to the Stretch mode.