1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
|
/*
* This file is part of the XForms library package.
*
* XForms is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1, or
* (at your option) any later version.
*
* XForms is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with XForms. If not, see <http://www.gnu.org/licenses/>.
*/
/********************** crop here for forms.h **********************/
/**
* \file xpopup.h
*
* Prototypes for xpop-up menus
*/
#ifndef FL_XPOPUP_H
#define FL_XPOPUP_H
#define FL_MAXPUPI 128 /* max item each pup */
#define FL_PUP_PADH 4 /* space between each items */
typedef void ( * FL_PUP_ENTERCB )( int, void * ); /* call back prototype */
typedef void ( * FL_PUP_LEAVECB )( int, void * ); /* call back prototype */
FL_EXPORT int fl_setpup_entries( int nm,
FL_PUP_ENTRY * entries );
FL_EXPORT int fl_newpup( Window win );
FL_EXPORT int fl_defpup( Window win,
const char * str,
... );
FL_EXPORT int fl_addtopup( int n,
const char * str,
... );
FL_EXPORT int fl_setpup_mode( int nm,
int ni,
unsigned int mode );
FL_EXPORT void fl_freepup( int n );
FL_EXPORT int fl_dopup( int n );
FL_EXPORT Cursor fl_setpup_default_cursor( int cursor );
FL_EXPORT void fl_setpup_default_color( FL_COLOR fg,
FL_COLOR bg );
FL_EXPORT void fl_setpup_default_pup_checked_color( FL_COLOR col );
FL_EXPORT int fl_setpup_default_fontsize( int size );
FL_EXPORT int fl_setpup_default_fontstyle( int style );
#define fl_setpup_fontsize fl_setpup_default_fontsize
#define fl_setpup_fontstyle fl_setpup_default_fontstyle
#define fl_setpup_color fl_setpup_default_color
#define fl_setpup_default_checkcolor fl_setpup_default_pup_checked_color
#define fl_setpup_checkcolor fl_setpup_default_pup_checked_color
FL_EXPORT int fl_setpup_default_bw( int bw );
FL_EXPORT void fl_setpup_shortcut( int nm,
int ni,
const char * sc );
FL_EXPORT void fl_setpup_position( int x,
int y );
FL_EXPORT void fl_setpup_selection( int nm,
int ni );
FL_EXPORT void fl_setpup_shadow( int n,
int y );
FL_EXPORT void fl_setpup_softedge( int n,
int y );
FL_EXPORT void fl_setpup_bw( int n,
int bw );
FL_EXPORT void fl_setpup_title( int nm,
const char * title );
FL_EXPORT FL_PUP_ENTERCB fl_setpup_entercb( int nm,
FL_PUP_ENTERCB cb,
void * data );
FL_EXPORT FL_PUP_LEAVECB fl_setpup_leavecb( int nm,
FL_PUP_LEAVECB cb,
void * data );
FL_EXPORT void fl_setpup_pad( int n,
int padw,
int padh );
FL_EXPORT Cursor fl_setpup_cursor( int nm,
int cursor );
FL_EXPORT int fl_setpup_maxpup( int n );
FL_EXPORT unsigned int fl_getpup_mode( int nm,
int ni );
FL_EXPORT const char * fl_getpup_text( int nm,
int ni );
FL_EXPORT void fl_showpup( int n );
FL_EXPORT void fl_hidepup( int n );
FL_EXPORT int fl_getpup_items( int n );
FL_EXPORT int fl_current_pup( void );
#define fl_setpup_hotkey fl_setpup_shortcut
FL_EXPORT FL_PUP_CB fl_setpup_itemcb( int nm,
int ni,
FL_PUP_CB cb );
FL_EXPORT FL_PUP_CB fl_setpup_menucb( int nm,
FL_PUP_CB cb );
FL_EXPORT void fl_setpup_submenu( int m,
int i,
int subm );
#define fl_setpup fl_setpup_mode
#endif /* ! defined FL_XPOPUP_H */
|