Files
haiku-beta6/src/apps/processcontroller/AutoIcon.h
T
Augustin Cavalier f65814780e ProcessController: Relicense as MIT.
We received permission from the original author and all relevant contributors
(see the mailing list) to do this. (As best as can be established, BeUnited
did not modify the source code after importing besides adding their copyright.)
2020-10-10 15:57:49 -04:00

48 lines
637 B
C++

/*
* Copyright 2000, Georges-Edouard Berenger. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _AUTO_ICON_H_
#define _AUTO_ICON_H_
#include <SupportDefs.h>
class BBitmap;
class AutoIcon {
public:
AutoIcon(const char* signature)
:
fSignature(signature),
fbits(0),
fBitmap(0)
{
}
AutoIcon(const uchar* bits)
:
fSignature(0),
fbits(bits),
fBitmap(0)
{
}
~AutoIcon();
operator BBitmap*()
{
return Bitmap();
}
BBitmap* Bitmap();
private:
const char* fSignature;
const uchar* fbits;
BBitmap* fBitmap;
};
#endif // _AUTO_ICON_H_