Blame pango/src/layoutiter.ccg

Packit 78284e
// -*- c++ -*-
Packit 78284e
/* $Id: layoutiter.ccg,v 1.1 2003/01/21 13:41:06 murrayc Exp $ */
Packit 78284e
Packit 78284e
/*
Packit 78284e
 *
Packit 78284e
 * Copyright 2001-2002 The gtkmm Development Team
Packit 78284e
 *
Packit 78284e
 * This library is free software; you can redistribute it and/or
Packit 78284e
 * modify it under the terms of the GNU Lesser General Public
Packit 78284e
 * License as published by the Free Software Foundation; either
Packit 78284e
 * version 2.1 of the License, or (at your option) any later version.
Packit 78284e
 *
Packit 78284e
 * This library is distributed in the hope that it will be useful,
Packit 78284e
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 78284e
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 78284e
 * Lesser General Public License for more details.
Packit 78284e
 *
Packit 78284e
 * You should have received a copy of the GNU Lesser General Public
Packit 78284e
 * License along with this library; if not, write to the Free
Packit 78284e
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Packit 78284e
 */
Packit 78284e
Packit 78284e
#include <pangomm/layout.h>
Packit 78284e
Packit 78284e
namespace Pango
Packit 78284e
{
Packit 78284e
Packit 78284e
void LayoutIter::assign_gobj(PangoLayoutIter* /* src */)
Packit 78284e
{
Packit 78284e
  //We don't actually use this anymore, and it was only ever for internal use.
Packit 78284e
  //We just have not removed it completely to avoid appearing to break the ABI.
Packit 78284e
}
Packit 78284e
Packit 78284e
Rectangle LayoutIter::get_char_extents() const
Packit 78284e
{
Packit 78284e
  Rectangle logical_rect;
Packit 78284e
  pango_layout_iter_get_char_extents(const_cast<PangoLayoutIter*>(gobj()), logical_rect.gobj());
Packit 78284e
  return logical_rect;
Packit 78284e
}
Packit 78284e
Packit 78284e
Rectangle LayoutIter::get_cluster_ink_extents() const
Packit 78284e
{
Packit 78284e
  Rectangle ink_rect;
Packit 78284e
  pango_layout_iter_get_cluster_extents(const_cast<PangoLayoutIter*>(gobj()), ink_rect.gobj(), 0);
Packit 78284e
  return ink_rect;
Packit 78284e
}
Packit 78284e
Packit 78284e
Rectangle LayoutIter::get_cluster_logical_extents() const
Packit 78284e
{
Packit 78284e
  Rectangle logical_rect;
Packit 78284e
  pango_layout_iter_get_cluster_extents(const_cast<PangoLayoutIter*>(gobj()), 0, logical_rect.gobj());
Packit 78284e
  return logical_rect;
Packit 78284e
}
Packit 78284e
Packit 78284e
Rectangle LayoutIter::get_run_ink_extents() const
Packit 78284e
{
Packit 78284e
  Rectangle ink_rect;
Packit 78284e
  pango_layout_iter_get_run_extents(const_cast<PangoLayoutIter*>(gobj()), ink_rect.gobj(), 0);
Packit 78284e
  return ink_rect;
Packit 78284e
}
Packit 78284e
Packit 78284e
Rectangle LayoutIter::get_run_logical_extents() const
Packit 78284e
{
Packit 78284e
  Rectangle logical_rect;
Packit 78284e
  pango_layout_iter_get_run_extents(const_cast<PangoLayoutIter*>(gobj()), 0, logical_rect.gobj());
Packit 78284e
  return logical_rect;
Packit 78284e
}
Packit 78284e
Packit 78284e
Rectangle LayoutIter::get_line_ink_extents() const
Packit 78284e
{
Packit 78284e
  Rectangle ink_rect;
Packit 78284e
  pango_layout_iter_get_line_extents(const_cast<PangoLayoutIter*>(gobj()), ink_rect.gobj(), 0);
Packit 78284e
  return ink_rect;
Packit 78284e
}
Packit 78284e
Packit 78284e
Rectangle LayoutIter::get_line_logical_extents() const
Packit 78284e
{
Packit 78284e
  Rectangle logical_rect;
Packit 78284e
  pango_layout_iter_get_line_extents(const_cast<PangoLayoutIter*>(gobj()), 0, logical_rect.gobj());
Packit 78284e
  return logical_rect;
Packit 78284e
}
Packit 78284e
Packit 78284e
Rectangle LayoutIter::get_layout_ink_extents() const
Packit 78284e
{
Packit 78284e
  Rectangle ink_rect;
Packit 78284e
  pango_layout_iter_get_layout_extents(const_cast<PangoLayoutIter*>(gobj()), ink_rect.gobj(), 0);
Packit 78284e
  return ink_rect;
Packit 78284e
}
Packit 78284e
Packit 78284e
Rectangle LayoutIter::get_layout_logical_extents() const
Packit 78284e
{
Packit 78284e
  Rectangle logical_rect;
Packit 78284e
  pango_layout_iter_get_layout_extents(const_cast<PangoLayoutIter*>(gobj()), 0, logical_rect.gobj());
Packit 78284e
  return logical_rect;
Packit 78284e
}
Packit 78284e
Packit 78284e
} // namespace Pango
Packit 78284e