area51/Support/UI/ui_text.hpp
Andrew Sampson 431f72b93a source
2021-08-27 19:22:41 -07:00

50 lines
1.7 KiB
C++

//==============================================================================
//
// ui_text.hpp
//
//==============================================================================
#ifndef UI_TEXT_HPP
#define UI_TEXT_HPP
//==============================================================================
// INCLUDES
//==============================================================================
#ifndef X_TYPES_HPP
#include "x_types.hpp"
#include "x_math.hpp"
#endif
#include "ui_control.hpp"
//==============================================================================
// ui_text
//==============================================================================
extern ui_win* ui_text_factory( s32 UserID, ui_manager* pManager, const irect& Position, ui_win* pParent, s32 Flags );
class ui_text : public ui_control
{
public:
ui_text ( void );
virtual ~ui_text ( void );
xbool Create ( s32 UserID,
ui_manager* pManager,
const irect& Position,
ui_win* pParent,
s32 Flags );
virtual void Render ( s32 ox=0, s32 oy=0 );
virtual void OnUpdate ( f32 DeltaTime );
void UseSmallText ( const xbool useSmall ) { m_useSmallText = useSmall; };
protected:
xbool m_useSmallText;
};
//==============================================================================
#endif // UI_TEXT_HPP
//==============================================================================