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

Class WindowRootControl

Source/Engine/UI/GUI/WindowRootControl.cs:12–353  ·  view source on GitHub ↗

Root control implementation used by the .

Source from the content-addressed store, hash-verified

10 /// </summary>
11 /// <seealso cref="FlaxEngine.GUI.RootControl" />
12 [HideInEditor]
13 public sealed class WindowRootControl : RootControl
14 {
15 private Window _window;
16 private Control _focusedControl;
17 private Control _trackingControl;
18
19 /// <summary>
20 /// Gets the native window object.
21 /// </summary>
22 public Window Window => _window;
23
24 /// <summary>
25 /// Sets the window title.
26 /// </summary>
27 public string Title
28 {
29 get => _window.Title;
30 set => _window.Title = value;
31 }
32
33 /// <summary>
34 /// Gets a value indicating whether this window is in fullscreen mode.
35 /// </summary>
36 public bool IsFullscreen => _window.IsFullscreen;
37
38 /// <summary>
39 /// Gets a value indicating whether this window is in windowed mode.
40 /// </summary>
41 public bool IsWindowed => _window.IsWindowed;
42
43 /// <summary>
44 /// Gets a value indicating whether this instance is visible.
45 /// </summary>
46 public bool IsShown => _window.IsVisible;
47
48 /// <summary>
49 /// Gets a value indicating whether this window is minimized.
50 /// </summary>
51 public bool IsMinimized => _window.IsMinimized;
52
53 /// <summary>
54 /// Gets a value indicating whether this window is maximized.
55 /// </summary>
56 public bool IsMaximized => _window.IsMaximized;
57
58 internal WindowRootControl(Window window)
59 {
60 _window = window;
61 ClipChildren = false;
62
63 if (Style.Current != null)
64 BackgroundColor = Style.Current.Background;
65 }
66
67 /// <summary>
68 /// Shows the window.
69 /// </summary>

Callers

nothing calls this directly

Calls 2

FocusFunction · 0.85
IsTrueMethod · 0.45

Tested by

no test coverage detected