Devuan fork of gpsd
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.
 
 
 
 
 
 

53 lines
1.6 KiB

  1. /*
  2. * This file is Copyright (c) 2010 by the GPSD project
  3. * SPDX-License-Identifier: BSD-2-clause
  4. */
  5. #ifndef _GPSD_TACHOMETER_H_
  6. #define _GPSD_TACHOMETER_H_
  7. /* Tachometer.h -- tachometer widget interface */
  8. #include <X11/Xaw/Simple.h>
  9. /* Resources:
  10. Name Class RepType Default Value
  11. ---- ----- ------- -------------
  12. background Background Pixel XtDefaultBackground
  13. border BorderColor Pixel XtDefaultForeground
  14. circleColor BorderColor Pixel XtDefaultForeground
  15. borderWidth BorderWidth Dimension 0
  16. cursor Cursor Cursor None
  17. destroyCallback Callback XtCallbackList NULL
  18. foreground Foreground Pixel XtDefaultForeground
  19. height Height Dimension 100
  20. insensitiveBorder Insensitive Pixmap Gray
  21. internalBorderWidth BorderWidth Dimension 0
  22. mappedWhenManaged MappedWhenManaged Boolean True
  23. needleColor BorderColor Pixel XtDefaultForeground
  24. needleSpeed NeedleSpeed int 1
  25. sensitive Sensitive Boolean True
  26. width Width Dimension 100
  27. value Value int 0
  28. x Position Position 0
  29. y Position Position 0
  30. */
  31. #define XtNinternalBorderWidth "internalBorderWidth"
  32. #define XtNtachometerNeedleSpeed "needleSpeed"
  33. #define XtNtachometerCircleColor "circleColor"
  34. #define XtNtachometerNeedleColor "needleColor"
  35. #define XtCtachometerNeedleSpeed "NeedleSpeed"
  36. extern int TachometerGetValue(Widget);
  37. extern int TachometerSetValue(Widget, int);
  38. /* Class record constants */
  39. extern WidgetClass tachometerWidgetClass;
  40. typedef struct _TachometerClassRec *TachometerWidgetClass;
  41. typedef struct _TachometerRec *TachometerWidget;
  42. #endif /* _GPSD_TACHOMETER_H_ */