aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/OpenTKGameWindow.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-06 08:01:25 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-06 08:01:25 +0100
commit6577bc6e136c7440117bd7bb49cb4a4fd3fbcfa3 (patch)
treecf104fa3c2430f286848133cf1c20d7b34382581 /src/OpenTKGameWindow.cs
parent643d44f381962d6814d3676cee322c41018406eb (diff)
use LayoutingType Enum everywhere instead of casting to (int)
Diffstat (limited to 'src/OpenTKGameWindow.cs')
-rw-r--r--src/OpenTKGameWindow.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/OpenTKGameWindow.cs b/src/OpenTKGameWindow.cs
index 23d3e814..bb5b67e6 100644
--- a/src/OpenTKGameWindow.cs
+++ b/src/OpenTKGameWindow.cs
@@ -76,7 +76,7 @@ namespace Crow
g.Parent = this;
GraphicObjects.Insert (0, g);
- g.RegisterForLayouting ((int)LayoutingType.Sizing);
+ g.RegisterForLayouting (LayoutingType.Sizing);
}
public void DeleteWidget(GraphicObject g)
{
@@ -408,7 +408,7 @@ namespace Crow
base.OnResize (e);
createContext ();
foreach (GraphicObject g in GraphicObjects) {
- g.RegisterForLayouting ((int)LayoutingType.All);
+ g.RegisterForLayouting (LayoutingType.All);
//g.registerForGraphicUpdate();
}
}
@@ -554,7 +554,7 @@ namespace Crow
//TODO:uneeded list, should be removed
public List<LinkedListNode<LayoutingQueueItem>> RegisteredLQINodes { get; } = new List<LinkedListNode<LayoutingQueueItem>>();
- public void RegisterForLayouting (int layoutType) { throw new NotImplementedException (); }
+ public void RegisterForLayouting (LayoutingType layoutType) { throw new NotImplementedException (); }
public void UpdateLayout (LayoutingType layoutType) { throw new NotImplementedException (); }
public Rectangle ContextCoordinates (Rectangle r)
{