CicmWrapper  Beta 0.4
A wrapper for Pure Data
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
Data Structures | Functions
The Popup Window Part

The t_epopup part. More...

Data Structures

struct  t_epopup
 The popup structure. More...
 

Functions

t_epopupepopupmenu_create (t_eobj *x, t_symbol *name)
 The t_epopup creation function. More...
 
void epopupmenu_setfont (t_epopup *popup, t_efont *font)
 Sets the font of a t_epopup. More...
 
void epopupmenu_additem (t_epopup *popup, int itemid, const char *text, char checked, char disabled)
 Adds a new item in the popup list. More...
 
void epopupmenu_addseperator (t_epopup *popup)
 Adds a new seprator in the popup list. More...
 
void epopupmenu_popup (t_epopup *popup, t_pt pos)
 Shows the popup on the screen. More...
 

Detailed Description

The t_epopup part.

This part refers to the methods and structures that can be used by all the t_epopup structures.


Data Structure Documentation

struct t_epopup

The popup structure.

It contains the informations to show and retieve a popup.

Data Fields
t_symbol * c_name

The name of the popup.

t_symbol * c_send

The name of the owner.

Function Documentation

t_epopup* epopupmenu_create ( t_eobj x,
t_symbol name 
)

The t_epopup creation function.

Allocates the memory for a t_epopup, intialize the defaults values and link it to the t_eobj.

Parameters
xThe t_eobj pointer.
nameThe name of the t_epopup.
Returns
This function returns a pointer to a new t_epopup.
Todo:
Perhaps It would be good to free the menu later...
void epopupmenu_setfont ( t_epopup popup,
t_efont font 
)

Sets the font of a t_epopup.

Parameters
popupThe t_epopup pointer.
fontThe t_efont pointer.
void epopupmenu_additem ( t_epopup popup,
int  itemid,
const char *  text,
char  checked,
char  disabled 
)

Adds a new item in the popup list.

Parameters
popupThe t_epopup pointer.
itemidThe id of the item.
textThe text of the item.
checkedIf the item is marked as checked or not.
disabledIf the item is marked as disabled or not.
void epopupmenu_addseperator ( t_epopup popup)

Adds a new seprator in the popup list.

Parameters
popupThe t_epopup pointer.
void epopupmenu_popup ( t_epopup popup,
t_pt  pos 
)

Shows the popup on the screen.

Parameters
popupThe t_epopup pointer.
posThe position on the screen.