5 using SiliconStudio.Core.Mathematics;
6 using SiliconStudio.Core.Serialization.Converters;
7 using SiliconStudio.Paradox.Graphics;
9 namespace SiliconStudio.
Paradox.UI
17 internal Vector4 BordersInternal;
25 :this(Guid.NewGuid().ToString())
43 : this(Guid.NewGuid().ToString(), texture, null)
54 : this(imageName, texture, null)
69 : base(imageName, color, alpha)
81 get {
return BordersInternal; }
84 if(value == BordersInternal)
87 BordersInternal = value;
90 var handler = BorderChanged;
99 public bool HasBorders {
get;
private set; }
120 base.Orientation = value;
130 get {
return imageIdealSize; }
133 if (value == imageIdealSize)
136 imageIdealSize = value;
138 var handler = IdealSizeChanged;
144 private void UpdateIdealSize()
147 ImageIdealSize =
new Vector2(RegionInternal.Width, RegionInternal.Height);
149 ImageIdealSize =
new Vector2(RegionInternal.Height, RegionInternal.Width);
152 internal event EventHandler<EventArgs> BorderChanged;
153 internal event EventHandler<EventArgs> IdealSizeChanged;
SiliconStudio.Paradox.Games.Mathematics.Vector2 Vector2
Represents a two dimensional mathematical vector.
Orientation
Defines the different orientations that a control or layout can have.
Base class for converters to/from a data type.
const float ZeroTolerance
The value for which all absolute numbers smaller than are considered equal to zero.
UIImage(string imageName)
Create an empty UIImage
Define a RectangleF. This structure is slightly different from System.Drawing.RectangleF as it is int...
UIImage(string imageName, Texture2D color, Texture2D alpha)
Create an instance of UIImage that takes its color components from the color texture and its alpha c...
Represents a four dimensional mathematical vector.
UIImage(Texture2D texture)
Create an instance of UIImage having a unique name from a single Texture2D and initialize the Region ...
A Texture 2D frontend to SharpDX.Direct3D11.Texture2D.
UIImage()
Create an instance of UIImage with a unique random name.
Class holding all the data required to define an UI image.
UIImage(string imageName, Texture2D texture)
Create an instance of UIImage from a single color/alpha Texture2D and initialize the Region to the si...
ImageOrientation
Defines the possible rotations to apply on image regions.