Hello,

Background:
So I'm working on a project that is using DirectFB as its "windowing" environment. The interface is pretty much just an image with a few areas that are "hot", there are about 3-6 screens, each with their own hot areas.


Problem:
I need a quick way to determine which hot area was clicked on and call it's function. So I'm wondering what data structure would I use so that once I figure out the location of the click, I can quickly retrieve the function call? I mean, if I have an array, how do I index it in such a way that I can calculate the location of the mouse click to be an index of this array?


If this doesn't make any sense let me know... which I'm sure you'd do
--
Nathanael Noblet
Gnat Solutions
4604 Monterey Ave NW
Calgary, AB
T3B 5K4

T/F 403.288.5360
C 403.809.5368

http://www.gnat.ca/



Reply via email to