STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
SLIDER_Private.h
Go to the documentation of this file.
1 /*********************************************************************
2 * SEGGER Microcontroller GmbH & Co. KG *
3 * Solutions for real time microcontroller applications *
4 **********************************************************************
5 * *
6 * (c) 1996 - 2015 SEGGER Microcontroller GmbH & Co. KG *
7 * *
8 * Internet: www.segger.com Support: support@segger.com *
9 * *
10 **********************************************************************
11 
12 ** emWin V5.28 - Graphical user interface for embedded applications **
13 All Intellectual Property rights in the Software belongs to SEGGER.
14 emWin is protected by international copyright laws. Knowledge of the
15 source code may not be used to write a similar product. This file may
16 only be used in accordance with the following terms:
17 
18 The software has been licensed to STMicroelectronics International
19 N.V. a Dutch company with a Swiss branch and its headquarters in Plan-
20 les-Ouates, Geneva, 39 Chemin du Champ des Filles, Switzerland for the
21 purposes of creating libraries for ARM Cortex-M-based 32-bit microcon_
22 troller products commercialized by Licensee only, sublicensed and dis_
23 tributed under the terms and conditions of the End User License Agree_
24 ment supplied by STMicroelectronics International N.V.
25 Full source code is available at: www.segger.com
26 
27 We appreciate your understanding and fairness.
28 ----------------------------------------------------------------------
29 File : SLIDER_Private.h
30 Purpose : SLIDER private header file
31 --------------------END-OF-HEADER-------------------------------------
32 */
33 
34 #ifndef SLIDER_PRIVATE_H
35 #define SLIDER_PRIVATE_H
36 
37 #include "WM.h"
38 #include "WIDGET.h"
39 #include "SLIDER.h"
40 
41 #if GUI_WINSUPPORT
42 
43 /*********************************************************************
44 *
45 * Defines
46 *
47 **********************************************************************
48 */
49 //
50 // Flags
51 //
52 #define SLIDER_FLAG_DRAW_FOCUS_RECT (1 << 0)
53 
54 /*********************************************************************
55 *
56 * Object definition
57 *
58 **********************************************************************
59 */
60 typedef struct {
61  WIDGET_DRAW_ITEM_FUNC * pfDrawSkin;
62 } SLIDER_SKIN_PRIVATE;
63 
64 typedef struct {
65  U8 Flags;
66  GUI_COLOR BkColor;
67  GUI_COLOR BarColor;
68  GUI_COLOR FocusColor;
69  GUI_COLOR TickColor;
70  SLIDER_SKIN_PRIVATE SkinPrivate;
71 } SLIDER_PROPS;
72 
73 typedef struct {
74  WIDGET Widget;
75  SLIDER_PROPS Props;
76  WIDGET_SKIN const * pWidgetSkin;
77  int NumTicks;
78  int Max;
79  int Min;
80  int v;
81  I16 Width;
82 } SLIDER_Obj;
83 
84 /*********************************************************************
85 *
86 * Macros for internal use
87 *
88 **********************************************************************
89 */
90 #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL
91  #define SLIDER_INIT_ID(p) (p->Widget.DebugId = SLIDER_ID)
92 #else
93  #define SLIDER_INIT_ID(p)
94 #endif
95 
96 #if GUI_DEBUG_LEVEL >= GUI_DEBUG_LEVEL_CHECK_ALL
97  SLIDER_Obj * SLIDER_LockH(SLIDER_Handle h);
98  #define SLIDER_LOCK_H(h) SLIDER_LockH(h)
99 #else
100  #define SLIDER_LOCK_H(h) (SLIDER_Obj *)GUI_LOCK_H(h)
101 #endif
102 
103 #ifndef SLIDER_SUPPORT_TRANSPARENCY
104  #define SLIDER_SUPPORT_TRANSPARENCY WM_SUPPORT_TRANSPARENCY
105 #endif
106 
107 /*********************************************************************
108 *
109 * Public data (internal defaults)
110 *
111 **********************************************************************
112 */
113 extern SLIDER_PROPS SLIDER__DefaultProps;
114 extern const WIDGET_SKIN SLIDER__SkinClassic;
115 extern WIDGET_SKIN SLIDER__Skin;
116 extern const WIDGET_SKIN * SLIDER__pSkinDefault;
117 
118 #endif // GUI_WINSUPPORT
119 #endif // SLIDER_PRIVATE_H
120 
121 /*************************** End of file ****************************/
LCD_COLOR GUI_COLOR
Definition: GUI_Type.h:50
#define I16
Definition: Global.h:56
#define U8
Definition: Global.h:44