| 250 | } |
| 251 | |
| 252 | void SkinDataUtility::fillRegionCoords(DataPtr _skinData, const SkinDataUtility::VectorCoord& _value) |
| 253 | { |
| 254 | const VectorString& names = getRegionNames(); |
| 255 | |
| 256 | for (Data::VectorData::const_iterator child = _skinData->getChilds().begin(); |
| 257 | child != _skinData->getChilds().end(); |
| 258 | child++) |
| 259 | { |
| 260 | if ((*child)->getType()->getName() != "Region") |
| 261 | continue; |
| 262 | |
| 263 | const std::string& name = (*child)->getPropertyValue("Name"); |
| 264 | |
| 265 | if (name == names[RegionLeftTop]) |
| 266 | (*child)->setPropertyValue("Coord", _value[RegionLeftTop]); |
| 267 | else if (name == names[RegionTop]) |
| 268 | (*child)->setPropertyValue("Coord", _value[RegionTop]); |
| 269 | else if (name == names[RegionRightTop]) |
| 270 | (*child)->setPropertyValue("Coord", _value[RegionRightTop]); |
| 271 | else if (name == names[RegionLeft]) |
| 272 | (*child)->setPropertyValue("Coord", _value[RegionLeft]); |
| 273 | else if (name == names[RegionCenter]) |
| 274 | (*child)->setPropertyValue("Coord", _value[RegionCenter]); |
| 275 | else if (name == names[RegionRight]) |
| 276 | (*child)->setPropertyValue("Coord", _value[RegionRight]); |
| 277 | else if (name == names[RegionLeftBottom]) |
| 278 | (*child)->setPropertyValue("Coord", _value[RegionLeftBottom]); |
| 279 | else if (name == names[RegionBottom]) |
| 280 | (*child)->setPropertyValue("Coord", _value[RegionBottom]); |
| 281 | else if (name == names[RegionRightBottom]) |
| 282 | (*child)->setPropertyValue("Coord", _value[RegionRightBottom]); |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | SkinDataUtility::RectVisible SkinDataUtility::getSeparatorsVisible(DataPtr _skinData) |
| 287 | { |
nothing calls this directly
no test coverage detected