UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMacPlatformApplicationMisc Struct Reference

#include <MacPlatformApplicationMisc.h>

+ Inheritance diagram for FMacPlatformApplicationMisc:

Static Public Member Functions

static void PreInit ()
 
static void PostInit ()
 
static void TearDown ()
 
static void LoadPreInitModules ()
 
static class FOutputDeviceConsoleCreateConsoleOutputDevice ()
 
static class FOutputDeviceErrorGetErrorOutputDevice ()
 
static class FFeedbackContextGetFeedbackContext ()
 
static class GenericApplicationCreateApplication ()
 
static void RequestMinimize ()
 
static bool IsThisApplicationForeground ()
 
static bool IsScreensaverEnabled ()
 
static bool ControlScreensaver (EScreenSaverAction Action)
 
static void ActivateApplication ()
 
static void UpdateApplicationMenu ()
 
static void LanguageChanged ()
 
static void UpdateWindowMenu ()
 
static void UpdateCocoaWindows ()
 
static struct FLinearColor GetScreenPixelColor (const FVector2D &InScreenPos, float InGamma=1.0f)
 
static float GetDPIScaleFactorAtPoint (float X, float Y)
 
static bool IsHighDPIModeEnabled ()
 
static void PumpMessages (bool bFromMainLoop)
 
static void ClipboardCopy (const TCHAR *Str)
 
static void ClipboardPaste (class FString &Dest)
 
static CGDisplayModeRef GetSupportedDisplayMode (CGDirectDisplayID DisplayID, uint32 Width, uint32 Height)
 
- Static Public Member Functions inherited from FGenericPlatformApplicationMisc
static APPLICATIONCORE_API void PreInit ()
 
static APPLICATIONCORE_API void Init ()
 
static APPLICATIONCORE_API void PostInit ()
 
static APPLICATIONCORE_API void TearDown ()
 
static void LoadPreInitModules ()
 
static void LoadStartupModules ()
 
static APPLICATIONCORE_API FOutputDeviceConsoleCreateConsoleOutputDevice ()
 
static APPLICATIONCORE_API FOutputDeviceErrorGetErrorOutputDevice ()
 
static APPLICATIONCORE_API FFeedbackContextGetFeedbackContext ()
 
static APPLICATIONCORE_API IPlatformInputDeviceMapperCreatePlatformInputDeviceManager ()
 
static APPLICATIONCORE_API class GenericApplicationCreateApplication ()
 
static APPLICATIONCORE_API void RequestMinimize ()
 
static APPLICATIONCORE_API bool IsThisApplicationForeground ()
 
static APPLICATIONCORE_API bool RequiresVirtualKeyboard ()
 
static void PumpMessages (bool bFromMainLoop)
 
static void PreventScreenSaver ()
 
static bool IsScreensaverEnabled ()
 
static bool ControlScreensaver (EScreenSaverAction Action)
 
static APPLICATIONCORE_API struct FLinearColor GetScreenPixelColor (const FVector2D &InScreenPos, float InGamma=1.0f)
 
static bool GetWindowTitleMatchingText (const TCHAR *TitleStartsWith, FString &OutTitle)
 
static void SetHighDPIMode ()
 
static float GetDPIScaleFactorAtPoint (float X, float Y)
 
static APPLICATIONCORE_API bool IsHighDPIAwarenessEnabled ()
 
static bool AnchorWindowWindowPositionTopLeft ()
 
static void SetGamepadsAllowed (bool bAllowed)
 
static void SetGamepadsBlockDeviceFeedback (bool bAllowed)
 
static void ResetGamepadAssignments ()
 
static void ResetGamepadAssignmentToController (int32 ControllerId)
 
static bool IsControllerAssignedToGamepad (int32 ControllerId)
 
static FString GetGamepadControllerName (int32 ControllerId)
 
static class UTexture2DGetGamepadButtonGlyph (const FGamepadKeyNames::Type &ButtonKey, uint32 ControllerIndex)
 
static void EnableMotionData (bool bEnable)
 
static bool IsMotionDataEnabled ()
 
