@@ -192,17 +192,24 @@ class CORE_EXPORT QgsComposerItem: public QgsComposerObject, public QGraphicsRec
192
192
*/
193
193
void updatePagePos ( double newPageWidth, double newPageHeight );
194
194
195
- /* *Moves the item to a new position (in canvas coordinates)*/
195
+ /* *Moves the item to a new position (in canvas coordinates)
196
+ @param x item position x (mm)
197
+ @param y item position y (mm)
198
+ @param itemPoint reference point which coincides with specified position
199
+ @param page if page > 0, y is interpreted as relative to the origin of the specified page, if page <= 0, y is in absolute canvas coordinates.
200
+ a page number of 1 corresponds to the first page.
201
+ */
196
202
void setItemPosition ( double x, double y, ItemPositionMode itemPoint = UpperLeft, int page = -1 );
197
203
198
204
/* *Sets item position and width / height in one go
199
- @param x item position x
200
- @param y item position y
201
- @param width item width
202
- @param height item height
203
- @param itemPoint item position mode
205
+ @param x item position x (mm)
206
+ @param y item position y (mm)
207
+ @param width item width (mm)
208
+ @param height item height (mm)
209
+ @param itemPoint reference point which coincides with specified position
204
210
@param posIncludesFrame set to true if the position and size arguments include the item's frame border
205
- @param page if page > 0, y is interpreted as relative to the origin of the specified page, if page <= 0, y is in absolute canvas coordinates
211
+ @param page if page > 0, y is interpreted as relative to the origin of the specified page, if page <= 0, y is in absolute canvas coordinates.
212
+ a page number of 1 corresponds to the first page.
206
213
*/
207
214
void setItemPosition ( double x, double y, double width, double height, ItemPositionMode itemPoint = UpperLeft, bool posIncludesFrame = false , int page = -1 );
208
215
0 commit comments