mirror of
https://github.com/zeldaret/ss
synced 2026-08-17 21:33:05 -04:00
match ut_TagProcessorBase. thanks ogws
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user