Debian Codegraph @

dwtools/Categories.h

raw
1 #ifndef _Categories_h_
2 #define _Categories_h_
3 /* Categories.h
4 *
5 * Copyright (C) 1993-2017 David Weenink, 2015,2018,2022 Paul Boersma
6 *
7 * This code is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or (at
10 * your option) any later version.
11 *
12 * This code is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this work. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #include "Collection_extensions.h"
22 #include "TableOfReal.h"
23 #include "Graphics.h"
24
25 Thing_define (Categories, StringList) {
26 void v1_info ()
27 override;
28 void v1_readText (MelderReadText text, int formatVersion)
29 override;
30 void v1_writeText (MelderFile file)
31 override;
32 };
33
34 autoCategories Categories_create ();
35
36 autoCategories Categories_createWithSequentialNumbers (integer n);
37
38 autoCategories Categories_selectUniqueItems (Categories me);
39
40 void Categories_drawItem (Categories me, Graphics g, integer position, double xWC, double yWC);
41
42 autoCategories TableOfReal_to_CategoriesRow (TableOfReal me);
43
44 autoCategories TableOfReal_to_CategoriesColumn (TableOfReal me);
45
46 #endif /* _Categories_h_ */