00001 00002 00003 00004 #ifndef GOSU_TEXT_HPP 00005 #define GOSU_TEXT_HPP 00006 00007 #include <Gosu/Fwd.hpp> 00008 #include <Gosu/Color.hpp> 00009 #include <Gosu/GraphicsBase.hpp> 00010 #include <string> 00011 00012 namespace Gosu 00013 { 00016 std::wstring defaultFontName(); 00017 00023 unsigned textWidth(const std::wstring& text, 00024 const std::wstring& fontName, unsigned fontHeight, 00025 unsigned fontFlags = 0); 00026 00034 void drawText(Bitmap& bitmap, const std::wstring& text, int x, int y, 00035 Color c, const std::wstring& fontName, unsigned fontHeight, 00036 unsigned fontFlags = 0); 00037 00045 Bitmap createText(const std::wstring& text, 00046 const std::wstring& fontName, unsigned fontHeight, 00047 unsigned fontFlags = 0); 00048 00061 Bitmap createText(const std::wstring& text, 00062 const std::wstring& fontName, unsigned fontHeight, 00063 int lineSpacing, unsigned maxWidth, TextAlign align, 00064 unsigned fontFlags = 0); 00065 00068 void registerEntity(const std::wstring& name, const Bitmap& replacement); 00069 } 00070 00071 #endif
Documentation not clear enough? Please go to one of the places listed on http://www.libgosu.org/ and leave feedback. Thanks!