Develop and Download Open Source Software

Browse CVS Repository

Contents of /enbanfukusyaya/EnbanKensa/win32/ui.h

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


Revision 1.4 - (show annotations) (download) (as text)
Sat May 27 16:04:59 2006 UTC (17 years, 10 months ago) by bananajinn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +7 -1 lines
File MIME type: text/x-chdr
*** empty log message ***

1 /* ‰~”ŐŒŸ¸ - EnbanKensa
2 * Copyright (C) 2005 Kagetani Hideto
3 */
4 #ifndef __UI_H__
5 #define __UI_H__
6
7 #include <windows.h>
8 #include "option.h"
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 typedef struct {
15 WORD session;
16 WORD track;
17 DWORD start_lba;
18 DWORD end_lba;
19 DWORD blocks;
20 DWORD packet_size;
21 char *mode;
22 char *comment;
23 } UITRACKINFO;
24
25 typedef struct {
26 UITRACKINFO *track_info;
27 WORD tracks;
28 } UIDISCINFO;
29
30 typedef struct {
31 unsigned short red;
32 unsigned short green;
33 unsigned short blue;
34 } UICOLOR;
35
36 #define WM_USER_UICTL (WM_USER+1)
37 #define UICTL_DISPINFO 1
38 #define UICTL_DRAWLINE 2
39 #define UICTL_DRAWBOX 3
40 #define UICTL_DRAWTEXT 4
41 #define UICTL_GETDRAWABLESIZE 5
42 #define UICTL_SETTING 6
43 #define UICTL_DISCINFO 7
44
45 extern void UISetHWND(HWND hWnd);
46 extern BOOL UICheckAbort();
47 extern void UISetAbort();
48 extern void UIClearAbort();
49 extern int UIDispMessage(const char *message, int type);
50 /* type value */
51 #define UIDMT_INFORMATION 0
52 #define UIDMT_ERROR 1
53 #define UIDMT_QUESTION 2
54 /* return value */
55 #define UIDMRET_OK 0
56 #define UIDMRET_CANCEL 1
57
58 extern void UIDispInfo(const char *message, ...);
59 extern void UIDrawLine(int x0, int y0, int x1, int y1, const UICOLOR *color);
60 extern void UIDrawBox(int x0, int y0, int x1, int y1, const UICOLOR *color, BOOL fill);
61 extern void UIDrawText(int x0, int y0, const UICOLOR *color, const char *text);
62 extern void UIGetDrawableSize(int *width, int *height);
63 extern int UISetting(OPTIONS *option);
64 extern void UIDispDiscInfo(UITRACKINFO *uiTrackInfo, int num_track);
65
66 #ifdef __cplusplus
67 }
68 #endif
69
70 #endif /* !__EVENT_H__ */

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