File: w32g_ut2.h

package info (click to toggle)
timidity 2.13.2-40.2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 13,132 kB
  • ctags: 20,555
  • sloc: ansic: 158,296; sh: 3,778; makefile: 1,156; tcl: 1,048; lisp: 499; perl: 285; ruby: 126
file content (130 lines) | stat: -rw-r--r-- 3,401 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/*
    TiMidity++ -- MIDI to WAVE converter and player
    Copyright (C) 1999-2002 Masanao Izumo <mo@goice.co.jp>
    Copyright (C) 1995 Tuukka Toivonen <tt@cgs.fi>

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
#ifndef __W32G_UT2_H__
#define __W32G_UT2_H__

extern int DlgChooseFontAndApply(HWND hwnd, HWND hwndFontChange, HFONT hFontPre, char *fontname, int *fontheight, int *fontwidth);
extern int DlgChooseFont(HWND hwnd, char *fontName, int *fontHeight, int *fontWidth);

extern void SetWindowPosSize ( HWND parent_hwnd, HWND hwnd, int x, int y );

// ini file of timidity window information
#define TIMIDITY_WINDOW_INI_FILE	timidity_window_inifile

#define FONT_FLAGS_NONE			0x00
#define FONT_FLAGS_FIXED		0x01
#define FONT_FLAGS_ITALIC		0x02
#define FONT_FLAGS_BOLD			0x04

// section of ini file
// [MainWnd]
// PosX =
// PosY =
typedef struct MAINWNDINFO_ {
	HWND hwnd;
	int PosX;
	int PosY;
	int CanvasMode;
} MAINWNDINFO;
extern MAINWNDINFO MainWndInfo;

// section of ini file
// [ListWnd]
// PosX =
// PosY =
// Width =
// Height =
// fontName =
// fontWidth =
// fontHeight =
typedef struct LISTWNDINFO_ {
	HWND hwnd;
	int PosX;
	int PosY;
	int Width;		// save parameter
	int Height;		// save parameter
	HMENU hPopupMenu;
	HWND hwndListBox;
	HFONT hFontListBox;
	char *fontName;
	char fontNameJA[64];			// save parameter
	char fontNameEN[64];			// save parameter
	int fontWidth;				// save parameter
	int fontHeight;				// save parameter
	int fontFlags;			// save parameter
} LISTWNDINFO;
extern LISTWNDINFO ListWndInfo;

// section of ini file
// [DocWnd]
// PosX =
// PosY =
// Width =
// Height =
// fontName =
// fontWidth =
// fontHeight =
#define DOCWND_DOCFILEMAX 10
typedef struct DOCWNDINFO_ {
	char DocFile[DOCWND_DOCFILEMAX][512];
	int DocFileMax;
	int DocFileCur;
	char *Text;
	int TextSize;

	HWND hwnd;
	int PosX;
	int PosY;
	int Width;		// save parameter
	int Height;		// save parameter
	HMENU hPopupMenu;
	HWND hwndEdit;
	HFONT hFontEdit;
	char *fontName;
	char fontNameJA[64];			// save parameter
	char fontNameEN[64];			// save parameter
	int fontWidth;				// save parameter
	int fontHeight;				// save parameter
	int fontFlags;			// save parameter
//	HANDLE hMutex;
} DOCWNDINFO;
extern DOCWNDINFO DocWndInfo;

// section of ini file
// [ConsoleWnd]
// PosX =
// PosY =
typedef struct CONSOLEWNDINFO_ {
	HWND hwnd;
	int PosX;
	int PosY;
} CONSOLEWNDINFO;
extern CONSOLEWNDINFO ConsoleWndInfo;

extern int INISaveMainWnd(void);
extern int INILoadMainWnd(void);
extern int INISaveListWnd(void);
extern int INILoadListWnd(void);
extern int INISaveDocWnd(void);
extern int INILoadDocWnd(void);
extern int INISaveConsoleWnd(void);
extern int INILoadConsoleWnd(void);

#endif /* __W32G_UT2_H__ */