[go: up one dir, main page]

File: pmenu.h

package info (click to toggle)
libforms 1.2.3-1.7
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,904 kB
  • sloc: ansic: 97,669; sh: 11,156; makefile: 951
file content (57 lines) | stat: -rw-r--r-- 2,025 bytes parent folder | download | duplicates (5)
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
/*
 *  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 General Public License
 *  along with XForms.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * \file pmenu.h
 */

#ifndef PMENU_H_
#define PMENU_H_

#define MMAXITEMS  ( FL_MENU_MAXITEMS + 1 )  /* index 0 unused */


/* make sure that the first 5 elements are the same as FL_CHOICE.
 * fdesign assumes this */


typedef struct {
    int             numitems;               /* number of items in menu */
    int             val;                    /* last menu item selected */
    char          * items[ MMAXITEMS ];     /* individual menu items   */
    char          * shortcut[ MMAXITEMS ];  /* shortcuts for items */
    unsigned char   mode[ MMAXITEMS ];      /* menu item mode */
    int             align;                  /* onle here to mirror FL_CHOICE */
    int             extern_menu;            /* if external pop is used */
    short           showsymbol;             /* whether symbol is to be shown */
    short           shown;                  /* if shown                    */
    char            mval[ MMAXITEMS ];      /* entry value, position based */
    char            modechange[ MMAXITEMS ];
    int             cur_val;                /* counter for the value       */
    int             no_title;
    FL_PUP_CB       cb[ MMAXITEMS ];        /* item callback functions     */
} FLI_MENU_SPEC;

#endif


/*
 * Local variables:
 * tab-width: 4
 * indent-tabs-mode: nil
 * End:
 */