• C++, Gwen, Window and mouse position problem
    3 replies, posted
I've looked through the source code of Gwen and I cannot find any way that will correctly tell me if my mouse is hovering a windowcontrol or an imagepanel. I really need to find out and be able to react when my mouse hovers over a windowcontrol or imagepanel. I found some functions that looked like they would do the trick but they just gave me weird positions that weren't even in the window. I'm hoping that someone can help me as I've been struggling with this for a couple of days now and can't seem to solve it on my own.
I use this: [code]bool root::Screen::isMouseHoveringCanvas() { if(Gwen::HoveredControl) { return (Gwen::HoveredControl->GetTypeName()=="Base"||Gwen::HoveredControl->GetTypeName()=="CrossSplitter")?true:false; } return true; }[/code]
For some reason trying to use Gwen::HoveredControl gives me a linker error. I've tried including all sorts of .h files from gwen but the error doesn't change. Do you know what the cause of this could be?
Well it seems to be defined in [URL="http://gwen.googlecode.com/svn-history/r70/trunk/trunk/gwen/include/Gwen/Gwen.h"]Gwen.h[/URL] Are you building the static version? Also what renderer are you using?
Sorry, you need to Log In to post a reply to this thread.