You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
575 B

#pragma once
#include <SDL.h>
#include "utils/sdl_ptrs.h"
namespace devilution {
struct TtfSurfaceCache {
SDLSurfaceUniquePtr text;
SDLSurfaceUniquePtr shadow;
};
enum class UiFlags; // Defined in ui_item.h, declared here to avoid circular dependency
void DrawTTF(const char *text, const SDL_Rect &rect, UiFlags flags,
const SDL_Color &textColor, const SDL_Color &shadowColor,
TtfSurfaceCache &renderCache);
void DrawArtStr(const char *text, const SDL_Rect &rect, UiFlags flags, bool drawTextCursor = false);
} // namespace devilution