forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TQtPadFont.h
49 lines (43 loc) · 1.4 KB
/
TQtPadFont.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
40
41
42
43
44
45
46
47
48
49
// @(#)root/qt:$Name: $:$Id$
// Author: Valeri Fine 21/01/2002
/****************************************************************************
**
** Copyright (C) 2002 by Valeri Fine. All rights reserved.
**
*****************************************************************************/
#ifndef ROOT_TQtPadFont
#define ROOT_TQtPadFont
#include "TAttText.h"
#include "TString.h"
#ifndef __CINT__
#include "TQtIncludes.h"
#else
class QFont;
#endif
//
// TQtPadFont class is Qt QFont class with TAttText ROOT class interface
//
class TQtPadFont : public QFont, public TAttText
{
private:
static TString fgRomanFontName;
static TString fgArialFontName;
static TString fgCourierFontName;
static TString fgSymbolFontFamily;
public:
TQtPadFont();
TQtPadFont(const TQtPadFont &src):QFont(src),TAttText(src) {}
virtual ~TQtPadFont(){;}
void SetTextFont(const char *fontname, int italic, int bold);
void SetTextFont(Font_t fontnumber=62);
void SetTextSize(Float_t textsize=1);
void SetTextSizePixels(Int_t npixels);
void SetTextMagnify(Float_t mgn);
static const char *RomanFontName();
static const char *ArialFontName();
static const char *CourierFontName();
static const char *SymbolFontFamily();
static void SetSymbolFontFamily(const char *symbolFnName="Symbol");
ClassDef(TQtPadFont,0) //< Create Qt QFont object based on ROOT TAttText attributes
};
#endif