📄 global_types.h
字号:
LETTER = 0, //!< 8.5 x 11 in. A4 = 1, //!< 210 x 297 mm. LEGAL = 2, //!< 8.25 x 14 in. PHOTO_SIZE = 3, //!< 4x6 Photo with tear-off tab A6 = 4, //!< 105 x 148 mm. CARD_4x6 = 5, //!< 4x6 photo/card without tear-off tab B4 = 6, //!< 250 x 353 mm. B5 = 7, //!< 176 x 250 mm. OUFUKU = 8, //!< 148 x 200 mm. OFUKU = 8, //!< Misspelled - here for backwards compatibility HAGAKI = 9, //!< 100 x 148 mm. A6_WITH_TEAR_OFF_TAB = 10, //!< A6 with tear-off tab#ifdef APDK_EXTENDED_MEDIASIZE A3 = 11, //!< 294 x 419.8 mm. A5 = 12, //!< 148 x 210 mm. LEDGER = 13, //!< 11 x 17 in. SUPERB_SIZE = 14, //!< 13 x 19 in. EXECUTIVE = 15, //!< 7.25 x 10.5 in. FLSA = 16, //!< 8.5 x 13 in. CUSTOM_SIZE = 17, //!< Custom ENVELOPE_NO_10 = 18, //!< No. 10 Envelope (4.12 x 9.5 in.) ENVELOPE_A2 = 19, //!< A2 Envelope (4.37 x 5.75 in.) ENVELOPE_C6 = 20, //!< C6 Envelope (114 x 162 mm) ENVELOPE_DL = 21, //!< DL Envelope (110 x 220 mm) ENVELOPE_JPN3 = 22, //!< Japanese Envelope #3 (120 x 235 mm) ENVELOPE_JPN4 = 23, //!< Japanese Envelope #4 (90 x 205 mm)#endif MAX_PAPER_SIZE //!< Only for array size and loops} PAPER_SIZE;typedef enum // typedef'ed for C interface{ CLEAN_PEN = 0} PRINTER_FUNC;// ** TEXT related structures/enums//! Supported Text colors for device texttypedef enum // typedef'ed for C interface{ WHITE_TEXT, //!< White CYAN_TEXT, //!< Cyan MAGENTA_TEXT, //!< Magenta BLUE_TEXT, //!< Blue YELLOW_TEXT, //!< Yellow GREEN_TEXT, //!< Green RED_TEXT, //!< Red BLACK_TEXT //!< Black} TEXTCOLOR;// currently only portrait fonts are supportedenum TEXTORIENT{ PORTRAIT, LANDSCAPE, BOTH};const int MAX_FONT_SIZES = 10; // max # of fonts to be realized at one time// ** I/O related stuffconst int TIMEOUTVAL = 500; // in msec, ie 0.5 sectypedef WORD PORTID;typedef void * PORTHANDLE;enum MODE1284{ COMPATIBILITY, NIBBLE, ECP};enum HALFTONING_ALGORITHM{ FED, MATRIX};//! Color modes for SelectPrintModetypedef enum // typedef'ed for C interface{ GREY_K, //!< Use the BLACK pen to print B&W only GREY_CMY, //!< Use the COLOR pen to print grey scale COLOR, //!< Use the COLOR pen to print color MAX_COLORMODE} COLORMODE;//! Quality modes for SelectPrintModetypedef enum // typedef'ed for C interface{ QUALITY_NORMAL, //!< Normal quality print mode (probably 300x300) QUALITY_DRAFT, //!< Draft print mode - the same or faster then normal QUALITY_BEST, //!< Probably slower and possible higher resolution QUALITY_HIGHRES_PHOTO, //!< 1200 dpi - currently 9xxvip, linux only MAX_QUALITY_MODE} QUALITY_MODE;//! Media types for SelectPrintModetypedef enum // typedef'ed for C interface{ MEDIA_PLAIN, //!< Plain paper MEDIA_PREMIUM, //!< Premium paper - for use with 6xx series MEDIA_PHOTO, //!< Photo paper - for use with photo quality printers MAX_MEDIATYPE} MEDIATYPE;//! PhotoTray statustypedef enum // typedef'ed for C interface{ UNKNOWN = -1, //!< Unknown State DISENGAGED = 0, //!< Photo Tray is nor engaged ENGAGED = 1 //!< Photo Tray is engaged} PHOTOTRAY_STATE;//////////////////////////////////////////////////////////////////////////////////////// values of DRIVER_ERROR// first of 2 hex digits indicates categorytypedef enum // typedef'ed for C interface{// general or system errors NO_ERROR = 0x00, //!< everything okay JOB_CANCELED = 0x01, //!< CANCEL chosen by user SYSTEM_ERROR = 0x02, //!< something bad that should not have happened ALLOCMEM_ERROR = 0x03, //!< failed to allocate memory NO_PRINTER_SELECTED = 0x04, //!< indicates improper calling sequence or unidi INDEX_OUT_OF_RANGE = 0x05, //!< what it says ILLEGAL_RESOLUTION = 0x06, //!< tried to set resolution at unacceptable value NULL_POINTER = 0x07, //!< supplied ptr was null// build-related// (items either absent from current build, or just bad index from client code) UNSUPPORTED_PRINTER = 0x10, //!< selected printer-type unsupported in build UNSUPPORTED_PEN = 0x11, //!< selected pen-type unsupported TEXT_UNSUPPORTED = 0x12, //!< no text allowed in current build, UsePageWidth is false GRAPHICS_UNSUPPORTED = 0x13, //!< no graphics allowed in current build UNSUPPORTED_FONT = 0x14, //!< font selection failed ILLEGAL_COORDS = 0x15, //!< bad (x,y) passed to TextOut UNSUPPORTED_FUNCTION = 0x16, //!< bad selection for PerformPrinterFunction BAD_INPUT_WIDTH = 0x18, //!< inputwidth is 0 and OUTPUTWIDTH_EXCEEDS_PAGEWIDTH = 0x19, //!< inputwidth exceeds printable width UNSUPPORTED_SCALING = 0x1a, //!< inputwidth exceeds outputwidth, can't shrink output// I/O related IO_ERROR = 0x20, //!< I/O error communicating with printer BAD_DEVICE_ID = 0x21, //!< bad or garbled device id from printer CONTINUE_FROM_BLOCK = 0x22, //!< continue from blocked state for printers with no buttons// WARNINGS// convention is that values < 0 can be ignored (at user's peril) WARN_MODE_MISMATCH = -1, //!< printmode selection incompatible with pen, tray, etc. WARN_DUPLEX = -2, //!< duplexer installed; our driver can't use it WARN_LOW_INK_BOTH_PENS= -3, //!< sensor says pens below threshold WARN_LOW_INK_BLACK = -4, //!< sensor says black pen below threshold WARN_LOW_INK_COLOR = -5, //!< sensor says color pen below threshold WARN_LOW_INK_PHOTO = -10, //!< sensor says photo pen below threshold WARN_LOW_INK_GREY = -11, //!< sensor says grey pen below threshold WARN_LOW_INK_BLACK_PHOTO = -12, //!< sensor says black and photo pens below threshold WARN_LOW_INK_COLOR_PHOTO = -13, //!< sensor says color and photo pens below threshold WARN_LOW_INK_GREY_PHOTO = -14, //!< sensor says grey and photo pens below threshold WARN_LOW_INK_COLOR_GREY = -15, //!< sensor says color and grey pens below threshold WARN_LOW_INK_COLOR_GREY_PHOTO = -16, //!< sensor says color, photo, and grey pens below threshold WARN_LOW_INK_COLOR_BLACK_PHOTO = -17, //!< sensor says color, photo, and black pens below threshold WARN_FULL_BLEED_UNSUPPORTED = -6,//!< device does not support full-bleed printing WARN_FULL_BLEED_3SIDES = -7, //!< full bleed on only 3 sides WARN_FULL_BLEED_PHOTOPAPER_ONLY = -18, //!< device only support full-bleed on photo paper WARN_FULL_BLEED_3SIDES_PHOTOPAPER_ONLY = -19, //!< device only support 3 sided full-bleed on photo paper WARN_ILLEGAL_PAPERSIZE = -8, //!< papersize illegal for given hardware ILLEGAL_PAPERSIZE = -8, WARN_INVALID_MEDIA_SOURCE = -9 //!< media source tray is invalid} DRIVER_ERROR; //DRIVER_ERROR///////////////////////////////////////////////////////////////////////////////////////// ** Printer Status return valuesenum DISPLAY_STATUS{ // used for DisplayPrinterStatus NODISPLAYSTATUS = -1, DISPLAY_PRINTING, DISPLAY_PRINTING_COMPLETE, DISPLAY_PRINTING_CANCELED, DISPLAY_OFFLINE, DISPLAY_BUSY, DISPLAY_OUT_OF_PAPER, DISPLAY_TOP_COVER_OPEN, DISPLAY_ERROR_TRAP, DISPLAY_NO_PRINTER_FOUND, DISPLAY_NO_PEN_DJ400, DISPLAY_NO_PEN_DJ600, DISPLAY_NO_COLOR_PEN, DISPLAY_NO_BLACK_PEN, DISPLAY_NO_PENS, DISPLAY_PHOTO_PEN_WARN, DISPLAY_PRINTER_NOT_SUPPORTED, DISPLAY_COMM_PROBLEM, DISPLAY_CANT_ID_PRINTER, DISPLAY_OUT_OF_PAPER_NEED_CONTINUE, DISPLAY_PAPER_JAMMED, DISPLAY_PHOTOTRAY_MISMATCH, // internal driver use only ACCEPT_DEFAULT, DISPLAY_PRINTCONTEXT_WARN, DISPLAY_PRINTMODE_WARN, DISPLAY_JOB_WARN};// ** move these to internal.h// items from wtv_interp.hconst int NUMBER_PLANES = 3;// must be #define instead of const int for C interface#define NUMBER_RASTERS 3 // The number of Rasters to Buffer#ifdef APDK_AUTODUPLEXenum DUPLEXMODE{ DUPLEXMODE_NONE, DUPLEXMODE_TABLET, DUPLEXMODE_BOOK};#endifAPDK_END_NAMESPACE/*! @} */ // end globals group (documentation)#endif //APDK_GLOBAL_TYPES_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -