Make UEFI boot-platform build again
[haiku.git] / headers / private / interface / ToolTipManager.h
blob7eca0fc51bccfd79c7ff7196ce196d7866be8149
1 /*
2 * Copyright 2009, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _TOOL_TIP_MANAGER_H
6 #define _TOOL_TIP_MANAGER_H
9 #include <Locker.h>
10 #include <Messenger.h>
11 #include <Point.h>
14 class BToolTip;
17 class BToolTipManager {
18 public:
19 static BToolTipManager* Manager();
21 void ShowTip(BToolTip* tip, BPoint where,
22 void* owner);
23 void HideTip();
25 void SetShowDelay(bigtime_t time);
26 bigtime_t ShowDelay() const;
27 void SetHideDelay(bigtime_t time);
28 bigtime_t HideDelay() const;
30 bool Lock() { return fLock.Lock(); }
31 void Unlock() { fLock.Unlock(); }
33 private:
34 BToolTipManager();
35 virtual ~BToolTipManager();
37 static void _InitSingleton();
39 private:
40 BLocker fLock;
41 BMessenger fWindow;
43 bigtime_t fShowDelay;
44 bigtime_t fHideDelay;
46 static BToolTipManager* sDefaultInstance;
50 #endif // _TOOL_TIP_MANAGER_H