BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
DomFont Class Reference

Public Member Functions

 DomFont ()
 
 ~DomFont ()
 
void clearElementAntialiasing ()
 
void clearElementBold ()
 
void clearElementFamily ()
 
void clearElementItalic ()
 
void clearElementKerning ()
 
void clearElementPointSize ()
 
void clearElementStrikeOut ()
 
void clearElementStyleStrategy ()
 
void clearElementUnderline ()
 
void clearElementWeight ()
 
bool elementAntialiasing () const
 
bool elementBold () const
 
QString elementFamily () const
 
bool elementItalic () const
 
bool elementKerning () const
 
int elementPointSize () const
 
bool elementStrikeOut () const
 
QString elementStyleStrategy () const
 
bool elementUnderline () const
 
int elementWeight () const
 
bool hasElementAntialiasing () const
 
bool hasElementBold () const
 
bool hasElementFamily () const
 
bool hasElementItalic () const
 
bool hasElementKerning () const
 
bool hasElementPointSize () const
 
bool hasElementStrikeOut () const
 
bool hasElementStyleStrategy () const
 
bool hasElementUnderline () const
 
bool hasElementWeight () const
 
void read (QXmlStreamReader &reader)
 
void setElementAntialiasing (bool a)
 
void setElementBold (bool a)
 
void setElementFamily (const QString &a)
 
void setElementItalic (bool a)
 
void setElementKerning (bool a)
 
void setElementPointSize (int a)
 
void setElementStrikeOut (bool a)
 
void setElementStyleStrategy (const QString &a)
 
void setElementUnderline (bool a)
 
void setElementWeight (int a)
 
void setText (const QString &s)
 
QString text () const
 
void write (QXmlStreamWriter &writer, const QString &tagName="") const
 

Private Types

enum  Child {
  Family = 1 , PointSize = 2 , Weight = 4 , Italic = 8 ,
  Bold = 16 , Underline = 32 , StrikeOut = 64 , Antialiasing = 128 ,
  StyleStrategy = 256 , Kerning = 512
}
 

Private Member Functions

 DomFont (const DomFont &other)
 
void clear (bool clear_all=true)
 
void operator= (const DomFont &other)
 

Private Attributes

bool m_antialiasing
 
bool m_bold
 
uint m_children
 
QString m_family
 
bool m_italic
 
bool m_kerning
 
int m_pointSize
 
bool m_strikeOut
 
QString m_styleStrategy
 
QString m_text
 
bool m_underline
 
int m_weight
 

Detailed Description

Definition at line 2259 of file ui4_p.h.

Member Enumeration Documentation

◆ Child

enum DomFont::Child
private
Enumerator
Family 
PointSize 
Weight 
Italic 
Bold 
Underline 
StrikeOut 
Antialiasing 
StyleStrategy 
Kerning 

Definition at line 2338 of file ui4_p.h.

2338  {
2339  Family = 1,
2340  PointSize = 2,
2341  Weight = 4,
2342  Italic = 8,
2343  Bold = 16,
2344  Underline = 32,
2345  StrikeOut = 64,
2346  Antialiasing = 128,
2347  StyleStrategy = 256,
2348  Kerning = 512
2349  };
@ Antialiasing
Definition: ui4_p.h:2346
@ Kerning
Definition: ui4_p.h:2348
@ PointSize
Definition: ui4_p.h:2340
@ Bold
Definition: ui4_p.h:2343
@ Family
Definition: ui4_p.h:2339
@ Underline
Definition: ui4_p.h:2344
@ StyleStrategy
Definition: ui4_p.h:2347
@ StrikeOut
Definition: ui4_p.h:2345
@ Weight
Definition: ui4_p.h:2341
@ Italic
Definition: ui4_p.h:2342

Constructor & Destructor Documentation

◆ DomFont() [1/2]

DomFont::DomFont ( )

◆ ~DomFont()

DomFont::~DomFont ( )

◆ DomFont() [2/2]

