Files
Sourcetrail/src/lib/data/tooltip/TooltipInfo.h
T
mlangkabel dfc6d88432 build: search headers in all source directories
* 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
2018-09-18 19:00:18 +02:00

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