xdg-desktop-portal-hyprland/hyprland-share-picker/mainpicker.h
Vaxry 3c4c9969cc
Toplevel sharing Rev2 impl (#3)
* toplevel sharing rev2

* nix: fix build

* updated protocols

Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
2022-12-12 14:51:37 +00:00

28 lines
514 B
C++

#ifndef MAINPICKER_H
#define MAINPICKER_H
#include <QMainWindow>
#include <QObject>
#include <QEvent>
#include <unordered_map>
QT_BEGIN_NAMESPACE
namespace Ui { class MainPicker; }
QT_END_NAMESPACE
class MainPicker : public QMainWindow
{
Q_OBJECT
public:
MainPicker(QWidget *parent = nullptr);
~MainPicker();
void onMonitorButtonClicked(QObject* target, QEvent* event);
std::unordered_map<void*, int> windowIDs; // button -> id
private:
Ui::MainPicker *ui;
};
#endif // MAINPICKER_H