* added TODO in DragMessage about using an area for the message
* removed TODO in DragMessage about reference counting, since it already happens * use _FlushIfNotInTransaction when moving/resizing a view programmatically, so that it usually happens instantly. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17186 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1314,6 +1314,8 @@ BView::DragMessage(BMessage *message, BBitmap *image,
|
|||||||
BMessage::Private privateMessage(message);
|
BMessage::Private privateMessage(message);
|
||||||
privateMessage.SetReply(BMessenger(replyTo, replyTo->Looper()));
|
privateMessage.SetReply(BMessenger(replyTo, replyTo->Looper()));
|
||||||
|
|
||||||
|
// TODO: create area and flatten message into that area!
|
||||||
|
// send area info over port, not the actual message!
|
||||||
int32 bufferSize = privateMessage.NativeFlattenedSize();
|
int32 bufferSize = privateMessage.NativeFlattenedSize();
|
||||||
char* buffer = new (nothrow) char[bufferSize];
|
char* buffer = new (nothrow) char[bufferSize];
|
||||||
if (buffer) {
|
if (buffer) {
|
||||||
@@ -1337,9 +1339,6 @@ BView::DragMessage(BMessage *message, BBitmap *image,
|
|||||||
fprintf(stderr, "BView::DragMessage() - no memory to flatten drag message\n");
|
fprintf(stderr, "BView::DragMessage() - no memory to flatten drag message\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: in app_server the bitmap refCount must be incremented
|
|
||||||
// WRITE this into specs!!!!
|
|
||||||
|
|
||||||
delete image;
|
delete image;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3443,6 +3442,8 @@ BView::MoveTo(float x, float y)
|
|||||||
fOwner->fLink->Attach<float>(y);
|
fOwner->fLink->Attach<float>(y);
|
||||||
|
|
||||||
fState->valid_flags |= B_VIEW_FRAME_BIT;
|
fState->valid_flags |= B_VIEW_FRAME_BIT;
|
||||||
|
|
||||||
|
_FlushIfNotInTransaction();
|
||||||
}
|
}
|
||||||
|
|
||||||
_MoveTo(x, y);
|
_MoveTo(x, y);
|
||||||
@@ -3476,6 +3477,8 @@ BView::ResizeBy(float deltaWidth, float deltaHeight)
|
|||||||
fOwner->fLink->Attach<float>(fBounds.bottom + deltaHeight);
|
fOwner->fLink->Attach<float>(fBounds.bottom + deltaHeight);
|
||||||
|
|
||||||
fState->valid_flags |= B_VIEW_FRAME_BIT;
|
fState->valid_flags |= B_VIEW_FRAME_BIT;
|
||||||
|
|
||||||
|
_FlushIfNotInTransaction();
|
||||||
}
|
}
|
||||||
|
|
||||||
_ResizeBy(deltaWidth, deltaHeight);
|
_ResizeBy(deltaWidth, deltaHeight);
|
||||||
|
|||||||
Reference in New Issue
Block a user