Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
3.4 KiB

  1. //-------------------------------------------------------------------------
  2. // ntl.h - common declarations for ntl modules
  3. //-------------------------------------------------------------------------
  4. #ifndef _NTL_H_
  5. #define _NTL_H_
  6. //-------------------------------------------------------------------------
  7. enum NTL_OPCODE // packed as BYTE's
  8. {
  9. //---- support for IF/ELSE/ENDIF properties ----
  10. NTL_STATEJUMPTABLE, // the state jump table at the beginning of the code
  11. // BYTE bStateCount, int iOffsets[bStateCount]
  12. NTL_JMPON, // jump to location if bit is ON
  13. // BYTE bBitNum, int iLocation
  14. NTL_JMPOFF, // jump to location if bit is OFF
  15. // BYTE bBitNum, int iLocaton
  16. NTL_JMP, // jump to location
  17. // int iLocation
  18. NTL_RETURN, // return to caller (no params)
  19. //---- support for primitive vector drawing ----
  20. NTL_LOGRECT, // specifies logical drawing rect
  21. // RECT rcLogRect
  22. NTL_LINEBRUSH, // defines the current brush for drawing lines
  23. // <paramColor> crLine,
  24. // <paramInt> iLineWidth, BOOL fLogWidth
  25. NTL_FILLBRUSH, // defines the current brush to be used for shape fill
  26. // <paramFillBrush>
  27. NTL_MOVETO, // moves current position to specified point
  28. // POINT ptLog
  29. NTL_LINETO, // draws a line to specified point
  30. // POINT ptLog
  31. NTL_CURVETO, // draws a bezier curve to specified point
  32. // POINT ptCP1, POINT ptCP2, POINT pt
  33. NTL_SHAPE, // marks the start of a shape
  34. // POINT ptDrawOrigin
  35. NTL_ENDSHAPE, // marks the end of a shape
  36. // POINT ptDrawOrigin
  37. //---- support for cascading rectangle operations ----
  38. NTL_DRAWRECT, // draw rect border & adjust rect
  39. // <paramInt> iLineWidth, <paramInt> iLineHeight,
  40. // <paramColor> crColor, <paramColor> crBottomRight
  41. NTL_FILLRECT, // fill current rect with specified color
  42. // <paramFillBrush> Fill
  43. NTL_SETOPTION, // set specified option
  44. // BYTE bBitNum
  45. NTL_CLROPTION, // clear specified option
  46. // BYTE bBitNum
  47. };
  48. //-------------------------------------------------------------------------
  49. // <paramInt> must be PT_INT or PT_SYSMETRICINDEX
  50. //
  51. // <paramColor> must be PT_COLORREF or PT_COLORNULL or PT_SYSCOLORINDEX
  52. //
  53. // <paramFillBrush> must be <paramColor> or PT_FILENAME or PT_FILENAMEOFFSET
  54. //-------------------------------------------------------------------------
  55. enum NTL_PARAMTYPES // packed as BYTE's
  56. {
  57. PT_INT = 128, // followed by: 4 byte int
  58. PT_SYSMETRICINDEX, // followed by: 2 byte SHORT - evaluates to: GetSystemMetrics(index)
  59. PT_COLORREF, // followed by: 4 byte COLORREF
  60. PT_COLORNULL, //
  61. PT_SYSCOLORINDEX, // followed by: 2 byte SHORT - evaluates to: GetSysColor(index)
  62. PT_IMAGEFILE, // followed by: 1 byte image index
  63. };
  64. //-------------------------------------------------------------------------
  65. #endif // _NTL_H_
  66. //-------------------------------------------------------------------------