libgutenprint API Reference 5.3.5
|
The printer type represents a printer model. More...
Typedefs | |
typedef struct stp_printer | stp_printer_t |
The printer opaque data type (representation of printer model). | |
Functions | |
int | stp_printer_model_count (void) |
Get the number of available printer models. | |
const stp_printer_t * | stp_get_printer_by_index (int idx) |
Get a printer model by its index number. | |
const stp_printer_t * | stp_get_printer_by_long_name (const char *long_name) |
Get a printer model by its long (translated) name. | |
const stp_printer_t * | stp_get_printer_by_driver (const char *driver) |
Get a printer model by its short name. | |
const stp_printer_t * | stp_get_printer_by_device_id (const char *device_id) |
Get a printer model by its IEEE 1284 device ID. | |
const stp_printer_t * | stp_get_printer (const stp_vars_t *v) |
Get the printer model from a vars object. | |
int | stp_get_printer_index_by_driver (const char *driver) |
Get the printer index number from the printer model short (driver) name. | |
const char * | stp_printer_get_long_name (const stp_printer_t *p) |
Get a printer model's long (translated) name. | |
const char * | stp_printer_get_driver (const stp_printer_t *p) |
Get a printer model's short (driver) name. | |
const char * | stp_printer_get_device_id (const stp_printer_t *p) |
Get a printer model's IEEE 1284 device ID, if known. | |
const char * | stp_printer_get_family (const stp_printer_t *p) |
Get a printer model's family name. | |
const char * | stp_printer_get_manufacturer (const stp_printer_t *p) |
Get a printer model's manufacturer's name. | |
const char * | stp_printer_get_comment (const stp_printer_t *p) |
Get a printer model's comment string. | |
int | stp_printer_get_model (const stp_printer_t *p) |
Get a printer model's model number. | |
const stp_vars_t * | stp_printer_get_defaults (const stp_printer_t *p) |
Get the default vars for a particular printer model. | |
void | stp_set_printer_defaults (stp_vars_t *v, const stp_printer_t *p) |
Set a vars object to use a particular driver, and set the parameters to their defaults. | |
void | stp_set_printer_defaults_soft (stp_vars_t *v, const stp_printer_t *p) |
Set a vars object to use a particular driver, and set any unset parameters to their defaults. | |
int | stp_print (const stp_vars_t *v, stp_image_t *image) |
Print the image. | |
int | stp_start_job (const stp_vars_t *v, stp_image_t *image) |
Start a print job. | |
int | stp_end_job (const stp_vars_t *v, stp_image_t *image) |
End a print job. | |
stp_string_list_t * | stp_get_external_options (const stp_vars_t *v) |
Retrieve options that need to be passed to the underlying print system. | |
int | stp_get_model_id (const stp_vars_t *v) |
int | stp_verify_printer_params (stp_vars_t *v) |
void | stp_initialize_printer_defaults (void) |
stp_parameter_list_t | stp_printer_list_parameters (const stp_vars_t *v) |
void | stp_printer_describe_parameter (const stp_vars_t *v, const char *name, stp_parameter_t *description) |
const char * | stp_describe_output (const stp_vars_t *v) |
The printer type represents a printer model.
A particular printer model must selected in order to be able to print. Each printer model provides default print options through a default vars object.
typedef struct stp_printer stp_printer_t |
The printer opaque data type (representation of printer model).
const char * stp_describe_output | ( | const stp_vars_t * | v | ) |
|
extern |
End a print job.
v | the vars to use. |
image | the image to print. |
|
extern |
Retrieve options that need to be passed to the underlying print system.
v | the vars to use. |
|
extern |
|
extern |
Get the printer model from a vars object.
v | the vars to use. |
|
extern |
Get a printer model by its IEEE 1284 device ID.
device_id | the printer model's device ID. |
|
extern |
Get a printer model by its short name.
driver | the printer model's short (driver) name. |
|
extern |
Get a printer model by its index number.
idx | the index number. This must not be greater than (total number of printers - 1). |
|
extern |
Get a printer model by its long (translated) name.
long_name | the printer model's long (translated) name. |
|
extern |
Get the printer index number from the printer model short (driver) name.
driver | the printer model's short (driver) name. |
|
extern |
|
extern |
Print the image.
v | the vars to use. |
image | the image to print. |
|
extern |
|
extern |
Get a printer model's comment string.
p | the printer model to use. |
|
extern |
Get the default vars for a particular printer model.
The default vars should be copied to a new vars object and customised prior to printing.
p | the printer model to use. |
|
extern |
Get a printer model's IEEE 1284 device ID, if known.
p | the printer model to use. |
|
extern |
Get a printer model's short (driver) name.
p | the printer model to use. |
|
extern |
Get a printer model's family name.
The family name is the name of the modular "family" driver this model uses.
p | the printer model to use. |
|
extern |
Get a printer model's long (translated) name.
p | the printer model to use. |
|
extern |
Get a printer model's manufacturer's name.
p | the printer model to use. |
|
extern |
Get a printer model's model number.
The model number is used internally by the "family" driver module, and has no meaning out of that context. It bears no relation to the model name/number actually found on the printer itself.
p | the printer model to use. |
|
extern |
|
extern |
Get the number of available printer models.
|
extern |
Set a vars object to use a particular driver, and set the parameters to their defaults.
v | the vars to use. |
p | the printer model to use. |
|
extern |
Set a vars object to use a particular driver, and set any unset parameters to their defaults.
v | the vars to use. |
p | the printer model to use. |
|
extern |
Start a print job.
v | the vars to use. |
image | the image to print. |
|
extern |