MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / UseCustomWindowDecorations

Method UseCustomWindowDecorations

Source/Editor/Utilities/Utils.cs:1283–1299  ·  view source on GitHub ↗
(bool isMainWindow = false)

Source from the content-addressed store, hash-verified

1281 }
1282
1283 internal static bool UseCustomWindowDecorations(bool isMainWindow = false)
1284 {
1285#if PLATFORM_SDL
1286 return Editor.Instance.Options.Options.Interface.WindowDecorations switch
1287 {
1288 Options.InterfaceOptions.WindowDecorationsType.Auto => !SDLPlatform.SupportsNativeDecorations,
1289 Options.InterfaceOptions.WindowDecorationsType.AutoChildOnly => !isMainWindow ? !SDLPlatform.SupportsNativeDecorations : true,
1290 Options.InterfaceOptions.WindowDecorationsType.Native => false,
1291 Options.InterfaceOptions.WindowDecorationsType.ClientSide => true,
1292 _ => throw new ArgumentOutOfRangeException()
1293 };
1294#elif PLATFORM_WINDOWS
1295 return !Editor.Instance.Options.Options.Interface.UseNativeWindowSystem;
1296#else
1297 return false;
1298#endif
1299 }
1300
1301 internal static bool HideSingleTabWindowTabBars()
1302 {

Callers 6

OnInitMethod · 0.80
InitMainMenuMethod · 0.80
InitWindowDecorationsMethod · 0.80
MainMenuButtonMethod · 0.80
FloatWindowDockPanelMethod · 0.80
CreateFloatWindowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected