match ut_TagProcessorBase. thanks ogws

This commit is contained in:
elijah-thomas774
2024-05-04 23:29:06 -04:00
parent e1f491d2d1
commit 498660cf6b
6 changed files with 110 additions and 13 deletions
+11 -9
View File
@@ -10,9 +10,10 @@ enum PrintFlags {
PRINTFLAGS_CHARSPACE = (1 << 0),
};
template <typename T> struct PrintContext {
TextWriterBase<T>* writer; // at 0x0
const T* str; // at 0x4
template <typename T>
struct PrintContext {
TextWriterBase<T> *writer; // at 0x0
const T *str; // at 0x4
f32 x; // at 0x8
f32 y; // at 0xC
u32 flags; // at 0x10
@@ -26,17 +27,18 @@ enum Operation {
OPERATION_END_DRAW
};
template <typename T> class TagProcessorBase {
template <typename T>
class TagProcessorBase {
public:
TagProcessorBase();
virtual ~TagProcessorBase(); // at 0x8
virtual Operation Process(u16 ch, PrintContext<T>* ctx); // at 0xC
virtual Operation CalcRect(Rect* rect, u16 ch,
PrintContext<T>* ctx); // at 0x10
virtual Operation Process(u16 ch, PrintContext<T> *ctx); // at 0xC
virtual Operation CalcRect(Rect *rect, u16 ch,
PrintContext<T> *ctx); // at 0x10
void ProcessTab(PrintContext<T>* ctx);
void ProcessLinefeed(PrintContext<T>* ctx);
void ProcessLinefeed(PrintContext<T> *ctx);
void ProcessTab(PrintContext<T> *ctx);
};
} // namespace ut