forked from lorglas/yab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
556 lines (545 loc) · 37.8 KB
master
/
YabInterface.h
File metadata and controls
- Code
- Blame
556 lines (545 loc) · 37.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
#ifndef YABINTERFACE_H
#define YABINTERFACE_H
#ifdef __cplusplus
#include <Application.h>
#include <FilePanel.h>
#include <GraphicsDefs.h>
#include <ListItem.h>
#include <Menu.h>
#include <PropertyInfo.h>
#include <String.h>
#include <TranslatorRoster.h>
#include "YabList.h"
#include "global.h"
#include "config.h"
#include <FileGameSound.h>
class YabInterface : public BApplication
{
public:
YabInterface(int argc, char** argv, const char* signature);
~YabInterface();
status_t GetSupportedSuites(BMessage *msg);
BHandler *ResolveSpecifier(BMessage *msg, int32 index, BMessage *spec, int32 form, const char *prop);
const char* GetApplicationDirectory();
void OpenWindow(const BRect frame, const char* id, const char* title);
int CloseWindow(const char* view);
void MessageReceived(BMessage *message);
bool QuitRequested();
bool ExitRequested();
void CreateButton(BRect frame, const char* id, const char* title, const char* window);
int CreateImage(BPoint coordinates, const char* imagefile, const char* window);
int CreateImage(BRect frame, const char* imagefile, const char* window);
int CreateSVG(BRect frame, const char* imagefile, const char* window);
void DrawText(BPoint coordinates, const char* text, const char* window);
void DrawRect(BRect frame, const char* window);
void DrawRoundRect(double x1, double y1, double x2, double y2,float r1, float r2, const char* window);
void DrawClear(const char* window, bool isExit);
void CreateAlert(const char* text, const char* button1, const char* option);
void CreateMenu(const char* menuhead, const char* menuitem, const char *shortcut, const char* window);
void CreateTextControl(BRect frame, const char *id, const char* label, const char* text, const char* window);
void CreateCheckBox(double x, double y, const char *id, const char* label, int isActivated, const char* window);
void CreateRadioButton(double x, double y, const char* groupID, const char* label, int isActivated, const char* window);
void CreateListBox(BRect frame, const char* title, int scrollbar, const char* window);
void CreateDropBox(BRect frame, const char* title, const char* label, const char* window);
void CreateItem(const char* id, const char* item);
void RemoveItem(const char* title, const char* item);
void ClearItems(const char* title);
void CreateText(double x, double y, const char *id, const char* text, const char* window);
void Text2(BRect frame, const char *id, const char* text, const char* window);
void TextAlign(const char* txt, const char *option);
const char* LoadFilePanel(const char* mode, const char* title, const char* directory);
const char* SaveFilePanel(const char* mode, const char* title, const char* directory, const char*filename);
void SetLayout(const char* layout, const char* window);
void WindowSet(const char* option, const char* value, const char* window);
void WindowSet(const char* option, int r, int g, int b, const char* window);
void WindowSet(const char* option, double x, double y, const char* window);
void WindowSet(const char* option, const char* window);
void WindowClear(const char* window);
void TextEdit(BRect frame, const char* title, int scrollbar, const char* window);
void TextAdd(const char* title, const char* text);
void TextSet(const char* title, const char* option);
void TextSet(const char* title, const char* option, int value);
void TextSet(const char* title, const char* option, const char* value);
void TextColor(const char* title, const char* option, const char* command);
void TextColor(const char* title, const char* option, int r, int g, int b);
void TextClear(const char* title);
const char* TextGet(const char* title);
const char* TextGet(const char* title, int linenum);
const char* TextGet6(const char* title, const char* option);
int TextGet(const char* title, const char* option);
double TextGet(const char* title, const char* option, int line);
int TextGet(const char* title, const char* option, const char* option2);
void DrawSet1(const char* option, const char* window);
void DrawSet2(int fillorstroke, const char* mypattern);
void View(BRect frame, const char* id, const char* view);
void ViewTransparency(BRect frame, const char* id, const char* view);
void BoxView(BRect frame, const char* id, const char* text, int lineType, const char* view);
void BoxViewSet(const char* id, const char* option, const char* value);
void Tab(BRect frame, const char* id, const char* names, const char* view);
void TabSet(const char* id, int num);
void TabAdd(const char* id, const char* name);
void TabDel(const char* id, int num);
int TabViewGet(const char* id);
void DrawDot(double x, double y, const char* window);
void DrawLine(double x1, double y1, double x2, double y2, const char* window);
void DrawCircle(double x, double y, double r, const char* window);
void DrawEllipse(double x, double y, double r1, double r2, const char* window);
void DrawArc(double x1, double y1, double r1, double r2, double r3, double r4, const char* window);
void DrawCurve(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, const char* window);
void DrawTriangle(double x1, double y1, double x2, double y2, double x3, double y3, const char* window);
void Slider(BRect frame, const char* id, const char* title, int min, int max, const char* view);
void Slider(BRect frame, const char* id, const char* title, int min, int max, const char* option, const char* view);
void SetSlider(const char* id, const char* label1, const char* label2);
void SetSlider(const char* id, const char* bottomtop, int count);
void SetSlider(const char* id, const char* part, int r, int g, int b);
void SetSlider(const char* id, int value);
void SetOption(const char* id, const char* option, const char* value);
void SetOption(const char* id, const char* option, int r, int g, int b);
void SetOption(const char* id, const char* option, double x, double y);
void SetOption(const char* id, const char* option);
void SetOption(const char* id, const char* option, int value);
void DropZone(const char* view);
void Scale(const char* id, const char* option, double value);
void ColorControl(double x, double y, const char* id, const char* view);
void ColorControl(const char* id, int r, int g, int b);
void TextControl(const char* id, const char* text);
void TextControl(const char* id, int mode);
void TextControl(const char* id, const char* option, const char* value);
void TextControl(const char* id);
void TreeBox1(BRect frame, const char* id, int scrollbarType, const char* view);
void TreeBox2(const char* id, const char* item);
void TreeBox3(const char* id, const char* head, const char* item, int isExpanded);
void TreeBox4(const char* id);
void TreeBox5(const char* id, const char* item);
void TreeBox7(const char* id, int pos);
void TreeBox8(const char* id, int pos);
void TreeBox9(const char* id, const char* head, const char* item);
void TreeBox10(const char* id, const char* head);
void TreeBox11(const char* id, const char* head);
void TreeBox12(const char* id, const char* item, int pos);
void Launch(const char* strg);
const char* TreeboxGet(const char* treebox, int pos);
int TreeboxCount(const char* treebox);
void ButtonImage(double x, double y,const char* id,const char* enabledon, const char* enabledoff, const char* disabled, const char* view);
void CheckboxImage(double x, double y,const char* id,const char* enabledon, const char* enabledoff, const char *disabledon, const char *disabledoff, int isActivated, const char* view);
void CheckboxSet(const char* id, int isActivated);
void RadioSet(const char* id, int isActivated);
void ToolTips(const char* view, const char* text);
//void ToolTips2(const char* id, const char* view, const char* text);
void ToolTipsColor(const char* color, int r, int g, int b);
void TreeSort(const char* view);
void ListSort(const char* view);
void FileBox(BRect frame, const char* id, bool scrollbartype, const char* option, const char* view);
void FileBoxAdd(const char* id, const char* name, int32 pos, double maxWidth, double minWidth, double width, const char* option);
void FileBoxClear(const char* view);
void ColumnBoxAdd(const char* id, int column, int position, int height, const char* item);
void ColumnBoxSelect(const char *columnbox, int position);
void ColumnBoxRemove(const char *columnbox, int position);
void ColumnBoxColor(const char *columnbox, const char* option, int r, int g, int b);
int Printer(const char* docname, const char *view, const char* config);
void PrinterConfig(const char* config);
void Calendar(double x, double y, const char* id, const char* format, const char* date, const char* view);
const char* Calendar(const char* id);
void Calendar(const char* id, const char* date);
void MouseSet(const char* opt);
void Scrollbar(const char* id, int format, const char* view);
void ScrollbarSet(const char* scrollview, const char* option, double position);
void ScrollbarSet(const char* scrollview, const char* option, double opt1, double opt2);
void ScrollbarSet(const char* scrollview, const char* option);
double ScrollbarGet(const char* scrollview, const char* option);
const char* ListboxGet(const char* listbox, int pos);
int ListboxCount(const char* listbox);
void ListboxAdd(const char* listbox, const char* item);
void ListboxAdd(const char* listbox, int pos, const char* item);
void ListboxSelect(const char* listbox, int pos);
void ListboxRemove(const char* listbox, int pos);
void SplitView(BRect frame, const char* id, int isVertical, int style, const char* view);
void SplitView(const char* splitView, const char* option, double position);
void SplitView(const char* splitView, const char* option, double left, double right);
double SplitViewGet(const char* splitView, const char* option);
void StackViews(BRect frame, const char* id, int number, const char* view);
void StackViews(const char* stackView, int num);
int StackViewGet(const char* stackView);
void DrawSet3(const char* option, int transparency);
void TextURL(double x, double y, const char* id, const char* text, const char* url, const char* view);
void TextURL(const char* id, const char* option, int r, int g, int b);
void Menu(const char* menuHead, int isRadio, const char* view);
void SubMenu(const char* menuHead, const char* menuItem, const char* subMenuItem, const char* modifiers, const char* view);
void SubMenu(const char* menuHead, const char* menuItem, int isRadio, const char* view);
void SpinControl(double x, double y, const char* id, const char* label, int min, int max, int step, const char* view);
void SpinControl(const char* spinControl, int value);
int SpinControlGet(const char *spinControl);
const char* PopUpMenu(double x, double y, const char* menuItems, const char* view);
void DropBoxSelect(const char* dropbox, int position);
void DropBoxClear(const char* dropbox);
void DropBoxRemove(const char* dropbox, int position);
int DropBoxCount(const char* dropbox);
const char* DropBoxGet(const char* dropbox, int position);
int ColorControlGet(const char* colorcontrol, const char* option);
int SliderGet(const char* slider);
void SubMenu3(const char* menuHead, const char* menuItem, const char* subMenuItem, const char* option, const char* view);
void Menu3(const char* menuHead, const char* menuItem, const char* option,const char* view);
double ScrollbarWidth();
double MenuHeight();
double TabHeight();
const char* ColumnBoxGet(const char *columnbox, int column, int position);
int ColumnBoxCount(const char *columnbox);
const char* TextControlGet(const char* id);
int WindowGet(const char* view, const char* option);
int ViewGet(const char* view, const char* option); //vasper
double DrawGet(const char* option, const char* txt, const char* view);
int DrawGet(BPoint coord, const char* option, const char* view);
const char* DrawGet(const char* option);
void ClipboardCopy(const char* text);
const char* ClipboardPaste();
int DeskbarParam(const char* option);
int DesktopParam(bool isWidth);
int NewAlert(const char* text, const char* button1, const char* button2, const char* button3, const char* option);
int ThreadKill(const char* option, int id);
int ThreadGet(const char* option, const char* appname);
const int IsMouseIn(const char* view);
const char* GetMouseIn();
const char* GetMouseMessages(const char* view);
const char* KeyboardMessages(const char* view);
const char* GetMessageString();
int MessageSend(const char* app, const char* msg);
void SetLocalize(const char* path);
void Bitmap(double w, double h, const char* id);
int BitmapColor(double x, double y, const char* id, const char* option);
void BitmapDraw(double x, double y, const char* bitmap, const char* mode, const char* view);
void BitmapDraw(BRect frame, const char* bitmap, const char* mode, const char* view);
void BitmapGet(BRect frame, const char* id, const char* bitmap);
void BitmapGet(double w, const char* id, const char* path);
int BitmapGet(const char* id, const char* option);
int BitmapLoad(const char* id, const char* option);
void BitmapGetIcon(const char* id, const char* option, const char* path);
void BitmapDrag(const char* bitmap);
void BitmapRemove(const char* bitmap);
void Screenshot(BRect frame, const char* bitmap);
int BitmapSave(const char* id, const char* filename, const char* type);
void Canvas(BRect frame, const char* id, const char* view);
void Loudness(float volume);
float LoudnessGet();
int Sound(const char* filename, int status);
void SoundStop(int32 id);
void SoundWait(int32 id);
int MediaSound(const char* filename);
void MediaSoundStop(int32 finished);
int IsComputerOn();
void ShortCut(const char* view, const char* key, const char* msg);
void DrawSet(const char* option, const char* color,const char* view);
void Treebox13(const char* id,const char* option, int pos);
int TreeboxGetOpt(const char* id, const char* option, int pos);
int ListboxGetNum(const char* id);
int DropboxGetNum(const char* id);
int TreeboxGetNum(const char* id);
int ColumnboxGetNum(const char* id);
void Attribute1(const char* type, const char* name, const char* value, const char* filename);
void AttributeClear(const char* name, const char* filename);
const char* AttributeGet1(const char* name, const char* filename);
double AttributeGet2(const char* name, const char* filename);
const char* Available_Languages(const char* name); //const char* name, added 20210224 lorglas
const char* Available_TimeZones(); //const char* name, added 20210224 lorglas
const int GetErrorCode();
void Error(const char* id, const char* type);
void ErrorGen(const char* msg);
void SetCurrentLineNumber(int line, const char* libname);
void SetMainFileName(const char* name);
void KillThread(int code);
void StatusBar(BRect frame, const char* id, const char* label1, const char* label2, const char* view);
void StatusBarSet(const char* id, const char* label1, const char* label2, double state);
void StatusBarSet(BRect frame, const char* id, const char* view);
void StatusBarSet(const char* id, int r, int g, int b);
void RefsReceived(BMessage *message);
int PCWorkspaces();
int Default_TimeZone();
private:
BFileGameSound* fPlayer;
int status;
void RemoveView(BView* myView);
void GetMMsgInfo(BString &t, int mouseStateInfo, int mouseLButton, int mouseMButton, int mouseRButton, int x, int y, const char* name);
BBitmap* loadImage(const char* name);
static int compare(BListItem **firstArg, BListItem **secondArg);
void CleanupYabTabView(BView* view);
void CleanupSubchildView(BView* view);
BTranslatorRoster *Roster;
char ApplicationDirectory[1024];
char loadPanel[1280];
char columntext[4096];
char mousemessagebuffer[64];
char keyboardbuffer[27];
char messagebuffer[32567];
char attrbuffer[32567];
char mouseoverbuffer[256];
BFilePanel *fopen, *fsave;
thread_id myThread;
int errorCode;
bool drawStroking;
int yabAlpha;
pattern yabPattern;
YabList *viewList;
int currentLineNumber;
const char* mainFileName;
bool exiting;
BPropertyInfo *myProps;
BString localMessage;
BString currentLib;
BList *yabbitmaps;
BList *yabcanvas;
BString lastMouseMsg;
};
#else
typedef
struct YabInterface
YabInterface;
#endif
#ifdef __cplusplus
extern "C" {
#endif
extern int mmain(int argc, char** argv, YabInterface* yab); /* ANSI C prototypes */
extern const char* yi_GetApplicationDirectory(YabInterface *yab);
extern void yi_OpenWindow(double x1,double y1,double x2,double y2, const char* id, const char* title, YabInterface* yab);
extern int yi_CloseWindow(const char* view, YabInterface* yab);
extern void yi_CreateButton(double x1,double y1,double x2,double y2, const char* id, const char* title, const char* window, YabInterface* yab);
extern int yi_CreateImage(double x,double y,const char* imagefile, const char* window, YabInterface* yab);
extern int yi_CreateImage2(double x1,double y1,double x2, double y2,const char* imagefile, const char* window, YabInterface* yab);
extern int yi_CreateSVG(double x1,double y1,double x2, double y2,const char* imagefile, const char* window, YabInterface* yab);
extern void yi_CreateMenu(const char* menuhead, const char* menuitem, const char *shortcut, const char* window, YabInterface* yab);
extern void yi_CreateTextControl(double x1, double y1, double x2, double y2, const char *id, const char* label, const char* text, const char* window, YabInterface *yab);
extern void yi_CreateCheckBox(double x, double y, const char *id, const char* label, int isActivated, const char* window, YabInterface *yab);
extern void yi_CreateRadioButton(double x, double y, const char* groupID, const char* label, int isActivated, const char* window, YabInterface *yab);
extern void yi_CreateListBox(double x1,double y1,double x2,double y2, const char* title, int scrollbar, const char* window, YabInterface *yab);
extern void yi_CreateDropBox(double x1, double y1,double x2,double y2, const char* title,const char* label, const char* window, YabInterface *yab);
extern void yi_CreateItem(const char* id,const char* item, YabInterface *yab);
extern void yi_RemoveItem(const char* title,const char* item, YabInterface *yab);
extern void yi_ClearItems(const char* title, YabInterface *yab);
extern void yi_DrawText(double x, double y, const char* text, const char* window, YabInterface* yab);
extern void yi_DrawRect(double x1, double y1, double x2, double y2, const char* window, YabInterface* yab);
extern void yi_DrawRoundRect(double x1, double y1, double x2, double y2, float r1, float r2, const char* window, YabInterface* yab);
extern void yi_DrawClear(const char* window, YabInterface* yab);
extern void yi_CreateAlert(const char* text, const char* button1, const char* type, YabInterface* yab);
extern void yi_CreateText(double x, double y, const char *id, const char* text, const char* window, YabInterface *yab);
extern void yi_Text2(double x1, double y1, double x2, double y2, const char *id, const char* text, const char* window, YabInterface *yab);
extern void yi_TextAlign(const char* txt, const char *option, YabInterface *yab);
extern void yi_Translate(char* text, char result[]);
extern void yi_MenuTranslate(char* text, char result[]);
extern void yi_SetLocalize();
extern void yi_StopLocalize();
extern const char* yi_LoadFilePanel(const char* mode, const char* title, const char* directory, YabInterface* yab);
extern const char* yi_SaveFilePanel(const char* mode, const char* title, const char* directory, const char*filename, YabInterface* yab);
extern void yi_SetLayout(const char* layout, const char* window, YabInterface *yab);
extern void yi_WindowSet1(const char* option, const char* value, const char* window, YabInterface *yab);
extern void yi_WindowSet2(const char* option, int r, int g, int b, const char* window, YabInterface *yab);
extern void yi_WindowSet3(const char* option, double x, double y, const char* window, YabInterface *yab);
extern void yi_WindowSet4(const char* option, const char* window, YabInterface *yab);
extern void yi_WindowClear(const char* window, YabInterface *yab);
extern void yi_TextEdit(double x1, double y1, double x2, double y2, const char* title, int scrollbar, const char* window, YabInterface *yab);
extern void yi_TextAdd(const char* title, const char* text, YabInterface *yab);
extern void yi_TextSet(const char* title, const char* option, YabInterface *yab);
extern void yi_TextClear(const char* title, YabInterface *yab);
extern const char* yi_TextGet(const char* title, YabInterface *yab);
extern const char* yi_TextGet3(const char* title, int linenum, YabInterface *yab);
extern const char* yi_TextGet6(const char* title, const char* option, YabInterface *yab);
extern double yi_TextGet4(const char* title, const char* option, int line, YabInterface *yab);
extern int yi_TextGet5(const char* title, const char* option, const char* option2, YabInterface *yab);
extern void yi_TextSet2(const char* title, const char* option, int value, YabInterface *yab);
extern void yi_TextSet3(const char* title, const char* option, const char* value, YabInterface *yab);
extern void yi_TextColor1(const char* title, const char* option, const char* command, YabInterface *yab);
extern void yi_TextColor2(const char* title, const char* option, int r, int g, int b, YabInterface *yab);
extern int yi_TextGet2(const char* title, const char* option, YabInterface *yab);
extern void yi_DrawSet1(const char* option, const char* window, YabInterface *yab);
extern void yi_DrawSet2(int fillorstroke, const char* mypattern, YabInterface *yab);
extern void yi_View(double x1, double y1, double x2, double y2, const char* id, const char* view, YabInterface *yab);
extern void ViewTransparency(double x1, double y1, double x2, double y2, const char* id, const char* view, YabInterface *yab);
extern void yi_BoxView(double x1, double y1, double x2, double y2, const char* id, const char* text, int lineType, const char* view, YabInterface *yab);
extern void yi_BoxViewSet(const char* id, const char* option, const char* value, YabInterface *yab);
extern void yi_Tab(double x1, double y1, double x2, double y2, const char* id, const char* names, const char* view, YabInterface *yab);
extern void yi_TabSet(const char* id, int num, YabInterface *yab);
extern void yi_TabAdd(const char* id, const char* name, YabInterface *yab);
extern void yi_TabDel(const char* id, int num, YabInterface *yab);
extern int yi_TabViewGet(const char* id, YabInterface *yab);
extern void yi_DrawDot(double x, double y, const char* window, YabInterface *yab);
extern void yi_DrawLine(double x1, double y1, double x2, double y2, const char* window, YabInterface *yab);
extern void yi_DrawCircle(double x, double y, double r, const char* window, YabInterface *yab);
extern void yi_DrawEllipse(double x, double y, double r1, double r2, const char* window, YabInterface *yab);
extern void yi_DrawArc(double x1, double y1, double r1, double r2, double r3, double r4, const char* window, YabInterface *yab);
extern void yi_DrawTriangle(double x1, double y1, double x2, double y2, double x3, double y3, const char* window, YabInterface *yab);
extern void yi_DrawCurve(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, const char* window, YabInterface *yab);
extern void yi_Slider1(double x1, double y1, double x2, double y2, const char* id, const char* title, int min, int max, const char* view, YabInterface *yab);
extern void yi_Slider2(double x1, double y1, double x2, double y2, const char* id, const char* title, int min, int max, const char* option, const char* view, YabInterface *yab);
extern void yi_SetSlider1(const char* id, const char* label1, const char* label2, YabInterface *yab);
extern void yi_SetSlider2(const char* id, const char* bottomtop, int count, YabInterface *yab);
extern void yi_SetSlider3(const char* id, const char* part, int r, int g, int b, YabInterface *yab);
extern void yi_SetSlider4(const char* id, int value, YabInterface *yab);
extern void yi_SetOption1(const char* id, const char* option, const char* value, YabInterface *yab);
extern void yi_SetOption2(const char* id, const char* option, int r, int g, int b, YabInterface *yab);
extern void yi_SetOption3(const char* id, const char* option, double x, double y, YabInterface *yab);
extern void yi_SetOption4(const char* id, const char* option, YabInterface *yab);
extern void yi_SetOption5(const char* id, const char* option, int value, YabInterface *yab);
extern void yi_DropZone(const char* view, YabInterface *yab);
extern void yi_Scale(const char* id, const char* option, double value, YabInterface *yab);
extern void yi_ColorControl1(double x, double y, const char* id, const char* view, YabInterface* yab);
extern void yi_ColorControl2(const char* id, int r, int g, int b, YabInterface* yab);
extern void yi_TextControl2(const char* id, const char* text, YabInterface* yab);
extern void yi_TextControl3(const char* id, int mode, YabInterface* yab);
extern void yi_TextControl5(const char* id, YabInterface* yab);
extern void yi_TextControl4(const char* id, const char* option, const char* value, YabInterface* yab);
extern void yi_TreeBox1(double x1, double y1, double x2, double y2, const char* id, int scrollbarType, const char* view, YabInterface* yab);
extern void yi_TreeBox2(const char* id, const char* item, YabInterface* yab);
extern void yi_TreeBox3(const char* id, const char* head, const char* item, int isExpanded, YabInterface* yab);
extern void yi_TreeBox4(const char* id, YabInterface* yab);
extern void yi_TreeBox5(const char* id, const char* item, YabInterface* yab);
extern void yi_TreeBox7(const char* id, int pos, YabInterface* yab);
extern void yi_TreeBox8(const char* id, int pos, YabInterface* yab);
extern void yi_TreeBox9(const char* id, const char* head, const char* item, YabInterface* yab);
extern void yi_TreeBox10(const char* id, const char* head, YabInterface* yab);
extern void yi_TreeBox11(const char* id, const char* head, YabInterface* yab);
extern void yi_TreeBox12(const char* id, const char* item, int pos, YabInterface* yab);
extern const char* yi_TreeboxGet(const char* treebox, int pos, YabInterface* yab);
extern int yi_TreeboxCount(const char* treebox, YabInterface* yab);
extern void yi_ButtonImage(double x,double y,const char* id,const char* enabledon, const char* enabledoff, const char* disabled, const char* view, YabInterface *yab);
extern void yi_CheckboxImage(double x,double y,const char* id,const char* enabledon, const char* enabledoff, const char *disabledon, const char *disabledoff, int isActivated, const char* view, YabInterface *yab);
extern void yi_CheckboxSet(const char* id, int isActivated, YabInterface* yab);
extern void yi_RadioSet(const char* id, int isActivated, YabInterface* yab);
extern const char* yi_TextControlGet(const char* id, YabInterface* yab);
extern void yi_ToolTip(const char* view, const char* text, YabInterface *yab);
//extern void yi_ToolTip2(const char* id,const char* view, const char* text, YabInterface *yab);
extern void yi_ToolTipColor(const char* color, int r, int g, int b, YabInterface *yab);
extern void yi_TreeSort(const char* view, YabInterface *yab);
extern void yi_ListSort(const char* view, YabInterface *yab);
extern void yi_FileBox(double x1, double y1, double x2, double y2, const char* id, int scrollbartype, const char* option, const char* view, YabInterface *yab);
extern void yi_FileBoxAdd2(const char* id, const char* name, int pos, double maxWidth, double minWidth, double width, const char* option, YabInterface *yab);
extern void yi_FileBoxClear(const char* view, YabInterface *yab);
extern void yi_ColumnBoxAdd(const char* id, int column, int position, int height, const char* item, YabInterface *yab);
extern void yi_ColumnBoxSelect(const char *columnbox, int position, YabInterface *yab);
extern void yi_ColumnBoxRemove(const char *columnbox, int position, YabInterface *yab);
extern void yi_ColumnBoxColor(const char *columnbox, const char* option, int r, int g, int b, YabInterface *yab);
extern int yi_Printer(const char* docname, const char *view, const char* config, YabInterface *yab);
extern void yi_PrinterConfig(const char* config, YabInterface *yab);
extern const char* yi_ColumnBoxGet(const char *columnbox, int column, int position, YabInterface *yab);
extern int yi_ColumnBoxCount(const char *columnbox, YabInterface *yab);
extern int yi_DeskbarPosition(YabInterface *yab);
extern int yi_DeskbarExpanded(YabInterface *yab);
extern int yi_DeskbarWidth(YabInterface *yab);
extern int yi_DeskbarHeight(YabInterface *yab);
extern int yi_DeskbarX(YabInterface *yab);
extern int yi_DeskbarY(YabInterface *yab);
extern int yi_DesktopWidth(YabInterface *yab);
extern int yi_DesktopHeight(YabInterface *yab);
extern int yi_WindowGet(const char* view, const char* option, YabInterface *yab);
extern int yi_ViewGet(const char* view, const char* option, YabInterface *yab); //vasper
extern void yi_ClipboardCopy(const char* text, YabInterface *yab);
extern const char* yi_ClipboardPaste(YabInterface *yab);
extern int yi_NewAlert(const char* text, const char* button1, const char* button2, const char* button3, const char* option, YabInterface *yab);
extern void yi_Calendar1(double x, double y, const char* id, const char* format, const char* date, const char* view, YabInterface *yab);
extern const char* yi_Calendar2(const char* id, YabInterface *yab);
extern void yi_Calendar3(const char* id, const char* date, YabInterface *yab);
extern void yi_MouseSet(const char* opt, YabInterface *yab);
extern void yi_Scrollbar(const char* id, int format, const char* view, YabInterface *yab);
extern void yi_ScrollbarSet1(const char* scrollview, const char* option, double position, YabInterface *yab);
extern void yi_ScrollbarSet2(const char* scrollview, const char* option, double opt1, double opt2, YabInterface *yab);
extern void yi_ScrollbarSet3(const char* scrollview, const char* option, YabInterface *yab);
extern double yi_ScrollbarGet(const char* scrollview, const char* option, YabInterface *yab);
extern const char* yi_ListboxGet(const char* listbox, int pos, YabInterface *yab);
extern int yi_ListboxCount(const char* listbox, YabInterface *yab);
extern void yi_ListboxAdd1(const char* listbox, const char* item, YabInterface *yab);
extern void yi_ListboxAdd2(const char* listbox, int pos, const char* item, YabInterface *yab);
extern void yi_ListboxSelect(const char* listbox, int pos, YabInterface *yab);
extern void yi_ListboxRemove(const char* listbox, int pos, YabInterface *yab);
extern void yi_SplitView1(double x1,double y1,double x2,double y2, const char* id, int isVertical, int style, const char* view, YabInterface *yab);
extern void yi_SplitView2(const char* splitView, const char* option, double position, YabInterface *yab);
extern void yi_SplitView3(const char* splitView, const char* option, double left, double right, YabInterface *yab);
extern double yi_SplitViewGet(const char* splitView, const char* option, YabInterface *yab);
extern void yi_StackView1(double x1,double y1,double x2,double y2, const char* id, int number, const char* view, YabInterface *yab);
extern void yi_StackView2(const char* stackView, int num, YabInterface *yab);
extern int yi_StackViewGet(const char* stackView, YabInterface *yab);
extern void yi_DrawSet3(const char* option, int transparency, YabInterface *yab);
extern void yi_TextURL1(double x, double y, const char* id, const char* text, const char* url, const char* view, YabInterface *yab);
extern void yi_TextURL2(const char* id, const char* option, int r, int g, int b, YabInterface *yab);
extern void yi_Menu2(const char* menuHead, int isRadio, const char* view, YabInterface *yab);
extern void yi_SubMenu1(const char* menuHead, const char* menuItem, const char* subMenuItem, const char* modifiers, const char* view, YabInterface *yab);
extern void yi_SubMenu2(const char* menuHead, const char* menuItem, int isRadio, const char* view, YabInterface *yab);
extern void yi_SpinControl1(double x, double y, const char* id, const char* label, int min, int max, int step, const char* view, YabInterface *yab);
extern void yi_SpinControl2(const char* spinControl, int value, YabInterface *yab);
extern int yi_SpinControlGet(const char *spinControl, YabInterface *yab);
extern const char* yi_PopUpMenu(double x, double y, const char* menuItems, const char* view, YabInterface *yab);
extern void yi_DropBoxSelect(const char* dropbox, int position, YabInterface *yab);
extern void yi_DropBoxClear(const char* dropbox, YabInterface *yab);
extern void yi_DropBoxRemove(const char* dropbox, int position, YabInterface *yab);
extern int yi_DropBoxCount(const char* dropbox, YabInterface *yab);
extern const char* yi_DropBoxGet(const char* dropbox, int position, YabInterface *yab);
extern int yi_ColorControlGet(const char* colorcontrol, const char* option, YabInterface *yab);
extern int yi_SliderGet(const char* slider, YabInterface *yab);
extern void yi_SubMenu3(const char* menuHead, const char* menuItem, const char* subMenuItem, const char* option, const char* view, YabInterface *yab);
extern void yi_Menu3(const char* menuHead, const char* menuItem, const char* option,const char* view, YabInterface *yab);
extern double yi_MenuHeight(YabInterface *yab);
extern double yi_TabHeight(YabInterface *yab);
extern double yi_ScrollbarWidth(YabInterface *yab);
extern double yi_DrawGet1(const char* option, const char* txt, const char* view, YabInterface* yab);
extern double yi_DrawGet2(const char* option, const char* view, YabInterface* yab);
extern const char* yi_DrawGet3(const char* option, YabInterface* yab);
extern int yi_DrawGet4(double x, double y, const char* option, const char* view, YabInterface* yab);
extern void yi_exit(int code, YabInterface *yab);
extern void yi_Launch(const char* strg, YabInterface *yab);
extern const int yi_IsMouseIn(const char* view, YabInterface* yab);
extern const char* yi_GetMouseIn(YabInterface* yab);
extern const char* yi_GetMouseMessages(const char* view, YabInterface* yab);
extern const char* yi_KeyboardMessages(const char* view, YabInterface* yab);
extern const char* yi_CheckMessages(YabInterface* yab);
extern int yi_MessageSend(const char* app, const char* msg,YabInterface* yab);
extern int yi_ThreadKill(const char* option, int id,YabInterface* yab);
extern int yi_ThreadGet(const char* option, const char* appname,YabInterface* yab);
extern void yi_Bitmap(double w, double h, const char* id,YabInterface* yab);
extern int yi_BitmapColor(double x, double y, const char* id, const char* option, YabInterface *yab);
extern void yi_BitmapDraw(double x, double y, const char* bitmap, const char* mode, const char* view,YabInterface* yab);
extern void yi_BitmapDraw2(double x1, double y1, double x2, double y2, const char* bitmap, const char* mode, const char* view,YabInterface* yab);
extern void yi_BitmapGet(double x1, double y1, double x2, double y2, const char* id, const char* bitmap,YabInterface* yab);
extern void yi_BitmapGet2(double w, const char* id, const char* path, YabInterface* yab);
extern void yi_BitmapGetIcon(const char* id, const char* option, const char* path, YabInterface* yab);
extern int yi_BitmapGetNum(const char* id, const char* option, YabInterface* yab);
extern int yi_BitmapLoad(const char* filename, const char* bitmap, YabInterface* yab);
extern void yi_BitmapDrag(const char* bitmap,YabInterface* yab);
extern void yi_BitmapRemove(const char* bitmap,YabInterface* yab);
extern void yi_Screenshot(double x1, double y1, double x2, double y2, const char* bitmap, YabInterface* yab);
extern int yi_BitmapSave(const char* id, const char* filename, const char* type, YabInterface* yab);
extern void yi_Canvas(double x1, double y1, double x2, double y2, const char* id, const char* view, YabInterface *yab);
extern void yi_Loudness(float volume, YabInterface *yab);
extern float yi_LoudnessGet(YabInterface *yab);
extern int yi_Sound(const char* filename, int status, YabInterface* yab);
extern void yi_SoundStop(int id, YabInterface* yab);
extern void yi_SoundWait(int id, YabInterface* yab);
extern int yi_MediaSound(const char* filename, YabInterface* yab);
extern void yi_MediaSoundStop(int id, YabInterface* yab);
extern int yi_IsComputerOn(YabInterface* yab);
extern void yi_ShortCut(const char* view, const char* key, const char* msg, YabInterface* yab);
extern void yi_DrawSet4(const char* option, const char* color,const char* view, YabInterface* yab);
extern void yi_Treebox13(const char* id,const char* option, int pos, YabInterface* yab);
extern int yi_TreeboxGetOpt(const char* id, const char* option, int pos, YabInterface* yab);
extern int yi_ListboxGetNum(const char* id, YabInterface* yab);
extern int yi_DropboxGetNum(const char* id, YabInterface* yab);
extern int yi_TreeboxGetNum(const char* id, YabInterface* yab);
extern int yi_ColumnboxGetNum(const char* id, YabInterface* yab);
extern void yi_SetLocalize2(const char* path, YabInterface* yab);
extern void yi_SetCurrentLineNumber(int line, const char* libname, YabInterface* yab);
extern void yi_SetMainFileName(const char* name, YabInterface* yab);
extern void yi_beep();
extern void yi_StatusBar(double x1, double y1, double x2, double y2, const char* id, const char* label1, const char* label2, const char* view, YabInterface* yab);
extern void yi_StatusBarSet(const char* id, const char* label1, const char* label2, double state, YabInterface* yab);
extern void yi_StatusBarSet2(double x1, double y1, double x2, double y2, const char* id, const char* view, YabInterface* yab);
extern void yi_StatusBarSet3(const char* id, int r, int g, int b, YabInterface* yab);
extern void yi_Attribute1(const char* type, const char* name, const char* value, const char* filename, YabInterface* yab);
extern void yi_AttributeClear(const char* name, const char* filename, YabInterface* yab);
extern const char* yi_AttributeGet1(const char* name, const char* filename, YabInterface* yab);
extern double yi_AttributeGet2(const char* name, const char* filename, YabInterface* yab);
extern const char* yi_AvailableLanguage(const char* name, YabInterface *yab);
extern const char* yi_AvailableTimeZones(const char* text, YabInterface *yab);
extern int yi_PCWorkspaces(YabInterface* yab);
extern int yi_DefaultTimeZone(YabInterface* yab);
extern char* refsRec; //refs received
#ifdef LOCALIZE
const char* _L(const char* text);
#endif
#ifdef __cplusplus
}
#endif
#endif /*YABINTERFACE_H*/