haiku/headers/os/interface/LayoutContext.h
Ingo Weinhold 9ecf9d1c1d Merge from layout management branch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-26 16:21:15 +00:00

36 lines
649 B
C++

/*
* Copyright 2006, Haiku Inc.
* Distributed under the terms of the MIT License.
*/
#ifndef _LAYOUT_CONTEXT_H
#define _LAYOUT_CONTEXT_H
#include <List.h>
class BLayoutContext;
class BLayoutContextListener {
public:
BLayoutContextListener();
virtual ~BLayoutContextListener();
virtual void LayoutContextLeft(BLayoutContext* context) = 0;
};
class BLayoutContext {
public:
BLayoutContext();
~BLayoutContext();
void AddListener(BLayoutContextListener* listener);
void RemoveListener(
BLayoutContextListener* listener);
private:
BList fListeners;
};
#endif // _LAYOUT_CONTEXT_H