2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CTEXTEXECUTEBUFFER
|
|
|
|
#define _CTEXTEXECUTEBUFFER
|
2022-09-30 04:24:13 +00:00
|
|
|
|
2024-10-22 23:12:41 +00:00
|
|
|
#include "Kyoto/Text/TextCommon.hpp"
|
2022-12-31 19:59:30 +00:00
|
|
|
#include "rstl/list.hpp"
|
|
|
|
#include "rstl/rc_ptr.hpp"
|
|
|
|
|
|
|
|
#include "Kyoto/Text/CSaveableState.hpp"
|
|
|
|
|
|
|
|
class CInstruction;
|
|
|
|
class CBlockInstruction;
|
|
|
|
class CLineInstruction;
|
|
|
|
|
|
|
|
class CTextExecuteBuffer {
|
|
|
|
typedef rstl::list< rstl::ncrc_ptr< CInstruction > > InstList;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CTextExecuteBuffer();
|
2024-10-22 23:12:41 +00:00
|
|
|
|
|
|
|
void AddFont(const TToken< CRasterFont >& font);
|
|
|
|
void AddLineSpacing(float spacing);
|
|
|
|
void AddLineExtraSpace(int space);
|
|
|
|
void AddJustification(EJustification just);
|
|
|
|
void AddVerticalJustification(EVerticalJustification just);
|
|
|
|
void AddPushState();
|
|
|
|
void AddPopState();
|
2022-12-31 19:59:30 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
InstList x0_instructions;
|
|
|
|
CSaveableState x18_;
|
|
|
|
CBlockInstruction* xa0_curBlock;
|
|
|
|
CLineInstruction* xa4_curLine;
|
|
|
|
InstList::const_iterator xa8_curWordIt;
|
|
|
|
int xac_curY;
|
|
|
|
int xb0_curX;
|
|
|
|
int xb4_curWordX;
|
|
|
|
int xb8_curWordY;
|
|
|
|
int xbc_spaceDistance;
|
|
|
|
bool xc0_imageBaseline;
|
|
|
|
rstl::list<CSaveableState> xc4_stateStack;
|
|
|
|
};
|
2022-09-30 04:24:13 +00:00
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CTEXTEXECUTEBUFFER
|