Internal the pattern ressource of a MSKGraph. More...
Public Member Functions | |
Patterns (int num, uint16_t const *data) | |
constructor ( 4 int by patterns ) | |
bool | get (int id, MWAWGraphicStyle::Pattern &pat) const |
return the pattern corresponding to an id | |
float | getPercent (int id) const |
return the percentage corresponding to a pattern | |
Public Attributes | |
int | m_num |
the number of patterns | |
std::vector< unsigned char > | m_valuesList |
the pattern values (8 data by pattern) | |
std::vector< float > | m_percentList |
the pattern percent values |
Internal the pattern ressource of a MSKGraph.
MSKGraphInternal::Patterns::Patterns | ( | int | num, |
uint16_t const * | data | ||
) | [inline] |
constructor ( 4 int by patterns )
bool MSKGraphInternal::Patterns::get | ( | int | id, |
MWAWGraphicStyle::Pattern & | pat | ||
) | const [inline] |
return the pattern corresponding to an id
float MSKGraphInternal::Patterns::getPercent | ( | int | id | ) | const [inline] |
return the percentage corresponding to a pattern
the number of patterns
Referenced by get(), getPercent(), and Patterns().
std::vector<float> MSKGraphInternal::Patterns::m_percentList |
the pattern percent values
Referenced by getPercent(), and Patterns().
std::vector<unsigned char> MSKGraphInternal::Patterns::m_valuesList |
the pattern values (8 data by pattern)
Referenced by get(), and Patterns().