mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-10-25 22:56:23 +08:00
[feat] add Windows screen capture method setting
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* @Author: DI JUNKUN
|
||||
* @Date: 2026-09-11
|
||||
* Copyright (c) 2026 by DI JUNKUN, All Rights Reserved.
|
||||
*/
|
||||
|
||||
#ifndef _SCREEN_CAPTURE_METHOD_H_
|
||||
#define _SCREEN_CAPTURE_METHOD_H_
|
||||
|
||||
namespace crossdesk {
|
||||
|
||||
// Persisted values; keep these in the same order as the settings choices.
|
||||
enum class ScreenCaptureMethod { Auto = 0, Dxgi = 1, Wgc = 2, Gdi = 3 };
|
||||
|
||||
inline bool IsValidScreenCaptureMethod(long value) {
|
||||
return value >= static_cast<long>(ScreenCaptureMethod::Auto) &&
|
||||
value <= static_cast<long>(ScreenCaptureMethod::Gdi);
|
||||
}
|
||||
|
||||
} // namespace crossdesk
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user