libspectre/spectre-render-context.h

Go to the documentation of this file.
00001 /* This file is part of Libspectre.
00002  * 
00003  * Copyright (C) 2007 Albert Astals Cid <aacid@kde.org>
00004  * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org>
00005  *
00006  * Libspectre is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2; or (at your option)
00009  * any later version.
00010  *
00011  * Libspectre is distributed in the hope that it will be useful;
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not; write to the Free Software
00018  * Foundation; Inc.; 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00019  */
00020 
00021 #ifndef SPECTRE_RENDER_CONTEXT_H
00022 #define SPECTRE_RENDER_CONTEXT_H
00023 
00024 #include <libspectre/spectre-macros.h>
00025 
00026 SPECTRE_BEGIN_DECLS
00027 
00029 typedef struct SpectreRenderContext SpectreRenderContext;
00030 
00032 SpectreRenderContext *spectre_render_context_new                    (void);
00033 
00037 void                  spectre_render_context_free                   (SpectreRenderContext *rc);
00038 
00044 void                  spectre_render_context_set_scale              (SpectreRenderContext *rc,
00045                                                                      double                x_scale,
00046                                                                      double                y_scale);
00047 
00053 void                  spectre_render_context_get_scale              (SpectreRenderContext *rc,
00054                                                                      double               *x_scale,
00055                                                                      double               *y_scale);
00056 
00061 void                  spectre_render_context_set_rotation           (SpectreRenderContext *rc,
00062                                                                      unsigned int          rotation);
00063 
00067 unsigned int          spectre_render_context_get_rotation           (SpectreRenderContext *rc);
00068 
00074 void                  spectre_render_context_set_resolution         (SpectreRenderContext *rc,
00075                                                                      double                x_dpi,
00076                                                                      double                y_dpi);
00077 
00083 void                  spectre_render_context_get_resolution         (SpectreRenderContext *rc,
00084                                                                      double               *x_dpi,
00085                                                                      double               *y_dpi);
00086 
00096 void                  spectre_render_context_set_page_size          (SpectreRenderContext *rc,
00097                                                                      int                   width,
00098                                                                      int                   height);
00099 
00105 void                  spectre_render_context_get_page_size          (SpectreRenderContext *rc,
00106                                                                      int                  *width,
00107                                                                      int                  *height);
00108 
00113 void                  spectre_render_context_set_use_platform_fonts (SpectreRenderContext *rc,
00114                                                                      int                   use_platform_fonts);
00115 
00119 int                   spectre_render_context_get_use_platform_fonts (SpectreRenderContext *rc);
00120 
00128 void                  spectre_render_context_set_antialias_bits     (SpectreRenderContext *rc,
00129                                                                      int                   graphics_bits,
00130                                                                      int                   text_bits);
00131 
00137 void                  spectre_render_context_get_antialias_bits     (SpectreRenderContext *rc,
00138                                                                      int                  *graphics_bits,
00139                                                                      int                  *text_bits);
00140 
00141 SPECTRE_END_DECLS
00142 
00143 #endif /* SPECTRE_PAGE_H */

Generated on Thu Jan 3 17:29:34 2008 for libspectre by  doxygen 1.5.3