Changed theme-color-handling.

This commit is contained in:
Florian Küpper committed 2014-09-09 21:32:07 +02:00
1 parent a55d724620
commit 96e50f7723
11 files changed
+208 -245

No files matched your search

+17 -8
View File
@@ -61,18 +61,25 @@ namespace VocaluxeLib
}
}
[XmlRoot()]
//Use for holding theme-colors
[XmlRoot("Color")]
public struct SThemeColor
{
public SColorF Color;
public string Name;
//Needed for serialization
public bool ColorSpecified { get { return Name == ""; } }
public bool NameSpecified { get { return Name != ""; } }
}
public struct SRectF
{
[XmlElement("X")]
public float X;
[XmlElement("Y")]
public float Y;
[XmlElement("W")]
public float W;
[XmlElement("H")]
public float H;
[XmlElement("Z")]
public float Z;
[XmlIgnore]
public float Rotation; //0..360°
@@ -103,11 +110,13 @@ namespace VocaluxeLib
{
[XmlAttributeAttribute(AttributeName = "Enabled")]
public bool Enabled;
[XmlElement("Height")]
public float Height;
[XmlElement("Space")]
public float Space;
//Needed for serialization
public bool HeightSpecified { get { return Enabled; } }
public bool SpaceSpecified { get { return Enabled; } }
public SReflection(bool enabled, float height, float space)
{
Enabled = enabled;