новые иконки в OpenBoard
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenBoard/src/desktop/UBWindowCaptureDelegate_win.h

30 lines
655 B

#ifndef UBWINDOWCAPTUREDELEGATE_H_
#define UBWINDOWCAPTUREDELEGATE_H_
#include <QtGui>
class UBWindowCaptureDelegate : public QObject
{
Q_OBJECT;
public:
UBWindowCaptureDelegate(QObject *parent = 0);
~UBWindowCaptureDelegate();
int execute();
const QPixmap getCapturedWindow();
private:
bool eventFilter(QObject *target, QEvent *event);
void processPos(QPoint pPoint);
void drawSelectionRect();
bool mIsCapturing;
bool mCancel;
QPoint mLastPoint;
HWND mCurrentWindow;
QPixmap mCapturedPixmap;
};
#endif /* UBWINDOWCAPTUREDELEGATE_H_ */