DomFont::DomFont ( const DomFont other)
private

Member Function Documentation

◆ clear()

void DomFont::clear ( bool  clear_all = true)
private

◆ clearElementAntialiasing()

void DomFont::clearElementAntialiasing ( )

◆ clearElementBold()

void DomFont::clearElementBold ( )

◆ clearElementFamily()

void DomFont::clearElementFamily ( )

◆ clearElementItalic()

void DomFont::clearElementItalic ( )

◆ clearElementKerning()

void DomFont::clearElementKerning ( )

◆ clearElementPointSize()

void DomFont::clearElementPointSize ( )

◆ clearElementStrikeOut()

void DomFont::clearElementStrikeOut ( )

◆ clearElementStyleStrategy()

void DomFont::clearElementStyleStrategy ( )

◆ clearElementUnderline()

void DomFont::clearElementUnderline ( )

◆ clearElementWeight()

void DomFont::clearElementWeight ( )

◆ elementAntialiasing()

bool DomFont::elementAntialiasing ( ) const
inline

Definition at line 2306 of file ui4_p.h.

2306 { return m_antialiasing; }
bool m_antialiasing
Definition: ui4_p.h:2335

◆ elementBold()

bool DomFont::elementBold ( ) const
inline

Definition at line 2291 of file ui4_p.h.

2291 { return m_bold; }
bool m_bold
Definition: ui4_p.h:2332

◆ elementFamily()

QString DomFont::elementFamily ( ) const
inline

Definition at line 2271 of file ui4_p.h.

2271 { return m_family; }
QString m_family
Definition: ui4_p.h:2328

◆ elementItalic()

bool DomFont::elementItalic ( ) const
inline

Definition at line 2286 of file ui4_p.h.

2286 { return m_italic; }
bool m_italic
Definition: ui4_p.h:2331

◆ elementKerning()

bool DomFont::elementKerning ( ) const
inline

Definition at line 2316 of file ui4_p.h.

2316 { return m_kerning; }
bool m_kerning
Definition: ui4_p.h:2337

◆ elementPointSize()

int DomFont::elementPointSize ( ) const
inline

Definition at line 2276 of file ui4_p.h.

2276 { return m_pointSize; }
int m_pointSize
Definition: ui4_p.h:2329

◆ elementStrikeOut()

bool DomFont::elementStrikeOut ( ) const
inline

Definition at line 2301 of file ui4_p.h.

2301 { return m_strikeOut; }
bool m_strikeOut
Definition: ui4_p.h:2334

◆ elementStyleStrategy()

QString DomFont::elementStyleStrategy ( ) const
inline

Definition at line 2311 of file ui4_p.h.

2311 { return m_styleStrategy; }
QString m_styleStrategy
Definition: ui4_p.h:2336

◆ elementUnderline()

bool DomFont::elementUnderline ( ) const
inline

Definition at line 2296 of file ui4_p.h.

2296 { return m_underline; }
bool m_underline
Definition: ui4_p.h:2333

◆ elementWeight()

int DomFont::elementWeight ( ) const
inline

Definition at line 2281 of file ui4_p.h.

2281 { return m_weight; }
int m_weight
Definition: ui4_p.h:2330

◆ hasElementAntialiasing()

bool DomFont::hasElementAntialiasing ( ) const
inline

Definition at line 2308 of file ui4_p.h.

2308 { return m_children & Antialiasing; }
uint m_children
Definition: ui4_p.h:2327

◆ hasElementBold()

bool DomFont::hasElementBold ( ) const
inline

Definition at line 2293 of file ui4_p.h.

2293 { return m_children & Bold; }

◆ hasElementFamily()

bool DomFont::hasElementFamily ( ) const
inline

Definition at line 2273 of file ui4_p.h.

2273 { return m_children & Family; }

◆ hasElementItalic()

bool DomFont::hasElementItalic ( ) const
inline

Definition at line 2288 of file ui4_p.h.

2288 { return m_children & Italic; }

