diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2017-05-27 18:35:01 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2017-05-27 18:35:01 +0200 |
| commit | 4d1f3264dc4b4ddc211164712e0d2d654a913bb7 (patch) | |
| tree | 30655ea8f740eaf115a06c2ebfaaad29a7bcb39e /src/Measure.cs | |
| parent | 8d385b053423c16e18d02467bdd54be17c3b42aa (diff) | |
c native GraphicObject implementation, work in progressTestKMS
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> |