static APPLICATIONCORE_API void ClipboardCopy (const TCHAR *Str)
 
static APPLICATIONCORE_API void ClipboardPaste (class FString &Dest)
 
static APPLICATIONCORE_API EScreenPhysicalAccuracy GetPhysicalScreenDensity (int32 &OutScreenDensity)
 
static APPLICATIONCORE_API EScreenPhysicalAccuracy GetPhysicalScreenDimensions (FVector2f &OutScreenDimensions)
 
static APPLICATIONCORE_API EScreenPhysicalAccuracy GetPhysicalScreenSize (float &OutScreenSize)
 
static APPLICATIONCORE_API EScreenPhysicalAccuracy ComputePhysicalScreenDensity (int32 &OutScreenDensity)
 
static APPLICATIONCORE_API EScreenPhysicalAccuracy ComputePhysicalScreenDimensions (FVector2f &OutScreenDimensions, float &OutScreenSize)
 
static void ComputePhysicalScreenData ()
 
template<typename T , typename T2 UE_REQUIRES>
static EScreenPhysicalAccuracy ConvertInchesToPixels (T Inches, T2 &OutPixels)
 
template<typename T , typename T2 UE_REQUIRES>
static EScreenPhysicalAccuracy ConvertPixelsToInches (T Pixels, T2 &OutInches)
 
static bool ShowInputDeviceSelector (FPlatformUserId InitiatingUserId, FShowInputDeviceSelectorComplete OnShowInputDeviceSelectorComplete)
 
static bool ShowPlatformUserSelector (FInputDeviceId InitiatingInputDeviceId, EPlatformUserSelectorFlags Flags, FPlatformUserSelectionComplete OnUserSelectionComplete)
 

Static Public Attributes

static MacApplicationExternalCb UpdateCachedMacMenuStateCb
 
static MacApplicationExternalCb PostInitMacMenuStartupCb
 
static MacApplicationExternalCbOneBool UpdateApplicationMenuCb
 
static MacApplicationExternalCbOneBool UpdateWindowMenuCb
 
static MacApplicationExternalCb LanguageChangedCb
 
static bool bChachedMacMenuStateNeedsUpdate
 
static bool bLanguageChanged
 
static bool bMacApplicationModalMode
 
static bool bIsHighResolutionCapable
 
static id< NSObject > CommandletActivity
 

Additional Inherited Members

- Public Types inherited from FGenericPlatformApplicationMisc
enum  EScreenSaverAction { Disable , Enable }
 
- Static Protected Attributes inherited from FGenericPlatformApplicationMisc
static APPLICATIONCORE_API bool CachedPhysicalScreenData = false
 
static APPLICATIONCORE_API EScreenPhysicalAccuracy CachedPhysicalScreenAccuracy = EScreenPhysicalAccuracy::Unknown
 
static APPLICATIONCORE_API int32 CachedPhysicalScreenDensity = 0
 
static APPLICATIONCORE_API FAutoConsoleVariableRef CVarEnableHighDPIAwareness
 
static APPLICATIONCORE_API FAutoConsoleVariableRef CVarAllowVirtualKeyboard
 
static APPLICATIONCORE_API EScreenPhysicalAccuracy CachedPhysicalScreenDimensionsAccuracy = EScreenPhysicalAccuracy::Unknown
 
static APPLICATIONCORE_API FVector2f CachedPhysicalScreenDimensions = FVector2f::ZeroVector
 
static APPLICATIONCORE_API float CachedPhysicalScreenSize = 0.f
 

Member Function Documentation

◆ ActivateApplication()

void FMacPlatformApplicationMisc::ActivateApplication ( )
static

◆ ClipboardCopy()

void FMacPlatformApplicationMisc::ClipboardCopy ( const TCHAR Str)
static

◆ ClipboardPaste()

void FMacPlatformApplicationMisc::ClipboardPaste ( class FString &  Dest)
static

◆ ControlScreensaver()

bool FMacPlatformApplicationMisc::ControlScreensaver ( EScreenSaverAction  Action)
static

