[pango/pango2-windows: 10/12] pangowin32.[c|h]: Drop pango_win32_render_layout()
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2-windows: 10/12] pangowin32.[c|h]: Drop pango_win32_render_layout()
- Date: Mon, 14 Mar 2022 08:20:57 +0000 (UTC)
commit 32d2c15a792c47f5019f0e6b79caf303b5d09aad
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Mar 14 15:44:39 2022 +0800
pangowin32.[c|h]: Drop pango_win32_render_layout()
Similar API is dropped in Pango proper, so drop it here.
pango/pangowin32.c | 43 -------------------------------------------
pango/pangowin32.h | 5 -----
2 files changed, 48 deletions(-)
---
diff --git a/pango/pangowin32.c b/pango/pangowin32.c
index da047052..cd35ea24 100644
--- a/pango/pangowin32.c
+++ b/pango/pangowin32.c
@@ -1032,49 +1032,6 @@ pango_win32_render_layout_line (HDC hdc,
SetBkMode (hdc, oldbkmode);
}
-/**
- * pango_win32_render_layout:
- * @hdc: HDC to use for drawing
- * @layout: a `PangoLayout`
- * @x: the X position of the left of the layout (in pixels)
- * @y: the Y position of the top of the layout (in pixels)
- *
- * Render a `PangoLine` onto an HDC.
- */
-void
-pango_win32_render_layout (HDC hdc,
- PangoLayout *layout,
- int x,
- int y)
-{
- PangoLineIter *iter;
-
- g_return_if_fail (hdc != NULL);
- g_return_if_fail (PANGO_IS_LAYOUT (layout));
-
- iter = pango_layout_get_iter (layout);
-
- do
- {
- PangoRectangle logical_rect;
- PangoLine *line;
- int baseline;
-
- line = pango_layout_iter_get_line_readonly (iter);
-
- pango_layout_iter_get_line_extents (iter, NULL, &logical_rect);
- baseline = pango_layout_iter_get_baseline (iter);
-
- pango_win32_render_layout_line (hdc,
- line,
- x + PANGO_PIXELS (logical_rect.x),
- y + PANGO_PIXELS (baseline));
- }
- while (pango_layout_iter_next_line (iter));
-
- pango_layout_iter_free (iter);
-}
-
/* This utility function is duplicated here and in pango-layout.c; should it be
* public? Trouble is - what is the appropriate set of properties?
*/
diff --git a/pango/pangowin32.h b/pango/pangowin32.h
index b0f8db2b..19d57c15 100644
--- a/pango/pangowin32.h
+++ b/pango/pangowin32.h
@@ -51,11 +51,6 @@ void pango_win32_render_layout_line (HDC hdc,
PangoLine *line,
int x,
int y);
-PANGO_AVAILABLE_IN_ALL
-void pango_win32_render_layout (HDC hdc,
- PangoLayout *layout,
- int x,
- int y);
PANGO_AVAILABLE_IN_ALL
void pango_win32_render_transformed (HDC hdc,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]