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.
 
 
 
 
 
 

45 lines
1.3 KiB

  1. /*
  2. * This file is Copyright (c) 2010 by the GPSD project
  3. * SPDX-License-Identifier: BSD-2-clause
  4. */
  5. #ifndef _GPSD_TACHOMETERP_H_
  6. #define _GPSD_TACHOMETERP_H_
  7. /* TachometerP.h -- Tachometer widget private data */
  8. #include <Tachometer.h>
  9. #include <X11/Xaw/SimpleP.h>
  10. /* New fields for the Tachometer widget class record */
  11. typedef struct {int foo;} TachometerClassPart;
  12. /* Full class record declaration */
  13. typedef struct _TachometerClassRec {
  14. CoreClassPart core_class;
  15. SimpleClassPart simple_class;
  16. TachometerClassPart label_class;
  17. } TachometerClassRec;
  18. extern TachometerClassRec tachometerClassRec;
  19. /* New fields for the Tachometer widget record */
  20. typedef struct {
  21. /* resources */
  22. Pixel needle, scale, circle;
  23. int value, speed;
  24. /* private state */
  25. GC needle_GC, scale_GC, circle_GC, background_GC;
  26. /* We need to store the width and height separately, because when */
  27. /* we get a resize request, we need to know if the window has */
  28. /* gotten bigger. */
  29. Dimension width, height, internal_border;
  30. } TachometerPart;
  31. /* Full instance record declaration */
  32. typedef struct _TachometerRec {
  33. CorePart core;
  34. SimplePart simple;
  35. TachometerPart tachometer;
  36. } TachometerRec;
  37. #endif /* _GPSD_TACHOMETERP_H_ */