ROOT
v6-26
Reference Guide
Loading...
Searching...
No Matches
XLFDParser.h
Go to the documentation of this file.
1
// @(#)root/graf2d:$Id$
2
// Author: Timur Pocheptsov 2/03/2012
3
4
/*************************************************************************
5
* Copyright (C) 1995-2012, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
#ifndef ROOT_XLFDParser
13
#define ROOT_XLFDParser
14
15
#include <string>
16
17
////////////////////////////////////////////////////////////////////////
18
// //
19
// XLDF parser, very simple implementation, used by GUI only. //
20
// //
21
////////////////////////////////////////////////////////////////////////
22
23
namespace
ROOT
{
24
namespace
MacOSX {
25
namespace
X11
{
//X11 emulation.
26
27
enum
FontSlant
{
28
kFSAny
,
//For '*' wildcard in xlfd string.
29
kFSRegular
,
30
kFSItalic
31
};
32
33
enum
FontWeight
{
34
kFWAny
,
//For '*' wildcard in xlfd string.
35
kFWMedium
,
36
kFWBold
37
};
38
39
struct
XLFDName
{
40
XLFDName
();
41
//foundry *
42
std::string
fFamilyName
;
43
FontWeight
fWeight
;
44
FontSlant
fSlant
;
45
//width *
46
//addstyle *
47
unsigned
fPixelSize
;
48
//points *
49
//horiz *
50
//vert *
51
//spacing *
52
//avgwidth *
53
std::string
fRgstry
;
54
std::string
fEncoding
;
55
};
56
57
bool
ParseXLFDName
(
const
std::string &xlfdName,
XLFDName
&dst);
58
59
}
//X11
60
}
//MacOSX
61
}
//ROOT
62
63
#endif
ROOT::MacOSX::X11
Definition
CocoaGuiTypes.h:10
ROOT::MacOSX::X11::ParseXLFDName
bool ParseXLFDName(const std::string &xlfdName, XLFDName &dst)
Definition
XLFDParser.mm:260
ROOT::MacOSX::X11::FontSlant
FontSlant
Definition
XLFDParser.h:27
ROOT::MacOSX::X11::kFSItalic
@ kFSItalic
Definition
XLFDParser.h:30
ROOT::MacOSX::X11::kFSAny
@ kFSAny
Definition
XLFDParser.h:28
ROOT::MacOSX::X11::kFSRegular
@ kFSRegular
Definition
XLFDParser.h:29
ROOT::MacOSX::X11::FontWeight
FontWeight
Definition
XLFDParser.h:33
ROOT::MacOSX::X11::kFWBold
@ kFWBold
Definition
XLFDParser.h:36
ROOT::MacOSX::X11::kFWMedium
@ kFWMedium
Definition
XLFDParser.h:35
ROOT::MacOSX::X11::kFWAny
@ kFWAny
Definition
XLFDParser.h:34
ROOT
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition
EExecutionPolicy.hxx:4
ROOT::MacOSX::X11::XLFDName
Definition
XLFDParser.h:39
ROOT::MacOSX::X11::XLFDName::XLFDName
XLFDName()
Definition
XLFDParser.mm:252
ROOT::MacOSX::X11::XLFDName::fPixelSize
unsigned fPixelSize
Definition
XLFDParser.h:47
ROOT::MacOSX::X11::XLFDName::fSlant
FontSlant fSlant
Definition
XLFDParser.h:44
ROOT::MacOSX::X11::XLFDName::fFamilyName
std::string fFamilyName
Definition
XLFDParser.h:42
ROOT::MacOSX::X11::XLFDName::fEncoding
std::string fEncoding
Definition
XLFDParser.h:54
ROOT::MacOSX::X11::XLFDName::fRgstry
std::string fRgstry
Definition
XLFDParser.h:53
ROOT::MacOSX::X11::XLFDName::fWeight
FontWeight fWeight
Definition
XLFDParser.h:43
graf2d
cocoa
inc
XLFDParser.h
ROOT v6-26 - Reference Guide Generated on Mon Sep 11 2023 21:02:19 (GVA Time) using Doxygen 1.9.8