1DTK_MOVE_SHAPE(3)             Draw Toolkit manual            DTK_MOVE_SHAPE(3)
2
3
4

NAME

6       dtk_move_shape,    dtk_relmove_shape,    dtk_rotate_shape,   dtk_relro‐
7       tate_shape - shape displacement
8

SYNOPSIS

10       #include <drawtk.h>
11
12       void dtk_move_shape(dtk_hshape shp, float x, float y);
13       void dtk_relmove_shape(dtk_hshape shp, float dx, float dy);
14       void dtk_rotate_shape(dtk_hshape shp, float deg);
15       void dtk_relrotate_shape(dtk_hshape shp, float ddeg);
16

DESCRIPTION

18       These functions control the position and the rotation  with  which  the
19       shape shp will be next drawn.
20
21       dtk_move_shape()  set the translation the shape for the next draws. The
22       position defined by x and y corresponds to the position of  the  origin
23       of  the shape (corresponding to the point (0,0) when the shape has been
24       created).
25
26       dtk_rotate_shape() set the rotation (counter-clockwise)  of  the  shape
27       around  its  origin of the shape. This rotation is performed relatively
28       to the initial posture of the shape (at creation  time).  The  argument
29       deg specify the angle of rotation expressed in degrees.
30
31       dtk_relmove_shape()  and  dtk_relrotate_shape()  do  the same excepting
32       that their arguments dx, dy and ddeg updates the current parameters  of
33       the translation and rotation.
34

RETURN VALUE

36       None of these functions returns value.
37

SEE ALSO

39       dtk_draw_shape(3)
40
41
42
43
44EPFL                                 2010                    DTK_MOVE_SHAPE(3)
Impressum