12345678910111213141516171819202122232425262728 |
- /*!
- * \file include/FontImGui.h
- * \brief Default Font implementation
- *
- * \author xythobuz
- */
-
- #ifndef _FONT_IMGUI_H_
- #define _FONT_IMGUI_H_
-
- /*!
- * \brief Default Font implementation
- */
- class FontImGui {
- public:
- static unsigned int widthText(float scale, std::string s);
-
- static unsigned int heightText(float scale, unsigned int maxWidth, std::string s);
-
- static void drawText(unsigned int x, unsigned int y, float scale,
- const unsigned char color[4], std::string s);
-
- static void drawTextWrapped(unsigned int x, unsigned int y, float scale,
- const unsigned char color[4], unsigned int maxWidth, std::string s);
- };
-
- #endif
|