vfs: check userland buffers before reading them.
[haiku.git] / headers / private / shared / IconView.h
blob888eec13da16125437fcc2a55c68d9263b53c151
1 // Author: Michael Wilber
2 // Copyright (C) Haiku, uses the MIT license
3 #ifndef ICONVIEW_H
4 #define ICONVIEW_H
7 #include <Bitmap.h>
8 #include <Mime.h>
9 #include <Path.h>
10 #include <View.h>
13 class IconView : public BView {
14 public:
15 IconView(icon_size iconSize = B_LARGE_ICON);
17 ~IconView();
19 status_t InitCheck() const;
20 virtual void Draw(BRect area);
22 void DrawIcon(bool draw);
23 status_t SetIcon(const BPath& path,
24 icon_size iconSize = B_LARGE_ICON);
26 private:
27 void _SetSize();
29 icon_size fIconSize;
30 BBitmap* fIconBitmap;
31 bool fDrawIcon;
34 #endif // #ifndef ICONVIEW_H