代码拉取完成,页面将自动刷新
//========= Copyright ?1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose: Creates a Message box with a question in it and yes/no buttons
//
// $NoKeywords: $
//=============================================================================//
#ifndef TOOLTIP_H
#define TOOLTIP_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui/VGUI2.h>
#include "Controls.h"
#include <tier1/utlvector.h>
namespace vgui2
{
//-----------------------------------------------------------------------------
// Purpose: Tooltip for a panel - shows text when cursor hovers over a panel
//-----------------------------------------------------------------------------
class Tooltip
{
public:
Tooltip(Panel *parent, const char *text = NULL);
~Tooltip();
void SetText(const char *text);
const char *GetText();
void ShowTooltip(Panel *currentPanel);
void HideTooltip();
void SizeTextWindow();
void ResetDelay();
void PerformLayout();
void SetTooltipFormatToSingleLine();
void SetTooltipFormatToMultiLine();
void SetTooltipDelay(int tooltipDelayMilliseconds);
int GetTooltipDelay();
private:
virtual void ApplySchemeSettings(IScheme *pScheme);
CUtlVector<char> m_Text;
int _delay; // delay that counts down
int _tooltipDelay; // delay before tooltip comes up.
bool _makeVisible : 1;
bool _displayOnOneLine : 1;
bool _isDirty : 1;
};
};
#endif // TOOLTIP_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。