haiku/headers/private/shared/IconView.h
Adrien Destugues 5c2709cdd5 Firstbootprompt: remove flags from languages.
http://www.flagsarenotlanguages.com

Add some other icons to make the window a bit more spicy as suggested by
Axel.

Change-Id: I859cefc7f5cb99f9a5465902c9d471f0b9857b71
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2527
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-02 00:53:01 +00:00

43 lines
823 B
C++

/*
* Copyright 2004-2020, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* Adrien Destugues, pulkomandy@pulkomandy.tk
* Michael Wilber
*/
#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);
status_t SetIcon(const uint8_t* hvifData, size_t size,
icon_size iconSize = B_LARGE_ICON);
private:
void _SetSize();
icon_size fIconSize;
BBitmap* fIconBitmap;
bool fDrawIcon;
};
#endif // #ifndef ICONVIEW_H