/usr/include/libps/pslib.h is in pslib-dev 0.4.5-3.1+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 | #ifndef __PSLIB_H__
#define __PSLIB_H__
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef WIN32
#define PSLIB_CALL __cdecl
#ifdef PSLIB_EXPORTS
#define PSLIB_API __declspec(dllexport) /* prepare a DLL (internal use only) */
#elif defined(PSLIB_DLL)
#define PSLIB_API __declspec(dllimport) /* PSlib clients: import PSlib DLL */
#else /* !PSLIB_DLL */
#define PSLIB_API /* */ /* default: generate or use static library */
#endif /* !PSLIB_DLL */
#endif /* !WIN32 */
#ifndef PSLIB_CALL
#define PSLIB_CALL
#endif
#ifndef PSLIB_API
#define PSLIB_API
#endif
#define PS_MemoryError 1
#define PS_IOError 2
#define PS_RuntimeError 3
#define PS_Warning 100
#define PS_LINECAP_BUTT 0
#define PS_LINECAP_ROUND 1
#define PS_LINECAP_SQUARED 2
#define PS_LINEJOIN_MITER 0
#define PS_LINEJOIN_ROUND 1
#define PS_LINEJOIN_BEVEL 2
#define PS_GOTO_NEXT_PAGE -1
#define PS_GOTO_PREV_PAGE -2
#define ps_true 1
#define ps_false 0
typedef int ps_bool;
typedef struct PSDoc_ PSDoc;
PSLIB_API int PSLIB_CALL
PS_get_majorversion(void);
PSLIB_API int PSLIB_CALL
PS_get_minorversion(void);
PSLIB_API int PSLIB_CALL
PS_get_subminorversion(void);
PSLIB_API void PSLIB_CALL
PS_boot(void);
PSLIB_API void PSLIB_CALL
PS_shutdown(void);
PSLIB_API void PSLIB_CALL
PS_set_info(PSDoc *p, const char *key, const char *val);
PSLIB_API PSDoc * PSLIB_CALL
PS_new(void);
PSLIB_API PSDoc * PSLIB_CALL
PS_new2(void (*errorhandler)(PSDoc *p, int type, const char *msg, void *data),
void* (*allocproc)(PSDoc *p, size_t size, const char *caller),
void* (*reallocproc)(PSDoc *p, void *mem, size_t size, const char *caller),
void (*freeproc)(PSDoc *p, void *mem),
void *opaque);
PSLIB_API int PSLIB_CALL
PS_open_fp(PSDoc *psdoc, FILE *fp);
PSLIB_API void * PSLIB_CALL
PS_get_opaque(PSDoc *psdoc);
PSLIB_API int PSLIB_CALL
PS_open_mem(PSDoc *p, size_t (*writeproc)(PSDoc *p, void *data, size_t size));
PSLIB_API int PSLIB_CALL
PS_open_file(PSDoc *psdoc, const char *filename);
PSLIB_API void PSLIB_CALL
PS_close(PSDoc *psdoc);
PSLIB_API void PSLIB_CALL
PS_delete(PSDoc *psdoc);
PSLIB_API void PSLIB_CALL
PS_begin_page(PSDoc *psdoc, float width, float height);
PSLIB_API void PSLIB_CALL
PS_end_page(PSDoc *psdoc);
PSLIB_API void PSLIB_CALL
PS_set_parameter(PSDoc *psdoc, const char *name, const char *value);
PSLIB_API const char * PSLIB_CALL
PS_get_parameter(PSDoc *psdoc, const char *name, float modifier);
PSLIB_API void PSLIB_CALL
PS_set_value(PSDoc *psdoc, const char *name, float value);
PSLIB_API float PSLIB_CALL
PS_get_value(PSDoc *psdoc, const char *name, float modifier);
PSLIB_API void PSLIB_CALL
PS_list_values(PSDoc *psdoc);
PSLIB_API void PSLIB_CALL
PS_list_parameters(PSDoc *psdoc);
PSLIB_API void PSLIB_CALL
PS_list_resources(PSDoc *psdoc);
PSLIB_API void PSLIB_CALL
PS_set_text_pos(PSDoc *psdoc, float x, float y);
PSLIB_API void PSLIB_CALL
PS_setlinewidth(PSDoc *p, float width);
PSLIB_API void PSLIB_CALL
PS_setlinecap(PSDoc *p, int type);
PSLIB_API void PSLIB_CALL
PS_setlinejoin(PSDoc *p, int type);
PSLIB_API void PSLIB_CALL
PS_setmiterlimit(PSDoc *p, float value);
PSLIB_API void PSLIB_CALL
PS_setflat(PSDoc *p, float value);
PSLIB_API void PSLIB_CALL
PS_setoverprintmode(PSDoc *p, int mode);
PSLIB_API void PSLIB_CALL
PS_setsmoothness(PSDoc *p, float smoothness);
PSLIB_API void PSLIB_CALL
PS_setdash(PSDoc *p, float on, float off);
PSLIB_API void PSLIB_CALL
PS_setpolydash(PSDoc *p, float *arr, int length);
PSLIB_API void PSLIB_CALL
PS_curveto(PSDoc *psdoc, float x1, float y1, float x2, float y2, float x3, float y3);
PSLIB_API void PSLIB_CALL
PS_rect(PSDoc *psdoc, float x, float y, float width, float height);
PSLIB_API void PSLIB_CALL
PS_circle(PSDoc *psdoc, float x, float y, float radius);
PSLIB_API void PSLIB_CALL
PS_arc(PSDoc *psdoc, float x, float y, float radius, float alpha, float beta);
PSLIB_API void PSLIB_CALL
PS_arcn(PSDoc *psdoc, float x, float y, float radius, float alpha, float beta);
PSLIB_API void PSLIB_CALL
PS_clip(PSDoc *psdoc);
PSLIB_API void PSLIB_CALL
PS_setgray(PSDoc *psdoc, float gray);
PSLIB_API void PSLIB_CALL
PS_closepath(PSDoc *psdoc);
PSLIB_API void PSLIB_CALL
PS_closepath_stroke(PSDoc *psdoc);
PSLIB_API void PSLIB_CALL
PS_fill_stroke(PSDoc *psdoc);
PSLIB_API void PSLIB_CALL
PS_stroke(PSDoc *psdoc);
PSLIB_API void PSLIB_CALL
PS_fill(PSDoc *psdoc);
PSLIB_API void PSLIB_CALL
PS_save(PSDoc *psdoc);
PSLIB_API void PSLIB_CALL
PS_restore(PSDoc *psdoc);
PSLIB_API void PSLIB_CALL
PS_show(PSDoc *psdoc, const char *text);
PSLIB_API void PSLIB_CALL
PS_show2(PSDoc *psdoc, const char *text, int xlen);
PSLIB_API void PSLIB_CALL
PS_show_xy(PSDoc *psdoc, const char *text, float x, float y);
PSLIB_API void PSLIB_CALL
PS_show_xy2(PSDoc *psdoc, const char *text, int xlen, float x, float y);
PSLIB_API int PSLIB_CALL
PS_show_boxed(PSDoc *psdoc, const char *text, float left, float bottom, float width, float height, const char *hmode, const char *feature);
PSLIB_API void PSLIB_CALL
PS_continue_text(PSDoc *psdoc, const char *text);
PSLIB_API void PSLIB_CALL
PS_continue_text2(PSDoc *psdoc, const char *text, int len);
PSLIB_API void PSLIB_CALL
PS_setcolor(PSDoc *psdoc, const char *type, const char *colorspace, float c1, float c2, float c3, float c4);
PSLIB_API int PSLIB_CALL
PS_makespotcolor(PSDoc *psdoc, const char *name, int reserved);
PSLIB_API int PSLIB_CALL
PS_findfont(PSDoc *psdoc, const char *fontname, const char *encoding, int embed);
PSLIB_API float PSLIB_CALL
PS_stringwidth(PSDoc *psdoc, const char *text, int fontid, float size);
PSLIB_API float PSLIB_CALL
PS_stringwidth2(PSDoc *psdoc, const char *text, int xlen, int fontid, float size);
PSLIB_API float PSLIB_CALL
PS_string_geometry(PSDoc *psdoc, const char *text, int xlen, int fontid, float size, float *dimension);
PSLIB_API void PSLIB_CALL
PS_deletefont(PSDoc *psdoc, int fontid);
PSLIB_API void PSLIB_CALL
PS_setfont(PSDoc *psdoc, int fontid, float size);
PSLIB_API int PSLIB_CALL
PS_getfont(PSDoc *psdoc);
PSLIB_API void PSLIB_CALL
PS_moveto(PSDoc *psdoc, float x, float y);
PSLIB_API void PSLIB_CALL
PS_lineto(PSDoc *psdoc, float x, float y);
PSLIB_API void PSLIB_CALL
PS_rotate(PSDoc *psdoc, float x);
PSLIB_API void PSLIB_CALL
PS_translate(PSDoc *psdoc, float x, float y);
PSLIB_API void PSLIB_CALL
PS_scale(PSDoc *psdoc, float x, float y);
PSLIB_API const char * PSLIB_CALL
PS_get_buffer(PSDoc *psdoc, long *size);
PSLIB_API int PSLIB_CALL
PS_open_image(PSDoc *psdoc, const char *type, const char *source, const char *data, long length, int width, int height, int components, int bpc, const char *params);
PSLIB_API int PSLIB_CALL
PS_open_image_file(PSDoc *psdoc, const char *type, const char *filename, const char *stringparam, int intparam);
PSLIB_API void PSLIB_CALL
PS_place_image(PSDoc *psdoc, int imageid, float x, float y, float scale);
PSLIB_API void PSLIB_CALL
PS_close_image(PSDoc *psdoc, int imageid);
PSLIB_API void PSLIB_CALL
PS_add_weblink(PSDoc *psdoc, float llx, float lly, float urx, float ury, const char *url);
PSLIB_API void PSLIB_CALL
PS_add_pdflink(PSDoc *psdoc, float llx, float lly, float urx, float ury, const char *filename, int page, const char *dest);
PSLIB_API void PSLIB_CALL
PS_add_locallink(PSDoc *psdoc, float llx, float lly, float urx, float ury, const int page, const char *dest);
PSLIB_API void PSLIB_CALL
PS_add_launchlink(PSDoc *psdoc, float llx, float lly, float urx, float ury, const char *filename);
PSLIB_API int PSLIB_CALL
PS_add_bookmark(PSDoc *psdoc, const char *text, int parent, int open);
PSLIB_API void PSLIB_CALL
PS_add_note(PSDoc *psdoc, float llx, float lly, float urx, float ury, const char *contents, const char *title, const char *icon, int open);
PSLIB_API void PSLIB_CALL
PS_set_border_style(PSDoc *psdoc, const char *style, float width);
PSLIB_API void PSLIB_CALL
PS_set_border_color(PSDoc *psdoc, float red, float green, float blue);
PSLIB_API void PSLIB_CALL
PS_set_border_dash(PSDoc *psdoc, float black, float white);
PSLIB_API int PSLIB_CALL
PS_begin_template(PSDoc *psdoc, float width, float height);
PSLIB_API void PSLIB_CALL
PS_end_template(PSDoc *psdoc);
PSLIB_API int PSLIB_CALL
PS_begin_pattern(PSDoc *psdoc, float width, float height, float xstep, float ystep, int painttype);
PSLIB_API void PSLIB_CALL
PS_end_pattern(PSDoc *psdoc);
PSLIB_API void PSLIB_CALL
PS_shfill(PSDoc *psdoc, int shading);
PSLIB_API int PSLIB_CALL
PS_shading(PSDoc *psdoc, const char *shtype, float x0, float y0, float x1, float y1, float c1, float c2, float c3, float c4, const char *optlist);
PSLIB_API int PSLIB_CALL
PS_shading_pattern(PSDoc *psdoc, int shading, const char *optlist);
PSLIB_API int PSLIB_CALL
PS_create_gstate(PSDoc *psdoc, const char *optlist);
PSLIB_API int PSLIB_CALL
PS_hyphenate(PSDoc *psdoc, const char *text, char **hyphens);
PSLIB_API void PSLIB_CALL
PS_symbol(PSDoc *psdoc, unsigned char c);
PSLIB_API float PSLIB_CALL
PS_symbol_width(PSDoc *psdoc, unsigned char c, int fontid, float size);
PSLIB_API void PSLIB_CALL
PS_symbol_name(PSDoc *psdoc, unsigned char c, int fontid, char *name, int size);
PSLIB_API int PSLIB_CALL
PS_include_file(PSDoc *psdoc, const char *filename);
PSLIB_API int PSLIB_CALL
PS_begin_font(PSDoc *psdoc, const char *fontname, int reserverd, double a, double b, double c, double d, double e, double f, const char *optlist);
PSLIB_API void PSLIB_CALL
PS_end_font(PSDoc *psdoc);
PSLIB_API int PSLIB_CALL
PS_begin_glyph(PSDoc *psdoc, const char *glyphname, double wx, double llx, double lly, double urx, double ury);
PSLIB_API void PSLIB_CALL
PS_end_glyph(PSDoc *psdoc);
PSLIB_API void PSLIB_CALL
PS_add_kerning(PSDoc *psdoc, int fontid, const char *glyphname1, const char *glyphname2, int kern);
PSLIB_API void PSLIB_CALL
PS_add_ligature(PSDoc *psdoc, int fontid, const char *glyphname1, const char *glyphname2, const char *glyphname3);
PSLIB_API void PSLIB_CALL
PS_glyph_show(PSDoc *psdoc, const char *name);
PSLIB_API char** PSLIB_CALL
PS_glyph_list(PSDoc *psdoc, int fontid, char ***charlist, int *len);
PSLIB_API float PSLIB_CALL
PS_glyph_width(PSDoc *psdoc, const char *glyphname, int fontid, float size);
PSLIB_API void PSLIB_CALL
PS_free_glyph_list(PSDoc *psdoc, char **charlist, int len);
#ifdef __cplusplus
}
#endif
#endif
|