-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
109 changed files
with
2,691 additions
and
2,196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
namespace ScreenToGif.Domain.Enums.Native; | ||
|
||
/// <summary> | ||
/// Flags used by the DwmSetWindowAttribute function to specify the rounded corner preference for a window. | ||
/// https://docs.microsoft.com/en-us/windows/win32/api/dwmapi/ne-dwmapi-dwm_window_corner_preference | ||
/// Windows Build 22000 | ||
/// </summary> | ||
public enum CornerPreferences | ||
{ | ||
/// <summary> | ||
/// Let the system decide when to round window corners. | ||
/// </summary> | ||
Default = 0, | ||
|
||
/// <summary> | ||
/// Never round window corners. | ||
/// </summary> | ||
DoNotRound = 1, | ||
|
||
/// <summary> | ||
/// Round the corners, if appropriate. | ||
/// </summary> | ||
Round = 2, | ||
|
||
/// <summary> | ||
/// Round the corners if appropriate, with a small radius. | ||
/// </summary> | ||
RoundSmall = 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
namespace ScreenToGif.Domain.Enums.Native; | ||
|
||
public enum HitTestTargets : int | ||
{ | ||
/// <summary> | ||
/// In the border of a window that does not have a sizing border. | ||
/// </summary> | ||
Border = 18, | ||
|
||
/// <summary> | ||
/// In the lower-horizontal border of a resizable window (the user can click the mouse to resize the window vertically). | ||
/// </summary> | ||
Bottom = 15, | ||
|
||
/// <summary> | ||
/// In the lower-left corner of a border of a resizable window (the user can click the mouse to resize the window diagonally). | ||
/// </summary> | ||
BottomLeft = 16, | ||
|
||
/// <summary> | ||
/// In the lower-right corner of a border of a resizable window (the user can click the mouse to resize the window diagonally). | ||
/// </summary> | ||
BottomRight = 17, | ||
|
||
/// <summary> | ||
/// In a title bar. | ||
/// </summary> | ||
Caption = 2, | ||
|
||
/// <summary> | ||
/// In a client area. | ||
/// </summary> | ||
Client = 1, | ||
|
||
/// <summary> | ||
/// In a Close button. | ||
/// </summary> | ||
CloseButton = 20, | ||
|
||
/// <summary> | ||
/// On the screen background or on a dividing line between windows (same as HTNOWHERE, except that the DefWindowProc function produces a system beep to indicate an error). | ||
/// </summary> | ||
Error = -2, | ||
|
||
/// <summary> | ||
/// In a size box (same as HTSIZE). | ||
/// </summary> | ||
GrowBox = 4, | ||
|
||
/// <summary> | ||
/// In a Help button. | ||
/// </summary> | ||
Help = 21, | ||
|
||
/// <summary> | ||
/// In a horizontal scroll bar. | ||
/// </summary> | ||
HorizontalScroll = 6, | ||
|
||
/// <summary> | ||
/// In the left border of a resizable window (the user can click the mouse to resize the window horizontally). | ||
/// </summary> | ||
Left = 10, | ||
|
||
/// <summary> | ||
/// In a menu. | ||
/// </summary> | ||
Menu = 5, | ||
|
||
/// <summary> | ||
/// In a Maximize button. | ||
/// </summary> | ||
MaximizeButton = 9, | ||
|
||
/// <summary> | ||
/// In a Minimize button. | ||
/// </summary> | ||
MinimizeButton = 8, | ||
|
||
/// <summary> | ||
/// On the screen background or on a dividing line between windows. | ||
/// </summary> | ||
Nowhere = 0, | ||
|
||
/// <summary> | ||
/// In a Minimize button. | ||
/// </summary> | ||
Reduce = MinimizeButton, | ||
|
||
/// <summary> | ||
/// In the right border of a resizable window (the user can click the mouse to resize the window horizontally). | ||
/// </summary> | ||
Right = 11, | ||
|
||
/// <summary> | ||
/// In a size box (same as HTGROWBOX). | ||
/// </summary> | ||
Size = GrowBox, | ||
|
||
/// <summary> | ||
/// In a window menu or in a Close button in a child window. | ||
/// </summary> | ||
SysMenu = 3, | ||
|
||
/// <summary> | ||
/// In the upper-horizontal border of a window. | ||
/// </summary> | ||
Top = 12, | ||
|
||
/// <summary> | ||
/// In the upper-left corner of a window border. | ||
/// </summary> | ||
TopLeft = 13, | ||
|
||
/// <summary> | ||
/// In the upper-right corner of a window border. | ||
/// </summary> | ||
TopRight = 14, | ||
|
||
/// <summary> | ||
/// In a window currently covered by another window in the same thread (the message will be sent to underlying windows in the same thread until one of them returns a code that is not HTTRANSPARENT). | ||
/// </summary> | ||
Transparent = -1, | ||
|
||
/// <summary> | ||
/// In the vertical scroll bar. | ||
/// </summary> | ||
VerticalScroll = 7, | ||
|
||
/// <summary> | ||
/// In a Maximize button. | ||
/// </summary> | ||
Zoom = MaximizeButton | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace ScreenToGif.Domain.Enums.Native; | ||
|
||
[Flags] | ||
public enum MenuFunctions | ||
{ | ||
ByCommand = 0x00000000, | ||
ByPosition = 0x00000400, | ||
Enabled = 0x00000000, | ||
Grayed = 0x00000001, | ||
Disabled = 0x00000002 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace ScreenToGif.Domain.Enums.Native; | ||
|
||
public enum SysCommands : uint | ||
{ | ||
Size = 0xF000, | ||
Move = 0xF010, | ||
Minimize = 0xF020, | ||
Maximize = 0xF030, | ||
NextWindow = 0xF040, | ||
PreviousWindow = 0xF050, | ||
Close = 0xF060, | ||
VScroll = 0xF070, | ||
HScroll = 0xF080, | ||
MouseMenu = 0xF090, | ||
KeyMenu = 0xF100, | ||
Arrange = 0xF110, | ||
Restore = 0xF120, | ||
TaskList = 0xF130, | ||
ScreenSave = 0xF140, | ||
HotKey = 0xF150, | ||
Default = 0xF160, | ||
MonitorPower = 0xF170, | ||
ContextHelp = 0xF180, | ||
Separator = 0xF00F, | ||
IsSecure = 0x0001, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.