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.

93 lines
3.1 KiB

  1. #ifndef ARCS_H_INCLUDED
  2. #define ARCS_H_INCLUDED
  3. /* #define D_ARCS */ /* if you want realy arcs..... */
  4. /*********************** Owner debug defines ****************************/
  5. #define ANDREI_DEB
  6. /**************************************************************************/
  7. /*********************** Owner masked defines ***************************/
  8. /**************************************************************************/
  9. /********************************************************/
  10. _VOID InitElementSDS( p_SDS pSDS ) ;
  11. _SHORT SlashArcs( low_type _PTR pLowData , _INT iBeg , _INT iEnd ) ;
  12. _VOID InitSDS( _SDS asds[] , _SHORT _PTR lsds , _SHORT n ) ;
  13. _BOOL RelHigh( p_SHORT y, _INT begin, _INT end,
  14. _INT height[], p_SHORT plowrelh, p_SHORT puprelh ) ;
  15. _VOID DotPostcrossModify( low_type _PTR pLowData ) ;
  16. /********************************************************/
  17. #define SHORT_BASE 100 /* Short scaling base . */
  18. #define LONG_BASE 100L /* Long scaling base . */
  19. #define MAX_NO_VERT 1500L
  20. #define DEF_MINLENTH 15L /* Default minimum sig- */
  21. /* nificant lenth . */
  22. #define DEF_MINLENTH_S 10
  23. #define MIN_NO_HOR 4
  24. /********************************************************/
  25. /********************************************************/
  26. /* Arcs description structures: */
  27. /********************************************************/
  28. #ifdef D_ARCS
  29. typedef struct
  30. {
  31. _SHORT iBeg ; /* Index of the 1st point */
  32. _SHORT iEnd ; /* Index of the last point */
  33. _SHORT nLength ; /* The length of the chord at this arc */
  34. _SHORT nCurv ; /* Curvature of the arc, measured with */
  35. /* "CurvMeasure" function. See comments */
  36. /* at the head of that function in module */
  37. /* LOW_UTIL.C . */
  38. _RECT box ; /* The box containing the arc. */
  39. _ARC_TYPE type ; /* The interpretation of the arc. */
  40. }
  41. ARC_DESCR, _PTR p_ARC_DESCR ;
  42. typedef struct
  43. {
  44. p_ARC_DESCR pArcData ;
  45. _SHORT arc_buf_Len ;
  46. _SHORT LenArcData ;
  47. }
  48. ARC_CONTROL, _PTR p_ARC_CONTROL ;
  49. /********************************************************/
  50. _SHORT Prepare_Arcs_Data( p_ARC_CONTROL pArcControl ) ;
  51. _VOID Dealloc_Arcs_Data ( p_ARC_CONTROL pArcControl ) ;
  52. _SHORT ArcRetrace( low_type _PTR p_low_data , p_ARC_CONTROL pArcControl );
  53. _SHORT Arcs( low_type _PTR low_data, p_ARC_CONTROL pArcControl ) ;
  54. /********************************************************/
  55. #define LEN_ARC_BUFFER 50
  56. /********************************************************/
  57. #endif /* D_ARCS */
  58. #endif /* ARCS_H_INCLUDED */