[haiku-bugs] [Haiku] #6403: BLayout::ItemAdded() should return a bool, and accept an int32 index param, as should BLayout::ItemRemoved
- From: "yourpalal" <trac@xxxxxxxxxxxx>
- Date: Wed, 28 Jul 2010 20:53:20 -0000
#6403: BLayout::ItemAdded() should return a bool, and accept an int32 index
param,
as should BLayout::ItemRemoved
----------------------------------+-----------------------------------------
Reporter: yourpalal | Owner: yourpalal
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Kits/Interface Kit | Version: R1/Development
Keywords: layout | Blocked By:
Has a Patch: 0 | Platform: All
Blocking: |
----------------------------------+-----------------------------------------
void BLayout::ItemAdded(BLayoutItem* item) should become:
bool BLayout::ItemAdded(BLayoutItem* item, int32 atIndex);
and
void BLayout::ItemRemoved(BLayoutItem* item), should become
void BLayout::ItemRemoved(BLayoutItem* item, int32 fromIndex);
BLayout::AddItem(...) should be modified to reverse the addition if
ItemAdded() returns false.
--
Ticket URL: <http://dev.haiku-os.org/ticket/6403>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.
Other related posts: