MacWindows.h
1 #ifndef MACWINDOWS_H 2 #define MACWINDOWS_H 3 4 //#include <X11/Xlib.h> 5 #include <CarbonCore/MacErrors.h> 6 #include "CoreServices/MacTypes.h" 7 #include <stdint.h> 8 #include <QD/QD.h> 9 10 #pragma pack(2) 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 typedef WindowRef HIWindowRef; 17 typedef int WindowGroupRef; 18 19 typedef uint32_t WindowClass; 20 typedef OptionBits WindowAttributes; 21 typedef OptionBits WindowGroupAttributes; 22 typedef uint32_t WindowRegionCode; 23 24 typedef Rect HIRect; 25 typedef void* TransitionWindowOptions; 26 typedef uint32_t WindowTransitionAction; 27 typedef uint32_t WindowTransitionEffect; 28 29 OSStatus CreateNewWindow(WindowClass cls, WindowAttributes attr, const Rect* rect, WindowRef* newWindow); 30 void DisposeWindow(WindowRef wnd); 31 32 void ShowWindow(WindowRef wnd); 33 void HideWindow(WindowRef wnd); 34 void ShowHide(WindowRef wnd, Boolean showFlag); 35 Boolean IsWindowVisible(WindowRef wnd); 36 37 38 OSStatus SelectWindow(WindowRef a); 39 OSStatus SetWindowContentColor(WindowRef a, const RGBColor * b); 40 OSStatus SetWindowGroup(WindowRef a, WindowGroupRef b); 41 OSStatus SetWindowGroupLevel(WindowGroupRef a, SInt32 b); 42 OSStatus SetWindowTitleWithCFString(WindowRef a, CFStringRef b); 43 OSStatus TransitionWindowWithOptions(WindowRef a, WindowTransitionEffect b, WindowTransitionAction c, const HIRect * d, Boolean e, TransitionWindowOptions * f); 44 OSStatus CreateWindowGroup(WindowGroupAttributes a, WindowGroupRef *b); 45 OSStatus GetWindowBounds(WindowRef a, WindowRegionCode b, Rect * c); 46 OSStatus GetWindowEventTarget(WindowRef a); 47 OSStatus GetWindowGroupLevel(WindowGroupRef a, SInt32 * b); 48 WindowGroupRef GetWindowGroupOfClass(WindowClass a); 49 CGrafPtr GetWindowPort(WindowRef a); 50 Rect* GetWindowPortBounds(WindowRef window, Rect * bounds); 51 Boolean IsValidWindowPtr(WindowRef a); 52 OSStatus ReleaseWindow(WindowRef a); 53 54 55 #ifdef __cplusplus 56 } 57 #endif 58 59 #pragma pack() 60 61 #endif 62