wineps: Don't include gdi_driver.h from PE module.
[wine.git] / dlls / wineps.drv / unixlib.h
blob1d908af78b40a7fa217b1ad83e4b626a576a5750
1 /*
2 * Copyright 2022 Piotr Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __PSDRV_UNIXLIB_H
20 #define __PSDRV_UNIXLIB_H
22 #include "ntuser.h"
23 #include "wine/unixlib.h"
25 /* escapes */
26 #define PSDRV_CHECK_WCHAR 0x10000
27 #define PSDRV_GET_BUILTIN_FONT_INFO 0x10001
29 struct font_info
31 char font_name[LF_FACESIZE];
32 SIZE size;
33 int escapement;
36 /* devmode */
37 struct input_slot
39 int win_bin;
42 struct resolution
44 int x;
45 int y;
48 struct page_size
50 WCHAR name[CCHFORMNAME];
51 struct
53 float left;
54 float bottom;
55 float right;
56 float top;
57 } imageable_area;
58 struct
60 float x;
61 float y;
62 } paper_dimension;
63 short win_page;
66 struct font_sub
68 WCHAR name[LF_FACESIZE];
69 WCHAR sub[LF_FACESIZE];
72 struct installed_font
74 char name[LF_FACESIZE];
77 typedef struct {
78 DEVMODEW dmPublic;
79 int default_resolution;
80 int landscape_orientation;
81 int duplex;
82 int input_slots;
83 int resolutions;
84 int page_sizes;
85 int font_subs;
86 int installed_fonts;
87 BYTE data[1];
88 } PSDRV_DEVMODE;
90 /* Unix calls */
91 enum wineps_funcs
93 unix_free_printer_info,
94 unix_import_ntf,
95 unix_open_dc,
96 unix_funcs_count,
99 struct import_ntf_params
101 const char *data;
102 int size;
105 struct open_dc_params
107 const WCHAR *device;
108 const DEVMODEW *devmode;
109 const WCHAR *output;
110 const PSDRV_DEVMODE *def_devmode;
111 HDC hdc;
114 #endif