From dc995bd1da98971009454f4efe043d6237d00729 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Sun, 21 Jun 2015 15:39:58 +0200 Subject: [PATCH] * OpenTK: * OpenTKGameWindow.cs: * Tests.csproj: * GOLIBTest_4.cs: * GOLIBTest_1.cs: * Window.goml: * Listbox.goml: * test4.goml: * GOLIBTest_Expandable.cs: * testExpandable.goml: debug and test * Colors.cs: debug argb->rgba * CompilerServices.cs: value type conversion * Border.cs: default border =1 * Checkbox.cs: * Expandable.cs: changes in update technic * Group.cs: Clipping debug (need rework) * Label.cs: debug text positionning * Slider.cs: debug * TextBox.cs: selectable=true by default --- Templates/Listbox.goml | 2 +- Templates/Window.goml | 2 +- Tests/GOLIBTest_1.cs | 2 +- Tests/GOLIBTest_4.cs | 6 ++--- Tests/GOLIBTest_Expandable.cs | 1 + Tests/Interfaces/test4.goml | 10 +++---- Tests/Interfaces/testExpandable.goml | 6 ++--- Tests/Tests.csproj | 2 +- src/Colors.cs | 10 +++---- src/CompilerServices/CompilerServices.cs | 33 ++++++++++++++++++++++-- src/GraphicObjects/Border.cs | 2 +- src/GraphicObjects/Checkbox.cs | 2 +- src/GraphicObjects/Expandable.cs | 8 +++--- src/GraphicObjects/Group.cs | 7 ++++- src/GraphicObjects/Label.cs | 20 ++++++++++++++ src/GraphicObjects/Slider.cs | 1 - src/GraphicObjects/TextBox.cs | 5 ++++ src/OpenTKGameWindow.cs | 2 -- 18 files changed, 90 insertions(+), 31 deletions(-) diff --git a/Templates/Listbox.goml b/Templates/Listbox.goml index 452877c3..08b650d5 100755 --- a/Templates/Listbox.goml +++ b/Templates/Listbox.goml @@ -1,4 +1,4 @@  - + \ No newline at end of file diff --git a/Templates/Window.goml b/Templates/Window.goml index 5964d023..97e980c2 100755 --- a/Templates/Window.goml +++ b/Templates/Window.goml @@ -5,7 +5,7 @@ MouseMove="Window_MouseMove"> - diff --git a/Tests/GOLIBTest_1.cs b/Tests/GOLIBTest_1.cs index 1f376047..f92cd16c 100644 --- a/Tests/GOLIBTest_1.cs +++ b/Tests/GOLIBTest_1.cs @@ -27,7 +27,7 @@ namespace test protected override void OnLoad (EventArgs e) { base.OnLoad (e); - LoadInterface("Interfaces/log.xml", out g); + LoadInterface("Interfaces/test1.goml", out g); } protected override void OnRenderFrame (FrameEventArgs e) diff --git a/Tests/GOLIBTest_4.cs b/Tests/GOLIBTest_4.cs index 97e8c626..c283b2e1 100644 --- a/Tests/GOLIBTest_4.cs +++ b/Tests/GOLIBTest_4.cs @@ -172,9 +172,9 @@ namespace test } frameCpt++; -// if (pb.Value == pb.Maximum) -// pb.Value = 0; -// pb.Value++; + if (pb.Value == pb.Maximum) + pb.Value = 0; + pb.Value++; pb2.Value = pb.Value; //labPb.Text = pb.Value.ToString (); if (FocusedWidget==null) diff --git a/Tests/GOLIBTest_Expandable.cs b/Tests/GOLIBTest_Expandable.cs index 9da9b1ab..d96290c1 100644 --- a/Tests/GOLIBTest_Expandable.cs +++ b/Tests/GOLIBTest_Expandable.cs @@ -1,4 +1,5 @@ #define MONO_CAIRO_DEBUG_DISPOSE +#define DEBUG_CLIP_RECTANGLE using System; diff --git a/Tests/Interfaces/test4.goml b/Tests/Interfaces/test4.goml index 4eb5af9a..646599c9 100755 --- a/Tests/Interfaces/test4.goml +++ b/Tests/Interfaces/test4.goml @@ -54,7 +54,7 @@ Foreground="BlueCrayola" Background="DarkGray" BorderWidth="2" BorderColor="White"/>