mirror of
https://review.haiku-os.org/haiku
synced 2025-02-02 19:57:42 +01:00
42 lines
752 B
C
42 lines
752 B
C
|
/*
|
||
|
* Copyright 2009, Haiku, Inc. All Rights Reserved.
|
||
|
* Distributed under the terms of the MIT License.
|
||
|
*/
|
||
|
#ifndef _TOOL_TIP_MANAGER_H
|
||
|
#define _TOOL_TIP_MANAGER_H
|
||
|
|
||
|
|
||
|
#include <Messenger.h>
|
||
|
#include <Point.h>
|
||
|
|
||
|
|
||
|
class BToolTip;
|
||
|
|
||
|
|
||
|
class BToolTipManager {
|
||
|
public:
|
||
|
static BToolTipManager* Manager();
|
||
|
|
||
|
void ShowTip(BToolTip* tip, BPoint point);
|
||
|
void HideTip();
|
||
|
|
||
|
void SetShowDelay(bigtime_t time);
|
||
|
bigtime_t ShowDelay() const;
|
||
|
void SetHideDelay(bigtime_t time);
|
||
|
bigtime_t HideDelay() const;
|
||
|
|
||
|
private:
|
||
|
BToolTipManager();
|
||
|
virtual ~BToolTipManager();
|
||
|
|
||
|
BMessenger fWindow;
|
||
|
|
||
|
bigtime_t fShowDelay;
|
||
|
bigtime_t fHideDelay;
|
||
|
|
||
|
static BToolTipManager* sDefaultInstance;
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif // _TOOL_TIP_MANAGER_H
|