libspectre  0.2.9
spectre-render-context.h
Go to the documentation of this file.
1 /* This file is part of Libspectre.
2  *
3  * Copyright (C) 2007 Albert Astals Cid <aacid@kde.org>
4  * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org>
5  *
6  * Libspectre is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2; or (at your option)
9  * any later version.
10  *
11  * Libspectre is distributed in the hope that it will be useful;
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not; write to the Free Software
18  * Foundation; Inc.; 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef SPECTRE_RENDER_CONTEXT_H
22 #define SPECTRE_RENDER_CONTEXT_H
23 
24 #include <libspectre/spectre-macros.h>
25 
26 SPECTRE_BEGIN_DECLS
27 
30 
32 SPECTRE_PUBLIC
34 
38 SPECTRE_PUBLIC
40 
46 SPECTRE_PUBLIC
48  double x_scale,
49  double y_scale);
50 
56 SPECTRE_PUBLIC
58  double *x_scale,
59  double *y_scale);
60 
65 SPECTRE_PUBLIC
67  unsigned int rotation);
68 
72 SPECTRE_PUBLIC
74 
80 SPECTRE_PUBLIC
82  double x_dpi,
83  double y_dpi);
84 
90 SPECTRE_PUBLIC
92  double *x_dpi,
93  double *y_dpi);
94 
104 SPECTRE_PUBLIC
106  int width,
107  int height);
108 
114 SPECTRE_PUBLIC
116  int *width,
117  int *height);
118 
123 SPECTRE_PUBLIC
125  int use_platform_fonts);
126 
130 SPECTRE_PUBLIC
132 
140 SPECTRE_PUBLIC
142  int graphics_bits,
143  int text_bits);
144 
150 SPECTRE_PUBLIC
152  int *graphics_bits,
153  int *text_bits);
154 
155 SPECTRE_END_DECLS
156 
157 #endif /* SPECTRE_PAGE_H */
spectre_render_context_set_use_platform_fonts
SPECTRE_PUBLIC void spectre_render_context_set_use_platform_fonts(SpectreRenderContext *rc, int use_platform_fonts)
Definition: spectre-render-context.c:171
spectre_render_context_set_page_size
SPECTRE_PUBLIC void spectre_render_context_set_page_size(SpectreRenderContext *rc, int width, int height)
Definition: spectre-render-context.c:147
SpectreRenderContext
struct SpectreRenderContext SpectreRenderContext
Definition: spectre-render-context.h:29
spectre_render_context_get_scale
SPECTRE_PUBLIC void spectre_render_context_get_scale(SpectreRenderContext *rc, double *x_scale, double *y_scale)
Definition: spectre-render-context.c:72
spectre_render_context_get_page_size
SPECTRE_PUBLIC void spectre_render_context_get_page_size(SpectreRenderContext *rc, int *width, int *height)
Definition: spectre-render-context.c:158
spectre_render_context_get_use_platform_fonts
SPECTRE_PUBLIC int spectre_render_context_get_use_platform_fonts(SpectreRenderContext *rc)
Definition: spectre-render-context.c:180
spectre_render_context_set_resolution
SPECTRE_PUBLIC void spectre_render_context_set_resolution(SpectreRenderContext *rc, double x_dpi, double y_dpi)
Definition: spectre-render-context.c:123
spectre_render_context_get_antialias_bits
SPECTRE_PUBLIC void spectre_render_context_get_antialias_bits(SpectreRenderContext *rc, int *graphics_bits, int *text_bits)
Definition: spectre-render-context.c:199
spectre_render_context_free
SPECTRE_PUBLIC void spectre_render_context_free(SpectreRenderContext *rc)
Definition: spectre-render-context.c:52
spectre_render_context_new
SPECTRE_PUBLIC SpectreRenderContext * spectre_render_context_new(void)
Definition: spectre-render-context.c:29
spectre_render_context_get_resolution
SPECTRE_PUBLIC void spectre_render_context_get_resolution(SpectreRenderContext *rc, double *x_dpi, double *y_dpi)
Definition: spectre-render-context.c:134
spectre_render_context_set_antialias_bits
SPECTRE_PUBLIC void spectre_render_context_set_antialias_bits(SpectreRenderContext *rc, int graphics_bits, int text_bits)
Definition: spectre-render-context.c:188
spectre_render_context_set_scale
SPECTRE_PUBLIC void spectre_render_context_set_scale(SpectreRenderContext *rc, double x_scale, double y_scale)
Definition: spectre-render-context.c:61
spectre_render_context_set_rotation
SPECTRE_PUBLIC void spectre_render_context_set_rotation(SpectreRenderContext *rc, unsigned int rotation)
Definition: spectre-render-context.c:85
spectre_render_context_get_rotation
SPECTRE_PUBLIC unsigned int spectre_render_context_get_rotation(SpectreRenderContext *rc)
Definition: spectre-render-context.c:103