haiku/headers/os/interface/LayoutContext.h
Stephan Aßmus 89208c77f1 Finished unifying the Interface Kit headers:
* Fixed copyrights (puncuation and capitalization, removed authors from
  headers)
* Updated indentation style
* Unified pointer/reference style
* Re-ordered some methods for better grouping where it could be done
  (abd adopted source accordingly)
* Small coding style fixes here and there

No functional change intended.

+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32745 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-27 11:12:41 +00:00

36 lines
671 B
C++

/*
* Copyright 2006, Haiku, Inc. All rights reserved.
* 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