pangomm r29 - in trunk: . pango/src



Author: murrayc
Date: Thu Nov 13 09:59:36 2008
New Revision: 29
URL: http://svn.gnome.org/viewvc/pangomm?rev=29&view=rev

Log:
2008-11-12  Louis-Francis RattÃ-Boulianne <louisfrancis rb gmail com>

* pango/src/layout.cgg:
* pango/src/layout.hg: Added show_in_cairo_context().
Bug #560232,

Modified:
   trunk/ChangeLog
   trunk/pango/src/layout.ccg
   trunk/pango/src/layout.hg

Modified: trunk/pango/src/layout.ccg
==============================================================================
--- trunk/pango/src/layout.ccg	(original)
+++ trunk/pango/src/layout.ccg	Thu Nov 13 09:59:36 2008
@@ -129,4 +129,9 @@
   pango_cairo_layout_path(context->cobj(), gobj());
 }
 
+void Layout::show_in_cairo_context(const Cairo::RefPtr<Cairo::Context>& context)
+{
+  pango_cairo_show_layout(context->cobj(), gobj());
+}
+
 } /* namespace Pango */

Modified: trunk/pango/src/layout.hg
==============================================================================
--- trunk/pango/src/layout.hg	(original)
+++ trunk/pango/src/layout.hg	Thu Nov 13 09:59:36 2008
@@ -246,6 +246,14 @@
    * @param context A Cairo context.
    */
   void add_to_cairo_context(const Cairo::RefPtr<Cairo::Context>& context);
+
+  /** Draws a Layout in the specified cairo @a context. The top-left
+   *  corner of the PangoLayout will be drawn at the current point of the
+   *  cairo context.
+   *
+   * @param context A Cairo context.
+   */
+  void show_in_cairo_context(const Cairo::RefPtr<Cairo::Context>& context);
 };
 
 } /* namespace Pango */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]