summaryrefslogtreecommitdiff
path: root/include/vcl/salnativewidgets.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/vcl/salnativewidgets.hxx')
-rw-r--r--include/vcl/salnativewidgets.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/vcl/salnativewidgets.hxx b/include/vcl/salnativewidgets.hxx
index 2ae7a6e26c19..8e9effbe6a72 100644
--- a/include/vcl/salnativewidgets.hxx
+++ b/include/vcl/salnativewidgets.hxx
@@ -279,6 +279,19 @@ public:
&& maSize.Width() == aOther.maSize.Width()
&& maSize.Height() == aOther.maSize.Height();
}
+
+ bool canCacheControl()
+ {
+ switch(mnType)
+ {
+ case CTRL_CHECKBOX:
+ case CTRL_RADIOBUTTON:
+ return false;
+ default:
+ break;
+ }
+ return true;
+ }
};
struct ControlCacheHashFunction