Searched refs:printer_cap (Results 1 – 5 of 5) sorted by relevance
1534 static void _validate_supported_media_sizes(printer_capabilities_t *printer_cap) { in _validate_supported_media_sizes() argument1535 if (printer_cap == NULL) return; in _validate_supported_media_sizes()1537 if (printer_cap->numSupportedMediaSizes == 0) { in _validate_supported_media_sizes()1539 printer_cap->supportedMediaSizes[i++] = ISO_A4; in _validate_supported_media_sizes()1540 printer_cap->supportedMediaSizes[i++] = US_LETTER; in _validate_supported_media_sizes()1541 printer_cap->supportedMediaSizes[i++] = INDEX_CARD_4X6; in _validate_supported_media_sizes()1542 printer_cap->supportedMediaSizes[i++] = INDEX_CARD_5X7; in _validate_supported_media_sizes()1543 printer_cap->numSupportedMediaSizes = i; in _validate_supported_media_sizes()1546 for (read = write = 0; read < printer_cap->numSupportedMediaSizes; read++) { in _validate_supported_media_sizes()1547 if (is_supported(printer_cap->supportedMediaSizes[read])) { in _validate_supported_media_sizes()[all …]
129 const printer_capabilities_t *printer_cap, in printable_area_get_default_margins() argument133 if ((job_params == NULL) || (printer_cap == NULL)) { in printable_area_get_default_margins()159 *top_margin = (float) printer_cap->printerTopMargin / 2540; in printable_area_get_default_margins()160 *bottom_margin = (float) printer_cap->printerBottomMargin / 2540; in printable_area_get_default_margins()161 *left_margin = (float) printer_cap->printerLeftMargin / 2540; in printable_area_get_default_margins()162 *right_margin = (float) printer_cap->printerRightMargin / 2540; in printable_area_get_default_margins()178 if (!printer_cap->inkjet) { in printable_area_get_default_margins()189 if ((job_params->duplex != DUPLEX_MODE_NONE) || !printer_cap->borderless) { in printable_area_get_default_margins()
414 static jint _print_pdf_pages(wJob_t job_handle, printer_capabilities_t *printer_cap, in _print_pdf_pages() argument424 if (printer_cap->faceDownTray) { in _print_pdf_pages()
317 printer_capabilities_t *printer_cap);334 const printer_capabilities_t *printer_cap);341 const wprint_job_params_t *job_params, const printer_capabilities_t *printer_cap,383 const printer_capabilities_t *printer_cap);389 const printer_capabilities_t *printer_cap);
34 const printer_capabilities_t *printer_cap, float *top_margin, float *left_margin,