vfs: check userland buffers before reading them.
[haiku.git] / headers / private / interface / ViewPort.h
blobcee7afb36aa3c8fcf7d8732f4209998ae09a0633
1 /*
2 * Copyright 2013, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Ingo Weinhold <ingo_weinhold@gmx.de>
7 */
8 #ifndef _VIEW_PORT_H
9 #define _VIEW_PORT_H
12 #include <View.h>
15 namespace BPrivate {
18 class BViewPort : public BView {
19 public:
20 BViewPort(BView* child = NULL);
21 BViewPort(BLayoutItem* child);
22 BViewPort(const char* name,
23 BView* child = NULL);
24 BViewPort(const char* name,
25 BLayoutItem* child);
26 virtual ~BViewPort();
28 BView* ChildView() const;
29 void SetChildView(BView* child);
31 BLayoutItem* ChildItem() const;
32 void SetChildItem(BLayoutItem* child);
34 private:
35 class ViewPortLayout;
36 friend class ViewPortLayout;
38 private:
39 void _Init();
41 private:
42 ViewPortLayout* fLayout;
43 BLayoutItem* fChild;
47 } // namespace BPrivate
50 using ::BPrivate::BViewPort;
53 #endif // _VIEW_PORT_H