memcpy(cursor_.mask.buf, other.mask.buf, cursor_.maskLen());
}
-bool ConnParams::supportsEncoding(rdr::S32 encoding)
+bool ConnParams::supportsEncoding(rdr::S32 encoding) const
{
return encodings_.count(encoding) != 0;
}
void setVersion(int major, int minor) {
majorVersion = major; minorVersion = minor;
}
- bool isVersion(int major, int minor) {
+ bool isVersion(int major, int minor) const {
return majorVersion == major && minorVersion == minor;
}
- bool beforeVersion(int major, int minor) {
+ bool beforeVersion(int major, int minor) const {
return (majorVersion < major ||
(majorVersion == major && minorVersion < minor));
}
- bool afterVersion(int major, int minor) {
+ bool afterVersion(int major, int minor) const {
return !beforeVersion(major,minor+1);
}
int height;
ScreenSet screenLayout;
- const PixelFormat& pf() { return pf_; }
+ const PixelFormat& pf() const { return pf_; }
void setPF(const PixelFormat& pf);
- const char* name() { return name_; }
+ const char* name() const { return name_; }
void setName(const char* name);
- const Cursor& cursor() { return cursor_; }
+ const Cursor& cursor() const { return cursor_; }
void setCursor(const Cursor& cursor);
- bool supportsEncoding(rdr::S32 encoding);
+ bool supportsEncoding(rdr::S32 encoding) const;
void setEncodings(int nEncodings, const rdr::S32* encodings);