Code

allow full mouse dragging, rotating, scaling, etc. if a single layer is the selection
[inkscape.git] / src / sp-item-group.h
index 1cf4e9912da248834a2bdb6d68e1536a2f6997fd..65a51055a79aab462eb760c4a9d1a7cff0dcce82 100644 (file)
@@ -22,6 +22,8 @@
 #define SP_IS_GROUP(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_GROUP))
 #define SP_IS_GROUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_GROUP))
 
+#define SP_IS_LAYER(obj)         (SP_IS_GROUP(obj) && SP_GROUP(obj)->layerMode() == SPGroup::LAYER)
+
 class CGroup;
 
 struct SPGroup : public SPLPEItem {