haiku/headers/private/shared/IconView.h
Jonas Sundström 9b4ad591d8 Make IconView icon_size:able. Adapt DataTranslations. Disable DataTranslation's info button on list deselection.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41248 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-04-13 22:56:10 +00:00

35 lines
621 B
C++

// Author: Michael Wilber
// Copyright (C) Haiku, uses the MIT license
#ifndef ICONVIEW_H
#define ICONVIEW_H
#include <Bitmap.h>
#include <Mime.h>
#include <Path.h>
#include <View.h>
class IconView : public BView {
public:
IconView(icon_size iconSize = B_LARGE_ICON);
~IconView();
status_t InitCheck() const;
virtual void Draw(BRect area);
void DrawIcon(bool draw);
status_t SetIcon(const BPath& path,
icon_size iconSize = B_LARGE_ICON);
private:
void _SetSize();
icon_size fIconSize;
BBitmap* fIconBitmap;
bool fDrawIcon;
};
#endif // #ifndef ICONVIEW_H