prime/include/Kyoto/Text/CFontRenderState.hpp
Phillip Stephens 187c29105e Match and link CColorInstruction
Former-commit-id: e0d723eaeb5eb9b02bf747406a398a94fd30c647
2023-01-11 12:06:08 -08:00

28 lines
729 B
C++

#ifndef _CFONTRENDERSTATE
#define _CFONTRENDERSTATE
#include "Kyoto/Text/CSaveableState.hpp"
#include "Kyoto/Text/CDrawStringOptions.hpp"
#include "Kyoto/Text/TextCommon.hpp"
class CBlockInstruction;
class CFontRenderState {
public:
void PushState();
void PopState();
void SetColor(EColorType type, const CTextColor& color);
const TToken<CRasterFont>& GetFont() { return x0_state.GetFont(); }
void SetLineSpacing(float spacing) { x0_state.SetLineSpacing(spacing); }
void SetExtraLineSpace(int spacing) { x0_state.SetLineExtraSpace(spacing); }
private:
CSaveableState x0_state;
CBlockInstruction* x88_curBlock;
CDrawStringOptions x8c_drawOpts;
int xd4_curX;
int xd8_curY;
};
#endif // _CFONTRENDERSTATE