Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
StretchType.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 content is resized to fill its allocated space.
7  /// </summary>
8  public enum StretchType
9  {
10  /// <summary>
11  /// The content preserves its original size.
12  /// </summary>
13  None,
14 
15  /// <summary>
16  /// The content is resized to fit in the destination dimensions while it preserves its native aspect ratio.
17  /// </summary>
18  Uniform,
19 
20  /// <summary>
21  /// The content is resized to fill the destination dimensions while it preserves its native aspect ratio.
22  /// If the aspect ratio of the destination rectangle differs from the source, the source content is clipped to fit in the destination dimensions.
23  /// </summary>
25 
26  /// <summary>
27  /// The content is resized to fill the destination when stretched by its parent. It keeps its ratio otherwise.
28  /// </summary>
30 
31  /// <summary>
32  /// The content is always resized to fill the destination dimensions. The aspect ratio is not preserved.
33  /// </summary>
34  Fill,
35  }
36 }
The content is resized to fit in the destination dimensions while it preserves its native aspect rati...
StretchType
Describes how content is resized to fill its allocated space.
Definition: StretchType.cs:8
The content is resized to fill the destination dimensions while it preserves its native aspect ratio...
The content is always resized to fill the destination dimensions. The aspect ratio is not preserved...
The content is resized to fill the destination when stretched by its parent. It keeps its ratio other...