MeVisLabToolboxReference
MeVis/Foundation/Sources/OSXSupport/macWindow.h
Go to the documentation of this file.
00001 // **InsertLicense** code author="Felix Ritter" version="1.0"
00002 
00006 
00007 #ifndef __macWindow_H
00008 #define __macWindow_H
00009 #if defined(__APPLE__)
00010 
00011 namespace macx {
00012   
00013 # define macxNSWindow   void
00014 #if !defined(macxNSView)
00015 # define macxNSView     void
00016 #endif
00017 
00019   class Window
00020   {
00021   public:
00022       
00024     static macxNSWindow *nsWindowFromNSView(macxNSView *view);
00025 
00026     typedef enum {
00027       UndefinedWindowLevel = 0,
00028       NormalWindowLevel    = 1,
00029       FloatingWindowLevel  = 2,
00030       PopUpMenuWindowLevel = 3
00031     } WindowLevelType;
00032     
00034     static void nsWindowSetLevel(macxNSWindow *window, WindowLevelType level);
00035     
00037     static void nsWindowSetHasShadow(macxNSWindow *window, bool hasShadow = true);
00038     
00040     static void nsWindowSetCanGoFullScreen(macxNSWindow *window, bool trueOrFalse = true);
00041     
00043     static void nsWindowToggleFullScreen(macxNSWindow *window);
00045     static void nsWindowEnterFullScreen(macxNSWindow *window);
00047     static void nsWindowExitFullScreen(macxNSWindow *window);
00049     static bool nsWindowIsFullScreen(macxNSWindow *window);
00050   };
00051   
00052 }
00053 
00054 #endif  // __APPLE__
00055 #endif  // __macWindow_H