-
Notifications
You must be signed in to change notification settings - Fork 701
Expand file tree
/
Copy pathWindowCreateParameters.cs
More file actions
70 lines (61 loc) · 1.91 KB
/
Copy pathWindowCreateParameters.cs
File metadata and controls
70 lines (61 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using System;
namespace Robust.Client.Graphics
{
public sealed class WindowCreateParameters
{
public int Width = 1280;
public int Height = 720;
public string Title = "";
public bool Maximized;
public bool Visible = true;
public bool TitleBarVisible = true;
public IClydeMonitor? Monitor;
public bool Fullscreen;
/// <summary>
/// The window that will "own" this window.
/// Owned windows always appear on top of their owners and have some other misc behavior depending on the OS.
/// </summary>
public IClydeWindow? Owner;
/// <summary>
/// Controls where a window is initially placed when created.
/// </summary>
public WindowStartupLocation StartupLocation;
/// <summary>
/// Specifies window styling options for the created window.
/// </summary>
public OSWindowStyles Styles;
}
/// <summary>
/// Controls where a window is initially placed when created.
/// </summary>
public enum WindowStartupLocation : byte
{
/// <summary>
/// The window position is automatically picked by the windowing system.
/// </summary>
Manual,
/// <summary>
/// The window is positioned at the center of the <see cref="WindowCreateParameters.Owner"/> window.
/// </summary>
CenterOwner,
}
/// <summary>
/// Specifies window styling options for an OS window.
/// </summary>
[Flags]
public enum OSWindowStyles
{
/// <summary>
/// No special styles set.
/// </summary>
None = 0,
/// <summary>
/// Hide title buttons such as close and minimize.
/// </summary>
NoTitleOptions = 1 << 0,
/// <summary>
/// Completely hide the title bar
/// </summary>
NoTitleBar = 1 << 1,
}
}