home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
scase.zip
/
SCASE.Z
/
LINE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-17
|
2KB
|
69 lines
#ifndef Line_h_included
#define Line_h_included
/******************************************************************************
* ** Company Confidential **
* ** Copyright 1994, All rights Reserved **
* %Z%%M% version %I% date:%G%
******************************************************************************/
// -MQBeg- [Module_Includes] [Line_h] <0000005B.00000000> Retained!
// -MQEnd- [Module_Includes] [Line_h] <0000005B.00000000>
// -MQBeg- [Module_Declarations_1] [Line_h] <0000005B.00000000> Retained!
// -MQEnd- [Module_Declarations_1] [Line_h] <0000005B.00000000>
// -MQBeg- [Class_Spec] [Line] <0000005E.00000003>
/******************************************************************************
Line:
******************************************************************************/
class Line : public Shape
{
// -MQBeg- [Declarations_1] [Line] <0000005E.00000003> Retained!
// -MQEnd- [Declarations_1] [Line] <0000005E.00000003>
public:
Line();
Line(char style, int length);
virtual void Draw();
void SetLength(int length);
private:
int Length;
// -MQBeg- [Declarations_2] [Line] <0000005E.00000003> Retained!
// -MQEnd- [Declarations_2] [Line] <0000005E.00000003>
};
inline
Line::Line()
// -MQBeg- [Op_Init] [Line::Line] <0000005E.0000000F> Retained!
// -MQEnd- [Op_Init] [Line::Line] <0000005E.0000000F>
{
// -MQBeg- [Op_Body] [Line::Line] <0000005E.0000000F> Retained!
Length=10;
// -MQEnd- [Op_Body] [Line::Line] <0000005E.0000000F>
}
inline
Line::Line(char style, int length)
// -MQBeg- [Op_Init] [Line::Line] <0000005E.00000010> Retained!
: Shape(style)
// -MQEnd- [Op_Init] [Line::Line] <0000005E.00000010>
{
// -MQBeg- [Op_Body] [Line::Line] <0000005E.00000010> Retained!
Length=length;
// -MQEnd- [Op_Body] [Line::Line] <0000005E.00000010>
}
inline void
Line::SetLength(int length)
{
// -MQBeg- [Op_Body] [Line::SetLength] <0000005E.00000012> Retained!
Length=length;
// -MQEnd- [Op_Body] [Line::SetLength] <0000005E.00000012>
}
// -MQEnd- [Class_Spec] [Line] <0000005E.00000003>
// -MQBeg- [Module_Declarations_2] [Line_h] <0000005B.00000000> Retained!
// -MQEnd- [Module_Declarations_2] [Line_h] <0000005B.00000000>
#endif