From 967f9bbeca46517f3d94d1eb4b04a3e36c8a31f0 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Mon, 7 Sep 2015 16:19:58 +0200 Subject: [PATCH] Dynamic layouting debug and improvments --- Templates/Window.goml | 2 +- Tests/GOLIBTest_4.cs | 3 --- Tests/GOLIBTest_stack.cs | 10 +--------- Tests/Interfaces/test4.goml | 4 ++-- Tests/Interfaces/testWindow.goml | 23 ++++++++++++++--------- Tests/Interfaces/test_stack.goml | 13 ++++++++----- Tests/Tests.csproj | 2 +- src/GraphicObjects/GenericStack.cs | 11 ++++++----- src/GraphicObjects/Group.cs | 6 ++++++ src/GraphicObjects/Window.cs | 4 +--- 10 files changed, 40 insertions(+), 38 deletions(-) diff --git a/Templates/Window.goml b/Templates/Window.goml index d082ca02..2ec25987 100755 --- a/Templates/Window.goml +++ b/Templates/Window.goml @@ -9,6 +9,6 @@ MouseEnter="{Background=Red}" MouseLeave="{Background=Transparent}" MouseClick="butQuitPress"/> - + \ No newline at end of file diff --git a/Tests/GOLIBTest_4.cs b/Tests/GOLIBTest_4.cs index 8b1c7cd2..141f41d8 100644 --- a/Tests/GOLIBTest_4.cs +++ b/Tests/GOLIBTest_4.cs @@ -83,9 +83,6 @@ namespace test { base.OnLoad (e); - this.Cursor = XCursor.NE; - - LoadInterface("Interfaces/test4.goml", out c); //LoadInterface("golibtests/test4.xml", out c2); //c2.HorizontalAlignment = HorizontalAlignment.Left; diff --git a/Tests/GOLIBTest_stack.cs b/Tests/GOLIBTest_stack.cs index 2164c721..18490d6d 100644 --- a/Tests/GOLIBTest_stack.cs +++ b/Tests/GOLIBTest_stack.cs @@ -22,20 +22,12 @@ namespace test : base(1024, 600,"test") {} - VerticalStack g; - protected override void OnLoad (EventArgs e) { base.OnLoad (e); - LoadInterface("Interfaces/test_stack.goml", out g); + LoadInterface("Interfaces/test_stack.goml"); } - protected override void OnRenderFrame (FrameEventArgs e) - { - GL.Clear (ClearBufferMask.ColorBufferBit); - base.OnRenderFrame (e); - SwapBuffers (); - } protected override void OnUpdateFrame (FrameEventArgs e) { diff --git a/Tests/Interfaces/test4.goml b/Tests/Interfaces/test4.goml index 02dadec8..4d824a2e 100755 --- a/Tests/Interfaces/test4.goml +++ b/Tests/Interfaces/test4.goml @@ -134,8 +134,8 @@ TextAlignment="Center" Background="AoEnglish"/> - - + --> - - - + \ No newline at end of file diff --git a/Tests/Interfaces/test_stack.goml b/Tests/Interfaces/test_stack.goml index a1b4b4e0..2991a92e 100755 --- a/Tests/Interfaces/test_stack.goml +++ b/Tests/Interfaces/test_stack.goml @@ -1,7 +1,7 @@  - -