COPASI API  4.16.103
Public Member Functions | Public Attributes | List of all members
CLFontSpec Struct Reference

#include <utility_classes.h>

Collaboration diagram for CLFontSpec:
Collaboration graph
[legend]

Public Member Functions

 CLFontSpec ()
 
bool operator< (const CLFontSpec &right) const
 

Public Attributes

std::string mFamily
 
double mSize
 
CLText::FONT_STYLE mStyle
 
CLText::FONT_WEIGHT mWeight
 

Detailed Description

Definition at line 55 of file utility_classes.h.

Constructor & Destructor Documentation

CLFontSpec::CLFontSpec ( )

Definition at line 230 of file utility_classes.cpp.

230  :
231  mFamily(""),
232  mSize(0.0),
235 {
236 }
CLText::FONT_WEIGHT mWeight
std::string mFamily
CLText::FONT_STYLE mStyle

Member Function Documentation

bool CLFontSpec::operator< ( const CLFontSpec right) const

Definition at line 238 of file utility_classes.cpp.

References mFamily, mSize, mStyle, and mWeight.

239 {
240  bool result = false;
241 
242  if (this->mFamily < right.mFamily)
243  {
244  result = true;
245  }
246  else if (this->mFamily == right.mFamily)
247  {
248  if (this->mSize < right.mSize)
249  {
250  result = true;
251  }
252  else if (this->mSize == right.mSize)
253  {
254  if (this->mWeight < right.mWeight)
255  {
256  result = true;
257  }
258  else if (this->mWeight == right.mWeight)
259  {
260  if (this->mStyle < right.mStyle)
261  {
262  result = true;
263  }
264  }
265  }
266  }
267 
268  return result;
269 }
CLText::FONT_WEIGHT mWeight
std::string mFamily
CLText::FONT_STYLE mStyle

Member Data Documentation

std::string CLFontSpec::mFamily
double CLFontSpec::mSize
CLText::FONT_STYLE CLFontSpec::mStyle
CLText::FONT_WEIGHT CLFontSpec::mWeight

The documentation for this struct was generated from the following files: