Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
Control.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 using System.Diagnostics;
4 
5 namespace SiliconStudio.Paradox.UI.Controls
6 {
7  /// <summary>
8  /// Represents the base class for user interface (UI) controls.
9  /// </summary>
10  [DebuggerDisplay("Control - Name={Name}")]
11  public abstract class Control : UIElement
12  {
13  protected Thickness padding = Thickness.UniformCuboid(0);
14 
15  /// <summary>
16  /// Gets or sets the padding inside a control.
17  /// </summary>
18  public Thickness Padding
19  {
20  get { return padding; }
21  set
22  {
23  padding = value;
24  InvalidateMeasure();
25  }
26  }
27  }
28 }
Provides a base class for all the User Interface elements in Paradox applications.
Definition: UIElement.cs:21
Represents the base class for user interface (UI) controls.
Definition: Control.cs:11
Describes the thickness of a frame around a cuboid. Six float values describe the Left...
Definition: Thickness.cs:12