Font.hh
Go to the documentation of this file.
1 
4 #pragma once
5 
6 #include "boca/generic/Flag.hh"
7 
8 namespace boca
9 {
10 
11 enum class Style
12 {
13  none = 0,
14  normal = 1 << 0,
15  bold = 1 << 1,
16  italic = 1 << 2
17 };
18 
19 template<>
20 struct Flag<Style> {
21  static const bool enable = true;
22 };
23 
24 double TextHeight();
25 
26 double LabelHeight();
27 
28 int ColorCode(int number);
29 
30 int FontCode(Style style = Style::normal);
31 
32 }
Mark a strongly typed enumerator as a flag.
Definition: Flag.hh:22
double TextHeight()
Definition: Font.cpp:62
Style
Definition: Font.hh:11
int ColorCode(int number)
Definition: Font.cpp:84
double LabelHeight()
Definition: Font.cpp:73
Boosted Collider Analysis.
Definition: Analysis.hh:15
int FontCode(Style style=Style::normal)
Definition: Font.cpp:106