annotate include/mb_obj.h @ 1298:2a5da457474d

Fix typo
author Thinker K.F. Li <thinker@codemud.net>
date Sun, 16 Jan 2011 11:04:29 +0800
parents 586e50f82c1f
children
rev   line source
822
586e50f82c1f Unify coding style tag for emacs and vim.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 303
diff changeset
1 // -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*-
586e50f82c1f Unify coding style tag for emacs and vim.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 303
diff changeset
2 // vim: sw=4:ts=8:sts=4
303
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
3 #ifndef __MBOBJ_H
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
4 #define __MBOBJ_H
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
5 #include "mb_shapes.h"
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
6 #include "mb_shapes.h"
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
7 /*! \brief Change the location of the object.
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
8 *
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
9 * The location of the object will be relocated to the new position. This function works for group(coord_t)
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
10 * and text shape (shape_text_t). For others, this command will be ignored since we don't know the original
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
11 * point of a path.
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
12 */
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
13 void mb_obj_set_pos(mb_obj_t *obj, co_aix x, co_aix y);
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
14
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
15 /*! \brief Get the position of the object.
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
16 *
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
17 * Return the position of the object. This works for group and text only. For others, (0,0) will be returned.
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
18 */
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
19 void mb_obj_get_pos(mb_obj_t *obj, co_aix *x, co_aix *y);
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
20
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
21 /*! \brief set the width of the object.
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
22 *
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
23 */
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
24 void mb_obj_set_scalex(mb_obj_t *obj, int scale);
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
25
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
26 /*! \brief return the scale of width.
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
27 */
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
28 int mb_obj_get_scalex(mb_obj_t *obj);
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
29
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
30 /*! \brief set the scale of height.
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
31 */
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
32 void mb_obj_set_scaley(mb_obj_t *obj, int scale);
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
33 /*! \brief return the scale of height
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
34 *
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
35 */
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
36 int mb_obj_get_scaley(mb_obj_t *obj);
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
37
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
38
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
39 /*! \brief Change the rotation degree.
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
40 *
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
41 */
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
42 void mb_obj_set_rotation(mb_obj_t *obj, int degree);
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
43
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
44 /*! \brief Return the rotation degree of an object.
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
45 *
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
46 */
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
47
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
48 int mb_obj_get_rotation(mb_obj_t *obj);
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
49
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
50 /*! \brief set the textformat of the texts inside a group.
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
51 *
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
52 * If the obj is a group, we will search the first text element inside it. If it is a shape_t, it will be applied to it directly.
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
53 *
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
54 */
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
55 void mb_obj_set_textstyle(mb_obj_t *obj, mb_textstyle_t *format, int begin, int end);
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
56
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
57 /*! \brief return the text format style between 'begin' and 'end'.
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
58 *
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
59 */
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
60 void mb_obj_get_textstyle(mb_obj_t *, mb_textstyle_t *format,int begin,int end);
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
61
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
62 /*! \brief Change the characters of a text field.
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
63 * Change the content of a text field. If the obj is a group, we will search for the first text field inside it as the target.
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
64 */
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
65 void mb_obj_set_text(mb_obj_t *obj, const char *text);
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
66
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
67
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
68 /*! \brief Get the content of a text field.
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
69 *
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
70 * The 'text' is the data buffer and the 'size' is the size of the buffer.
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
71 */
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
72 void mb_obj_get_text(mb_obj_t *obj, char *text, int size);
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
73
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
74 #endif
f894b30676e9 Add MBAF object suport. This is still work in progress yet. However, it won't affect other features. Therefore, it is checked in before it become mature.
wycc
parents:
diff changeset
75