Make UEFI boot-platform build again
[haiku.git] / src / servers / app / Layer.h
blob7a9f969cd4dda52d927de7ed836a00e228ef4db7
1 /*
2 * Copyright 2015 Julian Harnath <julian.harnath@rwth-aachen.de>
3 * All rights reserved. Distributed under the terms of the MIT license.
4 */
5 #ifndef LAYER_H
6 #define LAYER_H
9 #include "ServerPicture.h"
11 #include "IntPoint.h"
14 class AlphaMask;
15 class Canvas;
16 class UtilityBitmap;
19 class Layer : public ServerPicture {
20 public:
21 Layer(uint8 opacity);
22 virtual ~Layer();
24 void PushLayer(Layer* layer);
25 Layer* PopLayer();
27 UtilityBitmap* RenderToBitmap(Canvas* canvas);
29 IntPoint LeftTopOffset() const;
30 uint8 Opacity() const;
32 private:
33 BRect _DetermineBoundingBox(Canvas* canvas);
34 UtilityBitmap* _AllocateBitmap(const BRect& bounds);
36 private:
37 uint8 fOpacity;
38 IntPoint fLeftTopOffset;
42 #endif // LAYER_H