summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJennifer Liebel <jliebel94@gmail.com>2015-01-20 12:42:43 +0000
committerTobias Madl <tobias.madl.dev@gmail.com>2015-03-06 12:27:07 +0000
commitb380220bc1404ed5a9daa1a28f70696e84543f61 (patch)
tree67f9fccc39139c218b9f247643f8ffa43fab2cbf /include
parent5bd1106c3758c8cb0c19b09799970440501fde02 (diff)
insert comments and corrected priority values
Change-Id: I2c73bb2b2edd3b830dad5d1f7d8f7bc72622b11c
Diffstat (limited to 'include')
-rw-r--r--include/vcl/idle.hxx23
1 files changed, 13 insertions, 10 deletions
diff --git a/include/vcl/idle.hxx b/include/vcl/idle.hxx
index 5a464629fb31..0415575a31b0 100644
--- a/include/vcl/idle.hxx
+++ b/include/vcl/idle.hxx
@@ -27,18 +27,20 @@
struct ImplIdleData;
struct ImplSVData;
-// The timemarks behind the priorities is the catgorizing of timer to idle
+// The timemarks behind the priorities are need to change timer to idle. It is to convert
+// timeout values to priorities.
enum class IdlePriority {
- VCL_IDLE_PRIORITY_STARVATIONPROTECTION = -1, // Do not use this for normal prioritizing
- VCL_IDLE_PRIORITY_HIGHEST = 0, // -> 0ms
- VCL_IDLE_PRIORITY_HIGH = 1, // -> 1ms
- VCL_IDLE_PRIORITY_DEFAULT = 1, // -> 1ms
- VCL_IDLE_PRIORITY_REPAINT = 2, // -> 30ms
+ VCL_IDLE_PRIORITY_STARVATIONPROTECTION = -1, // Do not use this for normal prioritizing!
+
+ VCL_IDLE_PRIORITY_HIGHEST = 0, // -> 0ms
+ VCL_IDLE_PRIORITY_HIGH = 1, // -> 1ms
+ VCL_IDLE_PRIORITY_DEFAULT = 1, // -> 1ms
+ VCL_IDLE_PRIORITY_REPAINT = 2, // -> 30ms
VCL_IDLE_PRIORITY_RESIZE = 3, // -> 50ms
VCL_IDLE_PRIORITY_MEDIUM = 3, // -> 50ms
- VCL_IDLE_PRIORITY_LOW = 5, // -> 100ms
- VCL_IDLE_PRIORITY_LOWER = 6, // -> 200ms
- VCL_IDLE_PRIORITY_LOWEST = 7 // -> 400ms
+ VCL_IDLE_PRIORITY_LOW = 4, // -> 100ms
+ VCL_IDLE_PRIORITY_LOWER = 5, // -> 200ms
+ VCL_IDLE_PRIORITY_LOWEST = 6 // -> 400ms
};
@@ -65,8 +67,9 @@ public:
/// Make it possible to associate a callback with this idle handler
/// of course, you can also sub-class and override 'DoIdle'
void SetIdleHdl( const Link& rLink ) { maIdleHdl = rLink; }
- const Link& GetIdleHdl() const { return maIdleHdl; }
+ const Link& GetIdleHdl() const { return maIdleHdl; }
+ // Call idle handler
virtual void DoIdle();
void Start();