2022-12-23 02:15:25 +00:00
|
|
|
#ifndef _CDRAWSTRINGOPTIONS
|
|
|
|
#define _CDRAWSTRINGOPTIONS
|
|
|
|
|
|
|
|
#include "Kyoto/Graphics/CColor.hpp"
|
|
|
|
#include "rstl/reserved_vector.hpp"
|
2023-01-11 23:17:26 +00:00
|
|
|
#include "Kyoto/Text/TextCommon.hpp"
|
2022-12-23 02:15:25 +00:00
|
|
|
|
|
|
|
class CDrawStringOptions {
|
|
|
|
public:
|
|
|
|
CDrawStringOptions();
|
|
|
|
|
|
|
|
void SetTextDirection(ETextDirection dir) { x0_direction = dir; }
|
2023-01-12 00:12:37 +00:00
|
|
|
ETextDirection GetTextDirection() const { return x0_direction; }
|
2023-01-11 21:26:39 +00:00
|
|
|
void SetPaletteEntry(int idx, uint color) { x4_colors[idx] = color; }
|
2022-12-23 02:15:25 +00:00
|
|
|
private:
|
|
|
|
ETextDirection x0_direction;
|
|
|
|
rstl::reserved_vector<u32, 16> x4_colors;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _CDRAWSTRINGOPTIONS
|