1 /* 2 * Copyright 2006-2007, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan Aßmus <superstippi@gmx.de> 7 */ 8 #ifndef NUDGE_POINTS_ACTION_H 9 #define NUDGE_POINTS_ACTION_H 10 11 12 #include "TransformCommand.h" 13 14 #include <String.h> 15 16 17 namespace BPrivate { 18 namespace Icon { 19 class VectorPath; 20 struct control_point; 21 } 22 } 23 using namespace BPrivate::Icon; 24 25 class NudgePointsCommand : public TransformCommand { 26 public: 27 NudgePointsCommand(VectorPath* path, 28 29 const int32* indices, 30 const control_point* points, 31 int32 count); 32 33 virtual ~NudgePointsCommand(); 34 35 virtual status_t InitCheck(); 36 37 protected: 38 virtual status_t _SetTransformation(BPoint pivot, 39 BPoint translation, 40 double rotation, 41 double xScale, 42 double yScale) const; 43 44 VectorPath* fPath; 45 46 int32* fIndices; 47 control_point* fPoints; 48 int32 fCount; 49 }; 50 51 #endif // NUDGE_POINTS_ACTION_H 52