#ifndef __OOL_XARC_H__
#define __OOL_XARC_H__

/*===========================================================================*/
/* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
/*===========================================================================*/
/*                              class: XArc                                  */
/*                       derived from: XLine                                 */
/*                        last update: 12/96                                 */
/*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
/*===========================================================================*/


#include "xline.h"


class _export_ XArc: public XLine
{
      BOOL filled;
      BOOL vis;
      USHORT w;
      USHORT h;
      SHORT x;
      SHORT y;
      SHORT st;
      SHORT en;
   public:
      XArc( const XGraphicDevice * d, const XPoint * pp1, const SHORT w, const SHORT startAngle, const SHORT sweepAngle, const BOOL showLines=FALSE, const BOOL fill=FALSE, const SHORT wight=0, const SHORT xOff=0, const SHORT yOff=0);
      virtual ~XArc() {;}
      void Draw( const XRect * r = NULL);
      USHORT GetStart( void ) const { return st; }
      USHORT GetWidth( void ) const { return en; }
      void SetStart( const USHORT degrees ) { st = degrees; }
      void SetWidth( const USHORT degrees ) { en = degrees; }
};


#endif
