Implemented BView::SetEventMask()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11945 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1330,7 +1330,13 @@ BView::SetEventMask(uint32 mask, uint32 options)
|
||||
|
||||
fState->archivingFlags |= B_VIEW_EVMASK_BIT;
|
||||
|
||||
// TODO: modify! contact app_server!
|
||||
if (owner) {
|
||||
check_lock();
|
||||
|
||||
owner->fLink->StartMessage(AS_LAYER_SET_EVENT_MASK);
|
||||
owner->fLink->Attach<uint32>(mask);
|
||||
owner->fLink->Attach<uint32>(options);
|
||||
}
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
@@ -3850,6 +3856,8 @@ BView::attachView(BView *aView)
|
||||
owner->fLink->AttachString( aView->Name() );
|
||||
owner->fLink->Attach<BRect>( aView->Frame() );
|
||||
owner->fLink->Attach<uint32>( aView->ResizingMode() );
|
||||
owner->fLink->Attach<uint32>( aView->fEventMask );
|
||||
owner->fLink->Attach<uint32>( aView->fEventOptions );
|
||||
owner->fLink->Attach<uint32>( aView->Flags() );
|
||||
owner->fLink->Attach<bool>( aView->IsHidden(aView) );
|
||||
owner->fLink->Attach<int32>( aView->CountChildren() );
|
||||
|
||||
@@ -888,10 +888,17 @@ void BWindow::DispatchMessage(BMessage *msg, BHandler *target)
|
||||
{
|
||||
BPoint where;
|
||||
uint32 buttons;
|
||||
uint32 transit;
|
||||
|
||||
msg->FindPoint( "where", &where );
|
||||
msg->FindInt32( "buttons", (int32*)&buttons );
|
||||
sendMessageUsingEventMask( B_MOUSE_MOVED, where );
|
||||
msg->FindInt32( "transit", (int32*)&transit );
|
||||
if (target && target != this && target != top_view)
|
||||
{
|
||||
((BView*)target)->ConvertFromScreen(&where);
|
||||
((BView*)target)->MouseMoved(where, transit, NULL);
|
||||
}
|
||||
// sendMessageUsingEventMask( B_MOUSE_MOVED, where );
|
||||
break;
|
||||
}
|
||||
case B_PULSE:
|
||||
|
||||
Reference in New Issue
Block a user