2011-10-18 17:57:02 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/private/richtooltip.h
|
|
|
|
// Purpose: wxRichToolTipImpl declaration.
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Created: 2011-10-18
|
|
|
|
// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_PRIVATE_RICHTOOLTIP_H_
|
|
|
|
#define _WX_PRIVATE_RICHTOOLTIP_H_
|
|
|
|
|
|
|
|
#include "wx/richtooltip.h"
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxRichToolTipImpl: defines wxRichToolTip implementation.
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxRichToolTipImpl
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// This is implemented in a platform-specific way.
|
|
|
|
static wxRichToolTipImpl* Create(const wxString& title,
|
|
|
|
const wxString& message);
|
|
|
|
|
|
|
|
// These methods simply mirror the public wxRichToolTip ones.
|
|
|
|
virtual void SetBackgroundColour(const wxColour& col,
|
|
|
|
const wxColour& colEnd) = 0;
|
|
|
|
virtual void SetCustomIcon(const wxIcon& icon) = 0;
|
|
|
|
virtual void SetStandardIcon(int icon) = 0;
|
2012-11-23 09:32:15 -05:00
|
|
|
virtual void SetTimeout(unsigned milliseconds,
|
|
|
|
unsigned millisecondsShowdelay = 0) = 0;
|
2011-10-18 17:57:02 -04:00
|
|
|
virtual void SetTipKind(wxTipKind tipKind) = 0;
|
|
|
|
virtual void SetTitleFont(const wxFont& font) = 0;
|
|
|
|
|
2013-03-02 07:11:32 -05:00
|
|
|
virtual void ShowFor(wxWindow* win, const wxRect* rect = NULL) = 0;
|
2011-10-18 17:57:02 -04:00
|
|
|
|
|
|
|
virtual ~wxRichToolTipImpl() { }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
wxRichToolTipImpl() { }
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_PRIVATE_RICHTOOLTIP_H_
|