forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TQtPen.h
39 lines (35 loc) · 1.02 KB
/
TQtPen.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// @(#)root/qt:$Name: $:$Id$
// Author: Valeri Fine 21/01/2002
/****************************************************************************
**
** Copyright (C) 2002 by Valeri Fine. All rights reserved.
**
*****************************************************************************/
#ifndef ROOT_TQtPen
#define ROOT_TQtPen
#include "Riostream.h"
#include "TAttLine.h"
#ifndef __CINT__
# include <QtGui/QPen>
#else
class QPen;
#endif
//
// TQtPen creates the QPen object to map to ROOT TAttLine attributes
//
class TQtPen : public QPen, public TAttLine
{
public:
TQtPen();
TQtPen(const TQtPen &src):QPen(src),TAttLine(src) {}
TQtPen(const TAttLine &line);
TQtPen &operator=(const TAttLine &line);
virtual ~TQtPen(){;}
void SetLineAttributes() { TAttLine::SetLineAttributes(); }
void SetLineAttributes(const TAttLine &lineAttributes);
void SetLineColor(Color_t cindex);
void SetLineType(int n, int*dash);
void SetLineStyle(Style_t linestyle);
void SetLineWidth(Width_t width);
};
#endif