4 using namespace Dali::Accessibility;
6 bool Component::Contains( Point p, CoordType ctype )
8 auto extents = GetExtents( ctype );
9 return p.x >= extents.position.x && p.y >= extents.position.y && p.x <= extents.position.x + extents.size.width && p.y <= extents.position.y + extents.size.height;
12 Component* Component::GetAccessibleAtPoint( Point p, CoordType ctype )
14 auto children = GetChildren();
15 for( auto childIt = children.rbegin(); childIt != children.rend(); childIt++ )
17 auto component = dynamic_cast< Component* >( *childIt );
18 if( component && component->Contains( p, ctype ) )
26 bool Component::IsScrollable()