home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xline.h < prev    next >
Text File  |  1998-04-06  |  2KB  |  44 lines

  1. #ifndef __OOL_XLINE_H__
  2. #define __OOL_XLINE_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XLine                                 */
  8. /*                       derived from: XGraphicObject                        */
  9. /*                        last update: 12/96                                 */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14. #include "xgraphob.h"
  15. #include "xpoint.h"
  16.  
  17. class XRect;
  18.  
  19. class _export_ XLine: public XGraphicObject
  20. {
  21.    protected:
  22.       LONG width, height;
  23.       char lineType;
  24.       LONG lineWidth;
  25.       char lineJoin;
  26.       char lineEnd;
  27.    public:
  28.       XLine( const XPoint *, const XPoint * p = NULL);
  29.       virtual ~XLine() {;}
  30.       void Draw( XGraphicDevice * dev );
  31.       LONG GetWidth( void ) { return width; }
  32.       LONG GetHeight( void ) { return height; }
  33.       void SetLineEnd( const char end ) { lineEnd = end; }
  34.       void SetLineJoin( const char join ) { lineJoin = join; }
  35.       void SetLineType( const char type ) { lineType = type; }
  36.       void SetLineWidth( const LONG width ) { lineWidth = width; }
  37.       void SetHeight( const LONG y) { height = y; }
  38.       void SetWidth( const LONG x) { width = x; }
  39.       void SetupDevice( XGraphicDevice * dev );
  40. };
  41.  
  42.  
  43. #endif
  44.