Lines Matching refs:layer
21 #include "Layer.h"
49 * Returns a layer large enough for the specified dimensions. If no suitable
50 * layer can be found, a new one is created and returned. If creating a new
51 * layer fails, NULL is returned.
53 * When a layer is obtained from the cache, it is removed and the total
56 * @param width The desired width of the layer
57 * @param width The desired height of the layer
59 Layer* get(const uint32_t width, const uint32_t height);
62 * Adds the layer to the cache. The layer will not be added if there is
63 * not enough space available. Adding a layer can cause other layers to
66 * @param layer The layer to add to the cache
68 * @return True if the layer was added, false otherwise.
70 bool put(Layer* layer);
76 * Resize the specified layer if needed.
78 * @param layer The layer to resize
79 * @param width The new width of the layer
80 * @param height The new height of the layer
82 * @return True if the layer was resized or nothing happened, false if
85 bool resize(Layer* layer, const uint32_t width, const uint32_t height);
106 void deleteLayer(Layer* layer);
118 LayerEntry(Layer* layer):
119 mLayer(layer), mWidth(layer->getWidth()), mHeight(layer->getHeight()) {
133 Layer* mLayer;