Lumenarium/src/foldhaus_text_entry.h

26 lines
443 B
C
Raw Normal View History

enum text_translation_type
{
TextTranslateTo_String,
TextTranslateTo_R32,
TextTranslateTo_S32,
TextTranslateTo_U32,
};
2019-09-21 20:19:02 +00:00
struct text_entry_destination
{
text_translation_type Type;
union {
string* StringDest;
r32* FloatDest;
s32* SignedIntDest;
u32* UnsignedIntDest;
};
};
2019-09-21 20:19:02 +00:00
struct text_entry
{
string Buffer;
s32 CursorPosition;
2019-09-21 20:19:02 +00:00
text_entry_destination Destination;
};