mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-10 15:47:41 +00:00
@@ -6,6 +6,7 @@
|
||||
#include "Kyoto/Text/TextCommon.hpp"
|
||||
|
||||
class CBlockInstruction;
|
||||
class CLineInstruction;
|
||||
|
||||
class CFontRenderState {
|
||||
public:
|
||||
@@ -15,22 +16,36 @@ public:
|
||||
void SetColor(EColorType type, const CTextColor& color);
|
||||
void RefreshPalette();
|
||||
CDrawStringOptions& GetOptions() { return x0_state.GetOptions(); }
|
||||
const TToken< CRasterFont >& GetFont() { return x0_state.GetFont(); }
|
||||
TToken< CRasterFont >& GetFont() { return x0_state.GetFont(); }
|
||||
rstl::vector< CTextColor >& GetColors() { return x0_state.GetColors(); }
|
||||
rstl::vector< bool >& GetOverride() { return x0_state.GetOverride(); }
|
||||
void SetLineSpacing(float spacing) { x0_state.SetLineSpacing(spacing); }
|
||||
void SetExtraLineSpace(int spacing) { x0_state.SetLineExtraSpace(spacing); }
|
||||
void SetBlock(const CBlockInstruction* block) { x88_curBlock = const_cast<CBlockInstruction*>(block); }
|
||||
const CBlockInstruction* GetBlock() const { return x88_curBlock; }
|
||||
void SetBlock(const CBlockInstruction* block) {
|
||||
x88_curBlock = const_cast< CBlockInstruction* >(block);
|
||||
}
|
||||
void SetX(int x) { xd4_curX = x; }
|
||||
int GetX() const { return xd4_curX; }
|
||||
void SetY(int y) { xd8_curY = y; }
|
||||
int GetY() const { return xd8_curY; }
|
||||
const CLineInstruction* GetLine() const { return xdc_currentLineInst; }
|
||||
bool IsFirstWordOnLine() const { return x108_lineInitialized; }
|
||||
void SetFirstWordOnLine(bool v) { x108_lineInitialized = v; }
|
||||
|
||||
private:
|
||||
CSaveableState x0_state;
|
||||
CBlockInstruction* x88_curBlock;
|
||||
CDrawStringOptions x8c_drawOpts;
|
||||
int xd4_curX;
|
||||
int xd8_curY;
|
||||
const CLineInstruction* xdc_currentLineInst;
|
||||
uint xe0_;
|
||||
uint xe4_;
|
||||
rstl::vector< uint > xe8_;
|
||||
rstl::vector< uchar > xf8_;
|
||||
bool x108_lineInitialized;
|
||||
rstl::list< CSaveableState > x10c_pushedStates;
|
||||
};
|
||||
|
||||
#endif // _CFONTRENDERSTATE
|
||||
|
||||
Reference in New Issue
Block a user