9ecf9d1c1d
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96
36 lines
649 B
C++
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
|