aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/DeviceFrameBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'win/rfb_win32/DeviceFrameBuffer.h')
-rw-r--r--win/rfb_win32/DeviceFrameBuffer.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/win/rfb_win32/DeviceFrameBuffer.h b/win/rfb_win32/DeviceFrameBuffer.h
index e9f06cb0..67b1cd87 100644
--- a/win/rfb_win32/DeviceFrameBuffer.h
+++ b/win/rfb_win32/DeviceFrameBuffer.h
@@ -27,11 +27,14 @@
#define __RFB_WIN32_DEVICE_FRAME_BUFFER_H__
#include <windows.h>
+
+#include <core/Configuration.h>
+#include <core/Region.h>
+
#include <rfb_win32/DIBSectionBuffer.h>
+
#include <rfb/Cursor.h>
-#include <rfb/Region.h>
#include <rfb/Exception.h>
-#include <rfb/Configuration.h>
namespace rfb {
@@ -63,13 +66,13 @@ namespace rfb {
class DeviceFrameBuffer : public DIBSectionBuffer {
public:
- DeviceFrameBuffer(HDC deviceContext, const Rect& area_=Rect());
+ DeviceFrameBuffer(HDC deviceContext, const core::Rect& area_={});
virtual ~DeviceFrameBuffer();
// - FrameBuffer overrides
- virtual void grabRect(const Rect &rect);
- void grabRegion(const Region &region) override;
+ virtual void grabRect(const core::Rect& rect);
+ void grabRegion(const core::Region& region) override;
// - DeviceFrameBuffer specific methods
@@ -79,15 +82,15 @@ namespace rfb {
// Only set this if you are sure you'll capture the errors some other way!
void setIgnoreGrabErrors(bool ie) {ignoreGrabErrors=ie;}
- static BoolParameter useCaptureBlt;
+ static core::BoolParameter useCaptureBlt;
protected:
// Translate supplied Desktop coordinates into Device-relative coordinates
// This translation may have been affected at start-time by the supplied sub-rect.
- Point desktopToDevice(const Point p) const {return p.translate(deviceCoords.tl);}
+ core::Point desktopToDevice(const core::Point p) const {return p.translate(deviceCoords.tl);}
HDC device;
- Rect deviceCoords;
+ core::Rect deviceCoords;
bool ignoreGrabErrors;
};