Mac OS X ambilight
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

AppDelegate.h 749B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // AppDelegate.h
  3. // DisplayBacklight
  4. //
  5. // Created by Thomas Buck on 21.12.15.
  6. // Copyright © 2015 xythobuz. All rights reserved.
  7. //
  8. #import <Cocoa/Cocoa.h>
  9. @class Serial;
  10. @interface AppDelegate : NSObject <NSApplicationDelegate>
  11. @property (weak) IBOutlet NSApplication *application;
  12. - (void)stopAmbilight;
  13. - (void)newDisplayList:(NSArray *)displayIDs;
  14. @end
  15. // ToDo: add support for display names or IDs here, so we can distinguish
  16. // between multiple displays with the same resolution
  17. struct DisplayAssignment {
  18. int width, height;
  19. };
  20. struct LEDStrand {
  21. int idMin, count;
  22. int display;
  23. int startX, startY;
  24. int direction;
  25. int size;
  26. };
  27. #define DIR_LEFT 0
  28. #define DIR_RIGHT 1
  29. #define DIR_UP 2
  30. #define DIR_DOWN 3