Tizen 2.0 Release
[external/epson-laser-printer-escpage.git] / lib / epson-layout.h
1 /*_________________________________   epson-layout.h   _________________________________*/\r
2 \r
3 /*       1         2         3         4         5         6         7         8        */\r
4 /*34567890123456789012345678901234567890123456789012345678901234567890123456789012345678*/\r
5 /*******************************************|********************************************/\r
6 /*\r
7 *   Copyright (c) 2009  Seiko Epson Corporation                 All rights reserved.\r
8 *\r
9 *   Copyright protection claimed includes all forms and matters of\r
10 *   copyrightable material and information now allowed by statutory or judicial\r
11 *   law or hereinafter granted, including without limitation, material generated\r
12 *   from the software programs which are displayed on the screen such as icons,\r
13 *   screen display looks, etc.\r
14 *\r
15 */\r
16 /*******************************************|********************************************/\r
17 /*                                                                                      */\r
18 /*                            Epson Extent Layout Definitions                           */\r
19 /*                                                                                      */\r
20 /*******************************************|********************************************/\r
21 \r
22 #ifndef __EPSON_LAYOUT_H__\r
23 #define __EPSON_LAYOUT_H__\r
24 #ifdef __cplusplus\r
25 extern "C" {\r
26 #endif\r
27 \r
28 /*------------------------------------  Includes   -------------------------------------*/\r
29 /*******************************************|********************************************/\r
30 #include "epson-typedefs.h"\r
31 \r
32 \r
33 /*----------------------------------  Generic Macros   ---------------------------------*/\r
34 /*******************************************|********************************************/\r
35 \r
36    /*** CD/DVD Sizing Information                                                      */\r
37     /*** -------------------------------------------------------------------------------*/\r
38 #define CDDVD_OFFSET_X(r, d)    (EPS_INT32)(elGetDots(r, (EPS_FLOAT)(14.0 + (EPS_FLOAT)(EPS_CDDIM_OUT_DEF - d)/2)) + elGetDots(r, 3))\r
39 #define CDDVD_OFFSET_Y(r, d)    (EPS_INT32)(elGetDots(r, (EPS_FLOAT)( 6.5 + (EPS_FLOAT)(EPS_CDDIM_OUT_DEF - d)/2)) + elGetDots(r, 3))\r
40 \r
41 /*----------------------------  API Function Declarations   ----------------------------*/\r
42 /*******************************************|********************************************/\r
43 extern EPS_INT32        elGetDots               (EPS_UINT8 inputResolution, EPS_FLOAT length            );\r
44 \r
45 #ifdef GCOMSW_EL_CDLABEL\r
46 extern EPS_ERR_CODE elCDClipping        (const EPS_UINT8*, EPS_UINT8*, EPS_UINT8, EPS_RECT* );\r
47 #endif\r
48 \r
49 \r
50 #ifdef __cplusplus\r
51 } /* extern "C" */\r
52 #endif\r
53 \r
54 #endif  /* def __EPSON_LAYOUT_H__ */\r
55 \r
56 /*_________________________________   epson-layout.h   _________________________________*/\r
57 \r
58 /*34567890123456789012345678901234567890123456789012345678901234567890123456789012345678*/\r
59 /*       1         2         3         4         5         6         7         8        */\r
60 /*******************************************|********************************************/\r
61 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%|%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/\r
62 /***** End of File *** End of File *** End of File *** End of File *** End of File ******/\r
63 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%|%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/\r