2 * Copyright 2006, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
3 * All rights reserved. Distributed under the terms of the MIT License.
6 #include <LayoutContext.h>
10 BLayoutContextListener::BLayoutContextListener()
15 BLayoutContextListener::~BLayoutContextListener()
20 void BLayoutContextListener::_ReservedLayoutContextListener1() {}
21 void BLayoutContextListener::_ReservedLayoutContextListener2() {}
22 void BLayoutContextListener::_ReservedLayoutContextListener3() {}
23 void BLayoutContextListener::_ReservedLayoutContextListener4() {}
24 void BLayoutContextListener::_ReservedLayoutContextListener5() {}
31 BLayoutContext::BLayoutContext()
36 BLayoutContext::~BLayoutContext()
38 // notify the listeners
40 BLayoutContextListener
* listener
41 = (BLayoutContextListener
*)fListeners
.ItemAt(i
);
43 listener
->LayoutContextLeft(this);
49 BLayoutContext::AddListener(BLayoutContextListener
* listener
)
52 fListeners
.AddItem(listener
);
57 BLayoutContext::RemoveListener(BLayoutContextListener
* listener
)
60 fListeners
.RemoveItem(listener
);