UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FCocoaWindow Class Reference

#include <CocoaWindow.h>

+ Inheritance diagram for FCocoaWindow:

Instance Methods

(NSRect- openGLFrame
 
(NSView *) - openGLView
 
(void- setAcceptsInput:
 
(void- setWindowMode:
 
(EWindowMode::Type- windowMode
 
(void- orderFrontAndMakeMain:andKey:
 
(void- startRendering
 
(bool- isRenderInitialized
 

Public Attributes

bool bAcceptsInput
 
bool bZoomed
 
bool bIsOnActiveSpace
 
bool bIsBeingResized
 
bool bMinimized
 
bool bKeyWindow
 
NSScreenCachedScreen
 
CGFloat CachedBackingScaleFactor
 

Protected Attributes

EWindowMode::Type WindowMode
 
bool bRenderInitialized
 
bool bIsBeingOrderedFront
 
CGFloat Opacity
 

Properties

EWindowMode::Type TargetWindowMode
 
BOOL AllowMainWindow
 
EWindowType Type
 

Detailed Description

Custom window class used for input handling

Method Documentation

◆ isRenderInitialized

- (bool) isRenderInitialized

◆ openGLFrame

- (NSRect) openGLFrame

Get the frame filled by a child OpenGL view, which may cover the window or fill the content view depending upon the window style.

Returns
The NSRect for a child OpenGL view.

◆ openGLView

- (NSView *) openGLView

Get the view used for OpenGL rendering.

Returns
The OpenGL view for rendering.

◆ orderFrontAndMakeMain:andKey:

- (void) orderFrontAndMakeMain: (bool bMain
andKey: (bool bKey 

Order window to the front.

◆ setAcceptsInput:

- (void) setAcceptsInput: (bool InAcceptsInput

Lets window know if its owner (SWindow) accepts input

◆ setWindowMode:

- (void) setWindowMode: (EWindowMode::Type WindowMode

Set the initial window mode.

◆ startRendering

- (void) startRendering

◆ windowMode

Returns
The current mode for this Cocoa window.

Member Data Documentation

◆ bAcceptsInput

- (bool) bAcceptsInput

◆ bIsBeingOrderedFront

- (bool) bIsBeingOrderedFront
protected

◆ bIsBeingResized

- (bool) bIsBeingResized

◆ bIsOnActiveSpace

- (bool) bIsOnActiveSpace

◆ bKeyWindow

- (bool) bKeyWindow

◆ bMinimized

- (bool) bMinimized

◆ bRenderInitialized

- (bool) bRenderInitialized
protected

◆ bZoomed

- (bool) bZoomed

◆ CachedBackingScaleFactor

- (CGFloat) CachedBackingScaleFactor

◆ CachedScreen

- (NSScreen*) CachedScreen

◆ Opacity

- (CGFloat) Opacity
protected

◆ WindowMode

- (Type) FCocoaWindow:
protected

Property Documentation

◆ AllowMainWindow

- (BOOL) AllowMainWindow
readatomicassign

◆ TargetWindowMode

- (Type) FCocoaWindow:
readwriteatomicassign

◆ Type

- (EWindowType) Type
readwriteatomicassign

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