Develop and Download Open Source Software

Browse CVS Repository

Contents of /mame32jp/mame32jp/src/usrintrf.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (show annotations) (download) (as text)
Wed Apr 24 03:53:21 2002 UTC (21 years, 11 months ago) by zero
Branch: MAIN
CVS Tags: ver_0_60_1, ver0_59_13, ver0_59_14, ver0_60_2, ver0_60_3, ver0_60_4, ver0_60_5, HEAD
Changes since 1.4: +0 -0 lines
File MIME type: text/x-chdr
*** empty log message ***

1 /*********************************************************************
2
3 usrintrf.h
4
5 Functions used to handle MAME's crude user interface.
6
7 *********************************************************************/
8
9 #ifndef USRINTRF_H
10 #define USRINTRF_H
11
12 struct DisplayText
13 {
14 const char *text; /* 0 marks the end of the array */
15 int color; /* see #defines below */
16 int x;
17 int y;
18 };
19
20 #define UI_COLOR_NORMAL 0 /* white on black text */
21 #define UI_COLOR_INVERSE 1 /* black on white text */
22
23 #define SEL_BITS 12 /* main menu selection mask */
24 #define SEL_BITS2 4 /* submenu selection masks */
25 #define SEL_MASK ((1<<SEL_BITS)-1)
26 #define SEL_MASK2 ((1<<SEL_BITS2)-1)
27
28 #ifdef MAME32JP
29 #define SCR_PAGE_MASK 0xffffff
30 #define SCR_NEXT_PAGE 0x1000000
31 #define SCR_PREV_PAGE 0x10000000
32 #endif
33
34 struct GfxElement *builduifont(void);
35 void pick_uifont_colors(void);
36 void displaytext(struct mame_bitmap *bitmap,const struct DisplayText *dt);
37 void ui_text(struct mame_bitmap *bitmap,const char *buf,int x,int y);
38 void ui_drawbox(struct mame_bitmap *bitmap,int leftx,int topy,int width,int height);
39 #ifdef MAME32JP
40 int ui_displaymessagewindow(struct mame_bitmap *bitmap,const char *text);
41 #else
42 void ui_displaymessagewindow(struct mame_bitmap *bitmap,const char *text);
43 #endif
44 void ui_displaymenu(struct mame_bitmap *bitmap,const char **items,const char **subitems,char *flag,int selected,int arrowize_subitem);
45 int showcopyright(struct mame_bitmap *bitmap);
46 int showgamewarnings(struct mame_bitmap *bitmap);
47 void set_ui_visarea (int xmin, int ymin, int xmax, int ymax);
48
49 void init_user_interface(void);
50 int handle_user_interface(struct mame_bitmap *bitmap);
51
52 int onscrd_active(void);
53 int setup_active(void);
54
55 void switch_ui_orientation(struct mame_bitmap *bitmap);
56 void switch_true_orientation(struct mame_bitmap *bitmap);
57
58 void CLIB_DECL usrintf_showmessage(const char *text,...);
59 void CLIB_DECL usrintf_showmessage_secs(int seconds, const char *text,...);
60 #ifdef MAME32JP
61 void CLIB_DECL usrintf_showmessage_frames(int frames, const char *text, ...);
62 #endif
63
64 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26