mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 02:35:03 +01:00
ff5d41e762
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23654 a95241bf-73f2-0310-859d-f6bbb57e9c96
28 lines
611 B
C++
28 lines
611 B
C++
/*
|
|
* Copyright 2007, Michael Pfeiffer, laplace@users.sourceforge.net. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef CENTERED_VIEW_CONTAINER_H
|
|
#define CENTERED_VIEW_CONTAINER_H
|
|
|
|
|
|
#include <View.h>
|
|
|
|
|
|
|
|
class CenteredViewContainer : public BView {
|
|
public:
|
|
CenteredViewContainer(BView *target, BRect frame, const char* name, uint32 resizingMode);
|
|
virtual ~CenteredViewContainer();
|
|
|
|
void Draw(BRect updateRect);
|
|
void FrameResized(float width, float height);
|
|
|
|
private:
|
|
void _CenterTarget(float width, float height);
|
|
|
|
BView *fTarget;
|
|
};
|
|
|
|
#endif // CENTERED_VIEW_CONTAINER_H
|