aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MultLayers.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/MultLayers.hh')
-rw-r--r--src/FbTk/MultLayers.hh30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/FbTk/MultLayers.hh b/src/FbTk/MultLayers.hh
index 735ff6a..62c006f 100644
--- a/src/FbTk/MultLayers.hh
+++ b/src/FbTk/MultLayers.hh
@@ -27,34 +27,34 @@
27 27
28namespace FbTk { 28namespace FbTk {
29 29
30class XLayerItem; 30class LayerItem;
31class XLayer; 31class Layer;
32 32
33class MultLayers { 33class MultLayers {
34public: 34public:
35 explicit MultLayers(int numlayers); 35 explicit MultLayers(int numlayers);
36 ~MultLayers(); 36 ~MultLayers();
37 XLayerItem *getLowestItemAboveLayer(int layernum); 37 LayerItem *getLowestItemAboveLayer(int layernum);
38 38
39 /// if there are none below, it will return null 39 /// if there are none below, it will return null
40 XLayerItem *getItemBelow(XLayerItem &item); 40 LayerItem *getItemBelow(LayerItem &item);
41 XLayerItem *getItemAbove(XLayerItem &item); 41 LayerItem *getItemAbove(LayerItem &item);
42 void addToTop(XLayerItem &item, int layernum); 42 void addToTop(LayerItem &item, int layernum);
43 void remove(XLayerItem &item); 43 void remove(LayerItem &item);
44 44
45 // raise/lower the whole layer 45 // raise/lower the whole layer
46 void raise(XLayer &layer); 46 void raise(Layer &layer);
47 void lower(XLayer &layer); 47 void lower(Layer &layer);
48 48
49 // raise/lower the item a whole layer, not just to top of current layer 49 // raise/lower the item a whole layer, not just to top of current layer
50 void raiseLayer(XLayerItem &item); 50 void raiseLayer(LayerItem &item);
51 void lowerLayer(XLayerItem &item); 51 void lowerLayer(LayerItem &item);
52 52
53 void moveToLayer(XLayerItem &item, int layernum); 53 void moveToLayer(LayerItem &item, int layernum);
54 int size(); 54 int size();
55 55
56 XLayer *getLayer(size_t num); 56 Layer *getLayer(size_t num);
57 const XLayer *getLayer(size_t num) const; 57 const Layer *getLayer(size_t num) const;
58 58
59 bool isUpdatable() const { return m_lock == 0; } 59 bool isUpdatable() const { return m_lock == 0; }
60 void lock() { ++m_lock; } 60 void lock() { ++m_lock; }
@@ -63,7 +63,7 @@ public:
63private: 63private:
64 void restack(); 64 void restack();
65 65
66 std::vector<XLayer *> m_layers; 66 std::vector<Layer *> m_layers;
67 int m_lock; 67 int m_lock;
68}; 68};
69 69