◆ CreateApplication()

GenericApplication * FMacPlatformApplicationMisc::CreateApplication ( )
static

◆ CreateConsoleOutputDevice()

class FOutputDeviceConsole * FMacPlatformApplicationMisc::CreateConsoleOutputDevice ( )
static

◆ GetDPIScaleFactorAtPoint()

float FMacPlatformApplicationMisc::GetDPIScaleFactorAtPoint ( float  X,
float  Y 
)
static

◆ GetErrorOutputDevice()

class FOutputDeviceError * FMacPlatformApplicationMisc::GetErrorOutputDevice ( )
static

◆ GetFeedbackContext()

class FFeedbackContext * FMacPlatformApplicationMisc::GetFeedbackContext ( )
static

◆ GetScreenPixelColor()

FLinearColor FMacPlatformApplicationMisc::GetScreenPixelColor ( const FVector2D InScreenPos,
float  InGamma = 1.0f 
)
static

◆ GetSupportedDisplayMode()

CGDisplayModeRef FMacPlatformApplicationMisc::GetSupportedDisplayMode ( CGDirectDisplayID  DisplayID,
uint32  Width,
uint32  Height 
)
static

◆ IsHighDPIModeEnabled()

static bool FMacPlatformApplicationMisc::IsHighDPIModeEnabled ( )
inlinestatic

◆ IsScreensaverEnabled()

bool FMacPlatformApplicationMisc::IsScreensaverEnabled ( )
static

◆ IsThisApplicationForeground()

bool FMacPlatformApplicationMisc::IsThisApplicationForeground ( )
static

◆ LanguageChanged()

void FMacPlatformApplicationMisc::LanguageChanged ( )
static

◆ LoadPreInitModules()

void FMacPlatformApplicationMisc::LoadPreInitModules ( )
static

◆ PostInit()

void FMacPlatformApplicationMisc::PostInit ( )
static

◆ PreInit()

void FMacPlatformApplicationMisc::PreInit ( )
static

◆ PumpMessages()

void FMacPlatformApplicationMisc::PumpMessages ( bool  bFromMainLoop)
static

◆ RequestMinimize()

void FMacPlatformApplicationMisc::RequestMinimize ( )
static

◆ TearDown()

void FMacPlatformApplicationMisc::TearDown ( )
static

◆ UpdateApplicationMenu()

void FMacPlatformApplicationMisc::UpdateApplicationMenu ( )
static

◆ UpdateCocoaWindows()

void FMacPlatformApplicationMisc::UpdateCocoaWindows ( )
static

◆ UpdateWindowMenu()

void FMacPlatformApplicationMisc::UpdateWindowMenu ( )
static

Member Data Documentation

◆ bChachedMacMenuStateNeedsUpdate

bool FMacPlatformApplicationMisc::bChachedMacMenuStateNeedsUpdate
static

◆ bIsHighResolutionCapable

bool FMacPlatformApplicationMisc::bIsHighResolutionCapable
static

◆ bLanguageChanged

bool FMacPlatformApplicationMisc::bLanguageChanged
static

◆ bMacApplicationModalMode

bool FMacPlatformApplicationMisc::bMacApplicationModalMode
static

◆ CommandletActivity

id<NSObject> FMacPlatformApplicationMisc::CommandletActivity
static

◆ LanguageChangedCb

MacApplicationExternalCb FMacPlatformApplicationMisc::LanguageChangedCb
static

◆ PostInitMacMenuStartupCb

MacApplicationExternalCb FMacPlatformApplicationMisc::PostInitMacMenuStartupCb
static

◆ UpdateApplicationMenuCb

MacApplicationExternalCbOneBool FMacPlatformApplicationMisc::UpdateApplicationMenuCb
static

◆ UpdateCachedMacMenuStateCb

MacApplicationExternalCb FMacPlatformApplicationMisc::UpdateCachedMacMenuStateCb
static

◆ UpdateWindowMenuCb

MacApplicationExternalCbOneBool FMacPlatformApplicationMisc::UpdateWindowMenuCb
static

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