OSDN Git Service

add menu for pressing resheader id part.
[bbk/bchan.git] / src / bchan_menus.h
1 /*
2  * bchan_menus.h
3  *
4  * Copyright (c) 2010 project bchan
5  *
6  * This software is provided 'as-is', without any express or implied
7  * warranty. In no event will the authors be held liable for any damages
8  * arising from the use of this software.
9  *
10  * Permission is granted to anyone to use this software for any purpose,
11  * including commercial applications, and to alter it and redistribute it
12  * freely, subject to the following restrictions:
13  *
14  * 1. The origin of this software must not be misrepresented; you must not
15  *    claim that you wrote the original software. If you use this software
16  *    in a product, an acknowledgment in the product documentation would be
17  *    appreciated but is not required.
18  *
19  * 2. Altered source versions must be plainly marked as such, and must not be
20  *    misrepresented as being the original software.
21  *
22  * 3. This notice may not be removed or altered from any source
23  *    distribution.
24  *
25  */
26
27 #include        <basic.h>
28 #include        <btron/hmi.h>
29
30 #ifndef __BCHAN_MENUS_H__
31 #define __BCHAN_MENUS_H__
32
33 struct bchan_resmenu_t_ {
34         MNID mnid;
35 };
36 typedef struct bchan_resmenu_t_ bchan_resmenu_t;
37
38 IMPORT W bchan_resmenu_initialize(bchan_resmenu_t *resmenu, W dnum);
39 IMPORT VOID bchan_resmenu_finalize(bchan_resmenu_t *resmenu);
40 IMPORT W bchan_resmenu_setngselected(bchan_resmenu_t *resmenu, Bool selected);
41 #define BCHAN_RESMENU_SELECT_NOSELECT 0
42 #define BCHAN_RESMENU_SELECT_NG 1
43 #define BCHAN_RESMENU_SELECT_PUSHTRAY 2
44 IMPORT W bchan_resmenu_select(bchan_resmenu_t *resmenu, PNT pos);
45
46 struct bchan_residmenu_t_ {
47         MNID mnid;
48 };
49 typedef struct bchan_residmenu_t_ bchan_residmenu_t;
50
51 IMPORT W bchan_residmenu_initialize(bchan_residmenu_t *residmenu, W dnum);
52 IMPORT VOID bchan_residmenu_finalize(bchan_residmenu_t *residmenu);
53 IMPORT W bchan_residmenu_setngselected(bchan_residmenu_t *residmenu, Bool selected);
54 #define BCHAN_RESIDMENU_SELECT_NOSELECT 0
55 #define BCHAN_RESIDMENU_SELECT_NG 1
56 #define BCHAN_RESIDMENU_SELECT_PUSHTRAY 2
57 IMPORT W bchan_residmenu_select(bchan_residmenu_t *residmenu, PNT pos);
58
59 #endif