prime/include/GuiSys/CGuiTextPane.hpp

34 lines
1.1 KiB
C++
Raw Normal View History

2022-11-07 17:06:11 +00:00
#ifndef _CGUITEXTPANE
#define _CGUITEXTPANE
#include "GuiSys/CGuiPane.hpp"
#include "GuiSys/CGuiTextSupport.hpp"
#include "Kyoto/SObjectTag.hpp"
class CSimplePool;
class CColor;
class CGuiTextProperties;
class CGuiTextPane : public CGuiPane {
public:
CGuiTextPane(const CGuiWidgetParms& parms, CSimplePool* sp, const CVector2f& dim, const CVector3f& vec,
CAssetId fontId, const CGuiTextProperties& props, const CColor& col1, const CColor& col2,
int padX, int padY, CAssetId jpFontId, int jpExtentX, int jpExtentY);
CGuiTextSupport& TextSupport() { return xd4_textSupport; }
const CGuiTextSupport& GetTextSupport() const { return xd4_textSupport; }
void Update(float dt) override;
2023-01-19 09:15:00 +00:00
bool GetIsFinishedLoadingWidgetSpecific() const override;
2022-11-07 17:06:11 +00:00
void SetDimensions(const CVector2f& dim, bool initVBO) override;
void ScaleDimensions(const CVector3f& scale) override;
2023-01-19 09:15:00 +00:00
void Draw(const CGuiWidgetDrawParms& parms) const override;
// bool TestCursorHit(const CMatrix4f& vp, const CVector2f& point) const override;
2022-11-07 17:06:11 +00:00
private:
CGuiTextSupport xd4_textSupport;
};
#endif // _CGUITEXTPANE