home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xarc.h < prev    next >
Text File  |  1998-01-18  |  1KB  |  39 lines

  1. #ifndef __OOL_XARC_H__
  2. #define __OOL_XARC_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XArc                                  */
  8. /*                       derived from: XLine                                 */
  9. /*                        last update: 12/96                                 */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14. #include "xline.h"
  15.  
  16.  
  17. class _export_ XArc: public XLine
  18. {
  19.       BOOL filled;
  20.       BOOL vis;
  21.       USHORT w;
  22.       USHORT h;
  23.       SHORT x;
  24.       SHORT y;
  25.       SHORT st;
  26.       SHORT en;
  27.    public:
  28.       XArc( 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);
  29.       virtual ~XArc() {;}
  30.       void Draw( XGraphicDevice * dev );
  31.       USHORT GetStart( void ) const { return st; }
  32.       USHORT GetWidth( void ) const { return en; }
  33.       void SetStart( const USHORT degrees ) { st = degrees; }
  34.       void SetWidth( const USHORT degrees ) { en = degrees; }
  35. };
  36.  
  37.  
  38. #endif
  39.