forked from richardwilkes/ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
window_darwin.h
27 lines (25 loc) · 1.19 KB
/
window_darwin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <stdlib.h>
#include <Cocoa/Cocoa.h>
#include <Quartz/Quartz.h>
#include <cairo.h>
#include <cairo-quartz.h>
#include <dispatch/dispatch.h>
typedef void *platformWindow;
platformWindow getKeyWindow();
void bringAllWindowsToFront();
void hideCursorUntilMouseMoves();
void closeWindow(platformWindow window);
const char *getWindowTitle(platformWindow window);
void setWindowTitle(platformWindow window, const char *title);
void bringWindowToFront(platformWindow window);
void repaintWindow(platformWindow window, double x, double y, double width, double height);
void flushPainting(platformWindow window);
void minimizeWindow(platformWindow window);
void zoomWindow(platformWindow window);
void setCursor(platformWindow window, void *cursor);
void invoke(unsigned long id);
void invokeAfter(unsigned long id, long afterNanos);
platformWindow newWindow(double x, double y, double width, double height, int styleMask);
void getWindowFrame(platformWindow window, double *x, double *y, double *width, double *height);
void setWindowFrame(platformWindow window, double x, double y, double width, double height);
void getWindowContentFrame(platformWindow window, double *x, double *y, double *width, double *height);