diff options
author | Constantin Kaplinsky <const@tightvnc.com> | 2008-08-20 09:54:32 +0000 |
---|---|---|
committer | Constantin Kaplinsky <const@tightvnc.com> | 2008-08-20 09:54:32 +0000 |
commit | 6d085f11e79f3872a7eed9c3c6829c07a84d8cd2 (patch) | |
tree | 4c3b22ad66ce54510456336d4b7f1cc8b94874c2 /unix/x0vncserver/Geometry.h | |
parent | 63a8f37cf3bd01855a06c7442675e5f97b1cd7e6 (diff) | |
download | tigervnc-6d085f11e79f3872a7eed9c3c6829c07a84d8cd2.tar.gz tigervnc-6d085f11e79f3872a7eed9c3c6829c07a84d8cd2.zip |
Added parsing for new VideoArea parameter. It does not have any effect yet.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2686 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix/x0vncserver/Geometry.h')
-rw-r--r-- | unix/x0vncserver/Geometry.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/unix/x0vncserver/Geometry.h b/unix/x0vncserver/Geometry.h index 3e5f23bc..82da9c6e 100644 --- a/unix/x0vncserver/Geometry.h +++ b/unix/x0vncserver/Geometry.h @@ -37,17 +37,23 @@ public: int height() const { return m_rect.height(); } int offsetLeft() const { return m_rect.tl.x; } int offsetTop() const { return m_rect.tl.y; } - const Rect& getRect() const { return m_rect; } + bool isVideoAreaSet() const { return !m_videoRect.is_empty(); } + const Rect& getVideoRect() const { return m_videoRect; } + protected: // Parse a string, extract size and coordinates, // and return that rectangle clipped to m_rect. Rect parseString(const char *arg) const; static StringParameter m_geometryParam; + static StringParameter m_videoAreaParam; + int m_fullWidth; + int m_fullHeight; Rect m_rect; + Rect m_videoRect; }; #endif // __GEOMETRY_H__ |