Author: jluke
Date: 2005-05-06 20:16:47 -0400 (Fri, 06 May 2005)
New Revision: 44181
Added:
trunk/gtk-sharp/pango/Matrix.custom
Modified:
trunk/gtk-sharp/ChangeLog
trunk/gtk-sharp/doc/en/Pango/Matrix.xml
trunk/gtk-sharp/pango/Makefile.am
trunk/gtk-sharp/sample/GtkDemo/DemoRotatedText.cs
Log:
2005-05-06 John Luke <[EMAIL PROTECTED]>
* pango/Makefile.am: add Matrix.custom
* pango/Matrix.custom: add Pango.Matrix.Identity field
which is the equivalent of PANGO_MATRIX_INIT
* sample/GtkDemo/DemoRotatedText.cs: use Pango.Matrix.Identity
* doc/en/Pango/Matrix.xml: add docs for Pango.Matrix.Identity
Modified: trunk/gtk-sharp/ChangeLog
===================================================================
--- trunk/gtk-sharp/ChangeLog 2005-05-07 00:09:11 UTC (rev 44180)
+++ trunk/gtk-sharp/ChangeLog 2005-05-07 00:16:47 UTC (rev 44181)
@@ -1,3 +1,11 @@
+2005-05-06 John Luke <[EMAIL PROTECTED]>
+
+ * pango/Makefile.am: add Matrix.custom
+ * pango/Matrix.custom: add Pango.Matrix.Identity field
+ which is the equivalent of PANGO_MATRIX_INIT
+ * sample/GtkDemo/DemoRotatedText.cs: use Pango.Matrix.Identity
+ * doc/en/Pango/Matrix.xml: add docs for Pango.Matrix.Identity
+
2005-05-06 Mike Kestner <[EMAIL PROTECTED]>
* configure.in.in : always enable debug build in maintainer_mode.
Modified: trunk/gtk-sharp/doc/en/Pango/Matrix.xml
===================================================================
--- trunk/gtk-sharp/doc/en/Pango/Matrix.xml 2005-05-07 00:09:11 UTC (rev
44180)
+++ trunk/gtk-sharp/doc/en/Pango/Matrix.xml 2005-05-07 00:16:47 UTC (rev
44181)
@@ -227,5 +227,18 @@
<remarks>To be added</remarks>
</Docs>
</Member>
+ <Member MemberName="Identity">
+ <MemberSignature Language="C#" Value="public static Pango.Matrix
Identity;" />
+ <MemberType>Field</MemberType>
+ <ReturnValue>
+ <ReturnType>Pango.Matrix</ReturnType>
+ </ReturnValue>
+ <Parameters>
+ </Parameters>
+ <Docs>
+ <summary>Can be used to initialize a PangoMatrix to the identity
transform.</summary>
+ <remarks>This is the equivalent of PANGO_MATRIX_INIT in C.</remarks>
+ </Docs>
+ </Member>
</Members>
-</Type>
\ No newline at end of file
+</Type>
Modified: trunk/gtk-sharp/pango/Makefile.am
===================================================================
--- trunk/gtk-sharp/pango/Makefile.am 2005-05-07 00:09:11 UTC (rev 44180)
+++ trunk/gtk-sharp/pango/Makefile.am 2005-05-07 00:16:47 UTC (rev 44181)
@@ -38,6 +38,7 @@
GlyphItem.custom \
Layout.custom \
LayoutLine.custom \
+ Matrix.custom \
TabArray.custom
add_dist = makefile.win32
Added: trunk/gtk-sharp/pango/Matrix.custom
===================================================================
--- trunk/gtk-sharp/pango/Matrix.custom 2005-05-07 00:09:11 UTC (rev 44180)
+++ trunk/gtk-sharp/pango/Matrix.custom 2005-05-07 00:16:47 UTC (rev 44181)
@@ -0,0 +1,34 @@
+// Pango.Matrix.custom - Pango Matrix class customizations
+//
+// Authors: John Luke <[EMAIL PROTECTED]>
+//
+// Copyright (c) 2005 John Luke.
+//
+// This code is inserted after the automatically generated code.
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of version 2 of the Lesser GNU General
+// Public License as published by the Free Software Foundation.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this program; if not, write to the
+// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+// Boston, MA 02111-1307, USA.
+
+ static Matrix ()
+ {
+ Identity.Xx = 1.0;
+ Identity.Xy = 0.0;
+ Identity.Yx = 0.0;
+ Identity.Yy = 1.0;
+ Identity.X0 = 0.0;
+ Identity.Y0 = 0.0;
+ }
+
+ public static Matrix Identity;
+
Modified: trunk/gtk-sharp/sample/GtkDemo/DemoRotatedText.cs
===================================================================
--- trunk/gtk-sharp/sample/GtkDemo/DemoRotatedText.cs 2005-05-07 00:09:11 UTC
(rev 44180)
+++ trunk/gtk-sharp/sample/GtkDemo/DemoRotatedText.cs 2005-05-07 00:16:47 UTC
(rev 44181)
@@ -44,14 +44,7 @@
// the centered square where we draw are [-RADIUS,
RADIUS], [-RADIUS, RADIUS]
// We first center, then change the scale
deviceRadius = Math.Min (width, height) / 2;
- // #define PANGO_MATRIX_INIT { 1., 0., 0., 1., 0., 0. }
- Matrix matrix = new Matrix ();
- matrix.Xx = 1.0;
- matrix.Xy = 0.0;
- matrix.Yx = 0.0;
- matrix.Yy = 1.0;
- matrix.X0 = 0.0;
- matrix.Y0 = 0.0;
+ Matrix matrix = Pango.Matrix.Identity;
matrix.Translate (deviceRadius + (width - 2 *
deviceRadius) / 2, deviceRadius + (height - 2 * deviceRadius) / 2);
matrix.Scale (deviceRadius / RADIUS, deviceRadius /
RADIUS);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches