[longomatch] Update Drawing API
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Update Drawing API
- Date: Mon, 7 Jul 2014 11:28:43 +0000 (UTC)
commit f3b3759da52acd39519a00376b33a6eca84d7cc7
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Jun 17 18:46:58 2014 +0200
Update Drawing API
.../Interfaces/Drawing/IDrawingToolkit.cs | 3 ++-
LongoMatch.Core/Interfaces/Drawing/IWidget.cs | 1 +
LongoMatch.Core/Store/Drawables/Drawable.cs | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Core/Interfaces/Drawing/IDrawingToolkit.cs
b/LongoMatch.Core/Interfaces/Drawing/IDrawingToolkit.cs
index bb5124f..f5c876d 100644
--- a/LongoMatch.Core/Interfaces/Drawing/IDrawingToolkit.cs
+++ b/LongoMatch.Core/Interfaces/Drawing/IDrawingToolkit.cs
@@ -27,7 +27,6 @@ namespace LongoMatch.Interfaces
int LineWidth {set;}
Color StrokeColor {set;}
Color FillColor {set;}
- Point Translation {set;}
string FontFamily {set;}
FontSlant FontSlant {set;}
FontWeight FontWeight {set;}
@@ -35,6 +34,7 @@ namespace LongoMatch.Interfaces
void Begin();
void End();
+ void TranslateAndScale (Point translation, Point scale);
void DrawLine (Point start, Point stop);
void DrawTriangle (Point corner, double width, double height,
SelectionPosition orientation);
@@ -45,6 +45,7 @@ namespace LongoMatch.Interfaces
void DrawCircle (Point center, double radius);
void DrawEllipse (Point center, double axisX, double axisY);
void DrawText (Point point, double width, double height, string text);
+ void DrawImage (Image image);
void DrawImage (Point start, double width, double height, Image image, bool scale);
}
}
diff --git a/LongoMatch.Core/Interfaces/Drawing/IWidget.cs b/LongoMatch.Core/Interfaces/Drawing/IWidget.cs
index 61effa2..8cd3666 100644
--- a/LongoMatch.Core/Interfaces/Drawing/IWidget.cs
+++ b/LongoMatch.Core/Interfaces/Drawing/IWidget.cs
@@ -27,6 +27,7 @@ namespace LongoMatch.Interfaces.Drawing
event ButtonPressedHandler ButtonPressEvent;
event ButtonReleasedHandler ButtonReleasedEvent;
event MotionHandler MotionEvent;
+ event SizeChangedHandler SizeChangedEvent;
double Width {get;set;}
double Height {get;set;}
diff --git a/LongoMatch.Core/Store/Drawables/Drawable.cs b/LongoMatch.Core/Store/Drawables/Drawable.cs
index fc4b46e..8477a55 100644
--- a/LongoMatch.Core/Store/Drawables/Drawable.cs
+++ b/LongoMatch.Core/Store/Drawables/Drawable.cs
@@ -33,7 +33,7 @@ namespace LongoMatch.Store.Drawables
set;
}
- public uint StrokeSize {
+ public int LineWidth {
get;
set;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]