summaryrefslogtreecommitdiffstats
path: root/src/game/client/gui/imutils_text.hh
blob: 0d888d44fc31a965833c49c607138770ceffcde5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: BSD-2-Clause
// Copyright (c) 2025 Kirill Dmitrievich
// File: imutils_text.hh
// Description: Text with shadow

#ifndef CLIENT_GUI_IMUTILS_TEXT_HH
#define CLIENT_GUI_IMUTILS_TEXT_HH
#pragma once

namespace imutils
{
void text_nw(ImDrawList* list, std::string_view text, const ImVec2& pos, ImU32 color, ImU32 shadow, ImFont* font);
void text_nw(ImDrawList* list, std::string_view text, const ImVec2& pos, ImU32 color, ImU32 shadow, ImFont* font, float size);
void text_wr(ImDrawList* list, std::string_view text, const ImVec2& pos, ImU32 color, ImU32 shadow, ImFont* font, float wrap);
void text_wr(ImDrawList* list, std::string_view text, const ImVec2& pos, ImU32 color, ImU32 shadow, ImFont* font, float wrap, float size);
} // namespace imutils

#endif