haiku/src/apps/sudoku/CenteredViewContainer.h
François Revol ff5d41e762 Add newline at end of file.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23654 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-19 21:14:03 +00:00

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