Develop and Download Open Source Software

Browse CVS Repository

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

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


Revision 1.2 - (show annotations) (download) (as text)
Wed Dec 7 15:35:35 2005 UTC (18 years, 4 months ago) by bananajinn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
File MIME type: text/x-chdr
*** empty log message ***

1 /* 円盤複写屋 - EnbanKensa
2 * Copyright (c) 2005 Kagetani Hideto
3 * ui.c - ユーザインターフェース処理
4 * $Date: 2005/05/29 17:12:23 $
5 * $Revision: 1.1 $
6 */
7 #ifndef __UI_H__
8 #define __UI_H__
9
10 #include "option.h"
11
12 #if defined(COCOA)
13 # include <Cocoa/Cocoa.h>
14 #endif
15
16 typedef struct {
17 unsigned short red;
18 unsigned short green;
19 unsigned short blue;
20 } UICOLOR;
21
22 #if defined(COCOA)
23 typedef struct {
24 id label;
25 id view;
26 id settingPanel;
27 NSImage *drawArea;
28 NSFont *font;
29 } UIWIDGETINFO;
30
31 extern void UISetWidgetInfo(UIWIDGETINFO *widget_info);
32 #endif
33
34 extern BOOL UICheckAbort();
35 extern void UISetAbort();
36 extern void UIClearAbort();
37 extern int UIDispMessage(const char *message, int type);
38 /* type value */
39 #define UIDMT_INFORMATION 0
40 #define UIDMT_ERROR 1
41 #define UIDMT_QUESTION 2
42 /* return value */
43 #define UIDMRET_OK 0
44 #define UIDMRET_CANCEL 1
45
46 extern void UIDispInfo(const char *message);
47 extern void UIDrawLine(int x0, int y0, int x1, int y1, const UICOLOR *color);
48 extern void UIDrawBox(int x0, int y0, int x1, int y1, const UICOLOR *color, BOOL fill);
49 extern void UIDrawText(int x0, int y0, const UICOLOR *color, const char *text);
50 extern void UIGetDrawableSize(int *width, int *height);
51 extern int UISetting(OPTIONS *option);
52
53 #endif /* !__UI_H__ */

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