diff options
Diffstat (limited to 'src/Measure.cs')
| -rw-r--r-- | src/Measure.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Measure.cs b/src/Measure.cs index 352ce8ff..c58acfe0 100644 --- a/src/Measure.cs +++ b/src/Measure.cs @@ -25,16 +25,18 @@ // THE SOFTWARE. using System; +using System.Runtime.InteropServices; namespace Crow { /// <summary> /// Measurement unit /// </summary> - public enum Unit { Pixel, Percent, Inherit } + public enum Unit : byte { Pixel, Percent, Inherit } /// <summary> /// Measure class allow proportional sizes as well as stretched and fit on content. /// </summary> + [StructLayout(LayoutKind.Sequential)] public struct Measure { /// <summary> |