579db9083d
This updates the Cogl Pango api to no longer require a default context and also cleans up the public api a bit. The CoglPangoRenderer type has been made private to be consistent with other pango backends where the renderer is merely an implementation detail. The drawing apis such as cogl_pango_render_layout where made more consistent with other pango backend apis so we now have replacements like cogl_pango_show_layout(). Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit bba2defe8c08a498b2dcb84bcf5b5a33f16eed27) Note: API changes were reverting in cherry-picking this patch
60 lines
1.6 KiB
C
60 lines
1.6 KiB
C
/*
|
|
* Cogl
|
|
*
|
|
* An object oriented GL/GLES Abstraction/Utility Layer
|
|
*
|
|
* Copyright (C) 2008 OpenedHand
|
|
* Copyright (C) 2012 Intel Corporation.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see
|
|
* <http://www.gnu.org/licenses/>.
|
|
*
|
|
*
|
|
* Authors:
|
|
* Neil Roberts <neil@linux.intel.com>
|
|
* Robert Bragg <robert@linux.intel.com>
|
|
* Matthew Allum <mallum@openedhand.com>
|
|
*/
|
|
|
|
#ifndef __COGL_PANGO_PRIVATE_H__
|
|
#define __COGL_PANGO_PRIVATE_H__
|
|
|
|
#include "cogl-pango.h"
|
|
|
|
COGL_BEGIN_DECLS
|
|
|
|
PangoRenderer *
|
|
_cogl_pango_renderer_new (CoglContext *context);
|
|
|
|
void
|
|
_cogl_pango_renderer_clear_glyph_cache (CoglPangoRenderer *renderer);
|
|
|
|
void
|
|
_cogl_pango_renderer_set_use_mipmapping (CoglPangoRenderer *renderer,
|
|
CoglBool value);
|
|
CoglBool
|
|
_cogl_pango_renderer_get_use_mipmapping (CoglPangoRenderer *renderer);
|
|
|
|
|
|
|
|
CoglContext *
|
|
_cogl_pango_font_map_get_cogl_context (CoglPangoFontMap *fm);
|
|
|
|
PangoRenderer *
|
|
_cogl_pango_font_map_get_renderer (CoglPangoFontMap *fm);
|
|
|
|
COGL_END_DECLS
|
|
|
|
#endif /* __COGL_PANGO_PRIVATE_H__ */
|