2 /* $Id: layoutiter.ccg,v 1.1 2003/01/21 13:41:06 murrayc Exp $ */
6 * Copyright 2001-2002 The gtkmm Development Team
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the Free
20 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 LayoutIter::LayoutIter()
31 LayoutIter::~LayoutIter()
34 pango_layout_iter_free(gobject_);
37 void LayoutIter::assign_gobj(PangoLayoutIter* src)
42 pango_layout_iter_free(gobject_);
48 Rectangle LayoutIter::get_char_extents() const
50 Rectangle logical_rect;
51 pango_layout_iter_get_char_extents(const_cast<PangoLayoutIter*>(gobj()), logical_rect.gobj());
55 Rectangle LayoutIter::get_cluster_ink_extents() const
58 pango_layout_iter_get_cluster_extents(const_cast<PangoLayoutIter*>(gobj()), ink_rect.gobj(), 0);
62 Rectangle LayoutIter::get_cluster_logical_extents() const
64 Rectangle logical_rect;
65 pango_layout_iter_get_cluster_extents(const_cast<PangoLayoutIter*>(gobj()), 0, logical_rect.gobj());
69 Rectangle LayoutIter::get_run_ink_extents() const
72 pango_layout_iter_get_run_extents(const_cast<PangoLayoutIter*>(gobj()), ink_rect.gobj(), 0);
76 Rectangle LayoutIter::get_run_logical_extents() const
78 Rectangle logical_rect;
79 pango_layout_iter_get_run_extents(const_cast<PangoLayoutIter*>(gobj()), 0, logical_rect.gobj());
83 Rectangle LayoutIter::get_line_ink_extents() const
86 pango_layout_iter_get_line_extents(const_cast<PangoLayoutIter*>(gobj()), ink_rect.gobj(), 0);
90 Rectangle LayoutIter::get_line_logical_extents() const
92 Rectangle logical_rect;
93 pango_layout_iter_get_line_extents(const_cast<PangoLayoutIter*>(gobj()), 0, logical_rect.gobj());
97 Rectangle LayoutIter::get_layout_ink_extents() const
100 pango_layout_iter_get_layout_extents(const_cast<PangoLayoutIter*>(gobj()), ink_rect.gobj(), 0);
104 Rectangle LayoutIter::get_layout_logical_extents() const
106 Rectangle logical_rect;
107 pango_layout_iter_get_layout_extents(const_cast<PangoLayoutIter*>(gobj()), 0, logical_rect.gobj());