| 284 | } |
| 285 | |
| 286 | SkinDataUtility::RectVisible SkinDataUtility::getSeparatorsVisible(DataPtr _skinData) |
| 287 | { |
| 288 | RectVisible result; |
| 289 | |
| 290 | for (Data::VectorData::const_iterator child = _skinData->getChilds().begin(); |
| 291 | child != _skinData->getChilds().end(); |
| 292 | child++) |
| 293 | { |
| 294 | if ((*child)->getType()->getName() != "Separator") |
| 295 | continue; |
| 296 | |
| 297 | const std::string& name = (*child)->getPropertyValue("Name"); |
| 298 | bool visible = (*child)->getPropertyValue<bool>("Visible"); |
| 299 | |
| 300 | if (name == "Left") |
| 301 | result.left = visible; |
| 302 | else if (name == "Top") |
| 303 | result.top = visible; |
| 304 | else if (name == "Right") |
| 305 | result.right = visible; |
| 306 | else if (name == "Bottom") |
| 307 | result.bottom = visible; |
| 308 | } |
| 309 | |
| 310 | return result; |
| 311 | } |
| 312 | |
| 313 | void SkinDataUtility::fillRegionEnable(DataPtr _skinData, const RectVisible& _value) |
| 314 | { |