xref: /haiku/src/apps/haikudepot/ui_generic/BitmapHolder.cpp (revision b8a45b3a2df2379b4301bf3bd5949b9a105be4ba)
1 /*
2  * Copyright 2024, Andrew Lindesay <apl@lindesay.co.nz>.
3  * All rights reserved. Distributed under the terms of the MIT License.
4  */
5 
6 #include "BitmapHolder.h"
7 
8 
9 BitmapHolder::BitmapHolder(const BBitmap* bitmap)
10 	:
11 	fBitmap(bitmap)
12 {
13 }
14 
15 
16 BitmapHolder::~BitmapHolder()
17 {
18 	delete fBitmap;
19 }
20 
21 
22 const BBitmap*
23 BitmapHolder::Bitmap() const
24 {
25 	return fBitmap;
26 }
27