GUIDOLib  1.7.7
Guido Engine Internal Documentation
ARFontAble.h
1 /*
2  GUIDO Library
3  Copyright (C) 2017 Grame
4 
5  This Source Code Form is subject to the terms of the Mozilla Public
6  License, v. 2.0. If a copy of the MPL was not distributed with this
7  file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9  Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
10  research@grame.fr
11 
12 */
13 
14 #ifndef ARFontAble_H
15 #define ARFontAble_H
16 
17 #include <string>
18 #include "ARMTParameter.h"
19 
20 
21 class ARFontAble : public ARMTParameter
22 {
23  public:
24  ARFontAble();
25  virtual ~ARFontAble() {}
26 
27  virtual void setTagParameters (const TagParameterMap& params);
28  virtual const char* getParamsStr() const { return kARFontAbleParams; };
29 
30  const char* getFont() const { return fFontName.c_str(); }
31  const char* getTextFormat() const { return fTextFormat.c_str(); }
32  const char* getTextAttributes() const { return fTextAttributes.c_str(); }
33  float getFSize() const { return fFontSize; }
34 
35  protected:
36  std::string fTextFormat;
37  std::string fFontName;
38  float fFontSize = 0.f;
39  std::string fTextAttributes;
40 };
41 
42 #endif
ARFontAble::~ARFontAble
virtual ~ARFontAble()
Definition: ARFontAble.h:25
ARFontAble::fFontName
std::string fFontName
Definition: ARFontAble.h:37
ARFontAble::ARFontAble
ARFontAble()
ARMTParameter
not yet documented
Definition: ARMTParameter.h:24
ARFontAble
Definition: ARFontAble.h:21
ARFontAble::getTextFormat
const char * getTextFormat() const
Definition: ARFontAble.h:31
ARFontAble::getFSize
float getFSize() const
Definition: ARFontAble.h:33
ARFontAble::fTextFormat
std::string fTextFormat
Definition: ARFontAble.h:36
ARFontAble::getTextAttributes
const char * getTextAttributes() const
Definition: ARFontAble.h:32
ARFontAble::fFontSize
float fFontSize
Definition: ARFontAble.h:38
ARFontAble::getFont
const char * getFont() const
Definition: ARFontAble.h:30
TagParameterMap
A list of tag parameters represented as a map.
Definition: TagParameterMap.h:31
ARFontAble::setTagParameters
virtual void setTagParameters(const TagParameterMap &params)
ARFontAble::getParamsStr
virtual const char * getParamsStr() const
Definition: ARFontAble.h:28
ARFontAble::fTextAttributes
std::string fTextAttributes
Definition: ARFontAble.h:39

Guido Project Copyright © 2019 Grame-CNCM