summaryrefslogtreecommitdiff
path: root/src/tiles.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tiles.h')
-rw-r--r--src/tiles.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tiles.h b/src/tiles.h
index 0d30bb6..e3c3d27 100644
--- a/src/tiles.h
+++ b/src/tiles.h
@@ -99,7 +99,12 @@ class Tile :
bool drag (CompPoint &p);
void ungrab ();
+ TileLayerPtr layer ();
+
typedef boost::shared_ptr<Tile> Ptr;
+
+ Ptr ptr () { return shared_from_this (); }
+
private:
PrivateTile *priv;
@@ -143,6 +148,8 @@ class TileLayer :
typedef TileLayerPtr Ptr;
+ Ptr ptr () { return shared_from_this (); }
+
protected:
bool tilesToRegion (std::vector <Tile::Ptr> tiles,
@@ -187,11 +194,15 @@ class TilesWindow :
bool glPaint (const GLWindowPaintAttrib &attrib, const GLMatrix &matrix,
const CompRegion &region, unsigned int mask);
bool damageRect (bool initial, const CompRect &rect);
+ void windowNotify (CompWindowNotify n);
bool animate (unsigned int ms);
void damage ();
+ bool assignTile (Tile::Ptr tp);
+ void releaseTile ();
+
CompWindow * window () { return priv->window; } // XXX
private: