StratoSDK is a framework with a declarative approach similar to Flutter/React, written and designed entirely for Rust.
| 1 | #import <Carbon/Carbon.h> |
| 2 | |
| 3 | typedef int CGSWindowID; |
| 4 | typedef void* CGSConnectionID; |
| 5 | |
| 6 | extern CGSConnectionID CGSDefaultConnectionForThread(void); |
| 7 | |
| 8 | // Typedef for the CGSSetWindowBackgroundBlurRadius function, which is a private |
| 9 | // API. |
| 10 | typedef CGError CGSSetWindowBackgroundBlurRadiusFunction(CGSConnectionID cid, CGSWindowID wid, |
| 11 | NSUInteger blur); |
| 12 | |
| 13 | // Returns a function pointer to the private CGSSetWindowBackgroundBlurRadius |
| 14 | // API, which can be used to set the background blur radius for an NSWindow. |
| 15 | CGSSetWindowBackgroundBlurRadiusFunction* GetCGSSetWindowBackgroundBlurRadiusFunction(void); |
| 16 |