| 241 | } |
| 242 | |
| 243 | std::string UIScrollableWidget::getPropertyString( const PropertyDefinition* propertyDef, |
| 244 | const Uint32& propertyIndex ) const { |
| 245 | if ( NULL == propertyDef ) |
| 246 | return ""; |
| 247 | |
| 248 | switch ( propertyDef->getPropertyId() ) { |
| 249 | case PropertyId::VScrollMode: |
| 250 | return getVerticalScrollMode() == ScrollBarMode::Auto |
| 251 | ? "auto" |
| 252 | : ( getVerticalScrollMode() == ScrollBarMode::AlwaysOn ? "on" : "off" ); |
| 253 | case PropertyId::HScrollMode: |
| 254 | return getHorizontalScrollMode() == ScrollBarMode::Auto |
| 255 | ? "auto" |
| 256 | : ( getHorizontalScrollMode() == ScrollBarMode::AlwaysOn ? "on" : "off" ); |
| 257 | case PropertyId::ScrollBarStyle: |
| 258 | return mVScroll->getScrollBarType() == UIScrollBar::NoButtons ? "no-buttons" |
| 259 | : "two-buttons"; |
| 260 | case PropertyId::ScrollBarMode: |
| 261 | return getViewType() == ScrollViewType::Overlay ? "overlay" : "outside"; |
| 262 | default: |
| 263 | return UIWidget::getPropertyString( propertyDef, propertyIndex ); |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | std::vector<PropertyId> UIScrollableWidget::getPropertiesImplemented() const { |
| 268 | auto props = UIWidget::getPropertiesImplemented(); |
nothing calls this directly
no test coverage detected