2004-11-07 19:56:58 +03:00
|
|
|
// Author: Michael Wilber
|
|
|
|
// Copyright (C) Haiku, uses the MIT license
|
|
|
|
#ifndef ICONVIEW_H
|
|
|
|
#define ICONVIEW_H
|
|
|
|
|
2011-03-17 04:15:04 +03:00
|
|
|
|
2004-11-07 19:56:58 +03:00
|
|
|
#include <Bitmap.h>
|
2004-11-08 02:26:37 +03:00
|
|
|
#include <Path.h>
|
2011-03-17 04:15:04 +03:00
|
|
|
#include <View.h>
|
|
|
|
|
2004-11-07 19:56:58 +03:00
|
|
|
|
|
|
|
class IconView : public BView {
|
|
|
|
public:
|
2011-03-17 04:15:04 +03:00
|
|
|
IconView(const BRect& frame, const char* name,
|
|
|
|
uint32 resize, uint32 flags);
|
|
|
|
~IconView();
|
|
|
|
virtual void Draw(BRect area);
|
2004-11-07 19:56:58 +03:00
|
|
|
|
2011-03-17 04:15:04 +03:00
|
|
|
bool DrawIcon(bool draw);
|
|
|
|
bool SetIcon(const BPath& path);
|
2004-11-07 19:56:58 +03:00
|
|
|
|
|
|
|
private:
|
2011-03-17 04:15:04 +03:00
|
|
|
BBitmap* fIconBitmap;
|
|
|
|
bool fDrawIcon;
|
2004-11-07 19:56:58 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // #ifndef ICONVIEW_H
|