a crop attribute More...
Public Member Functions | |
StarGAttributeCrop (Type type, std::string const &debugName) | |
constructor | |
virtual shared_ptr< StarAttribute > | create () const |
create a new attribute | |
virtual bool | read (StarZone &zone, int vers, long endPos, StarObject &object) |
read a zone | |
virtual void | addTo (StarState &state, std::set< StarAttribute const * > &) const |
add to a graphic style | |
virtual void | printData (libstoff::DebugStream &o) const |
debug function to print the data | |
Protected Member Functions | |
StarGAttributeCrop (StarGAttributeCrop const &orig) | |
copy constructor | |
Protected Attributes | |
STOFFVec2i | m_leftTop |
the cropping left/top | |
STOFFVec2i | m_rightBottom |
the cropping right/bottom |
a crop attribute
StarGraphicAttribute::StarGAttributeCrop::StarGAttributeCrop | ( | Type | type, |
std::string const & | debugName | ||
) | [inline] |
constructor
Referenced by create().
StarGraphicAttribute::StarGAttributeCrop::StarGAttributeCrop | ( | StarGAttributeCrop const & | orig | ) | [inline, protected] |
copy constructor
void StarGraphicAttribute::StarGAttributeCrop::addTo | ( | StarState & | state, |
std::set< StarAttribute const * > & | |||
) | const [virtual] |
add to a graphic style
Reimplemented from StarAttribute.
virtual shared_ptr<StarAttribute> StarGraphicAttribute::StarGAttributeCrop::create | ( | ) | const [inline, virtual] |
create a new attribute
Implements StarAttribute.
virtual void StarGraphicAttribute::StarGAttributeCrop::printData | ( | libstoff::DebugStream & | o | ) | const [inline, virtual] |
bool StarGraphicAttribute::StarGAttributeCrop::read | ( | StarZone & | zone, |
int | vers, | ||
long | endPos, | ||
StarObject & | object | ||
) | [virtual] |
read a zone
Implements StarAttribute.
the cropping left/top
Referenced by addTo(), printData(), and read().
the cropping right/bottom
Referenced by addTo(), printData(), and read().