[haiku-3rdparty-dev] searching a BList

  • From: Ryan Kingston <ryanmk54@xxxxxxxxx>
  • To: haiku-3rd-party <haiku-3rdparty-dev@xxxxxxxxxxxxx>
  • Date: Thu, 26 Jul 2012 22:37:47 -0600

I am trying to make an app class that would have the basics of the
playground demo, except the user would be able to click the object to
select it.  Each object is derived from BRect to make it easier to know
which object was clicked.  As of now I plan to iterate through the list,
checking to see if the mouse is within any of the objects bounds.  Is there
a method in BList similar to HasItem() or IndexOf() to where I could get
the index of an object,  given certain conditions the object must meet?

Thanks
Ryan

Other related posts: