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

Public Member Functions

 DomGradientStop ()
 
 ~DomGradientStop ()
 
double attributePosition () const
 
void clearAttributePosition ()
 
void clearElementColor ()
 
DomColorelementColor () const
 
bool hasAttributePosition () const
 
bool hasElementColor () const
 
void read (QXmlStreamReader &reader)
 
void setAttributePosition (double a)
 
void setElementColor (DomColor *a)
 
void setText (const QString &s)
 
DomColortakeElementColor ()
 
QString text () const
 
void write (QXmlStreamWriter &writer, const QString &tagName="") const
 

Private Types

enum  Child { Color = 1 }
 

Private Member Functions

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

Private Attributes

double m_attr_position
 
uint m_children
 
DomColorm_color
 
bool m_has_attr_position
 
QString m_text
 

Detailed Description

Definition at line 1853 of file ui4_p.h.

Member Enumeration Documentation

◆ Child

enum DomGradientStop::Child
private
Enumerator
Color 

Definition at line 1891 of file ui4_p.h.

1891 { Color = 1 };

Constructor & Destructor Documentation

◆ DomGradientStop() [1/2]

DomGradientStop::DomGradientStop ( )

◆ ~DomGradientStop()

DomGradientStop::~DomGradientStop ( )

◆ DomGradientStop() [2/2]

DomGradientStop::DomGradientStop ( const DomGradientStop other)
private

Member Function Documentation

◆ attributePosition()

double DomGradientStop::attributePosition ( ) const
inline

Definition at line 1865 of file ui4_p.h.

1865 { return m_attr_position; }
double m_attr_position
Definition: ui4_p.h:1885

◆ clear()

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

◆ clearAttributePosition()

void DomGradientStop::clearAttributePosition ( )
inline

Definition at line 1871 of file ui4_p.h.

1871 { m_has_attr_position = false; }
bool m_has_attr_position
Definition: ui4_p.h:1886

◆ clearElementColor()

void DomGradientStop::clearElementColor ( )

◆ elementColor()

DomColor* DomGradientStop::elementColor ( ) const
inline

Definition at line 1874 of file ui4_p.h.

1874 { return m_color; }
DomColor * m_color
Definition: ui4_p.h:1890

◆ hasAttributePosition()

bool DomGradientStop::hasAttributePosition ( ) const
inline

Definition at line 1864 of file ui4_p.h.

1864 { return m_has_attr_position; }

◆ hasElementColor()

bool DomGradientStop::hasElementColor ( ) const
inline

Definition at line 1877 of file ui4_p.h.

1877 { return m_children & Color; }
uint m_children
Definition: ui4_p.h:1889

◆ operator=()

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

◆ read()

void DomGradientStop::read ( QXmlStreamReader &  reader)

◆ setAttributePosition()

void DomGradientStop::setAttributePosition ( double  a)
inline

Definition at line 1866 of file ui4_p.h.

1867  {
1868  m_attr_position = a;
1869  m_has_attr_position = true;
1870  }

◆ setElementColor()

void DomGradientStop::setElementColor ( DomColor a)

◆ setText()

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

Definition at line 1861 of file ui4_p.h.

1861 { m_text = s; }
QString m_text
Definition: ui4_p.h:1881

◆ takeElementColor()

DomColor* DomGradientStop::takeElementColor ( )

◆ text()

QString DomGradientStop::text ( ) const
inline

Definition at line 1860 of file ui4_p.h.

1860 { return m_text; }

◆ write()

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

Member Data Documentation

◆ m_attr_position

double DomGradientStop::m_attr_position
private

Definition at line 1885 of file ui4_p.h.

◆ m_children

uint DomGradientStop::m_children
private

Definition at line 1889 of file ui4_p.h.

◆ m_color

DomColor* DomGradientStop::m_color
private

Definition at line 1890 of file ui4_p.h.

◆ m_has_attr_position

bool DomGradientStop::m_has_attr_position
private

Definition at line 1886 of file ui4_p.h.

◆ m_text

QString DomGradientStop::m_text
private

Definition at line 1881 of file ui4_p.h.


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