Select one of the symbols to view example projects that use it.
 
Outline
#define GUI_PRIVATE_H
#include "GUI.h"
#include "LCD_Protected.h"
#include "GUI_Debug.h"
#include "WM_GUI.h"
#define GUI_SADDR
#define GUI_DEFAULT_FONT
#define GUI_DEFAULT_CURSOR
#define GUI_DEFAULT_BKCOLOR
#define GUI_DEFAULT_COLOR
#define GUI_45DEG
#define GUI_90DEG
#define GUI_180DEG
#define GUI_360DEG
#define GUI_ASSERT_LOCK
#define GUI_ASSERT_NO_LOCK
#define GUI_ASSERT_LOCK
#define GUI_ASSERT_NO_LOCK
GUI__aConvert_15_255;
GUI__aConvert_31_255;
GUI__aConvert_63_255;
GUI__aConvert_255_15;
GUI__aConvert_255_31;
GUI__aConvert_255_63;
GUI_USAGE_Handle
tsUSAGE_APIList
GUI_Usage
#define GUI_USAGE_h
tUSAGE_AddPixel
tUSAGE_AddHLine
tUSAGE_GetNextDirty
#define GUI_USAGE_LOCK_H
GUI_USAGE_DecUseCnt(GUI_USAGE_Handle);
GUI_USAGE_BM_Create(int, int, int, int, int);
GUI_USAGE_Select(GUI_USAGE_Handle);
GUI_USAGE_AddRect(GUI_USAGE *, int, int, int, int);
#define GUI_USAGE_AddPixel
#define GUI_USAGE_AddHLine
#define GUI_USAGE_Clear
#define GUI_USAGE_Delete
#define GUI_USAGE_GetNextDirty
tsUSAGE_APIList
GUI_Usage
GUI_MEMDEV
#define GUI_MEMDEV_LOCK_H
GUI_MEMDEV__CopyFromLCD(GUI_MEMDEV_Handle);
GUI_MEMDEV__GetRect(GUI_RECT *);
GUI_MEMDEV__Color2Index(LCD_COLOR);
GUI_MEMDEV__Index2Color(int);
GUI_MEMDEV__GetIndexMask();
GUI_MEMDEV__SetAlphaCallback(unsigned int (*)(unsigned char));
GUI_MEMDEV__CreateFixed(int, int, int, int, int, const GUI_DEVICE_API *, const LCD_API_COLOR_CONV *);
GUI_MEMDEV__DrawSizedAt(GUI_MEMDEV_Handle, int, int, int, int);
GUI_MEMDEV__GetEmptyCopy32(GUI_MEMDEV_Handle, int *, int *, int *, int *);
GUI_MEMDEV__ReadLine(int, int, int, unsigned long *);
GUI_MEMDEV__WriteToActiveAlpha(GUI_MEMDEV_Handle, int, int);
GUI_MEMDEV__WriteToActiveAt(GUI_MEMDEV_Handle, int, int);
GUI_MEMDEV__WriteToActiveOpaque(GUI_MEMDEV_Handle, int, int);
GUI_MEMDEV__XY2PTR(int, int);
GUI_MEMDEV__XY2PTREx(GUI_MEMDEV *, int, int);
GUI_MEMDEV__BlendColor32(GUI_MEMDEV_Handle, unsigned long, unsigned char);
GUI__AlphaPreserveTrans(int);
GUI_MEMDEV__TimePerFrame;
#define GUI_TIME_PER_FRAME
#define GUI_POS_AUTO
#define LCD_HL_DrawHLine
#define LCD_HL_DrawPixel
#define GUI_ZEROINIT
GUI_cos(int);
GUI_sin(int);
GUI_Pow10;
GUI_MTOUCH__ManagePID(int);
GUI_AA_Init(int, int);
GUI_AA_Init_HiRes(int, int);
GUI_AA_Exit();
GUI_AA_HiRes2Pixel(int);
GL_DrawCircleAA_HiRes(int, int, int);
GL_FillCircleAA_HiRes(int, int, int);
GL_FillEllipseAA_HiRes(int, int, int, int);
GUI_AA__DrawCharAA2(int, int, int, int, int, const unsigned char *);
GUI_AA__DrawCharAA4(int, int, int, int, int, const unsigned char *);
GUI_AA__DrawCharAA8(int, int, int, int, int, const unsigned char *);
#define GUI_ALPHABLENDING_DONE
GUI__GetAlphaBuffer(unsigned long **, unsigned long **, unsigned long **, int *);
GUI__AllocAlphaBuffer(int);
GUI__DoAlphaBlending(int, int, unsigned long *, int, tLCDDEV_Index2Color *, int *);
GUI__SetAlphaBufferSize(int);
GUI_SIF__GetCharDistX(unsigned short, int *);
GUI_SIF__GetFontInfo(const GUI_FONT *, GUI_FONTINFO *);
GUI_SIF__IsInFont(const GUI_FONT *, unsigned short);
GUI_SIF__GetpCharInfo(const GUI_FONT *, unsigned short, unsigned int);
GUI_SIF__GetNumCharAreas(const GUI_FONT *);
GUI_SIF__GetCharDistX_ExtFrm(unsigned short, int *);
GUI_SIF__GetFontInfo_ExtFrm(const GUI_FONT *, GUI_FONTINFO *);
GUI_SIF__IsInFont_ExtFrm(const GUI_FONT *, unsigned short);
GUI_SIF__GetCharInfo_ExtFrm(unsigned short, GUI_CHARINFO_EXT *);
GUI_SIF__ClearLine_ExtFrm(const char *, int);
GUI_XBF__GetOff(const GUI_XBF_DATA *, unsigned int, unsigned long *);
GUI_XBF__GetOffAndSize(const GUI_XBF_DATA *, unsigned int, unsigned long *, unsigned short *);
GUI_XBF__GetCharDistX(unsigned short, int *);
GUI_XBF__GetFontInfo(const GUI_FONT *, GUI_FONTINFO *);
GUI_XBF__IsInFont(const GUI_FONT *, unsigned short);
GUI_XBF__GetCharInfo(unsigned short, GUI_CHARINFO_EXT *);
GUI_XBF__ClearLine(const char *, int);
GUI_AddHex(unsigned long, unsigned char, char **);
GUI_AddBin(unsigned long, unsigned char, char **);
GUI_AddDecMin(long, char **);
GUI_AddDecShift(long, unsigned char, unsigned char, char **);
GUI_AddSign(long, char **);
GUI_Long2Len(long);
#define GUI_UC__GetCharSize
#define GUI_UC__GetCharCode
GUI_UC__CalcSizeOfChar(unsigned short);
GUI_UC__GetCharCodeInc(const char **);
GUI_UC__NumChars2NumBytes(const char *, int);
GUI_UC__NumBytes2NumChars(const char *, int);
GUI__GetLineNumChars(const char *, int);
GUI__GetNumChars(const char *);
GUI__GetOverlap(unsigned short);
GUI__GetLineDistX(const char *, int);
GUI__GetFontSizeY();
GUI__HandleEOLine(const char **);
GUI__InvertRectColors(int, int, int, int);
GUI__DispLine(const char *, int, const GUI_RECT *);
GUI__AddSpaceHex(unsigned long, unsigned char, char **);
GUI__CalcTextRect(const char *, const GUI_RECT *, GUI_RECT *, int);
GUI__ClearTextBackground(int, int);
GUI__WrapGetNumCharsDisp(const char *, int, GUI_WRAPMODE);
GUI__WrapGetNumCharsToNextLine(const char *, int, GUI_WRAPMODE);
GUI__WrapGetNumBytesToNextLine(const char *, int, GUI_WRAPMODE);
GUI__memset16(unsigned short *, unsigned short, int);
GUI__strlen(const char *);
GUI__strcmp(const char *, const char *);
GUI__strcmp_hp(long, const char *);
GUI__GetCursorPosX(const char *, int, int);
GUI__GetCursorPosChar(const char *, int, int);
GUI__GetCursorCharacter(const char *, int, int, int *);
GUI__GetPresentationForm(unsigned short, unsigned short, unsigned short, int *, const char *);
GUI__IsArabicCharacter(unsigned short);
GUI__BIDI_Log2Vis(const char *, int, char *, int);
GUI__BIDI_GetCursorPosX(const char *, int, int);
GUI__BIDI_GetCursorPosChar(const char *, int, int);
GUI__BIDI_GetLogChar(const char *, int, int);
GUI__BIDI_GetCharDir(const char *, int, int);
GUI__BIDI_IsNSM(unsigned short);
GUI__BIDI_GetCursorCharacter(const char *, int, int, int *);
GUI__BIDI_GetWordWrap(const char *, int, int *);
GUI__BIDI_GetCharWrap(const char *, int);
#define GUI__BIDI_Log2Vis
#define GUI__BIDI_GetCursorPosX
#define GUI__BIDI_GetCursorPosChar
#define GUI__BIDI_GetLogChar
#define GUI__BIDI_GetCharDir
#define GUI__BIDI_IsNSM
#define GUI__BIDI_GetCursorCharacter
#define GUI__BIDI_GetWordWrap
#define GUI__BIDI_GetCharWrap
#define GUI__BIDI_SetBaseDir
#define GUI__BIDI_GetBaseDir
GUI__BIDI2_Log2Vis(const char *, int, char *, int);
GUI__BIDI2_GetCursorPosX(const char *, int, int);
GUI__BIDI2_GetCursorPosChar(const char *, int, int);
GUI__BIDI2_GetLogChar(const char *, int, int);
GUI__BIDI2_GetCharDir(const char *, int, int);
GUI__BIDI2_IsNSM(unsigned short);
GUI__BIDI2_GetCursorCharacter(const char *, int, int, int *);
GUI__BIDI2_GetWordWrap(const char *, int, int *);
GUI__BIDI2_GetCharWrap(const char *, int);
GUI__BIDI2_SetBaseDir(int);
GUI__BIDI2_GetBaseDir();
#define GUI__BIDI_SetBaseDir
#define GUI__BIDI_GetBaseDir
GUI__BIDI_Log2VisBuffered(const char *, int *);
GUI__BIDI_Enabled;
_pfGUI__BIDI_Log2Vis;
_pfGUI__BIDI_GetCursorPosX;
_pfGUI__BIDI_GetCursorPosChar;
_pfGUI__BIDI_GetLogChar;
_pfGUI__BIDI_GetCharDir;
_pfGUI__BIDI_IsNSM;
GUI_CharLine_pfLog2Vis;
GUI__GetCursorPos_pfGetPosX;
GUI__GetCursorPos_pfGetPosChar;
GUI__GetCursorPos_pfGetCharacter;
GUI__Wrap_pfGetWordWrap;
GUI__Wrap_pfGetCharWrap;
GUIPROP__FindChar(const GUI_FONT_PROP *, unsigned short);
GUIPROP_EXT__FindChar(const GUI_FONT_PROP_EXT *, unsigned short);
GUIPROP_EXT__DispLine(const char *, int);
GUIPROP_EXT__ClearLine(const char *, int);
GUIPROP_EXT__SetfpClearLine(void (*)(const char *, int));
GUI__Read16(const unsigned char **);
GUI__Read32(const unsigned char **);
GUI__GetOrg(int *, int *);
GUI__SetOrgHook(void (*)(int, int));
GUI_TIMER__IsActive();
GUI_TIMER__GetPeriod();
GUI_TIMER__GetNextTimer(GUI_TIMER_HANDLE, unsigned long *);
GUI_TIMER__GetFirstTimer(unsigned long *);
GUI_TIMER__GetNextTimerLin(GUI_TIMER_HANDLE, unsigned long *);
GUI_GetpfIndex2ColorEx(int);
GUI_GetpfColor2IndexEx(int);
GUI_GetBitsPerPixelEx(int);
LCD_GetpPalConvTable(const LCD_LOGPALETTE *);
LCD_GetpPalConvTableUncached(const LCD_LOGPALETTE *);
LCD_GetpPalConvTableBM(const LCD_LOGPALETTE *, const GUI_BITMAP *, int);
GUI_SetFuncGetpPalConvTable(unsigned long *(*)(const LCD_LOGPALETTE *, const GUI_BITMAP *, int));
#define GUI_STREAM_FORMAT_INDEXED
#define GUI_STREAM_FORMAT_RLE4
#define GUI_STREAM_FORMAT_RLE8
#define GUI_STREAM_FORMAT_565
#define GUI_STREAM_FORMAT_M565
#define GUI_STREAM_FORMAT_555
#define GUI_STREAM_FORMAT_M555
#define GUI_STREAM_FORMAT_RLE16
#define GUI_STREAM_FORMAT_RLEM16
#define GUI_STREAM_FORMAT_8888
#define GUI_STREAM_FORMAT_RLE32
#define GUI_STREAM_FORMAT_24
#define GUI_STREAM_FORMAT_RLEALPHA
#define GUI_STREAM_FORMAT_444_12
#define GUI_STREAM_FORMAT_M444_12
#define GUI_STREAM_FORMAT_444_12_1
#define GUI_STREAM_FORMAT_M444_12_1
#define GUI_STREAM_FORMAT_444_16
#define GUI_STREAM_FORMAT_M444_16
#define GUI_STREAM_FORMAT_A555
#define GUI_STREAM_FORMAT_AM555
#define GUI_STREAM_FORMAT_A565
#define GUI_STREAM_FORMAT_AM565
#define GUI_STREAM_FORMAT_M8888I
GUI__ReadHeaderFromStream(GUI_BITMAP_STREAM *, const unsigned char *);
GUI__CreateBitmapFromStream(const GUI_BITMAP_STREAM *, const void *, GUI_BITMAP *, GUI_LOGPALETTE *, const GUI_BITMAP_METHODS *);
GUI__ManageCache(int);
GUI__ManageCacheEx(int, int);
GL_DispChar(unsigned short);
GL_DrawArc(int, int, int, int, int, int);
GL_DrawBitmap(const GUI_BITMAP *, int, int);
GL_DrawCircle(int, int, int);
GL_DrawEllipse(int, int, int, int, int);
GL_DrawHLine(int, int, int);
GL_DrawPolygon(const GUI_POINT *, int, int, int);
GL_DrawPoint(int, int);
GL_DrawLine1(int, int, int, int);
GL_DrawLine1Ex(int, int, int, int, unsigned int *);
GL_DrawLineRel(int, int);
GL_DrawLineTo(int, int);
GL_DrawLineToEx(int, int, unsigned int *);
GL_DrawLine(int, int, int, int);
GL_DrawLineEx(int, int, int, int, unsigned int *);
GL_MoveTo(int, int);
GL_FillCircle(int, int, int);
GL_FillCircleAA(int, int, int);
GL_FillEllipse(int, int, int, int);
GL_FillPolygon(const GUI_POINT *, int, int, int);
GL_SetDefault();
GUI__pfMemset;
GUI__pfMemcpy;
#define GUI__MEMSET
#define GUI__MEMCPY
GUI_tfTimer
WM_tfHandlePID
GUI_RectDispString;
GUI__CharHasTrans;
GUITASK__EntranceCnt;
GUI_GetBitmapPixelIndex(const GUI_BITMAP *, unsigned int, unsigned int);
GUI_GetBitmapPixelColor(const GUI_BITMAP *, unsigned int, unsigned int);
GUI_GetBitmapPixelIndexEx(int, int, const unsigned char *, unsigned int, unsigned int);
GUI__DrawBitmap16bpp(int, int, int, int, const unsigned char *, const LCD_LOGPALETTE *, int, int, tLCDDEV_Index2Color *, const LCD_API_COLOR_CONV *);
GUI__DrawBitmapA16bpp(int, int, int, int, const unsigned char *, const LCD_LOGPALETTE *, int, int, tLCDDEV_Index2Color *);
GUI__SetPixelAlpha(int, int, unsigned char, LCD_COLOR);
GUI__MixColors(LCD_COLOR, LCD_COLOR, unsigned char);
GUI__MixColorsBulk(unsigned long *, unsigned long *, unsigned long *, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned char);
GUI_UC_None;
#define LCDDEV_L0_Color2Index
#define LCDDEV_L0_Index2Color
#define LCDDEV_L0_DrawBitmap
#define LCDDEV_L0_DrawHLine
#define LCDDEV_L0_DrawVLine
#define LCDDEV_L0_DrawPixel
#define LCDDEV_L0_FillRect
#define LCDDEV_L0_GetPixel
#define LCDDEV_L0_GetRect
#define LCDDEV_L0_GetPixelIndex
#define LCDDEV_L0_SetPixelIndex
#define LCDDEV_L0_XorPixel
#define LCDDEV_L0_GetDevFunc
LCD_ReadRect(int, int, int, int, unsigned long *, GUI_DEVICE *);
GUI_ReadRect(int, int, int, int, unsigned long *, GUI_DEVICE *);
GUI_ReadRectEx(int, int, int, int, unsigned long *, GUI_DEVICE *);
LCD_ReadRectNoClip(int, int, int, int, unsigned long *, GUI_DEVICE *);
LCD_SET_COLOR_API
LCD__pSetColorAPI;
#define LCD__SetBkColorIndex
#define LCD__SetColorIndex
#define LCD__GetBkColorIndex
#define LCD__GetColorIndex
#define LCD_BKCOLORINDEX
#define LCD_COLORINDEX
GUI__pFontDefault;
GUI__ColorDefault;
GUI__BkColorDefault;
GUI_pContext;
GUI__apDevice;
GUI_pfGetpPalConvTable;
GUI__pfMixColors;
GUI__pfMixColorsBulk;
LCD_AA_pfMixColors16;
GUI__pfDrawAlphaMemdevFunc;
GUI__pfDrawM565MemdevFunc;
GUI__pfDrawAlphaBitmapFunc;
GUI__pfDrawM565BitmapFunc;
GUI_MULTIBUF_APIList;
GUI_MULTIBUF_APIListMasked;
GUI_MULTIBUF_APIListEx;
#define GUI_EXTERN
#define GUI_EXTERN
GUI_pfExecAnimations;
GUI_pfUpdateSoftLayer;
GUI_pfHookMTOUCH;
GUI_pUC_API;
GUI_DecChar;
GUI_pfTimerExec;
WM_pfHandlePID;
GUI_pfDispCharStyle;
GUI_pfDispCharLine;
GUI__BufferSize;
GUI_AA__ClipX0;
GUI__aNumBuffers;
GUI__PreserveTrans;
GUI__IsInitialized;
GUI__NumLayersInUse;
GUI__LayerMask;
GUI_pLCD_APIList;
GUI_OrgX;
GUI_OrgY;
Files
loading...
SourceVuSTM32 Libraries and SamplesSTemWininc/GUI_Private.h
 
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
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/********************************************************************* * SEGGER Microcontroller GmbH & Co. KG * * Solutions for real time microcontroller applications * ********************************************************************** * * * (c) 1996 - 2017 SEGGER Microcontroller GmbH & Co. KG * * * * Internet: www.segger.com Support: support@segger.com * * * ********************************************************************** ** emWin V5.44 - Graphical user interface for embedded applications ** All Intellectual Property rights in the Software belongs to SEGGER. emWin is protected by international copyright laws. Knowledge of the source code may not be used to write a similar product. This file may only be used in accordance with the following terms: The software has been licensed to STMicroelectronics International N.V. a Dutch company with a Swiss branch and its headquarters in Plan- les-Ouates, Geneva, 39 Chemin du Champ des Filles, Switzerland for the purposes of creating libraries for ARM Cortex-M-based 32-bit microcon_ troller products commercialized by Licensee only, sublicensed and dis_ tributed under the terms and conditions of the End User License Agree_ ment supplied by STMicroelectronics International N.V. Full source code is available at: www.segger.com We appreciate your understanding and fairness. ---------------------------------------------------------------------- ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) 2018 STMicroelectronics. * All rights reserved.</center></h2> * * This software component is licensed by ST under Ultimate Liberty license SLA0044, * the "License"; You may not use this file except in compliance with the License. * You may obtain a copy of the License at: * http://www.st.com/SLA0044 * ****************************************************************************** ---------------------------------------------------------------------- File : GUI_Private.h Purpose : GUI internal declarations ---------------------------END-OF-HEADER------------------------------ *//* ... */ #ifndef GUI_PRIVATE_H #define GUI_PRIVATE_H #include "GUI.h" #include "LCD_Protected.h" #include "GUI_Debug.h" #if GUI_WINSUPPORT #include "WM_GUI.h" #endif #if defined(__cplusplus) extern "C" { /* Make sure we have C-declarations in C++ programs */ #endif /********************************************************************* * * Defaults for config switches * ********************************************************************** The config switches below do not affect the interface in GUI.h and are therefor not required to be in GUI.h. *//* ... */ /* Short address area. For most compilers, this is "near" or "__near" We do not use this except for some CPUs which we know to always have some near memory, because the GUI_Context and some other data will be declared to be in this short address (near) memory area as it has a major effect on performance. Please define in GUIConf.h (if you want to use it) *//* ... */ #ifndef GUI_SADDR #define GUI_SADDR #endif #ifndef GUI_DEFAULT_FONT #define GUI_DEFAULT_FONT &GUI_Font6x8 #endif #ifndef GUI_DEFAULT_CURSOR #define GUI_DEFAULT_CURSOR &GUI_CursorArrowM #endif #ifndef GUI_DEFAULT_BKCOLOR #define GUI_DEFAULT_BKCOLOR GUI_BLACK #endif #ifndef GUI_DEFAULT_COLOR #define GUI_DEFAULT_COLOR GUI_WHITE #endif /********************************************************************* * * Angles * ********************************************************************** *//* ... */ #define GUI_45DEG 512 #define GUI_90DEG (2 * GUI_45DEG) #define GUI_180DEG (4 * GUI_45DEG) #define GUI_360DEG (8 * GUI_45DEG) /********************************************************************* * * Locking checks * ********************************************************************** *//* ... */ #if defined (WIN32) && defined (_DEBUG) && GUI_OS #define GUI_ASSERT_LOCK() GUITASK_AssertLock() #define GUI_ASSERT_NO_LOCK() GUITASK_AssertNoLock() void GUITASK_AssertLock(void); void GUITASK_AssertNoLock(void);/* ... */ #else #define GUI_ASSERT_LOCK() #define GUI_ASSERT_NO_LOCK() /* ... */#endif /********************************************************************* * * Division tables * ********************************************************************** *//* ... */ extern const U8 GUI__aConvert_15_255[(1 << 4)]; extern const U8 GUI__aConvert_31_255[(1 << 5)]; extern const U8 GUI__aConvert_63_255[(1 << 6)]; extern const U8 GUI__aConvert_255_15[(1 << 8)]; extern const U8 GUI__aConvert_255_31[(1 << 8)]; extern const U8 GUI__aConvert_255_63[(1 << 8)]; /********************************************************************* * * Usage internals * ********************************************************************** *//* ... */ typedef GUI_HMEM GUI_USAGE_Handle; typedef struct tsUSAGE_APIList tUSAGE_APIList; typedef struct GUI_Usage GUI_USAGE; #define GUI_USAGE_h GUI_USAGE_Handle typedef GUI_USAGE_h tUSAGE_CreateCompatible(GUI_USAGE * p); typedef void tUSAGE_AddPixel (GUI_USAGE * p, int x, int y); typedef void tUSAGE_AddHLine (GUI_USAGE * p, int x0, int y0, int len); typedef void tUSAGE_Clear (GUI_USAGE * p); typedef void tUSAGE_Delete (GUI_USAGE_h h); typedef int tUSAGE_GetNextDirty (GUI_USAGE * p, int * pxOff, int yOff); #define GUI_USAGE_LOCK_H(h) ((GUI_USAGE *)GUI_LOCK_H(h)) void GUI_USAGE_DecUseCnt(GUI_USAGE_Handle hUsage); GUI_USAGE_Handle GUI_USAGE_BM_Create(int x0, int y0, int xsize, int ysize, int Flags); void GUI_USAGE_Select(GUI_USAGE_Handle hUsage); void GUI_USAGE_AddRect(GUI_USAGE * pUsage, int x0, int y0, int xSize, int ySize); #define GUI_USAGE_AddPixel(p, x,y) p->pAPI->pfAddPixel(p,x,y) #define GUI_USAGE_AddHLine(p,x,y,len) p->pAPI->pfAddHLine(p,x,y,len) #define GUI_USAGE_Clear(p) p->pAPI->pfClear(p) #define GUI_USAGE_Delete(p) p->pAPI->pfDelete(p) #define GUI_USAGE_GetNextDirty(p,pxOff, yOff) p->pAPI->pfGetNextDirty(p,pxOff, yOff) 5 defines struct tsUSAGE_APIList { tUSAGE_AddPixel * pfAddPixel; tUSAGE_AddHLine * pfAddHLine; tUSAGE_Clear * pfClear; tUSAGE_CreateCompatible * pfCreateCompatible; tUSAGE_Delete * pfDelete; tUSAGE_GetNextDirty * pfGetNextDirty; ...} ; struct GUI_Usage { I16P x0, y0, XSize, YSize; const tUSAGE_APIList * pAPI; I16 UseCnt; ...}; /********************************************************************* * * GUI_MEMDEV * ********************************************************************** *//* ... */ #if GUI_SUPPORT_MEMDEV typedef struct { GUI_DEVICE * pDevice; I16P x0, y0, XSize, YSize; unsigned BytesPerLine; unsigned BitsPerPixel; GUI_HMEM hUsage; ...} GUI_MEMDEV; #define GUI_MEMDEV_LOCK_H(h) ((GUI_MEMDEV *)GUI_LOCK_H(h)) void GUI_MEMDEV__CopyFromLCD (GUI_MEMDEV_Handle hMem); void GUI_MEMDEV__GetRect (GUI_RECT * pRect); unsigned GUI_MEMDEV__Color2Index (LCD_COLOR Color); LCD_COLOR GUI_MEMDEV__Index2Color (int Index); unsigned int GUI_MEMDEV__GetIndexMask(void); void GUI_MEMDEV__SetAlphaCallback(unsigned(* pcbSetAlpha)(U8)); GUI_MEMDEV_Handle GUI_MEMDEV__CreateFixed(int x0, int y0, int xSize, int ySize, int Flags, const GUI_DEVICE_API * pDeviceAPI, const LCD_API_COLOR_CONV * pColorConvAPI); void GUI_MEMDEV__DrawSizedAt (GUI_MEMDEV_Handle hMem, int xPos, int yPos, int xSize, int ySize); GUI_MEMDEV_Handle GUI_MEMDEV__GetEmptyCopy32 (GUI_MEMDEV_Handle hMem, int * pxSize, int * pySize, int * pxPos, int * pyPos); void GUI_MEMDEV__ReadLine (int x0, int y, int x1, LCD_PIXELINDEX * pBuffer); void GUI_MEMDEV__WriteToActiveAlpha (GUI_MEMDEV_Handle hMem,int x, int y); void GUI_MEMDEV__WriteToActiveAt (GUI_MEMDEV_Handle hMem,int x, int y); void GUI_MEMDEV__WriteToActiveOpaque(GUI_MEMDEV_Handle hMem,int x, int y); void * GUI_MEMDEV__XY2PTR (int x,int y); void * GUI_MEMDEV__XY2PTREx (GUI_MEMDEV * pDev, int x,int y); void GUI_MEMDEV__BlendColor32 (GUI_MEMDEV_Handle hMem, U32 BlendColor, U8 BlendIntens); unsigned GUI__AlphaPreserveTrans(int OnOff); extern unsigned GUI_MEMDEV__TimePerFrame; #define GUI_TIME_PER_FRAME (GUI_TIMER_TIME)GUI_MEMDEV__TimePerFrame #define GUI_POS_AUTO -4095 /* Position value for auto-pos */ /* ... */ #endif /********************************************************************* * * LCD_HL_ level defines * ********************************************************************** *//* ... */ #define LCD_HL_DrawHLine GUI_pContext->pLCD_HL->pfDrawHLine #define LCD_HL_DrawPixel GUI_pContext->pLCD_HL->pfDrawPixel /********************************************************************* * * Helper functions * ********************************************************************** *//* ... */ #define GUI_ZEROINIT(Obj) GUI__MEMSET(Obj, 0, sizeof(Obj)) int GUI_cos(int angle); int GUI_sin(int angle); extern const U32 GUI_Pow10[10]; /* Multi-touch */ void GUI_MTOUCH__ManagePID(int OnOff); /* Anti-aliased drawing */ int GUI_AA_Init (int x0, int x1); int GUI_AA_Init_HiRes (int x0, int x1); void GUI_AA_Exit (void); I16 GUI_AA_HiRes2Pixel(int HiRes); void GL_DrawCircleAA_HiRes(int x0, int y0, int r); void GL_FillCircleAA_HiRes (int x0, int y0, int r); void GL_FillEllipseAA_HiRes(int x0, int y0, int rx, int ry); void GUI_AA__DrawCharAA2(int x0, int y0, int XSize, int YSize, int BytesPerLine, const U8 * pData); void GUI_AA__DrawCharAA4(int x0, int y0, int XSize, int YSize, int BytesPerLine, const U8 * pData); void GUI_AA__DrawCharAA8(int x0, int y0, int XSize, int YSize, int BytesPerLine, const U8 * pData); /* Alpha blending helper functions */ #define GUI_ALPHABLENDING_DONE (1 << 0) int GUI__GetAlphaBuffer (U32 ** ppCurrent, U32 ** ppConvert, U32 ** ppData, int * pVXSizeMax); int GUI__AllocAlphaBuffer (int AllocDataBuffer); U32 * GUI__DoAlphaBlending (int x, int y, U32 * pData, int xSize, tLCDDEV_Index2Color * pfIndex2Color_DEV, int * pDone); unsigned GUI__SetAlphaBufferSize(int xSize); /* System independent font routines */ int GUI_SIF__GetCharDistX (U16P c, int * pSizeX); void GUI_SIF__GetFontInfo (const GUI_FONT * pFont, GUI_FONTINFO * pfi); char GUI_SIF__IsInFont (const GUI_FONT * pFont, U16 c); const U8 * GUI_SIF__GetpCharInfo (const GUI_FONT * pFont, U16P c, unsigned SizeOfCharInfo); int GUI_SIF__GetNumCharAreas (const GUI_FONT * pFont); int GUI_SIF__GetCharDistX_ExtFrm(U16P c, int * pSizeX); void GUI_SIF__GetFontInfo_ExtFrm (const GUI_FONT * pFont, GUI_FONTINFO * pfi); char GUI_SIF__IsInFont_ExtFrm (const GUI_FONT * pFont, U16 c); int GUI_SIF__GetCharInfo_ExtFrm (U16P c, GUI_CHARINFO_EXT * pInfo); void GUI_SIF__ClearLine_ExtFrm (const char * s, int Len); /* External binary font routines */ int GUI_XBF__GetOff (const GUI_XBF_DATA * pXBF_Data, unsigned c, U32 * pOff); int GUI_XBF__GetOffAndSize(const GUI_XBF_DATA * pXBF_Data, unsigned c, U32 * pOff, U16 * pSize); int GUI_XBF__GetCharDistX (U16P c, int * pSizeX); void GUI_XBF__GetFontInfo (const GUI_FONT * pFont, GUI_FONTINFO * pInfo); char GUI_XBF__IsInFont (const GUI_FONT * pFont, U16 c); int GUI_XBF__GetCharInfo (U16P c, GUI_CHARINFO_EXT * pInfo); void GUI_XBF__ClearLine (const char * s, int Len); /* Conversion routines */ void GUI_AddHex (U32 v, U8 Len, char ** ps); void GUI_AddBin (U32 v, U8 Len, char ** ps); void GUI_AddDecMin (I32 v, char ** ps); void GUI_AddDecShift(I32 v, U8 Len, U8 Shift, char ** ps); long GUI_AddSign (long v, char ** ps); int GUI_Long2Len (I32 v); #define GUI_UC__GetCharSize(sText) GUI_pUC_API->pfGetCharSize(sText) #define GUI_UC__GetCharCode(sText) GUI_pUC_API->pfGetCharCode(sText) int GUI_UC__CalcSizeOfChar (U16 Char); U16 GUI_UC__GetCharCodeInc (const char ** ps); int GUI_UC__NumChars2NumBytes(const char * s, int NumChars); int GUI_UC__NumBytes2NumChars(const char * s, int NumBytes); int GUI__GetLineNumChars (const char * s, int MaxNumChars); int GUI__GetNumChars (const char * s); int GUI__GetOverlap (U16 Char); int GUI__GetLineDistX (const char * s, int Len); int GUI__GetFontSizeY (void); int GUI__HandleEOLine (const char ** ps); void GUI__InvertRectColors (int x0, int y0, int x1, int y1); void GUI__DispLine (const char * s, int Len, const GUI_RECT * pr); void GUI__AddSpaceHex (U32 v, U8 Len, char ** ps); void GUI__CalcTextRect (const char * pText, const GUI_RECT * pTextRectIn, GUI_RECT * pTextRectOut, int TextAlign); void GUI__ClearTextBackground(int xDist, int yDist); int GUI__WrapGetNumCharsDisp (const char * pText, int xSize, GUI_WRAPMODE WrapMode); int GUI__WrapGetNumCharsToNextLine (const char * pText, int xSize, GUI_WRAPMODE WrapMode); int GUI__WrapGetNumBytesToNextLine (const char * pText, int xSize, GUI_WRAPMODE WrapMode); //void GUI__memset (U8 * p, U8 Fill, int NumBytes); void GUI__memset16 (U16 * p, U16 Fill, int NumWords); int GUI__strlen (const char * s); int GUI__strcmp (const char * s0, const char * s1); int GUI__strcmp_hp (GUI_HMEM hs0, const char * s1); /* Get cursor position */ int GUI__GetCursorPosX (const char * s, int Index, int MaxNumChars); int GUI__GetCursorPosChar (const char * s, int x, int NumCharsToNextLine); U16 GUI__GetCursorCharacter(const char * s, int Index, int MaxNumChars, int * pIsRTL); /* Arabic support (tbd) */ U16 GUI__GetPresentationForm (U16 Char, U16 Next, U16 Prev, int * pIgnoreNext, const char * s); int GUI__IsArabicCharacter (U16 c); /* BiDi support */ int GUI__BIDI_Log2Vis (const char * s, int NumChars, char * pBuffer, int BufferSize); int GUI__BIDI_GetCursorPosX (const char * s, int NumChars, int Index); int GUI__BIDI_GetCursorPosChar (const char * s, int NumChars, int x); U16 GUI__BIDI_GetLogChar (const char * s, int NumChars, int Index); int GUI__BIDI_GetCharDir (const char * s, int NumChars, int Index); int GUI__BIDI_IsNSM (U16 Char); U16 GUI__BIDI_GetCursorCharacter(const char * s, int Index, int MaxNumChars, int * pIsRTL); int GUI__BIDI_GetWordWrap (const char * s, int xSize, int * pxDist); int GUI__BIDI_GetCharWrap (const char * s, int xSize); #if (GUI_USE_BIDI2) #define GUI__BIDI_Log2Vis GUI__BIDI2_Log2Vis #define GUI__BIDI_GetCursorPosX GUI__BIDI2_GetCursorPosX #define GUI__BIDI_GetCursorPosChar GUI__BIDI2_GetCursorPosChar #define GUI__BIDI_GetLogChar GUI__BIDI2_GetLogChar #define GUI__BIDI_GetCharDir GUI__BIDI2_GetCharDir #define GUI__BIDI_IsNSM GUI__BIDI2_IsNSM #define GUI__BIDI_GetCursorCharacter GUI__BIDI2_GetCursorCharacter #define GUI__BIDI_GetWordWrap GUI__BIDI2_GetWordWrap #define GUI__BIDI_GetCharWrap GUI__BIDI2_GetCharWrap #define GUI__BIDI_SetBaseDir GUI__BIDI2_SetBaseDir #define GUI__BIDI_GetBaseDir GUI__BIDI2_GetBaseDir 11 defines int GUI__BIDI_Log2Vis (const char * s, int NumChars, char * pBuffer, int BufferSize); int GUI__BIDI_GetCursorPosX (const char * s, int NumChars, int Index); int GUI__BIDI_GetCursorPosChar (const char * s, int NumChars, int x); U16 GUI__BIDI_GetLogChar (const char * s, int NumChars, int Index); int GUI__BIDI_GetCharDir (const char * s, int NumChars, int Index); int GUI__BIDI_IsNSM (U16 Char); U16 GUI__BIDI_GetCursorCharacter(const char * s, int Index, int MaxNumChars, int * pIsRTL); int GUI__BIDI_GetWordWrap (const char * s, int xSize, int * pxDist); int GUI__BIDI_GetCharWrap (const char * s, int xSize); void GUI__BIDI_SetBaseDir (int Dir); int GUI__BIDI_GetBaseDir (void); /* ... */ #else #define GUI__BIDI_SetBaseDir #define GUI__BIDI_GetBaseDir /* ... */ #endif const char * GUI__BIDI_Log2VisBuffered(const char * s, int * pMaxNumChars); extern int GUI__BIDI_Enabled; extern int (* _pfGUI__BIDI_Log2Vis )(const char * s, int NumChars, char * pBuffer, int BufferSize); extern int (* _pfGUI__BIDI_GetCursorPosX )(const char * s, int NumChars, int Index); extern int (* _pfGUI__BIDI_GetCursorPosChar)(const char * s, int NumChars, int x); extern U16 (* _pfGUI__BIDI_GetLogChar )(const char * s, int NumChars, int Index); extern int (* _pfGUI__BIDI_GetCharDir )(const char * s, int NumChars, int Index); extern int (* _pfGUI__BIDI_IsNSM )(U16 Char); /* BiDi-related function pointers */ extern const char * (* GUI_CharLine_pfLog2Vis)(const char * s, int * pMaxNumChars); extern int (* GUI__GetCursorPos_pfGetPosX) (const char * s, int MaxNumChars, int Index); extern int (* GUI__GetCursorPos_pfGetPosChar) (const char * s, int MaxNumChars, int x); extern U16 (* GUI__GetCursorPos_pfGetCharacter)(const char * s, int MaxNumChars, int Index, int * pIsRTL); extern int (* GUI__Wrap_pfGetWordWrap)(const char * s, int xSize, int * pxDist); extern int (* GUI__Wrap_pfGetCharWrap)(const char * s, int xSize); /* Proportional font support */ const GUI_FONT_PROP * GUIPROP__FindChar(const GUI_FONT_PROP * pProp, U16P c); /* Extended proportional font support */ const GUI_FONT_PROP_EXT * GUIPROP_EXT__FindChar(const GUI_FONT_PROP_EXT * pPropExt, U16P c); void GUIPROP_EXT__DispLine (const char * s, int Len); void GUIPROP_EXT__ClearLine (const char * s, int Len); void GUIPROP_EXT__SetfpClearLine(void (* fpClearLine)(const char * s, int Len)); /* Reading data routines */ U16 GUI__Read16(const U8 ** ppData); U32 GUI__Read32(const U8 ** ppData); /* Virtual screen support */ void GUI__GetOrg(int * px, int * py); void GUI__SetOrgHook(void(* pfHook)(int x, int y)); /* Timer support */ int GUI_TIMER__IsActive (void); GUI_TIMER_TIME GUI_TIMER__GetPeriod (void); GUI_TIMER_HANDLE GUI_TIMER__GetNextTimer (GUI_TIMER_HANDLE hTimer, U32 * pContext); GUI_TIMER_HANDLE GUI_TIMER__GetFirstTimer (U32 * pContext); GUI_TIMER_HANDLE GUI_TIMER__GetNextTimerLin(GUI_TIMER_HANDLE hTimer, U32 * pContext); /* Get function pointers for color conversion */ tLCDDEV_Index2Color * GUI_GetpfIndex2ColorEx(int LayerIndex); tLCDDEV_Color2Index * GUI_GetpfColor2IndexEx(int LayerIndex); int GUI_GetBitsPerPixelEx(int LayerIndex); LCD_PIXELINDEX * LCD_GetpPalConvTable (const LCD_LOGPALETTE * pLogPal); LCD_PIXELINDEX * LCD_GetpPalConvTableUncached(const LCD_LOGPALETTE * pLogPal); LCD_PIXELINDEX * LCD_GetpPalConvTableBM (const LCD_LOGPALETTE * pLogPal, const GUI_BITMAP * pBitmap, int LayerIndex); /* Setting a function for converting a color palette to an array of index values */ void GUI_SetFuncGetpPalConvTable(LCD_PIXELINDEX * (* pFunc)(const LCD_LOGPALETTE * pLogPal, const GUI_BITMAP * pBitmap, int LayerIndex)); /********************************************************************* * * Format definitions used by streamed bitmaps * * IMPORTANT: DO NOT CHANGE THESE VALUES! * THEY HAVE TO CORRESPOND TO THE DEFINITIONS WITHIN THE CODE OF THE BITMAPCONVERTER! *//* ... */ #define GUI_STREAM_FORMAT_INDEXED 100 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_RLE4 6 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_RLE8 7 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_565 8 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_M565 9 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_555 10 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_M555 11 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_RLE16 12 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_RLEM16 13 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_8888 16 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_RLE32 15 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_24 17 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_RLEALPHA 18 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_444_12 19 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_M444_12 20 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_444_12_1 21 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_M444_12_1 22 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_444_16 23 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_M444_16 24 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_A555 25 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_AM555 26 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_A565 27 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_AM565 28 /* DO NOT CHANGE */ #define GUI_STREAM_FORMAT_M8888I 29 /* DO NOT CHANGE */ 24 defines void GUI__ReadHeaderFromStream (GUI_BITMAP_STREAM * pBitmapHeader, const U8 * pData); void GUI__CreateBitmapFromStream(const GUI_BITMAP_STREAM * pBitmapHeader, const void * pData, GUI_BITMAP * pBMP, GUI_LOGPALETTE * pPAL, const GUI_BITMAP_METHODS * pMethods); /* Cache management */ int GUI__ManageCache (int Cmd); int GUI__ManageCacheEx(int LayerIndex, int Cmd); /********************************************************************* * * 2d - GL * ********************************************************************** *//* ... */ void GL_DispChar (U16 c); void GL_DrawArc (int x0, int y0, int rx, int ry, int a0, int a1); void GL_DrawBitmap (const GUI_BITMAP * pBM, int x0, int y0); void GL_DrawCircle (int x0, int y0, int r); void GL_DrawEllipse (int x0, int y0, int rx, int ry, int w); void GL_DrawHLine (int y0, int x0, int x1); void GL_DrawPolygon (const GUI_POINT * pPoints, int NumPoints, int x0, int y0); void GL_DrawPoint (int x, int y); void GL_DrawLine1 (int x0, int y0, int x1, int y1); void GL_DrawLine1Ex (int x0, int y0, int x1, int y1, unsigned * pPixelCnt); void GL_DrawLineRel (int dx, int dy); void GL_DrawLineTo (int x, int y); void GL_DrawLineToEx (int x, int y, unsigned * pPixelCnt); void GL_DrawLine (int x0, int y0, int x1, int y1); void GL_DrawLineEx (int x0, int y0, int x1, int y1, unsigned * pPixelCnt); void GL_MoveTo (int x, int y); void GL_FillCircle (int x0, int y0, int r); void GL_FillCircleAA (int x0, int y0, int r); void GL_FillEllipse (int x0, int y0, int rx, int ry); void GL_FillPolygon (const GUI_POINT * pPoints, int NumPoints, int x0, int y0); void GL_SetDefault (void); /********************************************************************* * * Replacement of memcpy() and memset() * ********************************************************************** *//* ... */ // // Configurable function pointers // extern void * (* GUI__pfMemset)(void * pDest, int Fill, size_t Cnt); extern void * (* GUI__pfMemcpy)(void * pDest, const void * pSrc, size_t Cnt); //extern void * (* GUI__pfMemset)(void * pDest, int Fill, unsigned Cnt); //extern void * (* GUI__pfMemcpy)(void * pDest, const void * pSrc, unsigned Cnt); // // Macros for typesave use of function pointers // #define GUI__MEMSET(pDest, Fill, Cnt) GUI__pfMemset((void *)(pDest), (int)(Fill), (size_t)(Cnt)) #define GUI__MEMCPY(pDest, pSrc, Cnt) GUI__pfMemcpy((void *)(pDest), (const void *)(pSrc), (size_t)(Cnt)) /********************************************************************* * * Callback pointers for dynamic linkage * ********************************************************************** Dynamic linkage pointers reduces configuration hassles. *//* ... */ typedef int GUI_tfTimer(void); typedef int WM_tfHandlePID(void); /********************************************************************* * * Text rotation * ********************************************************************** *//* ... */ extern GUI_RECT GUI_RectDispString; /* Used by LCD_Rotate...() and GUI_DispStringInRect() */ /********************************************************************* * * Flag for setting transparency for 'EXT' fonts * ********************************************************************** *//* ... */ extern U8 GUI__CharHasTrans; /********************************************************************* * * Multitasking support * ********************************************************************** *//* ... */ extern int GUITASK__EntranceCnt; /********************************************************************* * * Bitmap related functions * ********************************************************************** *//* ... */ int GUI_GetBitmapPixelIndex(const GUI_BITMAP * pBMP, unsigned x, unsigned y); GUI_COLOR GUI_GetBitmapPixelColor(const GUI_BITMAP * pBMP, unsigned x, unsigned y); int GUI_GetBitmapPixelIndexEx(int BitsPerPixel, int BytesPerLine, const U8 * pData, unsigned x, unsigned y); void GUI__DrawBitmap16bpp (int x0, int y0, int xsize, int ysize, const U8 * pPixel, const LCD_LOGPALETTE * pLogPal, int xMag, int yMag, tLCDDEV_Index2Color * pfIndex2Color, const LCD_API_COLOR_CONV * pColorConvAPI); void GUI__DrawBitmapA16bpp(int x0, int y0, int xSize, int ySize, const U8 * pPixel, const LCD_LOGPALETTE * pLogPal, int xMag, int yMag, tLCDDEV_Index2Color * pfIndex2Color); void GUI__SetPixelAlpha (int x, int y, U8 Alpha, LCD_COLOR Color); LCD_COLOR GUI__MixColors (LCD_COLOR Color, LCD_COLOR BkColor, U8 Intens); void GUI__MixColorsBulk (U32 * pFG, U32 * pBG, U32 * pDst, unsigned OffFG, unsigned OffBG, unsigned OffDest, unsigned xSize, unsigned ySize, U8 Intens); extern const GUI_UC_ENC_APILIST GUI_UC_None; /********************************************************************* * * LCDDEV_L0_xxx * ********************************************************************** *//* ... */ #define LCDDEV_L0_Color2Index GUI__apDevice[GUI_pContext->SelLayer]->pColorConvAPI->pfColor2Index #define LCDDEV_L0_Index2Color GUI__apDevice[GUI_pContext->SelLayer]->pColorConvAPI->pfIndex2Color #define LCDDEV_L0_DrawBitmap GUI__apDevice[GUI_pContext->SelLayer]->pDeviceAPI->pfDrawBitmap #define LCDDEV_L0_DrawHLine GUI__apDevice[GUI_pContext->SelLayer]->pDeviceAPI->pfDrawHLine #define LCDDEV_L0_DrawVLine GUI__apDevice[GUI_pContext->SelLayer]->pDeviceAPI->pfDrawVLine #define LCDDEV_L0_DrawPixel GUI__apDevice[GUI_pContext->SelLayer]->pDeviceAPI->pfDrawPixel #define LCDDEV_L0_FillRect GUI__apDevice[GUI_pContext->SelLayer]->pDeviceAPI->pfFillRect #define LCDDEV_L0_GetPixel GUI__apDevice[GUI_pContext->SelLayer]->pDeviceAPI->pfGetPixel #define LCDDEV_L0_GetRect GUI__apDevice[GUI_pContext->SelLayer]->pDeviceAPI->pfGetRect #define LCDDEV_L0_GetPixelIndex GUI__apDevice[GUI_pContext->SelLayer]->pDeviceAPI->pfGetPixelIndex #define LCDDEV_L0_SetPixelIndex GUI__apDevice[GUI_pContext->SelLayer]->pDeviceAPI->pfSetPixelIndex #define LCDDEV_L0_XorPixel GUI__apDevice[GUI_pContext->SelLayer]->pDeviceAPI->pfXorPixel #define LCDDEV_L0_GetDevFunc GUI__apDevice[GUI_pContext->SelLayer]->pDeviceAPI->pfGetDevFunc 13 defines void LCD_ReadRect (int x0, int y0, int x1, int y1, LCD_PIXELINDEX * pBuffer, GUI_DEVICE * pDevice); void GUI_ReadRect (int x0, int y0, int x1, int y1, LCD_PIXELINDEX * pBuffer, GUI_DEVICE * pDevice); void GUI_ReadRectEx(int x0, int y0, int x1, int y1, LCD_PIXELINDEX * pBuffer, GUI_DEVICE * pDevice); void LCD_ReadRectNoClip(int x0, int y0, int x1, int y1, LCD_PIXELINDEX * pBuffer, GUI_DEVICE * pDevice); /********************************************************************* * * Internal color management * ********************************************************************** *//* ... */ typedef struct { void (* pfSetColor) (LCD_COLOR Index); void (* pfSetBkColor) (LCD_COLOR Index); LCD_DRAWMODE (* pfSetDrawMode)(LCD_DRAWMODE dm); ...} LCD_SET_COLOR_API; extern const LCD_SET_COLOR_API * LCD__pSetColorAPI; #define LCD__SetBkColorIndex(Index) (*GUI_pContext->LCD_pBkColorIndex = Index) #define LCD__SetColorIndex(Index) (*GUI_pContext->LCD_pColorIndex = Index) #define LCD__GetBkColorIndex() (*GUI_pContext->LCD_pBkColorIndex) #define LCD__GetColorIndex() (*GUI_pContext->LCD_pColorIndex) /* The following 2 defines are only required for compatibility to older versions of the TTF library */ #define LCD_BKCOLORINDEX (*GUI_pContext->LCD_pBkColorIndex) #define LCD_COLORINDEX (*GUI_pContext->LCD_pColorIndex) 6 defines /********************************************************************* * * EXTERNs for GL_CORE * ********************************************************************** *//* ... */ extern const GUI_FONT * GUI__pFontDefault; extern GUI_COLOR GUI__ColorDefault; extern GUI_COLOR GUI__BkColorDefault; extern GUI_SADDR GUI_CONTEXT * GUI_pContext; extern GUI_DEVICE * GUI__apDevice[GUI_NUM_LAYERS]; // // Function pointer for converting a palette containing a color array into an index array // extern LCD_PIXELINDEX * (* GUI_pfGetpPalConvTable)(const LCD_LOGPALETTE * pLogPal, const GUI_BITMAP * pBitmap, int LayerIndex); // // Function pointer for mixing up 2 colors // extern LCD_COLOR (* GUI__pfMixColors)(LCD_COLOR Color, LCD_COLOR BkColor, U8 Intens); // // Function pointer for mixing up arrays of colors // extern void (* GUI__pfMixColorsBulk)(U32 * pFG, U32 * pBG, U32 * pDst, unsigned OffFG, unsigned OffBG, unsigned OffDest, unsigned xSize, unsigned ySize, U8 Intens); // // Function pointer for mixing color and gamma values // extern LCD_COLOR (* LCD_AA_pfMixColors16)(LCD_COLOR Color, LCD_COLOR BkColor, U8 Intens); // // Function pointer for drawing alpha memory devices // extern GUI_DRAWMEMDEV_FUNC * GUI__pfDrawAlphaMemdevFunc; extern GUI_DRAWMEMDEV_FUNC * GUI__pfDrawM565MemdevFunc; // // Function pointer for drawing alpha bitmaps // extern GUI_DRAWBITMAP_FUNC * GUI__pfDrawAlphaBitmapFunc; extern GUI_DRAWBITMAP_FUNC * GUI__pfDrawM565BitmapFunc; // // API list to be used for MultiBuffering // extern const GUI_MULTIBUF_API GUI_MULTIBUF_APIList; extern const GUI_MULTIBUF_API GUI_MULTIBUF_APIListMasked; extern const GUI_MULTIBUF_API_EX GUI_MULTIBUF_APIListEx; #ifdef GL_CORE_C #define GUI_EXTERN #else #define GUI_EXTERN extern #endif GUI_EXTERN void (* GUI_pfExecAnimations)(void); GUI_EXTERN int (* GUI_pfUpdateSoftLayer)(void); #ifdef WIN32 GUI_EXTERN void (* GUI_pfSoftlayerGetPixel)(int x, int y, void * p); #endif GUI_EXTERN void (* GUI_pfHookMTOUCH)(const GUI_MTOUCH_STATE * pState); GUI_EXTERN const GUI_UC_ENC_APILIST * GUI_pUC_API; /* Unicode encoding API */ GUI_EXTERN GUI_SADDR char GUI_DecChar; GUI_EXTERN GUI_tfTimer * GUI_pfTimerExec; GUI_EXTERN WM_tfHandlePID * WM_pfHandlePID; GUI_EXTERN void (* GUI_pfDispCharStyle)(U16 Char); GUI_EXTERN void (* GUI_pfDispCharLine)(int x0); GUI_EXTERN int GUI__BufferSize; // Required buffer size in pixels for alpha blending and/or antialiasing GUI_EXTERN int GUI_AA__ClipX0; // x0-clipping value for AA module GUI_EXTERN I8 GUI__aNumBuffers[GUI_NUM_LAYERS]; // Number of buffers used per layer GUI_EXTERN U8 GUI__PreserveTrans; GUI_EXTERN U8 GUI__IsInitialized; GUI_EXTERN U8 GUI__NumLayersInUse; GUI_EXTERN U32 GUI__LayerMask; #if GUI_SUPPORT_ROTATION GUI_EXTERN const tLCD_APIList * GUI_pLCD_APIList; /* Used for rotating text */ #endif GUI_EXTERN I16 GUI_OrgX, GUI_OrgY; #undef GUI_EXTERN #if defined(__cplusplus) }extern "C" { ... } #endif /* ... */ #endif /* GUI_PRIVATE_H */ /*************************** End of file ****************************/
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.