BDragger: add layout-aware constructor.

Somehow no one needed this yet.
This commit is contained in:
Adrien Destugues 2014-10-11 11:16:25 +02:00
parent 66d980dfe8
commit 4cada3807c
2 changed files with 18 additions and 0 deletions

View File

@ -26,6 +26,8 @@ public:
BDragger(BRect frame, BView* target,
uint32 resizingMode = B_FOLLOW_NONE,
uint32 flags = B_WILL_DRAW);
BDragger(BView* target,
uint32 flags = B_WILL_DRAW);
BDragger(BMessage* data);
virtual ~BDragger();

View File

@ -130,6 +130,22 @@ BDragger::BDragger(BRect frame, BView* target, uint32 resizingMode,
}
BDragger::BDragger(BView* target, uint32 flags)
:
BView("_dragger_", flags),
fTarget(target),
fRelation(TARGET_UNKNOWN),
fShelf(NULL),
fTransition(false),
fIsZombie(false),
fErrCount(0),
fPopUpIsCustom(false),
fPopUp(NULL)
{
_InitData();
}
BDragger::BDragger(BMessage* data)
:
BView(data),