◆ hasElementKerning()

bool DomFont::hasElementKerning ( ) const
inline

Definition at line 2318 of file ui4_p.h.

2318 { return m_children & Kerning; }

◆ hasElementPointSize()

bool DomFont::hasElementPointSize ( ) const
inline

Definition at line 2278 of file ui4_p.h.

2278 { return m_children & PointSize; }

◆ hasElementStrikeOut()

bool DomFont::hasElementStrikeOut ( ) const
inline

Definition at line 2303 of file ui4_p.h.

2303 { return m_children & StrikeOut; }

◆ hasElementStyleStrategy()

bool DomFont::hasElementStyleStrategy ( ) const
inline

Definition at line 2313 of file ui4_p.h.

2313 { return m_children & StyleStrategy; }

◆ hasElementUnderline()

bool DomFont::hasElementUnderline ( ) const
inline

Definition at line 2298 of file ui4_p.h.

2298 { return m_children & Underline; }

◆ hasElementWeight()

bool DomFont::hasElementWeight ( ) const
inline

Definition at line 2283 of file ui4_p.h.

2283 { return m_children & Weight; }

◆ operator=()

void DomFont::operator= ( const DomFont other)
private

◆ read()

void DomFont::read ( QXmlStreamReader &  reader)

◆ setElementAntialiasing()

void DomFont::setElementAntialiasing ( bool  a)

◆ setElementBold()

void DomFont::setElementBold ( bool  a)

◆ setElementFamily()

void DomFont::setElementFamily ( const QString &  a)

◆ setElementItalic()

void DomFont::setElementItalic ( bool  a)

◆ setElementKerning()

void DomFont::setElementKerning ( bool  a)

◆ setElementPointSize()

void DomFont::setElementPointSize ( int  a)

◆ setElementStrikeOut()

void DomFont::setElementStrikeOut ( bool  a)

◆ setElementStyleStrategy()

void DomFont::setElementStyleStrategy ( const QString &  a)

◆ setElementUnderline()

void DomFont::setElementUnderline ( bool  a)

◆ setElementWeight()

void DomFont::setElementWeight ( int  a)

◆ setText()

void DomFont::setText ( const QString &  s)
inline

Definition at line 2267 of file ui4_p.h.

2267 { m_text = s; }
QString m_text
Definition: ui4_p.h:2322

◆ text()

QString DomFont::text ( ) const
inline

Definition at line 2266 of file ui4_p.h.

2266 { return m_text; }

◆ write()

void DomFont::write ( QXmlStreamWriter &  writer,
const QString &  tagName = "" 
) const

Member Data Documentation

◆ m_antialiasing

bool DomFont::m_antialiasing
private

Definition at line 2335 of file ui4_p.h.

◆ m_bold

bool DomFont::m_bold
private

Definition at line 2332 of file ui4_p.h.

◆ m_children

uint DomFont::m_children
private

Definition at line 2327 of file ui4_p.h.

◆ m_family

QString DomFont::m_family
private

Definition at line 2328 of file ui4_p.h.

◆ m_italic

bool DomFont::m_italic
private

Definition at line 2331 of file ui4_p.h.

◆ m_kerning

bool DomFont::m_kerning
private

Definition at line 2337 of file ui4_p.h.

◆ m_pointSize

int DomFont::m_pointSize
private

Definition at line 2329 of file ui4_p.h.

◆ m_strikeOut

bool DomFont::m_strikeOut
private

Definition at line 2334 of file ui4_p.h.

◆ m_styleStrategy

QString DomFont::m_styleStrategy
private

Definition at line 2336 of file ui4_p.h.

◆ m_text

QString DomFont::m_text
private

Definition at line 2322 of file ui4_p.h.

◆ m_underline

bool DomFont::m_underline
private

Definition at line 2333 of file ui4_p.h.

◆ m_weight

int DomFont::m_weight
private

Definition at line 2330 of file ui4_p.h.


The documentation for this class was generated from the following file: