BDragger: add layout-aware constructor.
Somehow no one needed this yet.
This commit is contained in:
@@ -26,6 +26,8 @@ public:
|
|||||||
BDragger(BRect frame, BView* target,
|
BDragger(BRect frame, BView* target,
|
||||||
uint32 resizingMode = B_FOLLOW_NONE,
|
uint32 resizingMode = B_FOLLOW_NONE,
|
||||||
uint32 flags = B_WILL_DRAW);
|
uint32 flags = B_WILL_DRAW);
|
||||||
|
BDragger(BView* target,
|
||||||
|
uint32 flags = B_WILL_DRAW);
|
||||||
BDragger(BMessage* data);
|
BDragger(BMessage* data);
|
||||||
virtual ~BDragger();
|
virtual ~BDragger();
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
BDragger::BDragger(BMessage* data)
|
||||||
:
|
:
|
||||||
BView(data),
|
BView(data),
|
||||||
|
|||||||
Reference in New Issue
Block a user