Native Mac OS X OtaClock replica
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.

Render.h 818B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // Render.h
  3. // OtaClock
  4. //
  5. // Created by Thomas Buck on 17.08.15.
  6. // Copyright (c) 2015 xythobuz. All rights reserved.
  7. //
  8. #import <Cocoa/Cocoa.h>
  9. #define DROP_SHADOW_OFFSET 2.0
  10. #define DROP_SHADOW_OFFSET_VIS (DROP_SHADOW_OFFSET / 2.0)
  11. #define DROP_SHADOR_BLUR 0.0
  12. #define DROP_SHADOW_RED 0.38
  13. #define DROP_SHADOW_GREEN 0.36
  14. #define DROP_SHADOW_BLUE 0.35
  15. #define DROP_SHADOW_ALPHA 1.0
  16. @class MainView;
  17. @interface Render : NSObject
  18. - (id)initWithParent:(MainView *)par;
  19. - (NSSize)baseSize;
  20. - (void)blinkDots;
  21. - (void)drawDropShadow:(BOOL)shadow;
  22. - (void)drawMilitaryTime:(BOOL)mil;
  23. - (void)drawAnimation:(NSInteger)state;
  24. - (void)drawAlarmDate:(NSDate *)alarm;
  25. - (void)drawDate:(BOOL)draw;
  26. - (void)drawWithDate:(NSDate *)date;
  27. - (void)drawWithEye:(NSInteger)eyeIndex;
  28. - (void)drawInto:(NSView *)view;
  29. @end