Program Listing for File TextProperties.h

Program Listing for File TextProperties.h#

Return to documentation for file (src/main/cpp/lib/TextProperties.h)

#ifndef TEXTPROPERTIES_H_
#define TEXTPROPERTIES_H_

#include <string>
#include "Color.h"

struct TextProperties
{
  std::string font_name;
  double font_size;
  Color color;
  bool bold;
  bool italic;

  TextProperties (const std::string& font_name_, double font_size_,
          const Color& color_ = Color::BLACK, bool bold_ = false,
          bool italic_ = false) :
      font_name (font_name_), font_size (font_size_), color (color_), bold (
      bold_), italic (italic_)
  {
  }
};


#endif /* TEXTPROPERTIES_H_ */