OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 30 matching lines...) Expand all Loading... |
41 void SlideWindowToRect(WindowRef the_window, | 41 void SlideWindowToRect(WindowRef the_window, |
42 CGRect destination_rect, | 42 CGRect destination_rect, |
43 double transition_duration_seconds); | 43 double transition_duration_seconds); |
44 | 44 |
45 void SetWindowLevel(WindowRef window, int level); | 45 void SetWindowLevel(WindowRef window, int level); |
46 | 46 |
47 bool SetWindowForAGLContext(AGLContext context, WindowRef window); | 47 bool SetWindowForAGLContext(AGLContext context, WindowRef window); |
48 | 48 |
49 bool IsMacOSTenFiveOrHigher(); | 49 bool IsMacOSTenFiveOrHigher(); |
50 | 50 |
| 51 bool IsMacOSTenSixOrHigher(); |
| 52 |
51 Rect CGRect2Rect(const CGRect &inRect); | 53 Rect CGRect2Rect(const CGRect &inRect); |
52 | 54 |
53 CGRect Rect2CGRect(const Rect &inRect); | 55 CGRect Rect2CGRect(const Rect &inRect); |
54 | 56 |
55 void PaintRoundedCGRect(CGContextRef context, CGRect rect, | 57 void PaintRoundedCGRect(CGContextRef context, CGRect rect, |
56 float radius, bool fill); | 58 float radius, bool fill); |
57 | 59 |
58 } // namespace o3d | 60 } // namespace o3d |
59 | 61 |
60 #endif // O3D_PLUGIN_MAC_GRAPHICS_UTILS_MAC_H_ | 62 #endif // O3D_PLUGIN_MAC_GRAPHICS_UTILS_MAC_H_ |
OLD | NEW |