mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-09 11:07:42 +00:00
Match and link CDrawString, CSaveableState, minor OS.c cleanup
Former-commit-id: f3e0324674
This commit is contained in:
49
include/Kyoto/Text/CDrawStringOptions.hpp
Normal file
49
include/Kyoto/Text/CDrawStringOptions.hpp
Normal file
@@ -0,0 +1,49 @@
|
||||
#ifndef _CDRAWSTRINGOPTIONS
|
||||
#define _CDRAWSTRINGOPTIONS
|
||||
|
||||
#include "Kyoto/Graphics/CColor.hpp"
|
||||
#include "rstl/reserved_vector.hpp"
|
||||
|
||||
enum ETextDirection {
|
||||
kTD_Horizontal,
|
||||
kTD_Vertical,
|
||||
};
|
||||
|
||||
enum EJustification {
|
||||
kJustification_Left = 0,
|
||||
kJustification_Center,
|
||||
kJustification_Right,
|
||||
kJustification_Full,
|
||||
kJustification_NLeft,
|
||||
kJustification_NCenter,
|
||||
kJustification_NRight,
|
||||
kJustification_LeftMono,
|
||||
kJustification_CenterMono,
|
||||
kJustification_RightMono,
|
||||
};
|
||||
|
||||
enum EVerticalJustification {
|
||||
kVerticalJustification_Top = 0,
|
||||
kVerticalJustification_Center,
|
||||
kVerticalJustification_Bottom,
|
||||
kVerticalJustification_Full,
|
||||
kVerticalJustification_NTop,
|
||||
kVerticalJustification_NCenter,
|
||||
kVerticalJustification_NBottom,
|
||||
kVerticalJustification_TopMono,
|
||||
kVerticalJustification_CenterMono,
|
||||
kVerticalJustification_RightMono,
|
||||
};
|
||||
|
||||
|
||||
class CDrawStringOptions {
|
||||
public:
|
||||
CDrawStringOptions();
|
||||
|
||||
void SetTextDirection(ETextDirection dir) { x0_direction = dir; }
|
||||
private:
|
||||
ETextDirection x0_direction;
|
||||
rstl::reserved_vector<u32, 16> x4_colors;
|
||||
};
|
||||
|
||||
#endif // _CDRAWSTRINGOPTIONS
|
||||
Reference in New Issue
Block a user