mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-07-11 17:00:23 +08:00
[feat] add display selection method for Windows platform
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <functional>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <vector>
|
||||
|
||||
#include "screen_capturer.h"
|
||||
#include "wgc_session.h"
|
||||
@@ -27,11 +28,20 @@ class ScreenCapturerWgc : public ScreenCapturer,
|
||||
int Pause();
|
||||
int Resume();
|
||||
|
||||
std::vector<DisplayInfo> GetDisplayList() { return display_list_; }
|
||||
|
||||
int SwitchTo(int monitor_index);
|
||||
|
||||
void OnFrame(const WgcSession::wgc_session_frame &frame);
|
||||
|
||||
protected:
|
||||
void CleanUp();
|
||||
|
||||
private:
|
||||
HMONITOR monitor_;
|
||||
MONITORINFOEX monitor_info_;
|
||||
std::vector<DisplayInfo> display_list_;
|
||||
|
||||
private:
|
||||
WgcSession *session_ = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user