/* * Copyright 2013, Stephan Aßmus . * Copyright 2020-2024, Andrew Lindesay . * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef BITMAP_VIEW_H #define BITMAP_VIEW_H #include "BitmapHolder.h" #include class BitmapView : public BView { public: BitmapView(const char* name); virtual ~BitmapView(); virtual void Draw(BRect updateRect); virtual BSize MinSize(); virtual BSize PreferredSize(); virtual BSize MaxSize(); void SetBitmap(BitmapHolderRef bitmapHolderRef); void UnsetBitmap(); void SetScaleBitmap(bool scaleBitmap); private: BitmapHolderRef fBitmapHolderRef; bool fScaleBitmap; }; #endif // BITMAP_VIEW_H