Mercurial > dwindows
annotate mac/dw.c @ 387:456c13a6e332
A basically empty DW source file, if we ever port to another platform
this may be a decent starting point, assuming too much doesn't get added
in the meantime. Meanwhile this will become the MacOS port.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 06 May 2003 10:31:53 +0000 |
parents | |
children | 2e6c28ee4794 |
rev | line source |
---|---|
387
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2 * Dynamic Windows: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
3 * A GTK like implementation of the MacOS GUI |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
4 * |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
5 * (C) 2003 Brian Smith <dbsoft@technologist.com> |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
6 * |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
7 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
8 #include "dw.h" |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
9 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
10 void _do_resize(Box *thisbox, int x, int y); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
11 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
12 typedef struct _sighandler |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
13 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
14 struct _sighandler *next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
15 ULONG message; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
16 HWND window; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
17 int id; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
18 void *signalfunction; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
19 void *data; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
20 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
21 } SignalHandler; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
22 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
23 SignalHandler *Root = NULL; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
24 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
25 typedef struct |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
26 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
27 ULONG message; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
28 char name[30]; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
29 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
30 } SignalList; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
31 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
32 /* List of signals and their equivilent MacOS event */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
33 #define SIGNALMAX 15 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
34 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
35 SignalList SignalTranslate[SIGNALMAX] = { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
36 { nullEvent, DW_SIGNAL_CONFIGURE }, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
37 { keyUp, DW_SIGNAL_KEY_PRESS }, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
38 { mouseDown, DW_SIGNAL_BUTTON_PRESS }, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
39 { mouseUp, DW_SIGNAL_BUTTON_RELEASE }, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
40 { nullEvent, DW_SIGNAL_MOTION_NOTIFY }, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
41 { nullEvent, DW_SIGNAL_DELETE }, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
42 { updateEvt, DW_SIGNAL_EXPOSE }, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
43 { nullEvent, DW_SIGNAL_CLICKED }, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
44 { nullEVent, DW_SIGNAL_ITEM_ENTER }, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
45 { nullEvent, DW_SIGNAL_ITEM_CONTEXT }, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
46 { nullEvent, DW_SIGNAL_LIST_SELECT }, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
47 { nullEVent, DW_SIGNAL_ITEM_SELECT }, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
48 { activateEvt, DW_SIGNAL_SET_FOCUS }, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
49 { nullEvent, DW_SIGNAL_VALUE_CHANGED }, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
50 { nullEvent, DW_SIGNAL_SWITCH_PAGE } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
51 }; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
52 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
53 /* This function adds a signal handler callback into the linked list. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
54 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
55 void _new_signal(ULONG message, HWND window, int id, void *signalfunction, void *data) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
56 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
57 SignalHandler *new = malloc(sizeof(SignalHandler)); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
58 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
59 new->message = message; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
60 new->window = window; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
61 new->id = id; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
62 new->signalfunction = signalfunction; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
63 new->data = data; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
64 new->next = NULL; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
65 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
66 if (!Root) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
67 Root = new; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
68 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
69 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
70 SignalHandler *prev = NULL, *tmp = Root; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
71 while(tmp) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
72 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
73 if(tmp->message == message && |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
74 tmp->window == window && |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
75 tmp->signalfunction == signalfunction) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
76 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
77 tmp->data = data; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
78 free(new); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
79 return; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
80 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
81 prev = tmp; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
82 tmp = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
83 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
84 if(prev) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
85 prev->next = new; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
86 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
87 Root = new; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
88 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
89 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
90 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
91 /* Finds the message number for a given signal name */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
92 ULONG _findsigmessage(char *signame) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
93 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
94 int z; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
95 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
96 for(z=0;z<SIGNALMAX;z++) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
97 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
98 if(stricmp(signame, SignalTranslate[z].name) == 0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
99 return SignalTranslate[z].message; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
100 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
101 return 0L; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
102 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
103 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
104 void *_get_window_pointer(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
105 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
106 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
107 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
108 /* This function will recursively search a box and add up the total height of it */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
109 void _count_size(HWND box, int type, int *xsize, int *xorigsize) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
110 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
111 int size = 0, origsize = 0, z; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
112 Box *tmp = _get_window_pointer(box); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
113 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
114 if(!tmp) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
115 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
116 *xsize = *xorigsize = 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
117 return; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
118 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
119 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
120 if(type == tmp->type) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
121 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
122 /* If the box is going in the direction we want, then we |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
123 * return the entire sum of the items. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
124 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
125 for(z=0;z<tmp->count;z++) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
126 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
127 if(tmp->items[z].type == TYPEBOX) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
128 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
129 int s, os; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
130 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
131 _count_size(tmp->items[z].hwnd, type, &s, &os); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
132 size += s; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
133 origsize += os; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
134 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
135 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
136 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
137 size += (type == DW_HORZ ? tmp->items[z].width : tmp->items[z].height); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
138 origsize += (type == DW_HORZ ? tmp->items[z].origwidth : tmp->items[z].origheight); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
139 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
140 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
141 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
142 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
143 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
144 /* If the box is not going in the direction we want, then we only |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
145 * want to return the maximum value. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
146 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
147 int tmpsize = 0, tmporigsize = 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
148 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
149 for(z=0;z<tmp->count;z++) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
150 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
151 if(tmp->items[z].type == TYPEBOX) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
152 _count_size(tmp->items[z].hwnd, type, &tmpsize, &tmporigsize); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
153 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
154 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
155 tmpsize = (type == DW_HORZ ? tmp->items[z].width : tmp->items[z].height); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
156 tmporigsize = (type == DW_HORZ ? tmp->items[z].origwidth : tmp->items[z].origheight); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
157 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
158 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
159 if(tmpsize > size) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
160 size = tmpsize; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
161 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
162 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
163 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
164 *xsize = size; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
165 *xorigsize = origsize; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
166 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
167 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
168 /* This function calculates how much space the widgets and boxes require |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
169 * and does expansion as necessary. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
170 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
171 int _resize_box(Box *thisbox, int *depth, int x, int y, int *usedx, int *usedy, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
172 int pass, int *usedpadx, int *usedpady) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
173 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
174 int z, currentx = 0, currenty = 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
175 int uymax = 0, uxmax = 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
176 int upymax = 0, upxmax = 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
177 /* Used for the SIZEEXPAND */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
178 int nux = *usedx, nuy = *usedy; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
179 int nupx = *usedpadx, nupy = *usedpady; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
180 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
181 (*usedx) += (thisbox->pad * 2); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
182 (*usedy) += (thisbox->pad * 2); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
183 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
184 for(z=0;z<thisbox->count;z++) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
185 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
186 if(thisbox->items[z].type == TYPEBOX) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
187 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
188 int initialx, initialy; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
189 Box *tmp = _get_window_pointer(thisbox->items[z].hwnd); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
190 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
191 initialx = x - (*usedx); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
192 initialy = y - (*usedy); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
193 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
194 if(tmp) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
195 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
196 int newx, newy; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
197 int nux = *usedx, nuy = *usedy; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
198 int upx = *usedpadx + (tmp->pad*2), upy = *usedpady + (tmp->pad*2); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
199 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
200 /* On the second pass we know how big the box needs to be and how |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
201 * much space we have, so we can calculate a ratio for the new box. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
202 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
203 if(pass == 2) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
204 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
205 int deep = *depth + 1; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
206 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
207 _resize_box(tmp, &deep, x, y, &nux, &nuy, 1, &upx, &upy); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
208 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
209 tmp->upx = upx - *usedpadx; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
210 tmp->upy = upy - *usedpady; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
211 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
212 newx = x - nux; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
213 newy = y - nuy; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
214 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
215 tmp->width = thisbox->items[z].width = initialx - newx; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
216 tmp->height = thisbox->items[z].height = initialy - newy; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
217 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
218 tmp->parentxratio = thisbox->xratio; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
219 tmp->parentyratio = thisbox->yratio; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
220 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
221 tmp->parentpad = tmp->pad; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
222 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
223 /* Just in case */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
224 tmp->xratio = thisbox->xratio; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
225 tmp->yratio = thisbox->yratio; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
226 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
227 if(thisbox->type == DW_VERT) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
228 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
229 if((thisbox->items[z].width-((thisbox->items[z].pad*2)+(tmp->pad*2)))!=0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
230 tmp->xratio = ((float)((thisbox->items[z].width * thisbox->xratio)-((thisbox->items[z].pad*2)+(tmp->pad*2))))/((float)(thisbox->items[z].width-((thisbox->items[z].pad*2)+(tmp->pad*2)))); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
231 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
232 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
233 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
234 if((thisbox->items[z].width-tmp->upx)!=0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
235 tmp->xratio = ((float)((thisbox->items[z].width * thisbox->xratio)-tmp->upx))/((float)(thisbox->items[z].width-tmp->upx)); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
236 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
237 if(thisbox->type == DW_HORZ) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
238 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
239 if((thisbox->items[z].height-((thisbox->items[z].pad*2)+(tmp->pad*2)))!=0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
240 tmp->yratio = ((float)((thisbox->items[z].height * thisbox->yratio)-((thisbox->items[z].pad*2)+(tmp->pad*2))))/((float)(thisbox->items[z].height-((thisbox->items[z].pad*2)+(tmp->pad*2)))); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
241 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
242 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
243 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
244 if((thisbox->items[z].height-tmp->upy)!=0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
245 tmp->yratio = ((float)((thisbox->items[z].height * thisbox->yratio)-tmp->upy))/((float)(thisbox->items[z].height-tmp->upy)); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
246 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
247 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
248 nux = *usedx; nuy = *usedy; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
249 upx = *usedpadx + (tmp->pad*2); upy = *usedpady + (tmp->pad*2); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
250 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
251 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
252 (*depth)++; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
253 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
254 _resize_box(tmp, depth, x, y, &nux, &nuy, pass, &upx, &upy); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
255 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
256 (*depth)--; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
257 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
258 newx = x - nux; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
259 newy = y - nuy; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
260 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
261 tmp->minwidth = thisbox->items[z].width = initialx - newx; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
262 tmp->minheight = thisbox->items[z].height = initialy - newy; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
263 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
264 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
265 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
266 if(pass > 1 && *depth > 0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
267 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
268 if(thisbox->type == DW_VERT) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
269 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
270 if((thisbox->minwidth-((thisbox->items[z].pad*2)+(thisbox->parentpad*2))) == 0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
271 thisbox->items[z].xratio = 1.0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
272 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
273 thisbox->items[z].xratio = ((float)((thisbox->width * thisbox->parentxratio)-((thisbox->items[z].pad*2)+(thisbox->parentpad*2))))/((float)(thisbox->minwidth-((thisbox->items[z].pad*2)+(thisbox->parentpad*2)))); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
274 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
275 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
276 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
277 if(thisbox->minwidth-thisbox->upx == 0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
278 thisbox->items[z].xratio = 1.0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
279 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
280 thisbox->items[z].xratio = ((float)((thisbox->width * thisbox->parentxratio)-thisbox->upx))/((float)(thisbox->minwidth-thisbox->upx)); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
281 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
282 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
283 if(thisbox->type == DW_HORZ) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
284 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
285 if((thisbox->minheight-((thisbox->items[z].pad*2)+(thisbox->parentpad*2))) == 0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
286 thisbox->items[z].yratio = 1.0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
287 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
288 thisbox->items[z].yratio = ((float)((thisbox->height * thisbox->parentyratio)-((thisbox->items[z].pad*2)+(thisbox->parentpad*2))))/((float)(thisbox->minheight-((thisbox->items[z].pad*2)+(thisbox->parentpad*2)))); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
289 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
290 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
291 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
292 if(thisbox->minheight-thisbox->upy == 0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
293 thisbox->items[z].yratio = 1.0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
294 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
295 thisbox->items[z].yratio = ((float)((thisbox->height * thisbox->parentyratio)-thisbox->upy))/((float)(thisbox->minheight-thisbox->upy)); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
296 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
297 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
298 if(thisbox->items[z].type == TYPEBOX) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
299 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
300 Box *tmp = _get_window_pointer(thisbox->items[z].hwnd); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
301 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
302 if(tmp) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
303 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
304 tmp->parentxratio = thisbox->items[z].xratio; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
305 tmp->parentyratio = thisbox->items[z].yratio; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
306 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
307 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
308 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
309 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
310 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
311 thisbox->items[z].xratio = thisbox->xratio; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
312 thisbox->items[z].yratio = thisbox->yratio; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
313 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
314 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
315 if(thisbox->type == DW_VERT) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
316 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
317 if((thisbox->items[z].width + (thisbox->items[z].pad*2)) > uxmax) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
318 uxmax = (thisbox->items[z].width + (thisbox->items[z].pad*2)); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
319 if(thisbox->items[z].hsize != SIZEEXPAND) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
320 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
321 if(((thisbox->items[z].pad*2) + thisbox->items[z].width) > upxmax) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
322 upxmax = (thisbox->items[z].pad*2) + thisbox->items[z].width; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
323 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
324 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
325 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
326 if(thisbox->items[z].pad*2 > upxmax) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
327 upxmax = thisbox->items[z].pad*2; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
328 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
329 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
330 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
331 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
332 if(thisbox->items[z].width == -1) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
333 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
334 /* figure out how much space this item requires */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
335 /* thisbox->items[z].width = */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
336 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
337 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
338 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
339 (*usedx) += thisbox->items[z].width + (thisbox->items[z].pad*2); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
340 if(thisbox->items[z].hsize != SIZEEXPAND) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
341 (*usedpadx) += (thisbox->items[z].pad*2) + thisbox->items[z].width; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
342 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
343 (*usedpadx) += thisbox->items[z].pad*2; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
344 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
345 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
346 if(thisbox->type == DW_HORZ) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
347 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
348 if((thisbox->items[z].height + (thisbox->items[z].pad*2)) > uymax) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
349 uymax = (thisbox->items[z].height + (thisbox->items[z].pad*2)); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
350 if(thisbox->items[z].vsize != SIZEEXPAND) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
351 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
352 if(((thisbox->items[z].pad*2) + thisbox->items[z].height) > upymax) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
353 upymax = (thisbox->items[z].pad*2) + thisbox->items[z].height; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
354 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
355 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
356 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
357 if(thisbox->items[z].pad*2 > upymax) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
358 upymax = thisbox->items[z].pad*2; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
359 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
360 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
361 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
362 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
363 if(thisbox->items[z].height == -1) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
364 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
365 /* figure out how much space this item requires */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
366 /* thisbox->items[z].height = */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
367 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
368 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
369 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
370 (*usedy) += thisbox->items[z].height + (thisbox->items[z].pad*2); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
371 if(thisbox->items[z].vsize != SIZEEXPAND) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
372 (*usedpady) += (thisbox->items[z].pad*2) + thisbox->items[z].height; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
373 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
374 (*usedpady) += thisbox->items[z].pad*2; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
375 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
376 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
377 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
378 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
379 (*usedx) += uxmax; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
380 (*usedy) += uymax; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
381 (*usedpadx) += upxmax; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
382 (*usedpady) += upymax; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
383 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
384 currentx += thisbox->pad; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
385 currenty += thisbox->pad; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
386 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
387 /* The second pass is for expansion and actual placement. */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
388 if(pass > 1) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
389 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
390 /* Any SIZEEXPAND items should be set to uxmax/uymax */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
391 for(z=0;z<thisbox->count;z++) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
392 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
393 if(thisbox->items[z].hsize == SIZEEXPAND && thisbox->type == DW_VERT) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
394 thisbox->items[z].width = uxmax-(thisbox->items[z].pad*2); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
395 if(thisbox->items[z].vsize == SIZEEXPAND && thisbox->type == DW_HORZ) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
396 thisbox->items[z].height = uymax-(thisbox->items[z].pad*2); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
397 /* Run this code segment again to finalize the sized after setting uxmax/uymax values. */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
398 if(thisbox->items[z].type == TYPEBOX) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
399 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
400 Box *tmp = _get_window_pointer(thisbox->items[z].hwnd); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
401 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
402 if(tmp) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
403 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
404 if(*depth > 0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
405 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
406 if(thisbox->type == DW_VERT) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
407 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
408 tmp->xratio = ((float)((thisbox->items[z].width * thisbox->xratio)-((thisbox->items[z].pad*2)+(thisbox->pad*2))))/((float)(tmp->minwidth-((thisbox->items[z].pad*2)+(thisbox->pad*2)))); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
409 tmp->width = thisbox->items[z].width; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
410 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
411 if(thisbox->type == DW_HORZ) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
412 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
413 tmp->yratio = ((float)((thisbox->items[z].height * thisbox->yratio)-((thisbox->items[z].pad*2)+(thisbox->pad*2))))/((float)(tmp->minheight-((thisbox->items[z].pad*2)+(thisbox->pad*2)))); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
414 tmp->height = thisbox->items[z].height; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
415 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
416 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
417 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
418 (*depth)++; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
419 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
420 _resize_box(tmp, depth, x, y, &nux, &nuy, 3, &nupx, &nupy); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
421 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
422 (*depth)--; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
423 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
424 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
425 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
426 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
427 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
428 for(z=0;z<(thisbox->count);z++) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
429 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
430 int height = thisbox->items[z].height; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
431 int width = thisbox->items[z].width; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
432 int pad = thisbox->items[z].pad; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
433 HWND handle = thisbox->items[z].hwnd; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
434 int vectorx, vectory; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
435 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
436 /* When upxmax != pad*2 then ratios are incorrect. */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
437 vectorx = (int)((width*thisbox->items[z].xratio)-width); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
438 vectory = (int)((height*thisbox->items[z].yratio)-height); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
439 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
440 if(width > 0 && height > 0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
441 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
442 /* This is a hack to fix rounding of the sizing */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
443 if(*depth == 0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
444 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
445 vectorx++; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
446 vectory++; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
447 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
448 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
449 /* If this item isn't going to expand... reset the vectors to 0 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
450 if(thisbox->items[z].vsize != SIZEEXPAND) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
451 vectory = 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
452 if(thisbox->items[z].hsize != SIZEEXPAND) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
453 vectorx = 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
454 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
455 #if 0 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
456 WinSetWindowPos(handle, HWND_TOP, currentx + pad, currenty + pad, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
457 width + vectorx, height + vectory, SWP_MOVE | SWP_SIZE | SWP_ZORDER); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
458 #endif |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
459 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
460 if(thisbox->type == DW_HORZ) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
461 currentx += width + vectorx + (pad * 2); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
462 if(thisbox->type == DW_VERT) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
463 currenty += height + vectory + (pad * 2); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
464 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
465 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
466 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
467 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
468 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
469 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
470 void _do_resize(Box *thisbox, int x, int y) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
471 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
472 if(x != 0 && y != 0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
473 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
474 if(thisbox) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
475 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
476 int usedx = 0, usedy = 0, usedpadx = 0, usedpady = 0, depth = 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
477 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
478 _resize_box(thisbox, &depth, x, y, &usedx, &usedy, 1, &usedpadx, &usedpady); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
479 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
480 if(usedx-usedpadx == 0 || usedy-usedpady == 0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
481 return; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
482 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
483 thisbox->xratio = ((float)(x-usedpadx))/((float)(usedx-usedpadx)); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
484 thisbox->yratio = ((float)(y-usedpady))/((float)(usedy-usedpady)); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
485 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
486 usedx = usedy = usedpadx = usedpady = depth = 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
487 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
488 _resize_box(thisbox, &depth, x, y, &usedx, &usedy, 2, &usedpadx, &usedpady); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
489 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
490 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
491 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
492 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
493 int _dw_int_pos(HWND hwnd) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
494 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
495 int pos = (int)dw_window_get_data(hwnd, "_dw_percent_value"); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
496 int range = dw_percent_query_range(hwnd); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
497 float fpos = (float)pos; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
498 float frange = (float)range; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
499 float fnew = (fpos/1000.0)*frange; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
500 return (int)fnew; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
501 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
502 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
503 void _dw_int_set(HWND hwnd, int pos) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
504 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
505 int inew, range = dw_percent_query_range(hwnd); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
506 if(range) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
507 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
508 float fpos = (float)pos; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
509 float frange = (float)range; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
510 float fnew = (fpos/frange)*1000.0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
511 inew = (int)fnew; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
512 dw_window_set_data(hwnd, "_dw_percent_value", (void *)inew); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
513 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
514 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
515 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
516 void _changebox(Box *thisbox, int percent, int type) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
517 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
518 int z; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
519 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
520 for(z=0;z<thisbox->count;z++) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
521 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
522 if(thisbox->items[z].type == TYPEBOX) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
523 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
524 Box *tmp = WinQueryWindowPtr(thisbox->items[z].hwnd, QWP_USER); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
525 _changebox(tmp, percent, type); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
526 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
527 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
528 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
529 if(type == DW_HORZ) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
530 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
531 if(thisbox->items[z].hsize == SIZEEXPAND) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
532 thisbox->items[z].width = (int)(((float)thisbox->items[z].origwidth) * (((float)percent)/((float)100.0))); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
533 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
534 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
535 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
536 if(thisbox->items[z].vsize == SIZEEXPAND) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
537 thisbox->items[z].height = (int)(((float)thisbox->items[z].origheight) * (((float)percent)/((float)100.0))); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
538 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
539 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
540 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
541 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
542 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
543 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
544 * Initializes the Dynamic Windows engine. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
545 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
546 * newthread: True if this is the only thread. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
547 * False if there is already a message loop running. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
548 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
549 int API dw_init(int newthread, int argc, char *argv[]) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
550 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
551 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
552 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
553 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
554 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
555 * Runs a message loop for Dynamic Windows. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
556 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
557 void API dw_main(void) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
558 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
559 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
560 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
561 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
562 * Runs a message loop for Dynamic Windows, for a period of milliseconds. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
563 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
564 * milliseconds: Number of milliseconds to run the loop for. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
565 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
566 void API dw_main_sleep(int milliseconds) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
567 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
568 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
569 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
570 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
571 * Processes a single message iteration and returns. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
572 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
573 void API dw_main_iteration(void) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
574 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
575 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
576 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
577 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
578 * Free's memory allocated by dynamic windows. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
579 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
580 * ptr: Pointer to dynamic windows allocated |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
581 * memory to be free()'d. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
582 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
583 void API dw_free(void *ptr) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
584 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
585 free(ptr); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
586 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
587 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
588 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
589 * Allocates and initializes a dialog struct. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
590 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
591 * data: User defined data to be passed to functions. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
592 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
593 DWDialog * API dw_dialog_new(void *data) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
594 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
595 DWDialog *tmp = malloc(sizeof(DWDialog)); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
596 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
597 tmp->eve = dw_event_new(); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
598 dw_event_reset(tmp->eve); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
599 tmp->data = data; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
600 tmp->done = FALSE; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
601 tmp->result = NULL; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
602 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
603 return tmp; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
604 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
605 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
606 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
607 * Accepts a dialog struct and returns the given data to the |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
608 * initial called of dw_dialog_wait(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
609 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
610 * dialog: Pointer to a dialog struct aquired by dw_dialog_new). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
611 * result: Data to be returned by dw_dialog_wait(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
612 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
613 int API dw_dialog_dismiss(DWDialog *dialog, void *result) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
614 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
615 dialog->result = result; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
616 dw_event_post(dialog->eve); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
617 dialog->done = TRUE; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
618 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
619 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
620 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
621 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
622 * Accepts a dialog struct waits for dw_dialog_dismiss() to be |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
623 * called by a signal handler with the given dialog struct. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
624 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
625 * dialog: Pointer to a dialog struct aquired by dw_dialog_new). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
626 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
627 void * API dw_dialog_wait(DWDialog *dialog) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
628 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
629 void *tmp; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
630 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
631 #if 0 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
632 while (WinGetMsg(dwhab, &qmsg, 0, 0, 0)) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
633 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
634 WinDispatchMsg(dwhab, &qmsg); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
635 if(dialog->done) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
636 break; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
637 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
638 #endif |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
639 dw_event_close(&dialog->eve); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
640 tmp = dialog->result; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
641 free(dialog); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
642 return tmp; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
643 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
644 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
645 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
646 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
647 * Displays a Message Box with given text and title.. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
648 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
649 * title: The title of the message box. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
650 * format: printf style format string. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
651 * ...: Additional variables for use in the format. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
652 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
653 int API dw_messagebox(char *title, char *format, ...) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
654 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
655 va_list args; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
656 char outbuf[1024]; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
657 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
658 va_start(args, format); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
659 vsprintf(outbuf, format, args); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
660 va_end(args); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
661 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
662 #if 0 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
663 WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, outbuf, title, 0, MB_OK | MB_INFORMATION | MB_MOVEABLE); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
664 #endif |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
665 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
666 return strlen(outbuf); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
667 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
668 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
669 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
670 * Displays a Message Box with given text and title.. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
671 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
672 * title: The title of the message box. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
673 * text: The text to display in the box. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
674 * Returns: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
675 * True if YES False of NO. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
676 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
677 int API dw_yesno(char *title, char *text) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
678 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
679 return FALSE; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
680 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
681 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
682 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
683 * Makes the window topmost. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
684 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
685 * handle: The window handle to make topmost. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
686 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
687 int API dw_window_raise(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
688 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
689 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
690 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
691 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
692 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
693 * Makes the window bottommost. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
694 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
695 * handle: The window handle to make bottommost. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
696 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
697 int API dw_window_lower(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
698 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
699 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
700 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
701 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
702 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
703 * Makes the window visible. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
704 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
705 * handle: The window handle to make visible. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
706 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
707 int API dw_window_show(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
708 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
709 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
710 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
711 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
712 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
713 * Minimizes or Iconifies a top-level window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
714 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
715 * handle: The window handle to minimize. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
716 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
717 int API dw_window_minimize(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
718 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
719 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
720 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
721 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
722 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
723 * Makes the window invisible. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
724 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
725 * handle: The window handle to make visible. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
726 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
727 int API dw_window_hide(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
728 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
729 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
730 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
731 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
732 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
733 * Destroys a window and all of it's children. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
734 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
735 * handle: The window handle to destroy. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
736 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
737 int API dw_window_destroy(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
738 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
739 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
740 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
741 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
742 /* Causes entire window to be invalidated and redrawn. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
743 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
744 * handle: Toplevel window handle to be redrawn. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
745 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
746 void API dw_window_redraw(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
747 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
748 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
749 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
750 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
751 * Changes a window's parent to newparent. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
752 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
753 * handle: The window handle to destroy. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
754 * newparent: The window's new parent window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
755 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
756 void API dw_window_reparent(HWND handle, HWND newparent) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
757 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
758 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
759 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
760 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
761 * Sets the font used by a specified window (widget) handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
762 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
763 * handle: The window (widget) handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
764 * fontname: Name and size of the font in the form "size.fontname" |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
765 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
766 int API dw_window_set_font(HWND handle, char *fontname) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
767 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
768 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
769 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
770 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
771 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
772 * Sets the colors used by a specified window (widget) handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
773 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
774 * handle: The window (widget) handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
775 * fore: Foreground color in DW_RGB format or a default color index. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
776 * back: Background color in DW_RGB format or a default color index. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
777 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
778 int API dw_window_set_color(HWND handle, ULONG fore, ULONG back) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
779 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
780 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
781 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
782 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
783 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
784 * Sets the font used by a specified window (widget) handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
785 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
786 * handle: The window (widget) handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
787 * border: Size of the window border in pixels. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
788 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
789 int API dw_window_set_border(HWND handle, int border) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
790 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
791 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
792 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
793 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
794 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
795 * Captures the mouse input to this window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
796 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
797 * handle: Handle to receive mouse input. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
798 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
799 void API dw_window_capture(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
800 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
801 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
802 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
803 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
804 * Releases previous mouse capture. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
805 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
806 void API dw_window_release(void) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
807 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
808 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
809 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
810 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
811 * Tracks this window movement. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
812 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
813 * handle: Handle to frame to be tracked. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
814 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
815 void API dw_window_track(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
816 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
817 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
818 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
819 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
820 * Changes the appearance of the mouse pointer. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
821 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
822 * handle: Handle to widget for which to change. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
823 * cursortype: ID of the pointer you want. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
824 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
825 void API dw_window_pointer(HWND handle, int pointertype) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
826 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
827 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
828 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
829 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
830 * Create a new Window Frame. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
831 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
832 * owner: The Owner's window handle or HWND_DESKTOP. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
833 * title: The Window title. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
834 * flStyle: Style flags, see the PM reference. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
835 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
836 HWND API dw_window_new(HWND hwndOwner, char *title, ULONG flStyle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
837 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
838 HWND hwnd = 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
839 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
840 return hwnd; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
841 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
842 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
843 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
844 * Create a new Box to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
845 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
846 * type: Either DW_VERT (vertical) or DW_HORZ (horizontal). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
847 * pad: Number of pixels to pad around the box. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
848 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
849 HWND API dw_box_new(int type, int pad) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
850 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
851 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
852 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
853 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
854 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
855 * Create a new Group Box to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
856 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
857 * type: Either DW_VERT (vertical) or DW_HORZ (horizontal). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
858 * pad: Number of pixels to pad around the box. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
859 * title: Text to be displayined in the group outline. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
860 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
861 HWND API dw_groupbox_new(int type, int pad, char *title) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
862 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
863 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
864 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
865 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
866 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
867 * Create a new MDI Frame to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
868 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
869 * id: An ID to be used with dw_window_from_id or 0L. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
870 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
871 HWND API dw_mdi_new(unsigned long id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
872 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
873 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
874 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
875 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
876 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
877 * Create a bitmap object to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
878 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
879 * id: An ID to be used with dw_window_from_id() or 0L. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
880 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
881 HWND API dw_bitmap_new(ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
882 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
883 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
884 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
885 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
886 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
887 * Create a notebook object to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
888 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
889 * id: An ID to be used for getting the resource from the |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
890 * resource file. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
891 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
892 HWND API dw_notebook_new(ULONG id, int top) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
893 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
894 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
895 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
896 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
897 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
898 * Create a menu object to be popped up. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
899 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
900 * id: An ID to be used for getting the resource from the |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
901 * resource file. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
902 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
903 HMENUI API dw_menu_new(ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
904 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
905 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
906 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
907 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
908 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
909 * Create a menubar on a window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
910 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
911 * location: Handle of a window frame to be attached to. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
912 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
913 HMENUI API dw_menubar_new(HWND location) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
914 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
915 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
916 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
917 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
918 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
919 * Destroys a menu created with dw_menubar_new or dw_menu_new. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
920 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
921 * menu: Handle of a menu. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
922 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
923 void API dw_menu_destroy(HMENUI *menu) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
924 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
925 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
926 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
927 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
928 * Adds a menuitem or submenu to an existing menu. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
929 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
930 * menu: The handle the the existing menu. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
931 * title: The title text on the menu item to be added. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
932 * id: An ID to be used for message passing. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
933 * flags: Extended attributes to set on the menu. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
934 * end: If TRUE memu is positioned at the end of the menu. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
935 * check: If TRUE menu is "check"able. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
936 * submenu: Handle to an existing menu to be a submenu or NULL. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
937 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
938 HWND API dw_menu_append_item(HMENUI menux, char *title, ULONG id, ULONG flags, int end, int check, HMENUI submenu) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
939 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
940 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
941 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
942 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
943 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
944 * Sets the state of a menu item check. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
945 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
946 * menu: The handle the the existing menu. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
947 * id: Menuitem id. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
948 * check: TRUE for checked FALSE for not checked. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
949 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
950 void API dw_menu_item_set_check(HMENUI menux, unsigned long id, int check) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
951 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
952 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
953 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
954 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
955 * Pops up a context menu at given x and y coordinates. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
956 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
957 * menu: The handle the the existing menu. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
958 * parent: Handle to the window initiating the popup. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
959 * x: X coordinate. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
960 * y: Y coordinate. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
961 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
962 void API dw_menu_popup(HMENUI *menu, HWND parent, int x, int y) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
963 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
964 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
965 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
966 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
967 * Returns the current X and Y coordinates of the mouse pointer. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
968 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
969 * x: Pointer to variable to store X coordinate. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
970 * y: Pointer to variable to store Y coordinate. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
971 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
972 void API dw_pointer_query_pos(long *x, long *y) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
973 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
974 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
975 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
976 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
977 * Sets the X and Y coordinates of the mouse pointer. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
978 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
979 * x: X coordinate. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
980 * y: Y coordinate. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
981 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
982 void API dw_pointer_set_pos(long x, long y) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
983 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
984 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
985 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
986 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
987 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
988 * Create a container object to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
989 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
990 * id: An ID to be used for getting the resource from the |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
991 * resource file. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
992 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
993 HWND API dw_container_new(ULONG id, int multi) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
994 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
995 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
996 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
997 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
998 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
999 * Create a tree object to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1000 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1001 * id: An ID to be used for getting the resource from the |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1002 * resource file. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1003 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1004 HWND API dw_tree_new(ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1005 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1006 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1007 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1008 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1009 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1010 * Create a new static text window (widget) to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1011 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1012 * text: The text to be display by the static text widget. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1013 * id: An ID to be used with dw_window_from_id() or 0L. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1014 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1015 HWND API dw_text_new(char *text, ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1016 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1017 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1018 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1019 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1020 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1021 * Create a new status text window (widget) to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1022 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1023 * text: The text to be display by the static text widget. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1024 * id: An ID to be used with dw_window_from_id() or 0L. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1025 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1026 HWND API dw_status_text_new(char *text, ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1027 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1028 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1029 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1030 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1031 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1032 * Create a new Multiline Editbox window (widget) to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1033 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1034 * id: An ID to be used with dw_window_from_id() or 0L. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1035 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1036 HWND API dw_mle_new(ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1037 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1038 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1039 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1040 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1041 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1042 * Create a new Entryfield window (widget) to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1043 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1044 * text: The default text to be in the entryfield widget. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1045 * id: An ID to be used with dw_window_from_id() or 0L. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1046 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1047 HWND API dw_entryfield_new(char *text, ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1048 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1049 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1050 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1051 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1052 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1053 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1054 * Create a new Entryfield (password) window (widget) to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1055 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1056 * text: The default text to be in the entryfield widget. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1057 * id: An ID to be used with dw_window_from_id() or 0L. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1058 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1059 HWND API dw_entryfield_password_new(char *text, ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1060 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1061 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1062 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1063 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1064 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1065 * Create a new Combobox window (widget) to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1066 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1067 * text: The default text to be in the combpbox widget. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1068 * id: An ID to be used with dw_window_from_id() or 0L. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1069 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1070 HWND API dw_combobox_new(char *text, ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1071 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1072 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1073 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1074 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1075 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1076 * Create a new button window (widget) to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1077 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1078 * text: The text to be display by the static text widget. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1079 * id: An ID to be used with dw_window_from_id() or 0L. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1080 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1081 HWND API dw_button_new(char *text, ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1082 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1083 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1084 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1085 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1086 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1087 * Create a new bitmap button window (widget) to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1088 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1089 * text: Bubble help text to be displayed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1090 * id: An ID of a bitmap in the resource file. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1091 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1092 HWND API dw_bitmapbutton_new(char *text, ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1093 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1094 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1095 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1096 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1097 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1098 * Create a new bitmap button window (widget) to be packed from a file. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1099 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1100 * text: Bubble help text to be displayed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1101 * id: An ID to be used with dw_window_from_id() or 0L. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1102 * filename: Name of the file, omit extention to have |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1103 * DW pick the appropriate file extension. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1104 * (BMP on OS/2 or Windows, XPM on Unix) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1105 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1106 HWND dw_bitmapbutton_new_from_file(char *text, unsigned long id, char *filename) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1107 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1108 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1109 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1110 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1111 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1112 * Create a new spinbutton window (widget) to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1113 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1114 * text: The text to be display by the static text widget. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1115 * id: An ID to be used with dw_window_from_id() or 0L. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1116 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1117 HWND API dw_spinbutton_new(char *text, ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1118 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1119 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1120 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1121 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1122 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1123 * Create a new radiobutton window (widget) to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1124 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1125 * text: The text to be display by the static text widget. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1126 * id: An ID to be used with dw_window_from_id() or 0L. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1127 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1128 HWND API dw_radiobutton_new(char *text, ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1129 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1130 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1131 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1132 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1133 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1134 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1135 * Create a new slider window (widget) to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1136 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1137 * vertical: TRUE or FALSE if slider is vertical. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1138 * increments: Number of increments available. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1139 * id: An ID to be used with dw_window_from_id() or 0L. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1140 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1141 HWND API dw_slider_new(int vertical, int increments, ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1142 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1143 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1144 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1145 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1146 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1147 * Create a new scrollbar window (widget) to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1148 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1149 * vertical: TRUE or FALSE if scrollbar is vertical. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1150 * increments: Number of increments available. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1151 * id: An ID to be used with dw_window_from_id() or 0L. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1152 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1153 HWND API dw_scrollbar_new(int vertical, int increments, ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1154 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1155 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1156 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1157 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1158 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1159 * Create a new percent bar window (widget) to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1160 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1161 * id: An ID to be used with dw_window_from_id() or 0L. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1162 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1163 HWND API dw_percent_new(ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1164 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1165 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1166 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1167 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1168 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1169 * Create a new checkbox window (widget) to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1170 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1171 * text: The text to be display by the static text widget. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1172 * id: An ID to be used with dw_window_from_id() or 0L. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1173 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1174 HWND API dw_checkbox_new(char *text, ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1175 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1176 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1177 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1178 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1179 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1180 * Create a new listbox window (widget) to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1181 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1182 * id: An ID to be used with dw_window_from_id() or 0L. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1183 * multi: Multiple select TRUE or FALSE. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1184 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1185 HWND API dw_listbox_new(ULONG id, int multi) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1186 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1187 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1188 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1189 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1190 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1191 * Sets the icon used for a given window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1192 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1193 * handle: Handle to the window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1194 * id: An ID to be used to specify the icon. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1195 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1196 void API dw_window_set_icon(HWND handle, ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1197 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1198 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1199 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1200 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1201 * Sets the bitmap used for a given static window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1202 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1203 * handle: Handle to the window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1204 * id: An ID to be used to specify the icon, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1205 * (pass 0 if you use the filename param) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1206 * filename: a path to a file (Bitmap on OS/2 or |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1207 * Windows and a pixmap on Unix, pass |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1208 * NULL if you use the id param) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1209 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1210 void API dw_window_set_bitmap(HWND handle, unsigned long id, char *filename) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1211 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1212 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1213 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1214 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1215 * Sets the text used for a given window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1216 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1217 * handle: Handle to the window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1218 * text: The text associsated with a given window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1219 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1220 void API dw_window_set_text(HWND handle, char *text) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1221 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1222 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1223 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1224 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1225 * Gets the text used for a given window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1226 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1227 * handle: Handle to the window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1228 * Returns: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1229 * text: The text associsated with a given window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1230 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1231 char * API dw_window_get_text(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1232 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1233 return NULL; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1234 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1235 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1236 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1237 * Disables given window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1238 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1239 * handle: Handle to the window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1240 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1241 void API dw_window_disable(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1242 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1243 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1244 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1245 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1246 * Enables given window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1247 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1248 * handle: Handle to the window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1249 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1250 void API dw_window_enable(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1251 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1252 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1253 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1254 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1255 * Gets the child window handle with specified ID. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1256 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1257 * handle: Handle to the parent window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1258 * id: Integer ID of the child. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1259 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1260 HWND API dw_window_from_id(HWND handle, int id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1261 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1262 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1263 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1264 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1265 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1266 * Pack windows (widgets) into a box from the end (or bottom). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1267 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1268 * box: Window handle of the box to be packed into. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1269 * item: Window handle of the item to be back. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1270 * width: Width in pixels of the item or -1 to be self determined. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1271 * height: Height in pixels of the item or -1 to be self determined. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1272 * hsize: TRUE if the window (widget) should expand horizontally to fill space given. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1273 * vsize: TRUE if the window (widget) should expand vertically to fill space given. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1274 * pad: Number of pixels of padding around the item. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1275 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1276 void API dw_box_pack_end(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1277 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1278 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1279 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1280 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1281 * Sets the size of a given window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1282 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1283 * handle: Window (widget) handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1284 * width: New width in pixels. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1285 * height: New height in pixels. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1286 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1287 void API dw_window_set_usize(HWND handle, ULONG width, ULONG height) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1288 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1289 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1290 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1291 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1292 * Returns the width of the screen. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1293 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1294 int API dw_screen_width(void) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1295 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1296 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1297 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1298 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1299 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1300 * Returns the height of the screen. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1301 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1302 int API dw_screen_height(void) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1303 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1304 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1305 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1306 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1307 /* This should return the current color depth */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1308 unsigned long API dw_color_depth(void) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1309 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1310 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1311 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1312 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1313 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1314 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1315 * Sets the position of a given window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1316 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1317 * handle: Window (widget) handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1318 * x: X location from the bottom left. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1319 * y: Y location from the bottom left. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1320 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1321 void API dw_window_set_pos(HWND handle, ULONG x, ULONG y) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1322 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1323 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1324 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1325 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1326 * Sets the position and size of a given window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1327 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1328 * handle: Window (widget) handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1329 * x: X location from the bottom left. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1330 * y: Y location from the bottom left. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1331 * width: Width of the widget. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1332 * height: Height of the widget. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1333 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1334 void API dw_window_set_pos_size(HWND handle, ULONG x, ULONG y, ULONG width, ULONG height) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1335 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1336 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1337 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1338 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1339 * Gets the position and size of a given window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1340 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1341 * handle: Window (widget) handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1342 * x: X location from the bottom left. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1343 * y: Y location from the bottom left. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1344 * width: Width of the widget. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1345 * height: Height of the widget. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1346 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1347 void API dw_window_get_pos_size(HWND handle, ULONG *x, ULONG *y, ULONG *width, ULONG *height) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1348 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1349 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1350 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1351 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1352 * Sets the style of a given window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1353 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1354 * handle: Window (widget) handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1355 * width: New width in pixels. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1356 * height: New height in pixels. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1357 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1358 void API dw_window_set_style(HWND handle, ULONG style, ULONG mask) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1359 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1360 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1361 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1362 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1363 * Adds a new page to specified notebook. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1364 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1365 * handle: Window (widget) handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1366 * flags: Any additional page creation flags. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1367 * front: If TRUE page is added at the beginning. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1368 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1369 unsigned long API dw_notebook_page_new(HWND handle, ULONG flags, int front) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1370 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1371 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1372 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1373 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1374 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1375 * Remove a page from a notebook. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1376 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1377 * handle: Handle to the notebook widget. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1378 * pageid: ID of the page to be destroyed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1379 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1380 void API dw_notebook_page_destroy(HWND handle, unsigned int pageid) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1381 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1382 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1383 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1384 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1385 * Queries the currently visible page ID. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1386 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1387 * handle: Handle to the notebook widget. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1388 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1389 unsigned long API dw_notebook_page_query(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1390 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1391 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1392 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1393 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1394 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1395 * Sets the currently visibale page ID. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1396 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1397 * handle: Handle to the notebook widget. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1398 * pageid: ID of the page to be made visible. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1399 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1400 void API dw_notebook_page_set(HWND handle, unsigned int pageid) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1401 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1402 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1403 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1404 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1405 * Sets the text on the specified notebook tab. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1406 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1407 * handle: Notebook handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1408 * pageid: Page ID of the tab to set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1409 * text: Pointer to the text to set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1410 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1411 void API dw_notebook_page_set_text(HWND handle, ULONG pageid, char *text) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1412 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1413 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1414 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1415 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1416 * Sets the text on the specified notebook tab status area. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1417 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1418 * handle: Notebook handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1419 * pageid: Page ID of the tab to set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1420 * text: Pointer to the text to set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1421 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1422 void API dw_notebook_page_set_status_text(HWND handle, ULONG pageid, char *text) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1423 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1424 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1425 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1426 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1427 * Packs the specified box into the notebook page. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1428 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1429 * handle: Handle to the notebook to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1430 * pageid: Page ID in the notebook which is being packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1431 * page: Box handle to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1432 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1433 void API dw_notebook_pack(HWND handle, ULONG pageid, HWND page) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1434 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1435 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1436 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1437 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1438 * Appends the specified text to the listbox's (or combobox) entry list. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1439 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1440 * handle: Handle to the listbox to be appended to. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1441 * text: Text to append into listbox. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1442 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1443 void API dw_listbox_append(HWND handle, char *text) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1444 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1445 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1446 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1447 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1448 * Clears the listbox's (or combobox) list of all entries. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1449 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1450 * handle: Handle to the listbox to be cleared. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1451 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1452 void API dw_listbox_clear(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1453 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1454 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1455 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1456 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1457 * Returns the listbox's item count. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1458 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1459 * handle: Handle to the listbox to be cleared. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1460 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1461 int API dw_listbox_count(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1462 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1463 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1464 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1465 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1466 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1467 * Sets the topmost item in the viewport. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1468 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1469 * handle: Handle to the listbox to be cleared. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1470 * top: Index to the top item. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1471 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1472 void API dw_listbox_set_top(HWND handle, int top) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1473 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1474 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1475 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1476 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1477 * Copies the given index item's text into buffer. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1478 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1479 * handle: Handle to the listbox to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1480 * index: Index into the list to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1481 * buffer: Buffer where text will be copied. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1482 * length: Length of the buffer (including NULL). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1483 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1484 void API dw_listbox_query_text(HWND handle, unsigned int index, char *buffer, unsigned int length) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1485 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1486 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1487 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1488 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1489 * Sets the text of a given listbox entry. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1490 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1491 * handle: Handle to the listbox to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1492 * index: Index into the list to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1493 * buffer: Buffer where text will be copied. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1494 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1495 void API dw_listbox_set_text(HWND handle, unsigned int index, char *buffer) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1496 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1497 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1498 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1499 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1500 * Returns the index to the item in the list currently selected. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1501 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1502 * handle: Handle to the listbox to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1503 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1504 unsigned int API dw_listbox_selected(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1505 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1506 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1507 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1508 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1509 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1510 * Returns the index to the current selected item or -1 when done. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1511 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1512 * handle: Handle to the listbox to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1513 * where: Either the previous return or -1 to restart. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1514 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1515 int API dw_listbox_selected_multi(HWND handle, int where) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1516 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1517 return -1; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1518 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1519 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1520 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1521 * Sets the selection state of a given index. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1522 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1523 * handle: Handle to the listbox to be set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1524 * index: Item index. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1525 * state: TRUE if selected FALSE if unselected. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1526 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1527 void API dw_listbox_select(HWND handle, int index, int state) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1528 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1529 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1530 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1531 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1532 * Deletes the item with given index from the list. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1533 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1534 * handle: Handle to the listbox to be set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1535 * index: Item index. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1536 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1537 void API dw_listbox_delete(HWND handle, int index) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1538 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1539 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1540 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1541 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1542 * Adds text to an MLE box and returns the current point. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1543 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1544 * handle: Handle to the MLE to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1545 * buffer: Text buffer to be imported. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1546 * startpoint: Point to start entering text. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1547 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1548 unsigned int API dw_mle_import(HWND handle, char *buffer, int startpoint) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1549 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1550 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1551 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1552 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1553 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1554 * Grabs text from an MLE box. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1555 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1556 * handle: Handle to the MLE to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1557 * buffer: Text buffer to be exported. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1558 * startpoint: Point to start grabbing text. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1559 * length: Amount of text to be grabbed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1560 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1561 void API dw_mle_export(HWND handle, char *buffer, int startpoint, int length) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1562 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1563 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1564 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1565 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1566 * Obtains information about an MLE box. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1567 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1568 * handle: Handle to the MLE to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1569 * bytes: A pointer to a variable to return the total bytes. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1570 * lines: A pointer to a variable to return the number of lines. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1571 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1572 void API dw_mle_query(HWND handle, unsigned long *bytes, unsigned long *lines) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1573 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1574 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1575 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1576 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1577 * Deletes text from an MLE box. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1578 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1579 * handle: Handle to the MLE to be deleted from. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1580 * startpoint: Point to start deleting text. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1581 * length: Amount of text to be deleted. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1582 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1583 void API dw_mle_delete(HWND handle, int startpoint, int length) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1584 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1585 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1586 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1587 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1588 * Clears all text from an MLE box. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1589 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1590 * handle: Handle to the MLE to be cleared. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1591 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1592 void API dw_mle_clear(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1593 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1594 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1595 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1596 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1597 * Sets the visible line of an MLE box. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1598 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1599 * handle: Handle to the MLE to be positioned. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1600 * line: Line to be visible. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1601 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1602 void API dw_mle_set_visible(HWND handle, int line) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1603 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1604 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1605 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1606 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1607 * Sets the editablity of an MLE box. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1608 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1609 * handle: Handle to the MLE. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1610 * state: TRUE if it can be edited, FALSE for readonly. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1611 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1612 void API dw_mle_set_editable(HWND handle, int state) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1613 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1614 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1615 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1616 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1617 * Sets the word wrap state of an MLE box. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1618 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1619 * handle: Handle to the MLE. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1620 * state: TRUE if it wraps, FALSE if it doesn't. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1621 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1622 void API dw_mle_set_word_wrap(HWND handle, int state) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1623 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1624 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1625 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1626 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1627 * Sets the current cursor position of an MLE box. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1628 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1629 * handle: Handle to the MLE to be positioned. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1630 * point: Point to position cursor. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1631 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1632 void API dw_mle_set(HWND handle, int point) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1633 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1634 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1635 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1636 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1637 * Finds text in an MLE box. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1638 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1639 * handle: Handle to the MLE to be cleared. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1640 * text: Text to search for. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1641 * point: Start point of search. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1642 * flags: Search specific flags. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1643 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1644 int API dw_mle_search(HWND handle, char *text, int point, unsigned long flags) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1645 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1646 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1647 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1648 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1649 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1650 * Stops redrawing of an MLE box. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1651 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1652 * handle: Handle to the MLE to freeze. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1653 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1654 void API dw_mle_freeze(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1655 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1656 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1657 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1658 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1659 * Resumes redrawing of an MLE box. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1660 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1661 * handle: Handle to the MLE to thaw. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1662 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1663 void API dw_mle_thaw(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1664 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1665 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1666 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1667 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1668 * Returns the range of the percent bar. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1669 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1670 * handle: Handle to the percent bar to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1671 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1672 unsigned int API dw_percent_query_range(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1673 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1674 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1675 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1676 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1677 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1678 * Sets the percent bar position. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1679 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1680 * handle: Handle to the percent bar to be set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1681 * position: Position of the percent bar withing the range. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1682 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1683 void API dw_percent_set_pos(HWND handle, unsigned int position) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1684 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1685 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1686 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1687 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1688 * Returns the position of the slider. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1689 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1690 * handle: Handle to the slider to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1691 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1692 unsigned int API dw_slider_query_pos(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1693 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1694 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1695 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1696 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1697 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1698 * Sets the slider position. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1699 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1700 * handle: Handle to the slider to be set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1701 * position: Position of the slider withing the range. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1702 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1703 void API dw_slider_set_pos(HWND handle, unsigned int position) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1704 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1705 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1706 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1707 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1708 * Returns the position of the scrollbar. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1709 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1710 * handle: Handle to the scrollbar to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1711 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1712 unsigned int API dw_scrollbar_query_pos(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1713 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1714 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1715 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1716 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1717 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1718 * Sets the scrollbar position. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1719 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1720 * handle: Handle to the scrollbar to be set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1721 * position: Position of the scrollbar withing the range. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1722 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1723 void API dw_scrollbar_set_pos(HWND handle, unsigned int position) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1724 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1725 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1726 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1727 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1728 * Sets the scrollbar range. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1729 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1730 * handle: Handle to the scrollbar to be set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1731 * range: Maximum range value. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1732 * visible: Visible area relative to the range. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1733 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1734 void API dw_scrollbar_set_range(HWND handle, unsigned int range, unsigned int visible) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1735 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1736 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1737 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1738 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1739 * Sets the spinbutton value. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1740 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1741 * handle: Handle to the spinbutton to be set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1742 * position: Current value of the spinbutton. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1743 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1744 void API dw_spinbutton_set_pos(HWND handle, long position) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1745 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1746 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1747 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1748 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1749 * Sets the spinbutton limits. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1750 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1751 * handle: Handle to the spinbutton to be set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1752 * upper: Upper limit. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1753 * lower: Lower limit. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1754 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1755 void API dw_spinbutton_set_limits(HWND handle, long upper, long lower) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1756 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1757 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1758 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1759 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1760 * Sets the entryfield character limit. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1761 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1762 * handle: Handle to the spinbutton to be set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1763 * limit: Number of characters the entryfield will take. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1764 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1765 void API dw_entryfield_set_limit(HWND handle, ULONG limit) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1766 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1767 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1768 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1769 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1770 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1771 * Returns the current value of the spinbutton. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1772 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1773 * handle: Handle to the spinbutton to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1774 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1775 long API dw_spinbutton_query(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1776 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1777 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1778 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1779 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1780 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1781 * Returns the state of the checkbox. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1782 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1783 * handle: Handle to the checkbox to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1784 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1785 int API dw_checkbox_query(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1786 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1787 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1788 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1789 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1790 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1791 * Sets the state of the checkbox. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1792 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1793 * handle: Handle to the checkbox to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1794 * value: TRUE for checked, FALSE for unchecked. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1795 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1796 void API dw_checkbox_set(HWND handle, int value) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1797 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1798 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1799 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1800 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1801 * Inserts an item into a tree window (widget) after another item. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1802 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1803 * handle: Handle to the tree to be inserted. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1804 * item: Handle to the item to be positioned after. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1805 * title: The text title of the entry. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1806 * icon: Handle to coresponding icon. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1807 * parent: Parent handle or 0 if root. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1808 * itemdata: Item specific data. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1809 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1810 HTREEITEM API dw_tree_insert_after(HWND handle, HTREEITEM item, char *title, unsigned long icon, HTREEITEM parent, void *itemdata) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1811 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1812 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1813 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1814 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1815 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1816 * Inserts an item into a tree window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1817 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1818 * handle: Handle to the tree to be inserted. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1819 * title: The text title of the entry. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1820 * icon: Handle to coresponding icon. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1821 * parent: Parent handle or 0 if root. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1822 * itemdata: Item specific data. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1823 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1824 HTREEITEM API dw_tree_insert(HWND handle, char *title, unsigned long icon, HTREEITEM parent, void *itemdata) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1825 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1826 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1827 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1828 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1829 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1830 * Sets the text and icon of an item in a tree window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1831 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1832 * handle: Handle to the tree containing the item. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1833 * item: Handle of the item to be modified. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1834 * title: The text title of the entry. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1835 * icon: Handle to coresponding icon. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1836 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1837 void API dw_tree_set(HWND handle, HTREEITEM item, char *title, unsigned long icon) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1838 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1839 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1840 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1841 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1842 * Sets the item data of a tree item. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1843 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1844 * handle: Handle to the tree containing the item. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1845 * item: Handle of the item to be modified. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1846 * itemdata: User defined data to be associated with item. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1847 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1848 void API dw_tree_set_data(HWND handle, HTREEITEM item, void *itemdata) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1849 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1850 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1851 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1852 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1853 * Gets the item data of a tree item. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1854 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1855 * handle: Handle to the tree containing the item. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1856 * item: Handle of the item to be modified. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1857 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1858 void * API dw_tree_get_data(HWND handle, HTREEITEM item) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1859 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1860 return NULL; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1861 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1862 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1863 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1864 * Sets this item as the active selection. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1865 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1866 * handle: Handle to the tree window (widget) to be selected. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1867 * item: Handle to the item to be selected. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1868 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1869 void API dw_tree_item_select(HWND handle, HTREEITEM item) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1870 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1871 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1872 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1873 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1874 * Removes all nodes from a tree. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1875 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1876 * handle: Handle to the window (widget) to be cleared. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1877 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1878 void API dw_tree_clear(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1879 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1880 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1881 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1882 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1883 * Expands a node on a tree. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1884 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1885 * handle: Handle to the tree window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1886 * item: Handle to node to be expanded. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1887 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1888 void API dw_tree_expand(HWND handle, HTREEITEM item) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1889 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1890 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1891 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1892 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1893 * Collapses a node on a tree. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1894 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1895 * handle: Handle to the tree window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1896 * item: Handle to node to be collapsed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1897 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1898 void API dw_tree_collapse(HWND handle, HTREEITEM item) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1899 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1900 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1901 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1902 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1903 * Removes a node from a tree. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1904 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1905 * handle: Handle to the window (widget) to be cleared. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1906 * item: Handle to node to be deleted. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1907 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1908 void API dw_tree_delete(HWND handle, HTREEITEM item) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1909 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1910 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1911 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1912 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1913 * Sets up the container columns. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1914 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1915 * handle: Handle to the container to be configured. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1916 * flags: An array of unsigned longs with column flags. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1917 * titles: An array of strings with column text titles. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1918 * count: The number of columns (this should match the arrays). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1919 * separator: The column number that contains the main separator. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1920 * (this item may only be used in OS/2) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1921 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1922 int API dw_container_setup(HWND handle, unsigned long *flags, char **titles, int count, int separator) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1923 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1924 return TRUE; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1925 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1926 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1927 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1928 * Sets up the filesystem columns, note: filesystem always has an icon/filename field. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1929 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1930 * handle: Handle to the container to be configured. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1931 * flags: An array of unsigned longs with column flags. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1932 * titles: An array of strings with column text titles. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1933 * count: The number of columns (this should match the arrays). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1934 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1935 int API dw_filesystem_setup(HWND handle, unsigned long *flags, char **titles, int count) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1936 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1937 char **newtitles = malloc(sizeof(char *) * (count + 2)); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1938 unsigned long *newflags = malloc(sizeof(unsigned long) * (count + 2)); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1939 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1940 newtitles[0] = "Icon"; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1941 newtitles[1] = "Filename"; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1942 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1943 newflags[0] = DW_CFA_BITMAPORICON | DW_CFA_CENTER | DW_CFA_HORZSEPARATOR | DW_CFA_SEPARATOR; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1944 newflags[1] = DW_CFA_STRING | DW_CFA_LEFT | DW_CFA_HORZSEPARATOR; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1945 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1946 memcpy(&newtitles[2], titles, sizeof(char *) * count); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1947 memcpy(&newflags[2], flags, sizeof(unsigned long) * count); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1948 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1949 dw_container_setup(handle, newflags, newtitles, count + 2, count ? 2 : 0); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1950 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1951 free(newtitles); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1952 free(newflags); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1953 return TRUE; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1954 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1955 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1956 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1957 * Obtains an icon from a module (or header in GTK). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1958 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1959 * module: Handle to module (DLL) in OS/2 and Windows. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1960 * id: A unsigned long id int the resources on OS/2 and |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1961 * Windows, on GTK this is converted to a pointer |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1962 * to an embedded XPM. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1963 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1964 unsigned long API dw_icon_load(unsigned long module, unsigned long id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1965 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1966 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1967 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1968 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1969 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1970 * Obtains an icon from a file. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1971 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1972 * filename: Name of the file, omit extention to have |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1973 * DW pick the appropriate file extension. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1974 * (ICO on OS/2 or Windows, XPM on Unix) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1975 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1976 unsigned long API dw_icon_load_from_file(char *filename) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1977 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1978 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1979 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1980 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1981 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1982 * Frees a loaded resource in OS/2 and Windows. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1983 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1984 * handle: Handle to icon returned by dw_icon_load(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1985 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1986 void API dw_icon_free(unsigned long handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1987 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1988 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1989 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1990 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1991 * Allocates memory used to populate a container. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1992 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1993 * handle: Handle to the container window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1994 * rowcount: The number of items to be populated. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1995 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1996 void * API dw_container_alloc(HWND handle, int rowcount) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1997 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1998 return NULL; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
1999 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2000 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2001 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2002 * Sets an item in specified row and column to the given data. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2003 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2004 * handle: Handle to the container window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2005 * pointer: Pointer to the allocated memory in dw_container_alloc(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2006 * column: Zero based column of data being set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2007 * row: Zero based row of data being set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2008 * data: Pointer to the data to be added. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2009 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2010 void API dw_container_set_item(HWND handle, void *pointer, int column, int row, void *data) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2011 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2012 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2013 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2014 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2015 * Changes an existing item in specified row and column to the given data. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2016 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2017 * handle: Handle to the container window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2018 * column: Zero based column of data being set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2019 * row: Zero based row of data being set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2020 * data: Pointer to the data to be added. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2021 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2022 void API dw_container_change_item(HWND handle, int column, int row, void *data) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2023 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2024 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2025 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2026 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2027 * Sets an item in specified row and column to the given data. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2028 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2029 * handle: Handle to the container window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2030 * pointer: Pointer to the allocated memory in dw_container_alloc(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2031 * column: Zero based column of data being set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2032 * row: Zero based row of data being set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2033 * data: Pointer to the data to be added. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2034 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2035 void API dw_filesystem_set_file(HWND handle, void *pointer, int row, char *filename, unsigned long icon) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2036 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2037 dw_container_set_item(handle, pointer, 0, row, (void *)&icon); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2038 dw_container_set_item(handle, pointer, 1, row, (void *)&filename); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2039 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2040 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2041 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2042 * Sets an item in specified row and column to the given data. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2043 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2044 * handle: Handle to the container window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2045 * pointer: Pointer to the allocated memory in dw_container_alloc(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2046 * column: Zero based column of data being set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2047 * row: Zero based row of data being set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2048 * data: Pointer to the data to be added. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2049 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2050 void API dw_filesystem_set_item(HWND handle, void *pointer, int column, int row, void *data) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2051 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2052 dw_container_set_item(handle, pointer, column + 2, row, data); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2053 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2054 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2055 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2056 * Sets the width of a column in the container. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2057 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2058 * handle: Handle to window (widget) of container. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2059 * column: Zero based column of width being set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2060 * width: Width of column in pixels. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2061 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2062 void API dw_container_set_column_width(HWND handle, int column, int width) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2063 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2064 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2065 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2066 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2067 * Sets the title of a row in the container. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2068 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2069 * pointer: Pointer to the allocated memory in dw_container_alloc(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2070 * row: Zero based row of data being set. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2071 * title: String title of the item. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2072 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2073 void API dw_container_set_row_title(void *pointer, int row, char *title) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2074 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2075 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2076 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2077 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2078 * Sets the title of a row in the container. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2079 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2080 * handle: Handle to the container window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2081 * pointer: Pointer to the allocated memory in dw_container_alloc(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2082 * rowcount: The number of rows to be inserted. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2083 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2084 void API dw_container_insert(HWND handle, void *pointer, int rowcount) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2085 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2086 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2087 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2088 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2089 * Removes all rows from a container. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2090 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2091 * handle: Handle to the window (widget) to be cleared. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2092 * redraw: TRUE to cause the container to redraw immediately. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2093 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2094 void API dw_container_clear(HWND handle, int redraw) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2095 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2096 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2097 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2098 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2099 * Removes the first x rows from a container. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2100 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2101 * handle: Handle to the window (widget) to be deleted from. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2102 * rowcount: The number of rows to be deleted. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2103 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2104 void API dw_container_delete(HWND handle, int rowcount) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2105 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2106 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2107 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2108 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2109 * Scrolls container up or down. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2110 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2111 * handle: Handle to the window (widget) to be scrolled. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2112 * direction: DW_SCROLL_UP, DW_SCROLL_DOWN, DW_SCROLL_TOP or |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2113 * DW_SCROLL_BOTTOM. (rows is ignored for last two) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2114 * rows: The number of rows to be scrolled. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2115 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2116 void API dw_container_scroll(HWND handle, int direction, long rows) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2117 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2118 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2119 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2120 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2121 * Starts a new query of a container. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2122 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2123 * handle: Handle to the window (widget) to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2124 * flags: If this parameter is DW_CRA_SELECTED it will only |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2125 * return items that are currently selected. Otherwise |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2126 * it will return all records in the container. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2127 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2128 char * API dw_container_query_start(HWND handle, unsigned long flags) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2129 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2130 return NULL; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2131 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2132 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2133 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2134 * Continues an existing query of a container. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2135 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2136 * handle: Handle to the window (widget) to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2137 * flags: If this parameter is DW_CRA_SELECTED it will only |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2138 * return items that are currently selected. Otherwise |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2139 * it will return all records in the container. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2140 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2141 char * API dw_container_query_next(HWND handle, unsigned long flags) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2142 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2143 return NULL; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2144 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2145 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2146 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2147 * Cursors the item with the text speficied, and scrolls to that item. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2148 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2149 * handle: Handle to the window (widget) to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2150 * text: Text usually returned by dw_container_query(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2151 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2152 void API dw_container_cursor(HWND handle, char *text) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2153 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2154 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2155 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2156 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2157 * Deletes the item with the text speficied. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2158 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2159 * handle: Handle to the window (widget). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2160 * text: Text usually returned by dw_container_query(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2161 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2162 void API dw_container_delete_row(HWND handle, char *text) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2163 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2164 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2165 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2166 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2167 * Optimizes the column widths so that all data is visible. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2168 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2169 * handle: Handle to the window (widget) to be optimized. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2170 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2171 void API dw_container_optimize(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2172 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2173 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2174 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2175 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2176 * Creates a rendering context widget (window) to be packed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2177 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2178 * id: An id to be used with dw_window_from_id. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2179 * Returns: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2180 * A handle to the widget or NULL on failure. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2181 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2182 HWND API dw_render_new(unsigned long id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2183 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2184 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2185 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2186 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2187 /* Sets the current foreground drawing color. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2188 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2189 * red: red value. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2190 * green: green value. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2191 * blue: blue value. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2192 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2193 void API dw_color_foreground_set(unsigned long value) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2194 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2195 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2196 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2197 /* Sets the current background drawing color. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2198 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2199 * red: red value. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2200 * green: green value. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2201 * blue: blue value. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2202 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2203 void API dw_color_background_set(unsigned long value) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2204 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2205 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2206 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2207 /* Draw a point on a window (preferably a render window). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2208 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2209 * handle: Handle to the window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2210 * pixmap: Handle to the pixmap. (choose only one of these) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2211 * x: X coordinate. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2212 * y: Y coordinate. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2213 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2214 void API dw_draw_point(HWND handle, HPIXMAP pixmap, int x, int y) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2215 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2216 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2217 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2218 /* Draw a line on a window (preferably a render window). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2219 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2220 * handle: Handle to the window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2221 * pixmap: Handle to the pixmap. (choose only one of these) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2222 * x1: First X coordinate. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2223 * y1: First Y coordinate. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2224 * x2: Second X coordinate. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2225 * y2: Second Y coordinate. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2226 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2227 void API dw_draw_line(HWND handle, HPIXMAP pixmap, int x1, int y1, int x2, int y2) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2228 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2229 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2230 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2231 /* Draw text on a window (preferably a render window). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2232 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2233 * handle: Handle to the window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2234 * pixmap: Handle to the pixmap. (choose only one of these) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2235 * x: X coordinate. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2236 * y: Y coordinate. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2237 * text: Text to be displayed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2238 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2239 void API dw_draw_text(HWND handle, HPIXMAP pixmap, int x, int y, char *text) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2240 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2241 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2242 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2243 /* Query the width and height of a text string. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2244 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2245 * handle: Handle to the window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2246 * pixmap: Handle to the pixmap. (choose only one of these) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2247 * text: Text to be queried. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2248 * width: Pointer to a variable to be filled in with the width. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2249 * height Pointer to a variable to be filled in with the height. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2250 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2251 void API dw_font_text_extents(HWND handle, HPIXMAP pixmap, char *text, int *width, int *height) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2252 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2253 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2254 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2255 /* Draw a rectangle on a window (preferably a render window). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2256 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2257 * handle: Handle to the window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2258 * pixmap: Handle to the pixmap. (choose only one of these) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2259 * fill: Fill box TRUE or FALSE. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2260 * x: X coordinate. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2261 * y: Y coordinate. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2262 * width: Width of rectangle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2263 * height: Height of rectangle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2264 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2265 void API dw_draw_rect(HWND handle, HPIXMAP pixmap, int fill, int x, int y, int width, int height) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2266 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2267 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2268 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2269 /* Call this after drawing to the screen to make sure |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2270 * anything you have drawn is visible. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2271 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2272 void API dw_flush(void) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2273 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2274 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2275 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2276 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2277 * Creates a pixmap with given parameters. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2278 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2279 * handle: Window handle the pixmap is associated with. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2280 * width: Width of the pixmap in pixels. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2281 * height: Height of the pixmap in pixels. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2282 * depth: Color depth of the pixmap. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2283 * Returns: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2284 * A handle to a pixmap or NULL on failure. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2285 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2286 HPIXMAP API dw_pixmap_new(HWND handle, unsigned long width, unsigned long height, int depth) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2287 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2288 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2289 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2290 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2291 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2292 * Creates a pixmap from a file. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2293 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2294 * handle: Window handle the pixmap is associated with. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2295 * filename: Name of the file, omit extention to have |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2296 * DW pick the appropriate file extension. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2297 * (BMP on OS/2 or Windows, XPM on Unix) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2298 * Returns: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2299 * A handle to a pixmap or NULL on failure. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2300 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2301 HPIXMAP API dw_pixmap_new_from_file(HWND handle, char *filename) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2302 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2303 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2304 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2305 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2306 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2307 * Creates a pixmap from internal resource graphic specified by id. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2308 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2309 * handle: Window handle the pixmap is associated with. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2310 * id: Resource ID associated with requested pixmap. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2311 * Returns: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2312 * A handle to a pixmap or NULL on failure. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2313 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2314 HPIXMAP API dw_pixmap_grab(HWND handle, ULONG id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2315 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2316 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2317 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2318 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2319 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2320 * Destroys an allocated pixmap. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2321 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2322 * pixmap: Handle to a pixmap returned by |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2323 * dw_pixmap_new.. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2324 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2325 void API dw_pixmap_destroy(HPIXMAP pixmap) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2326 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2327 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2328 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2329 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2330 * Copies from one item to another. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2331 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2332 * dest: Destination window handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2333 * destp: Destination pixmap. (choose only one). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2334 * xdest: X coordinate of destination. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2335 * ydest: Y coordinate of destination. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2336 * width: Width of area to copy. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2337 * height: Height of area to copy. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2338 * src: Source window handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2339 * srcp: Source pixmap. (choose only one). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2340 * xsrc: X coordinate of source. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2341 * ysrc: Y coordinate of source. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2342 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2343 void API dw_pixmap_bitblt(HWND dest, HPIXMAP destp, int xdest, int ydest, int width, int height, HWND src, HPIXMAP srcp, int xsrc, int ysrc) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2344 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2345 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2346 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2347 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2348 * Emits a beep. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2349 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2350 * freq: Frequency. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2351 * dur: Duration. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2352 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2353 void API dw_beep(int freq, int dur) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2354 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2355 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2356 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2357 /* Open a shared library and return a handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2358 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2359 * name: Base name of the shared library. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2360 * handle: Pointer to a module handle, |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2361 * will be filled in with the handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2362 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2363 int API dw_module_load(char *name, HMOD *handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2364 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2365 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2366 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2367 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2368 /* Queries the address of a symbol within open handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2369 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2370 * handle: Module handle returned by dw_module_load() |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2371 * name: Name of the symbol you want the address of. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2372 * func: A pointer to a function pointer, to obtain |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2373 * the address. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2374 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2375 int API dw_module_symbol(HMOD handle, char *name, void**func) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2376 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2377 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2378 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2379 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2380 /* Frees the shared library previously opened. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2381 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2382 * handle: Module handle returned by dw_module_load() |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2383 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2384 int API dw_module_close(HMOD handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2385 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2386 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2387 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2388 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2389 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2390 * Returns the handle to an unnamed mutex semaphore. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2391 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2392 HMTX API dw_mutex_new(void) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2393 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2394 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2395 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2396 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2397 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2398 * Closes a semaphore created by dw_mutex_new(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2399 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2400 * mutex: The handle to the mutex returned by dw_mutex_new(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2401 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2402 void API dw_mutex_close(HMTX mutex) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2403 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2404 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2405 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2406 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2407 * Tries to gain access to the semaphore, if it can't it blocks. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2408 * If we are in a callback we must keep the message loop running |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2409 * while blocking. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2410 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2411 * mutex: The handle to the mutex returned by dw_mutex_new(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2412 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2413 void API dw_mutex_lock(HMTX mutex) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2414 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2415 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2416 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2417 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2418 * Reliquishes the access to the semaphore. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2419 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2420 * mutex: The handle to the mutex returned by dw_mutex_new(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2421 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2422 void API dw_mutex_unlock(HMTX mutex) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2423 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2424 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2425 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2426 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2427 * Returns the handle to an unnamed event semaphore. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2428 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2429 HEV API dw_event_new(void) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2430 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2431 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2432 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2433 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2434 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2435 * Resets a semaphore created by dw_event_new(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2436 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2437 * eve: The handle to the event returned by dw_event_new(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2438 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2439 int API dw_event_reset(HEV eve) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2440 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2441 return TRUE; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2442 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2443 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2444 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2445 * Posts a semaphore created by dw_event_new(). Causing all threads |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2446 * waiting on this event in dw_event_wait to continue. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2447 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2448 * eve: The handle to the event returned by dw_event_new(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2449 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2450 int API dw_event_post(HEV eve) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2451 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2452 return TRUE; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2453 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2454 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2455 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2456 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2457 * Waits on a semaphore created by dw_event_new(), until the |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2458 * event gets posted or until the timeout expires. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2459 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2460 * eve: The handle to the event returned by dw_event_new(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2461 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2462 int API dw_event_wait(HEV eve, unsigned long timeout) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2463 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2464 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2465 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2466 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2467 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2468 * Closes a semaphore created by dw_event_new(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2469 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2470 * eve: The handle to the event returned by dw_event_new(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2471 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2472 int API dw_event_close(HEV *eve) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2473 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2474 return TRUE; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2475 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2476 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2477 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2478 * Creates a new thread with a starting point of func. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2479 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2480 * func: Function which will be run in the new thread. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2481 * data: Parameter(s) passed to the function. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2482 * stack: Stack size of new thread (OS/2 and Windows only). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2483 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2484 DWTID API dw_thread_new(void *func, void *data, int stack) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2485 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2486 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2487 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2488 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2489 * Ends execution of current thread immediately. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2490 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2491 void API dw_thread_end(void) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2492 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2493 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2494 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2495 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2496 * Returns the current thread's ID. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2497 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2498 DWTID API dw_thread_id(void) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2499 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2500 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2501 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2502 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2503 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2504 * Cleanly terminates a DW session, should be signal handler safe. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2505 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2506 * exitcode: Exit code reported to the operating system. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2507 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2508 void API dw_exit(int exitcode) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2509 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2510 exit(exitcode); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2511 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2512 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2513 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2514 * Creates a splitbar window (widget) with given parameters. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2515 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2516 * type: Value can be DW_VERT or DW_HORZ. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2517 * topleft: Handle to the window to be top or left. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2518 * bottomright: Handle to the window to be bottom or right. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2519 * Returns: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2520 * A handle to a splitbar window or NULL on failure. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2521 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2522 HWND API dw_splitbar_new(int type, HWND topleft, HWND bottomright, unsigned long id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2523 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2524 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2525 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2526 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2527 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2528 * Sets the position of a splitbar (pecentage). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2529 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2530 * handle: The handle to the splitbar returned by dw_splitbar_new(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2531 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2532 void API dw_splitbar_set(HWND handle, float percent) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2533 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2534 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2535 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2536 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2537 * Gets the position of a splitbar (pecentage). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2538 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2539 * handle: The handle to the splitbar returned by dw_splitbar_new(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2540 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2541 float API dw_splitbar_get(HWND handle) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2542 return 0.0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2543 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2544 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2545 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2546 * Pack windows (widgets) into a box from the start (or top). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2547 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2548 * box: Window handle of the box to be packed into. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2549 * item: Window handle of the item to be back. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2550 * width: Width in pixels of the item or -1 to be self determined. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2551 * height: Height in pixels of the item or -1 to be self determined. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2552 * hsize: TRUE if the window (widget) should expand horizontally to fill space given. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2553 * vsize: TRUE if the window (widget) should expand vertically to fill space given. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2554 * pad: Number of pixels of padding around the item. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2555 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2556 void API dw_box_pack_start(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2557 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2558 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2559 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2560 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2561 * Sets the default focus item for a window/dialog. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2562 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2563 * window: Toplevel window or dialog. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2564 * defaultitem: Handle to the dialog item to be default. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2565 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2566 void API dw_window_default(HWND window, HWND defaultitem) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2567 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2568 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2569 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2570 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2571 * Sets window to click the default dialog item when an ENTER is pressed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2572 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2573 * window: Window (widget) to look for the ENTER press. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2574 * next: Window (widget) to move to next (or click) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2575 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2576 void API dw_window_click_default(HWND window, HWND next) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2577 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2578 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2579 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2580 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2581 * Returns some information about the current operating environment. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2582 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2583 * env: Pointer to a DWEnv struct. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2584 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2585 void API dw_environment_query(DWEnv *env) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2586 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2587 ULONG Build; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2588 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2589 if(!env) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2590 return; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2591 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2592 strcpy(env->osName,"MacOS"); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2593 env->MajorVersion = 10; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2594 env->MinorVersion = 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2595 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2596 env->MinorBuild = 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2597 env->MajorBuild = 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2598 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2599 strcpy(env->buildDate, __DATE__); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2600 strcpy(env->buildTime, __TIME__); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2601 env->DWMajorVersion = DW_MAJOR_VERSION; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2602 env->DWMinorVersion = DW_MINOR_VERSION; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2603 env->DWSubVersion = DW_SUB_VERSION; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2604 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2605 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2606 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2607 * Opens a file dialog and queries user selection. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2608 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2609 * title: Title bar text for dialog. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2610 * defpath: The default path of the open dialog. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2611 * ext: Default file extention. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2612 * flags: DW_FILE_OPEN or DW_FILE_SAVE. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2613 * Returns: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2614 * NULL on error. A malloced buffer containing |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2615 * the file path on success. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2616 * |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2617 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2618 char * API dw_file_browse(char *title, char *defpath, char *ext, int flags) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2619 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2620 return NULL; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2621 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2622 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2623 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2624 * Execute and external program in a seperate session. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2625 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2626 * program: Program name with optional path. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2627 * type: Either DW_EXEC_CON or DW_EXEC_GUI. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2628 * params: An array of pointers to string arguements. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2629 * Returns: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2630 * -1 on error. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2631 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2632 int API dw_exec(char *program, int type, char **params) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2633 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2634 return -1; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2635 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2636 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2637 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2638 * Loads a web browser pointed at the given URL. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2639 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2640 * url: Uniform resource locator. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2641 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2642 int API dw_browse(char *url) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2643 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2644 return -1; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2645 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2646 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2647 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2648 * Returns a pointer to a static buffer which containes the |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2649 * current user directory. Or the root directory (C:\ on |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2650 * OS/2 and Windows). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2651 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2652 char * API dw_user_dir(void) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2653 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2654 static char _user_dir[1024] = ""; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2655 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2656 if(!_user_dir[0]) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2657 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2658 char *home = getenv("HOME"); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2659 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2660 if(home) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2661 strcpy(_user_dir, home); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2662 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2663 strcpy(_user_dir, "/"); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2664 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2665 return _user_dir; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2666 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2667 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2668 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2669 * Call a function from the window (widget)'s context. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2670 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2671 * handle: Window handle of the widget. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2672 * function: Function pointer to be called. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2673 * data: Pointer to the data to be passed to the function. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2674 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2675 void API dw_window_function(HWND handle, void *function, void *data) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2676 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2677 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2678 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2679 /* Functions for managing the user data lists that are associated with |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2680 * a given window handle. Used in dw_window_set_data() and |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2681 * dw_window_get_data(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2682 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2683 UserData *_find_userdata(UserData **root, char *varname) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2684 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2685 UserData *tmp = *root; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2686 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2687 while(tmp) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2688 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2689 if(stricmp(tmp->varname, varname) == 0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2690 return tmp; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2691 tmp = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2692 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2693 return NULL; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2694 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2695 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2696 int _new_userdata(UserData **root, char *varname, void *data) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2697 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2698 UserData *new = _find_userdata(root, varname); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2699 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2700 if(new) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2701 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2702 new->data = data; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2703 return TRUE; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2704 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2705 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2706 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2707 new = malloc(sizeof(UserData)); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2708 if(new) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2709 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2710 new->varname = strdup(varname); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2711 new->data = data; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2712 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2713 new->next = NULL; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2714 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2715 if (!*root) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2716 *root = new; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2717 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2718 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2719 UserData *prev = NULL, *tmp = *root; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2720 while(tmp) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2721 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2722 prev = tmp; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2723 tmp = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2724 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2725 if(prev) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2726 prev->next = new; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2727 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2728 *root = new; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2729 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2730 return TRUE; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2731 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2732 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2733 return FALSE; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2734 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2735 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2736 int _remove_userdata(UserData **root, char *varname, int all) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2737 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2738 UserData *prev = NULL, *tmp = *root; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2739 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2740 while(tmp) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2741 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2742 if(all || stricmp(tmp->varname, varname) == 0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2743 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2744 if(!prev) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2745 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2746 *root = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2747 free(tmp->varname); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2748 free(tmp); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2749 if(!all) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2750 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2751 tmp = *root; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2752 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2753 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2754 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2755 /* If all is true we should |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2756 * never get here. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2757 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2758 prev->next = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2759 free(tmp->varname); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2760 free(tmp); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2761 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2762 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2763 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2764 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2765 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2766 prev = tmp; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2767 tmp = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2768 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2769 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2770 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2771 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2772 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2773 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2774 * Add a named user data item to a window handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2775 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2776 * window: Window handle of signal to be called back. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2777 * dataname: A string pointer identifying which signal to be hooked. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2778 * data: User data to be passed to the handler function. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2779 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2780 void API dw_window_set_data(HWND window, char *dataname, void *data) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2781 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2782 WindowData *blah = (WindowData *)_get_window_pointer(window); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2783 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2784 if(!blah) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2785 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2786 if(!dataname) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2787 return; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2788 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2789 blah = calloc(1, sizeof(WindowData)); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2790 WinSetWindowPtr(window, QWP_USER, blah); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2791 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2792 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2793 if(data) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2794 _new_userdata(&(blah->root), dataname, data); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2795 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2796 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2797 if(dataname) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2798 _remove_userdata(&(blah->root), dataname, FALSE); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2799 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2800 _remove_userdata(&(blah->root), NULL, TRUE); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2801 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2802 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2803 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2804 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2805 * Gets a named user data item to a window handle. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2806 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2807 * window: Window handle of signal to be called back. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2808 * dataname: A string pointer identifying which signal to be hooked. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2809 * data: User data to be passed to the handler function. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2810 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2811 void *dw_window_get_data(HWND window, char *dataname) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2812 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2813 WindowData *blah = (WindowData *)_get_window_pointer(window); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2814 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2815 if(blah && blah->root && dataname) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2816 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2817 UserData *ud = _find_userdata(&(blah->root), dataname); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2818 if(ud) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2819 return ud->data; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2820 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2821 return NULL; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2822 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2823 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2824 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2825 * Add a callback to a timer event. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2826 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2827 * interval: Milliseconds to delay between calls. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2828 * sigfunc: The pointer to the function to be used as the callback. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2829 * data: User data to be passed to the handler function. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2830 * Returns: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2831 * Timer ID for use with dw_timer_disconnect(), 0 on error. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2832 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2833 int API dw_timer_connect(int interval, void *sigfunc, void *data) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2834 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2835 return 0; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2836 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2837 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2838 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2839 * Removes timer callback. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2840 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2841 * id: Timer ID returned by dw_timer_connect(). |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2842 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2843 void API dw_timer_disconnect(int id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2844 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2845 SignalHandler *prev = NULL, *tmp = Root; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2846 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2847 /* 0 is an invalid timer ID */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2848 if(!id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2849 return; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2850 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2851 while(tmp) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2852 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2853 if(tmp->id == id) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2854 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2855 if(prev) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2856 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2857 prev->next = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2858 free(tmp); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2859 tmp = prev->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2860 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2861 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2862 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2863 Root = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2864 free(tmp); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2865 tmp = Root; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2866 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2867 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2868 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2869 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2870 prev = tmp; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2871 tmp = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2872 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2873 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2874 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2875 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2876 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2877 * Add a callback to a window event. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2878 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2879 * window: Window handle of signal to be called back. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2880 * signame: A string pointer identifying which signal to be hooked. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2881 * sigfunc: The pointer to the function to be used as the callback. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2882 * data: User data to be passed to the handler function. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2883 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2884 void API dw_signal_connect(HWND window, char *signame, void *sigfunc, void *data) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2885 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2886 ULONG message = 0L; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2887 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2888 if(window && signame && sigfunc) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2889 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2890 if((message = _findsigmessage(signame)) != 0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2891 _new_signal(message, window, 0, sigfunc, data); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2892 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2893 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2894 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2895 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2896 * Removes callbacks for a given window with given name. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2897 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2898 * window: Window handle of callback to be removed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2899 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2900 void API dw_signal_disconnect_by_name(HWND window, char *signame) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2901 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2902 SignalHandler *prev = NULL, *tmp = Root; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2903 ULONG message; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2904 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2905 if(!window || !signame || (message = _findsigmessage(signame)) == 0) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2906 return; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2907 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2908 while(tmp) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2909 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2910 if(tmp->window == window && tmp->message == message) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2911 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2912 if(prev) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2913 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2914 prev->next = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2915 free(tmp); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2916 tmp = prev->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2917 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2918 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2919 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2920 Root = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2921 free(tmp); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2922 tmp = Root; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2923 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2924 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2925 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2926 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2927 prev = tmp; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2928 tmp = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2929 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2930 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2931 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2932 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2933 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2934 * Removes all callbacks for a given window. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2935 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2936 * window: Window handle of callback to be removed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2937 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2938 void API dw_signal_disconnect_by_window(HWND window) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2939 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2940 SignalHandler *prev = NULL, *tmp = Root; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2941 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2942 while(tmp) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2943 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2944 if(tmp->window == window) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2945 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2946 if(prev) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2947 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2948 prev->next = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2949 free(tmp); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2950 tmp = prev->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2951 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2952 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2953 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2954 Root = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2955 free(tmp); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2956 tmp = Root; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2957 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2958 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2959 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2960 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2961 prev = tmp; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2962 tmp = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2963 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2964 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2965 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2966 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2967 /* |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2968 * Removes all callbacks for a given window with specified data. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2969 * Parameters: |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2970 * window: Window handle of callback to be removed. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2971 * data: Pointer to the data to be compared against. |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2972 */ |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2973 void API dw_signal_disconnect_by_data(HWND window, void *data) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2974 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2975 SignalHandler *prev = NULL, *tmp = Root; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2976 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2977 while(tmp) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2978 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2979 if(tmp->window == window && tmp->data == data) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2980 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2981 if(prev) |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2982 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2983 prev->next = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2984 free(tmp); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2985 tmp = prev->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2986 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2987 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2988 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2989 Root = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2990 free(tmp); |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2991 tmp = Root; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2992 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2993 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2994 else |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2995 { |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2996 prev = tmp; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2997 tmp = tmp->next; |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2998 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
2999 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
3000 } |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
3001 |
456c13a6e332
A basically empty DW source file, if we ever port to another platform
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff
changeset
|
3002 |