2 * Copyright 2009, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef _TOOL_TIP_MANAGER_H
6 #define _TOOL_TIP_MANAGER_H
10 #include <Messenger.h>
17 class BToolTipManager
{
19 static BToolTipManager
* Manager();
21 void ShowTip(BToolTip
* tip
, BPoint where
,
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(); }
35 virtual ~BToolTipManager();
37 static void _InitSingleton();
46 static BToolTipManager
* sDefaultInstance
;
50 #endif // _TOOL_TIP_MANAGER_H