* removed paths in include directives * changed cmake to provide necessary header search paths * changed name of version.h to productVersion.h due to name conflict
35 lines
473 B
C++
35 lines
473 B
C++
#ifndef TOOLTIP_INFO_H
|
|
#define TOOLTIP_INFO_H
|
|
|
|
#include <memory>
|
|
|
|
#include "Vector2.h"
|
|
#include "types.h"
|
|
|
|
class SourceLocationFile;
|
|
|
|
struct TooltipSnippet
|
|
{
|
|
std::wstring code;
|
|
std::shared_ptr<SourceLocationFile> locationFile;
|
|
};
|
|
|
|
struct TooltipInfo
|
|
{
|
|
bool isValid() const
|
|
{
|
|
return title.size() || snippets.size();
|
|
}
|
|
|
|
std::wstring title;
|
|
|
|
int count = -1;
|
|
std::string countText;
|
|
|
|
std::vector<TooltipSnippet> snippets;
|
|
|
|
Vec2i offset;
|
|
};
|
|
|
|
#endif // TOOLTIP_INFO_H
|