From 921126b99a9e1ab00befb40d8f7f0c99728af698 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Tue, 2 Feb 2016 23:38:54 +0100 Subject: [PATCH] Gradient, Bitmap and Svg Filling --- Crow.csproj | 5 +- Crow.userprefs | 14 +-- Templates/ArrowButTemplate.crow | 6 +- Templates/Button.crow | 15 ++- Templates/GroupBox.goml | 2 +- Templates/ScrollBar.goml | 3 +- Templates/Window.goml | 3 +- Tests/GOLIBTest_4.cs | 2 +- Tests/GOLIBTest_5.cs | 2 +- Tests/GOLIBTests.cs | 12 ++- Tests/Interfaces/0.crow | 8 ++ Tests/Interfaces/test2WayBinding.crow | 13 +++ Tests/Interfaces/testBorder.goml | 5 +- Tests/Interfaces/testButton.crow | 2 +- Tests/Interfaces/testGroupBox.goml | 9 +- Tests/Interfaces/testWindow.goml | 20 ++-- Tests/Tests.csproj | 9 +- Tests/image/crow0.svg | 18 ++++ src/BmpPicture.cs | 36 +++++++ src/Cairo/IFill.cs | 11 --- src/Colors.cs | 18 ++-- src/Fill/Fill.cs | 32 +++++++ src/Gradient.cs | 130 ++++++++++++++++++++++++++ src/GraphicObjects/AnalogMeter.cs | 2 +- src/GraphicObjects/Border.cs | 8 +- src/GraphicObjects/GraduatedSlider.cs | 2 +- src/GraphicObjects/GraphicObject.cs | 49 +++++----- src/GraphicObjects/Group.cs | 10 +- src/GraphicObjects/Label.cs | 24 +++-- src/GraphicObjects/ProgressBar.cs | 6 +- src/GraphicObjects/Slider.cs | 40 ++++++-- src/GraphicObjects/TextBox.cs | 4 +- src/GraphicObjects/TextRun.cs | 2 +- src/Picture.cs | 2 +- src/Point.cs | 15 ++- src/Rectangle.cs | 5 +- src/SolidColor.cs | 96 +++++++++++++++++++ src/SvgPicture.cs | 32 +++++++ 38 files changed, 545 insertions(+), 127 deletions(-) create mode 100755 Tests/Interfaces/0.crow create mode 100755 Tests/Interfaces/test2WayBinding.crow create mode 100644 Tests/image/crow0.svg delete mode 100644 src/Cairo/IFill.cs create mode 100644 src/Fill/Fill.cs create mode 100644 src/Gradient.cs create mode 100644 src/SolidColor.cs diff --git a/Crow.csproj b/Crow.csproj index 498e7feb..3f655d17 100644 --- a/Crow.csproj +++ b/Crow.csproj @@ -130,7 +130,9 @@ - + + + @@ -164,6 +166,7 @@ + diff --git a/Crow.userprefs b/Crow.userprefs index f3fbc68e..cdb46ef8 100644 --- a/Crow.userprefs +++ b/Crow.userprefs @@ -1,15 +1,16 @@  - + - + + + + + - - - - + @@ -19,7 +20,6 @@ - diff --git a/Templates/ArrowButTemplate.crow b/Templates/ArrowButTemplate.crow index 94f717d7..099249c3 100755 --- a/Templates/ArrowButTemplate.crow +++ b/Templates/ArrowButTemplate.crow @@ -4,11 +4,11 @@