36 lines
1 KiB
Plaintext
36 lines
1 KiB
Plaintext
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
namespace TerminalApp
|
|
{
|
|
enum WindowVisualState
|
|
{
|
|
WindowVisualStateNormal = 0,
|
|
WindowVisualStateMaximized,
|
|
WindowVisualStateIconified
|
|
};
|
|
|
|
// For simplicity, make sure that these are the same values as the ones used
|
|
// by messages like WM_NCHITTEST
|
|
enum CaptionButton {
|
|
Minimize = 8, // HTMINBUTTON
|
|
Maximize = 9, // HTMAXBUTTON
|
|
Close = 20 // HTCLOSE
|
|
};
|
|
|
|
[default_interface] runtimeclass TitlebarControl : Windows.UI.Xaml.Controls.Grid
|
|
{
|
|
TitlebarControl(UInt64 parentWindowHandle);
|
|
void SetWindowVisualState(WindowVisualState visualState);
|
|
|
|
void HoverButton(CaptionButton button);
|
|
void PressButton(CaptionButton button);
|
|
void ClickButton(CaptionButton button);
|
|
void ReleaseButtons();
|
|
Double CaptionButtonWidth { get; };
|
|
|
|
IInspectable Content;
|
|
Windows.UI.Xaml.Controls.Border DragBar { get; };
|
|
}
|
|
}
|