pango_renderer.h

Go to the documentation of this file.
00001 /*
00002  * File Name: pango_renderer.h
00003  */
00004 
00005 /*
00006  * This file is part of uds-plugin-common.
00007  *
00008  * uds-plugin-common is free software: you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation, either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * uds-plugin-common is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00020  */
00021 
00022 /**
00023  * Copyright (C) 2008 iRex Technologies B.V.
00024  * All rights reserved.
00025  */
00026 
00027 #ifndef PANGO_RENDERER_H
00028 #define PANGO_RENDERER_H
00029 
00030 #include <pango/pango.h>
00031 #include <pango/pangoft2.h>
00032 
00033 #include <ft2build.h>
00034 #include FT_FREETYPE_H
00035 #include FT_GLYPH_H
00036 
00037 #define PANGO_GLYPH_EMPTY       ((PangoGlyph)0x0FFFFFFF)
00038 
00039 /// @brief Render 1 single pango line at (x,y).
00040 void render_single_line(unsigned char   *bmp,
00041                         PangoLayoutLine *pango_line,
00042                         unsigned int    font_hash_code,
00043                         int             x,
00044                         int             y,
00045                         const int       width);
00046 
00047 /// @brief Render 1 single glyph at (x,y).
00048 void render_single_glyph(unsigned char        *bmp,
00049                          int                  x,
00050                          int                  y,
00051                          const int            width,
00052                          const FT_BitmapGlyph glyph);
00053 
00054 #endif
Generated by  doxygen 1.6.2-20100208