home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ool.zip
/
OOL
/
include
/
xline.h
< prev
next >
Wrap
Text File
|
1997-03-18
|
2KB
|
44 lines
#ifndef __OOL_XLINE_H__
#define __OOL_XLINE_H__
/*===========================================================================*/
/* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
/*===========================================================================*/
/* class: XLine */
/* derived from: XGraphicObject */
/* last update: 12/96 */
/* programmed by: Stefan von Brauk (sbrauk@gwdg.de) */
/*===========================================================================*/
#include "xgraphob.h"
#include "xpoint.h"
class XRect;
class _export_ XLine: public XGraphicObject
{
protected:
LONG width, height;
char lineType;
LONG lineWidth;
char lineJoin;
char lineEnd;
public:
XLine( const XGraphicDevice *, const XPoint *, const XPoint * p = NULL);
virtual ~XLine() {;}
void Draw( const XRect * r = NULL);
LONG GetWidth( void ) { return width; }
LONG GetHeight( void ) { return height; }
void SetLineEnd( const char end ) { lineEnd = end; }
void SetLineJoin( const char join ) { lineJoin = join; }
void SetLineType( const char type ) { lineType = type; }
void SetLineWidth( const LONG width ) { lineWidth = width; }
void SetHeight( const LONG y) { height = y; }
void SetWidth( const LONG x) { width = x; }
void SetupDevice( void );
};
#endif