00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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