4 * Copyright (c) 2010 project bchan
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.
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:
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.
19 * 2. Altered source versions must be plainly marked as such, and must not be
20 * misrepresented as being the original software.
22 * 3. This notice may not be removed or altered from any source
28 #include <btron/hmi.h>
30 #ifndef __BCHAN_MENUS_H__
31 #define __BCHAN_MENUS_H__
33 struct bchan_resmenu_t_ {
36 typedef struct bchan_resmenu_t_ bchan_resmenu_t;
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);
46 struct bchan_residmenu_t_ {
49 typedef struct bchan_residmenu_t_ bchan_residmenu_t;
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);