MeVisLab Toolbox Reference
macos::Window Class Reference

Window related functions. More...

#include <macWindow.h>

Public Types

enum  WindowLevelType { UndefinedWindowLevel = 0 , NormalWindowLevel = 1 , FloatingWindowLevel = 2 , PopUpMenuWindowLevel = 3 }
 

Static Public Member Functions

static NSWindow * nsWindowFromNSView (NSView *view)
 Return NSWindow pointer from NSView pointer. More...
 
static void nsWindowSetAllowsAutomaticWindowTabbing (bool trueOrFalse)
 Allows automatic window tabbing when trueOrFalse is true (macOS 10.12 and up) More...
 
static void nsWindowSetLevel (NSWindow *window, WindowLevelType level)
 Adjust the window level. More...
 
static void nsWindowSetHasShadow (NSWindow *window, bool hasShadow=true)
 Specify whether the window has a shadow. More...
 
static void nsWindowSetCanGoFullScreen (NSWindow *window, bool trueOrFalse=true)
 Specify whether the window will have a fullscreen button in the upper right of its titlebar. More...
 
static void nsWindowToggleFullScreen (NSWindow *window)
 Take the window into or out of fullscreen mode (Mac OS X 10.7 and up) More...
 
static void nsWindowEnterFullScreen (NSWindow *window)
 Take the window into fullscreen mode (Mac OS X 10.7 and up) More...
 
static void nsWindowExitFullScreen (NSWindow *window)
 Take the window out of fullscreen mode (Mac OS X 10.7 and up) More...
 
static bool nsWindowIsFullScreen (NSWindow *window)
 Returns whether the window has fullscreen appearance (Mac OS X 10.7 and up) More...
 
static double nsWindowBackingScaleFactor (NSWindow *window)
 Return the backing scale factor (Mac OS X 10.7 and up) More...
 

Detailed Description

Window related functions.

Definition at line 36 of file macWindow.h.

Member Enumeration Documentation

◆ WindowLevelType

Enumerator
UndefinedWindowLevel 
NormalWindowLevel 
FloatingWindowLevel 
PopUpMenuWindowLevel 

Definition at line 46 of file macWindow.h.

Member Function Documentation

◆ nsWindowBackingScaleFactor()

static double macos::Window::nsWindowBackingScaleFactor ( NSWindow *  window)
static

Return the backing scale factor (Mac OS X 10.7 and up)

◆ nsWindowEnterFullScreen()

static void macos::Window::nsWindowEnterFullScreen ( NSWindow *  window)
static

Take the window into fullscreen mode (Mac OS X 10.7 and up)

◆ nsWindowExitFullScreen()

static void macos::Window::nsWindowExitFullScreen ( NSWindow *  window)
static

Take the window out of fullscreen mode (Mac OS X 10.7 and up)

◆ nsWindowFromNSView()

static NSWindow* macos::Window::nsWindowFromNSView ( NSView *  view)
static

Return NSWindow pointer from NSView pointer.

◆ nsWindowIsFullScreen()

static bool macos::Window::nsWindowIsFullScreen ( NSWindow *  window)
static

Returns whether the window has fullscreen appearance (Mac OS X 10.7 and up)

◆ nsWindowSetAllowsAutomaticWindowTabbing()

static void macos::Window::nsWindowSetAllowsAutomaticWindowTabbing ( bool  trueOrFalse)
static

Allows automatic window tabbing when trueOrFalse is true (macOS 10.12 and up)

◆ nsWindowSetCanGoFullScreen()

static void macos::Window::nsWindowSetCanGoFullScreen ( NSWindow *  window,
bool  trueOrFalse = true 
)
static

Specify whether the window will have a fullscreen button in the upper right of its titlebar.

◆ nsWindowSetHasShadow()

static void macos::Window::nsWindowSetHasShadow ( NSWindow *  window,
bool  hasShadow = true 
)
static

Specify whether the window has a shadow.

◆ nsWindowSetLevel()

static void macos::Window::nsWindowSetLevel ( NSWindow *  window,
WindowLevelType  level 
)
static

Adjust the window level.

◆ nsWindowToggleFullScreen()

static void macos::Window::nsWindowToggleFullScreen ( NSWindow *  window)
static

Take the window into or out of fullscreen mode (Mac OS X 10.7 and up)


The documentation for this class was generated from the following file: