CAPS Universe documentation  1.0.4
All you need to know to be successful
libcapsppd.h
Go to the documentation of this file.
1#pragma once
2
3/*
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 *
6 * (c) 2018 Juergen Borleis <projects@caps-printing.org>
7 *
8 * This library is free software; you can redistribute it and/or modify it under
9 * the terms of the GNU Lesser General Public License as published by the Free
10 * Software Foundation; either version 2.1 of the License, or (at your option)
11 * any later version.
12 */
13
14#include <stdbool.h>
15#include <features.h>
16
17#include <libcapsbase.h>
18#include <libcapstable.h>
19
20__BEGIN_DECLS
21
39};
40
152};
153
206};
207
219 /* more bits */
220 /*< sorting capability */
221 /*< smoothing --> someone out there who need this?? */
222 /*< mirroring --> someone out there who need this?? */
223 /*< negative --> someone out there who need this?? */
224 /*< advancemedia --> for label printer */
225};
234 unsigned horizontal;
235 unsigned vertical;
236};
243 double width_min;
244 double width_max;
245 double height_min;
246 double height_max;
247};
256 double left;
257 double right;
258 double top;
259 double bottom;
260};
271 const char *name;
273 double width, length;
274 double top, bottom, left, right;
275};
285};
293 const char *option;
294 const char *description;
295 const char *value;
296};
305 const char *option;
306 const char *description;
307 size_t entry_count;
310};
311
323 const char *domain_name;
376 const struct caps_ppd_option *options;
455 const char *default_paper_name;
461};
465__END_DECLS
caps_ppd_color_formats
Definition: libcapsppd.h:201
caps_ppd_common_features
Definition: libcapsppd.h:213
caps_ppd_option_type
Definition of the three possible OpenUI/CloseUI types.
Definition: libcapsppd.h:281
caps_ppd_paper_types
Definition: libcapsppd.h:36
caps_ppd_paper_leading_edges
Definition: libcapsppd.h:146
@ LIBCAPS_CT_RGB
Definition: libcapsppd.h:204
@ LIBCAPS_CT_GRAY
Definition: libcapsppd.h:203
@ LIBCAPS_CT_MONOCHROME
Definition: libcapsppd.h:202
@ LIBCAPS_CT_CMYK
Definition: libcapsppd.h:205
@ LIBCAPS_GA_CUTTER
Definition: libcapsppd.h:218
@ LIBCAPS_GA_CUSTOM_MEDIA
Definition: libcapsppd.h:217
@ LIBCAPS_GA_MANUAL_FEED
Definition: libcapsppd.h:216
@ LIBCAPS_GA_DUPLEX
Definition: libcapsppd.h:214
@ LIBCAPS_GA_SINGLE_TRAY
Definition: libcapsppd.h:215
@ LIBCAPS_OT_PICKONE
Definition: libcapsppd.h:282
@ LIBCAPS_OT_PICKMANY
Definition: libcapsppd.h:283
@ LIBCAPS_OT_BOOLEAN
Definition: libcapsppd.h:284
@ LIBCAPS_PT_ENDLESS
Definition: libcapsppd.h:38
@ LIBCAPS_PT_SINGLE
Definition: libcapsppd.h:37
@ LIBCAPS_PLE_MINUS_90_DEGREE
Definition: libcapsppd.h:151
@ LIBCAPS_PLE_SHORT
Definition: libcapsppd.h:148
@ LIBCAPS_PLE_LONG
Definition: libcapsppd.h:149
@ LIBCAPS_PLE_UNDEFINED
Definition: libcapsppd.h:147
@ LIBCAPS_PLE_PLUS_90_DEGREE
Definition: libcapsppd.h:150
Basic API for everything else of the CAPS universe.
Manage variable arrays.
Basic description of common features a printing device/printing driver can provide.
Definition: libcapsppd.h:322
const struct caps_ppd_resolution * resolutions
Definition: libcapsppd.h:358
enum caps_ppd_color_formats supported_color_formats
Definition: libcapsppd.h:351
enum caps_ppd_paper_leading_edges default_leading_edges
Definition: libcapsppd.h:348
size_t selection_count
Definition: libcapsppd.h:388
const struct caps_ppd_custom_medium * custom_media
Definition: libcapsppd.h:431
enum caps_ppd_common_features common_features
Definition: libcapsppd.h:324
enum caps_ppd_paper_types paper_type
Definition: libcapsppd.h:347
size_t default_resolution
Definition: libcapsppd.h:356
const struct caps_ppd_media_size * media_coverage
Definition: libcapsppd.h:406
enum caps_ppd_color_formats default_color_format
Definition: libcapsppd.h:352
size_t options_count
Definition: libcapsppd.h:374
const struct caps_ppd_option * options
Definition: libcapsppd.h:376
const char * domain_name
Definition: libcapsppd.h:323
const struct caps_ppd_media_margins * media_margins
Definition: libcapsppd.h:414
const char * default_paper_name
Definition: libcapsppd.h:455
size_t custom_media_count
Definition: libcapsppd.h:429
const struct caps_ppd_selection ** selections
Definition: libcapsppd.h:390
size_t resolution_count
Definition: libcapsppd.h:354
Definition of a custom medium.
Definition: libcapsppd.h:270
double bottom
Definition: libcapsppd.h:274
double top
Definition: libcapsppd.h:274
double left
Definition: libcapsppd.h:274
char * description
Definition: libcapsppd.h:272
const char * name
Definition: libcapsppd.h:271
double length
Definition: libcapsppd.h:273
double width
Definition: libcapsppd.h:273
double right
Definition: libcapsppd.h:274
Definition to calculate the printable area on all printing media.
Definition: libcapsppd.h:255
double bottom
Definition: libcapsppd.h:259
double top
Definition: libcapsppd.h:258
double left
Definition: libcapsppd.h:256
double right
Definition: libcapsppd.h:257
Definition of the min/max printing medium the manual feed can handle.
Definition: libcapsppd.h:242
double width_max
Definition: libcapsppd.h:244
double height_min
Definition: libcapsppd.h:245
double height_max
Definition: libcapsppd.h:246
double width_min
Definition: libcapsppd.h:243
Structure to keep the information read-in from an external PPD files.
Definition: libcapsppd-api.h:151
Definition of one supported resolution in Dots Per Inch (DPI).
Definition: libcapsppd.h:233
unsigned vertical
Definition: libcapsppd.h:235
unsigned horizontal
Definition: libcapsppd.h:234
Definition of one 'option' entry a PPD selection provides.
Definition: libcapsppd.h:292
const char * option
Definition: libcapsppd.h:293
const char * description
Definition: libcapsppd.h:294
const char * value
Definition: libcapsppd.h:295
Description of an OpenUI/CloseUI PPD selection.
Definition: libcapsppd.h:303
const struct caps_ppd_selection_entry * entries
Definition: libcapsppd.h:309
const char * option
Definition: libcapsppd.h:305
enum caps_ppd_option_type option_type
Definition: libcapsppd.h:304
const char * description
Definition: libcapsppd.h:306
size_t entry_count
Definition: libcapsppd.h:307
size_t default_entry
Definition: libcapsppd.h:308