CicmWrapper
A wrapper for Pure Data
 All Data Structures Functions Variables Enumerations Enumerator Modules
epopup.h
1 /*
2  * CicmWrapper
3  *
4  * A wrapper for Pure Data
5  *
6  * Copyright (C) 2013 Pierre Guillot, CICM - Université Paris 8
7  * All rights reserved.
8  *
9  * Website : http://www.mshparisnord.fr/HoaLibrary/
10  * Contacts : cicm.mshparisnord@gmail.com
11  *
12  * This library is free software; you can redistribute it and/or modify it
13  * under the terms of the GNU Library General Public License as published
14  * by the Free Software Foundation; either version 2 of the License.
15  *
16  * This library is distributed in the hope that it will be useful, but WITHOUT
17  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
19  * License for more details.
20  *
21  * You should have received a copy of the GNU Library General Public License
22  * along with this library; if not, write to the Free Software Foundation,
23  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24  *
25  */
26 
33 #ifndef DEF_EPOPUP
34 #define DEF_EPOPUP
35 
36 #include "edefine.h"
37 
50 t_epopup* epopupmenu_create(t_eobj* x, t_symbol* name);
51 
58 void epopupmenu_setfont(t_epopup *popup, t_efont *font);
59 
69 void epopupmenu_additem(t_epopup *popup, int itemid, char *text, char checked, char disabled);
70 
77 
84 void epopupmenu_popup(t_epopup *popup, t_pt pos);
85 
88 #endif
t_epopup * epopupmenu_create(t_eobj *x, t_symbol *name)
The t_epopup creation function.
Definition: epopup.c:29
void epopupmenu_additem(t_epopup *popup, int itemid, char *text, char checked, char disabled)
Adds a new item in the popup list.
Definition: epopup.c:46
void epopupmenu_setfont(t_epopup *popup, t_efont *font)
Sets the font of a t_epopup.
Definition: epopup.c:41
void epopupmenu_popup(t_epopup *popup, t_pt pos)
Shows the popup on the screen.
Definition: epopup.c:62
A point structure.
Definition: edefine.h:205
The popup structure.
Definition: edefine.h:386
The font structure.
Definition: edefine.h:294
The object.
Definition: edefine.h:513
void epopupmenu_addseperator(t_epopup *popup)
Adds a new seprator in the popup list.
Definition: epopup.c:57