vfs: check userland buffers before reading them.
[haiku.git] / src / preferences / appearance / ColorWhichListView.h
blob0bbcd546a7777b101d86f2ff0014a50c9d888ccb
1 /*
2 * Copyright 2016 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * John Scipione, jscipione@gmail.com
7 */
8 #ifndef COLORWHICH_LIST_VIEW_H
9 #define COLORWHICH_LIST_VIEW_H
12 #include <ListView.h>
15 class ColorWhichListView : public BListView
17 public:
18 ColorWhichListView(const char* name,
19 list_view_type type
20 = B_SINGLE_SELECTION_LIST,
21 uint32 flags = B_WILL_DRAW
22 | B_FRAME_EVENTS | B_NAVIGABLE);
23 virtual ~ColorWhichListView();
25 virtual bool InitiateDrag(BPoint where, int32 index,
26 bool wasSelected);
29 #endif // COLORWHICH_LIST_VIEW_H