Some groundwork for overlay support. If someone wants to finish this, feel
free to continue (it would be nice to be notified before, though, in case I get to it again in the next weeks). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16561 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1998,17 +1998,28 @@ BBitmap::ImportBits(const BBitmap *bitmap)
|
||||
return error;
|
||||
}
|
||||
|
||||
// GetOverlayRestrictions
|
||||
/*! \brief ???
|
||||
|
||||
/*! \brief Returns the overlay_restrictions structure for this bitmap
|
||||
*/
|
||||
status_t
|
||||
BBitmap::GetOverlayRestrictions(overlay_restrictions *restrictions) const
|
||||
{
|
||||
// TODO: Implement
|
||||
return B_ERROR;
|
||||
if ((fFlags & B_BITMAP_WILL_OVERLAY) == 0)
|
||||
return B_BAD_TYPE;
|
||||
|
||||
BPrivate::AppServerLink link;
|
||||
|
||||
link.StartMessage(AS_GET_BITMAP_OVERLAY_RESTRICTIONS);
|
||||
link.Attach<int32>(fServerToken);
|
||||
|
||||
status_t status;
|
||||
if (link.FlushWithReply(status) < B_OK)
|
||||
return B_ERROR;
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
// AddChild
|
||||
|
||||
/*! \brief Adds a BView to the bitmap's view hierarchy.
|
||||
|
||||
The bitmap must accept views and the supplied view must not be child of
|
||||
|
||||
Reference in New Issue
Block a user