diff --git a/hgx11grab.h b/hgx11grab.h index 23b2f9a..9c12c0f 100644 --- a/hgx11grab.h +++ b/hgx11grab.h @@ -41,7 +41,6 @@ private: double _scale_m; bool _freed_m = 0; - void _grabFrame(); bool _getWinAttr(); void _freeResources(); void _setScale(); diff --git a/hgx11grab.h.autosave b/hgx11grab.h.autosave deleted file mode 100644 index 9c12c0f..0000000 --- a/hgx11grab.h.autosave +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef HGX11GRAB_H -#define HGX11GRAB_H - -#include -#include -#include -#include -#include -#include - -class hgx11grab : public QObject -{ - Q_OBJECT -public: - QByteArray imgdata_m; - - hgx11grab(unsigned short); - ~hgx11grab(); - - int getDest_width() const; - int getDest_height() const; - -private: - Display *_x11Display_p; - Window _window_m; - Picture _srcPicture_m; - Picture _dstPicture_m; - Pixmap _pixmap_m; - XImage *_xImage_p; - XRenderPictFormat *_srcFormat_p; - XRenderPictFormat *_dstFormat_p; - XRenderPictureAttributes _pictAttr_m; - XShmSegmentInfo _shminfo_m; - XTransform _mTransform_m; - XWindowAttributes _windowAttr_m; - int _srcWidth_m = 0; - int _srcHeight_m = 0; - int _destWidth_m; - int _destHeight_m; - int _imgSize_m; - double _scale_m; - bool _freed_m = 0; - - bool _getWinAttr(); - void _freeResources(); - void _setScale(); - -signals: - void imageCreated(); - void scaleChanged(); - -public slots: - void grabFrame(); - -private slots: - void _changeScale(); -}; - -#endif // HGX11GRAB_H