Klaas Holwerda wrote:
> Klaas Holwerda wrote:
>> Glaz wrote:
>>> Hi again,
>
It is like this it looks like, i am still wondering why:
double xw = GetCanvasView()->GetDrawer2D()->DeviceToWorldX( m_mouse_x );
double yw = GetCanvasView()->GetDrawer2D()->DeviceToWorldY( m_mouse_y );
a2dCanvasObject *a2dCanObj = GetCanvasView()->IsHitWorld( xw, yw );
a2dIterC ic( GetCanvasView() );
// The mouse is moving.
if( event.Moving() )
{
// The mouse is over an object.
if( a2dCanObj )
{
a2dHitEvent hitEvent = a2dHitEvent( xw, yw, false );
hitEvent.m_xyRelToChildren = true;
a2dCanvasObject *handle = a2dCanObj->ChildIsHitWorld( ic, hitEvent
);
if( handle )
{
wxString nn = handle->GetName();
wxLogDebug( wxT( "Do name = %s" ), nn.c_str() );
}
}
}
--
Unclassified
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Wxart2d-users_dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev