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