Skip to content

Commit

Permalink
Add constants for values of DEVMODE#dmFields
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasblaesing committed Oct 21, 2023
1 parent f58508a commit 9581b69
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions contrib/platform/src/com/sun/jna/platform/win32/WinGDI.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,37 @@
public interface WinGDI {
int RDH_RECTANGLES = 1;

int DM_ORIENTATION = 0x00000001;
int DM_PAPERSIZE = 0x00000002;
int DM_PAPERLENGTH = 0x00000004;
int DM_PAPERWIDTH = 0x00000008;
int DM_SCALE = 0x00000010;
int DM_POSITION = 0x00000020;
int DM_NUP = 0x00000040;
int DM_DISPLAYORIENTATION = 0x00000080;
int DM_COPIES = 0x00000100;
int DM_DEFAULTSOURCE = 0x00000200;
int DM_PRINTQUALITY = 0x00000400;
int DM_COLOR = 0x00000800;
int DM_DUPLEX = 0x00001000;
int DM_YRESOLUTION = 0x00002000;
int DM_TTOPTION = 0x00004000;
int DM_COLLATE = 0x00008000;
int DM_FORMNAME = 0x00010000;
int DM_LOGPIXELS = 0x00020000;
int DM_BITSPERPEL = 0x00040000;
int DM_PELSWIDTH = 0x00080000;
int DM_PELSHEIGHT = 0x00100000;
int DM_DISPLAYFLAGS = 0x00200000;
int DM_DISPLAYFREQUENCY = 0x00400000;
int DM_ICMMETHOD = 0x00800000;
int DM_ICMINTENT = 0x01000000;
int DM_MEDIATYPE = 0x02000000;
int DM_DITHERTYPE = 0x04000000;
int DM_PANNINGWIDTH = 0x08000000;
int DM_PANNINGHEIGHT = 0x10000000;
int DM_DISPLAYFIXEDOUTPUT = 0x20000000;

@FieldOrder({ "dmDeviceName", "dmSpecVersion", "dmDriverVersion", "dmSize", "dmDriverExtra", "dmFields", "dmUnion1", "dmColor",
"dmDuplex", "dmYResolution", "dmTTOption", "dmCollate", "dmFormName", "dmLogPixels", "dmBitsPerPel", "dmPelsWidth",
"dmPelsHeight", "dummyunionname2", "dmDisplayFrequency", "dmICMMethod", "dmICMIntent", "dmMediaType", "dmDitherType",
Expand Down

0 comments on commit 9581b69

Please sign in to comment.