btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / kits / interface / LayoutContext.cpp
blobcf76b0ea28f037f23eb2f2804145d7bb438d834b
1 /*
2 * Copyright 2006, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
6 #include <LayoutContext.h>
9 // constructor
10 BLayoutContextListener::BLayoutContextListener()
14 // destructor
15 BLayoutContextListener::~BLayoutContextListener()
20 void BLayoutContextListener::_ReservedLayoutContextListener1() {}
21 void BLayoutContextListener::_ReservedLayoutContextListener2() {}
22 void BLayoutContextListener::_ReservedLayoutContextListener3() {}
23 void BLayoutContextListener::_ReservedLayoutContextListener4() {}
24 void BLayoutContextListener::_ReservedLayoutContextListener5() {}
27 // #pragma mark -
30 // constructor
31 BLayoutContext::BLayoutContext()
35 // destructor
36 BLayoutContext::~BLayoutContext()
38 // notify the listeners
39 for (int32 i = 0;
40 BLayoutContextListener* listener
41 = (BLayoutContextListener*)fListeners.ItemAt(i);
42 i++) {
43 listener->LayoutContextLeft(this);
47 // AddListener
48 void
49 BLayoutContext::AddListener(BLayoutContextListener* listener)
51 if (listener)
52 fListeners.AddItem(listener);
55 // RemoveListener
56 void
57 BLayoutContext::RemoveListener(BLayoutContextListener* listener)
59 if (listener)
60 fListeners.RemoveItem(listener);