comparison view/View.h @ 841:532302d04571

Add const version of this accessor
author Chris Cannam
date Tue, 02 Sep 2014 16:18:26 +0100
parents 6c4cab21e387
children 99373ca20caf a1226b3b7925
comparison
equal deleted inserted replaced
840:d843e6275d0f 841:532302d04571
192 * Return the layer currently active for tool interaction. This is 192 * Return the layer currently active for tool interaction. This is
193 * the topmost non-dormant (i.e. visible) layer in the view. If 193 * the topmost non-dormant (i.e. visible) layer in the view. If
194 * there are no visible layers in the view, return 0. 194 * there are no visible layers in the view, return 0.
195 */ 195 */
196 virtual Layer *getInteractionLayer(); 196 virtual Layer *getInteractionLayer();
197
198 virtual const Layer *getInteractionLayer() const;
197 199
198 /** 200 /**
199 * Return the layer most recently selected by the user. This is 201 * Return the layer most recently selected by the user. This is
200 * the layer that any non-tool-driven commands should operate on, 202 * the layer that any non-tool-driven commands should operate on,
201 * in the case where this view is the "current" one. 203 * in the case where this view is the "current" one.