BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
DomColorRole Class Reference
Collaboration diagram for DomColorRole:
[legend]

Public Member Functions

 DomColorRole ()
 
 ~DomColorRole ()
 
QString attributeRole () const
 
void clearAttributeRole ()
 
void clearElementBrush ()
 
DomBrushelementBrush () const
 
bool hasAttributeRole () const
 
bool hasElementBrush () const
 
void read (QXmlStreamReader &reader)
 
void setAttributeRole (const QString &a)
 
void setElementBrush (DomBrush *a)
 
void setText (const QString &s)
 
DomBrushtakeElementBrush ()
 
QString text () const
 
void write (QXmlStreamWriter &writer, const QString &tagName="") const
 

Private Types

enum  Child { Brush = 1 }
 

Private Member Functions

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

Private Attributes

QString m_attr_role
 
DomBrushm_brush
 
uint m_children
 
bool m_has_attr_role
 
QString m_text
 

Detailed Description

Definition at line 2136 of file ui4_p.h.

Member Enumeration Documentation

◆ Child

enum DomColorRole::Child
private
Enumerator
Brush 

Definition at line 2174 of file ui4_p.h.

2174 { Brush = 1 };

Constructor & Destructor Documentation

◆ DomColorRole() [1/2]

DomColorRole::DomColorRole ( )

◆ ~DomColorRole()

DomColorRole::~DomColorRole ( )

◆ DomColorRole() [2/2]

DomColorRole::DomColorRole ( const DomColorRole other)
private

Member Function Documentation

◆ attributeRole()

QString DomColorRole::attributeRole ( ) const
inline

Definition at line 2148 of file ui4_p.h.

2148 { return m_attr_role; }
QString m_attr_role
Definition: ui4_p.h:2168

◆ clear()

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

◆ clearAttributeRole()

void DomColorRole::clearAttributeRole ( )
inline

Definition at line 2154 of file ui4_p.h.

2154 { m_has_attr_role = false; }
bool m_has_attr_role
Definition: ui4_p.h:2169

◆ clearElementBrush()

void DomColorRole::clearElementBrush ( )

◆ elementBrush()

DomBrush* DomColorRole::elementBrush ( ) const
inline

Definition at line 2157 of file ui4_p.h.

2157 { return m_brush; }
DomBrush * m_brush
Definition: ui4_p.h:2173

◆ hasAttributeRole()

bool DomColorRole::hasAttributeRole ( ) const
inline

Definition at line 2147 of file ui4_p.h.

2147 { return m_has_attr_role; }

◆ hasElementBrush()

bool DomColorRole::hasElementBrush ( ) const
inline

Definition at line 2160 of file ui4_p.h.

2160 { return m_children & Brush; }
uint m_children
Definition: ui4_p.h:2172

◆ operator=()

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

◆ read()

void DomColorRole::read ( QXmlStreamReader &  reader)

◆ setAttributeRole()

void DomColorRole::setAttributeRole ( const QString &  a)
inline

Definition at line 2149 of file ui4_p.h.

2150  {
2151  m_attr_role = a;
2152  m_has_attr_role = true;
2153  }

◆ setElementBrush()

void DomColorRole::setElementBrush ( DomBrush a)

◆ setText()

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

Definition at line 2144 of file ui4_p.h.

2144 { m_text = s; }
QString m_text
Definition: ui4_p.h:2164

◆ takeElementBrush()

DomBrush* DomColorRole::takeElementBrush ( )

◆ text()

QString DomColorRole::text ( ) const
inline

Definition at line 2143 of file ui4_p.h.

2143 { return m_text; }

◆ write()

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

Member Data Documentation

◆ m_attr_role

QString DomColorRole::m_attr_role
private

Definition at line 2168 of file ui4_p.h.

◆ m_brush

DomBrush* DomColorRole::m_brush
private

Definition at line 2173 of file ui4_p.h.

◆ m_children

uint DomColorRole::m_children
private

Definition at line 2172 of file ui4_p.h.

◆ m_has_attr_role

bool DomColorRole::m_has_attr_role
private

Definition at line 2169 of file ui4_p.h.

◆ m_text

QString DomColorRole::m_text
private

Definition at line 2164 of file ui4_p.h.


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