libspectre 0.2.11
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
26SPECTRE_BEGIN_DECLS
27
30
32SPECTRE_PUBLIC
34
38SPECTRE_PUBLIC
40
46SPECTRE_PUBLIC
48 double x_scale,
49 double y_scale);
50
56SPECTRE_PUBLIC
58 double *x_scale,
59 double *y_scale);
60
65SPECTRE_PUBLIC
67 unsigned int rotation);
68
72SPECTRE_PUBLIC
74
80SPECTRE_PUBLIC
82 double x_dpi,
83 double y_dpi);
84
90SPECTRE_PUBLIC
92 double *x_dpi,
93 double *y_dpi);
94
104SPECTRE_PUBLIC
106 int width,
107 int height);
108
114SPECTRE_PUBLIC
116 int *width,
117 int *height);
118
123SPECTRE_PUBLIC
125 int use_platform_fonts);
126
130SPECTRE_PUBLIC
132
140SPECTRE_PUBLIC
142 int graphics_bits,
143 int text_bits);
144
150SPECTRE_PUBLIC
152 int *graphics_bits,
153 int *text_bits);
154
155SPECTRE_END_DECLS
156
157#endif /* SPECTRE_PAGE_H */
struct SpectreRenderContext SpectreRenderContext
Definition: spectre-render-context.h:29
SPECTRE_PUBLIC void spectre_render_context_get_page_size(SpectreRenderContext *rc, int *width, int *height)
Definition: spectre-render-context.c:158
SPECTRE_PUBLIC SpectreRenderContext * spectre_render_context_new(void)
Definition: spectre-render-context.c:29
SPECTRE_PUBLIC int spectre_render_context_get_use_platform_fonts(SpectreRenderContext *rc)
Definition: spectre-render-context.c:180
SPECTRE_PUBLIC unsigned int spectre_render_context_get_rotation(SpectreRenderContext *rc)
Definition: spectre-render-context.c:103
SPECTRE_PUBLIC void spectre_render_context_set_page_size(SpectreRenderContext *rc, int width, int height)
Definition: spectre-render-context.c:147
SPECTRE_PUBLIC void spectre_render_context_get_antialias_bits(SpectreRenderContext *rc, int *graphics_bits, int *text_bits)
Definition: spectre-render-context.c:199
SPECTRE_PUBLIC void spectre_render_context_free(SpectreRenderContext *rc)
Definition: spectre-render-context.c:52
SPECTRE_PUBLIC void spectre_render_context_get_scale(SpectreRenderContext *rc, double *x_scale, double *y_scale)
Definition: spectre-render-context.c:72
SPECTRE_PUBLIC void spectre_render_context_set_antialias_bits(SpectreRenderContext *rc, int graphics_bits, int text_bits)
Definition: spectre-render-context.c:188
SPECTRE_PUBLIC void spectre_render_context_set_resolution(SpectreRenderContext *rc, double x_dpi, double y_dpi)
Definition: spectre-render-context.c:123
SPECTRE_PUBLIC void spectre_render_context_set_rotation(SpectreRenderContext *rc, unsigned int rotation)
Definition: spectre-render-context.c:85
SPECTRE_PUBLIC void spectre_render_context_get_resolution(SpectreRenderContext *rc, double *x_dpi, double *y_dpi)
Definition: spectre-render-context.c:134
SPECTRE_PUBLIC void spectre_render_context_set_scale(SpectreRenderContext *rc, double x_scale, double y_scale)
Definition: spectre-render-context.c:61
SPECTRE_PUBLIC void spectre_render_context_set_use_platform_fonts(SpectreRenderContext *rc, int use_platform_fonts)
Definition: spectre-render-context.c:171