#ifndef __OOL_XTEXT_H__
#define __OOL_XTEXT_H__

/*===========================================================================*/
/* OOL ------------------- the Open Object Library ------ OS/2 version 0.01a */
/*===========================================================================*/
/*                              class: XText                                 */
/*                       derived from: XGraphicObject                        */
/*                        last update: 4/96                                  */
/*                      programmed by: Stefan von Brauk                      */
/*===========================================================================*/



#include "xgraphob.h"

class XRect;
class XFont;

class _export_ XText:public XGraphicObject
{
   private:
     XFont * font;
     char * text;
     SHORT style;
     XPoint p2;
   public:
     XText( XGraphicDevice *, XFont * font, XRect * rect, char * text, SHORT style = DT_LEFT);
     virtual ~XText();
     void Draw ( XRect * r= NULL);
     void SetHight( LONG h) { p2.p.y = p.p.y + h; }
     void SetText( char * t, LONG textLen = -1);
     void SetWight( LONG w) { p2.p.x = p.p.x + w; }
};

#endif
