29 #ifndef CDPL_VIS_FONT_HPP
30 #define CDPL_VIS_FONT_HPP
73 Font(
const std::string& family,
double size = 12.0,
bool bold =
false,
bool italic =
false);
Definition of the preprocessor macro CDPL_VIS_API.
#define CDPL_VIS_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Specifies a font for drawing text.
Definition: Font.hpp:54
bool operator==(const Font &font) const
Equality comparison operator.
Font(const std::string &family, double size=12.0, bool bold=false, bool italic=false)
Constructs a font object with the specified font family name and font size.
void setUnderlined(bool flag)
Sets or clears the flag specifying whether text should be rendered underlined.
void setFamily(const std::string &family)
Sets the font family name.
bool isUnderlined() const
Returns the flag specifying whether text is rendered underlined.
void setStrikedOut(bool flag)
Sets or clears the flag specifying whether text should be rendered striked-out.
const std::string & getFamily() const
Returns the font family name.
void setItalic(bool flag)
Sets or clears the flag specifying whether text should be rendered italicized.
bool isOverlined() const
Returns the flag specifying whether text is rendered overlined.
void setBold(bool flag)
Sets or clears the flag specifying whether text should be rendered bold.
bool isStrikedOut() const
Returns the flag specifying whether text is rendered striked-out.
Font()
Constructs a font object with an unspecified family name and a font size of 12.0.
bool hasFixedPitch() const
Returns the fixed pitch flag.
bool isBold() const
Returns the flag specifying whether text is rendered bold.
void setSize(double size)
Sets the font size.
double getSize() const
Returns the font size.
bool isItalic() const
Returns the flag specifying whether text is rendered italicized.
void setFixedPitch(bool flag)
Sets or clears the fixed pitch flag.
void setOverlined(bool flag)
Sets or clears the flag specifying whether text should be rendered overlined.
bool operator!=(const Font &font) const
Inequality comparison operator.
The namespace of the Chemical Data Processing Library.