gerbv
selection.h
Go to the documentation of this file.
1 /*
2  * gEDA - GNU Electronic Design Automation
3  *
4  * selection.h -- this file is a part of gerbv.
5  *
6  * Copyright (C) 2014 Sergey Alyoshin <alyoshin.s@gmail.com>
7  *
8  * This program is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU General Public License as published by the Free
10  * Software Foundation; either version 2 of the License, or (at your option)
11  * any later version.
12  *
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16  * more details.
17  *
18  * You should have received a copy of the GNU General Public License along with
19  * this program; if not, write to the Free Software Foundation, Inc., 51
20  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
28 GArray *selection_new_array (void);
29 guint selection_length (gerbv_selection_info_t *sel_info);
30 void selection_add_item (gerbv_selection_info_t *sel_info,
31  gerbv_selection_item_t *item);
32 gerbv_selection_item_t selection_get_item_by_index (
33  gerbv_selection_info_t *sel_info, guint idx);
34 void selection_clear_item_by_index (
35  gerbv_selection_info_t *sel_info, guint idx);
36 void selection_clear (gerbv_selection_info_t *sel_info);
37