summaryrefslogtreecommitdiff
path: root/pango/pango-layout.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-07-02 21:31:19 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-07-02 21:31:19 +0000
commit6870ed61201c6c8545c59861a148647e39a3b7ed (patch)
treee4ffb25a9ca54888d625bc423ceb3507ec8c1993 /pango/pango-layout.h
parent5d69786601736595d1b6ac4fe141a8694fab011d (diff)
downloadpango-6870ed61201c6c8545c59861a148647e39a3b7ed.tar.gz
Add a PANGO_PIXELS macro to convert from pango units to device units and
Sun Jul 2 17:19:11 2000 Owen Taylor <otaylor@redhat.com> * pango/pango-types.h: Add a PANGO_PIXELS macro to convert from pango units to device units and round. * pango/pango-layout.[ch]: Add convenience functions pango_layout_get_pixel_extents, pango_layout_get_size, pango_layout_get_pixel_size pango_layout_line_get_pixel_extents.
Diffstat (limited to 'pango/pango-layout.h')
-rw-r--r--pango/pango-layout.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/pango/pango-layout.h b/pango/pango-layout.h
index 034794d9..516b867a 100644
--- a/pango/pango-layout.h
+++ b/pango/pango-layout.h
@@ -120,6 +120,15 @@ gboolean pango_layout_xy_to_index (PangoLayout *layout,
void pango_layout_get_extents (PangoLayout *layout,
PangoRectangle *ink_rect,
PangoRectangle *logical_rect);
+void pango_layout_get_pixel_extents (PangoLayout *layout,
+ PangoRectangle *ink_rect,
+ PangoRectangle *logical_rect);
+void pango_layout_get_size (PangoLayout *layout,
+ int *width,
+ int *height);
+void pango_layout_get_pixel_size (PangoLayout *layout,
+ int *width,
+ int *height);
int pango_layout_get_line_count (PangoLayout *layout);
PangoLayoutLine *pango_layout_get_line (PangoLayout *layout,
@@ -144,6 +153,9 @@ void pango_layout_line_get_x_ranges (PangoLayoutLine *line,
void pango_layout_line_get_extents (PangoLayoutLine *line,
PangoRectangle *ink_rect,
PangoRectangle *logical_rect);
+void pango_layout_line_get_pixel_extents (PangoLayoutLine *layout_line,
+ PangoRectangle *ink_rect,
+ PangoRectangle *logical_rect);
#ifdef __cplusplus
}