Headers for emWin lib
Dependents: DISCO-F746NG_rtos_test
emWin_header/FRAMEWIN.h@0:1bf8f02b0770, 2016-03-26 (annotated)
- Committer:
- redbird
- Date:
- Sat Mar 26 22:49:50 2016 +0000
- Revision:
- 0:1bf8f02b0770
new code integration
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
redbird | 0:1bf8f02b0770 | 1 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 2 | * SEGGER Microcontroller GmbH & Co. KG * |
redbird | 0:1bf8f02b0770 | 3 | * Solutions for real time microcontroller applications * |
redbird | 0:1bf8f02b0770 | 4 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 5 | * * |
redbird | 0:1bf8f02b0770 | 6 | * (c) 1996 - 2014 SEGGER Microcontroller GmbH & Co. KG * |
redbird | 0:1bf8f02b0770 | 7 | * * |
redbird | 0:1bf8f02b0770 | 8 | * Internet: www.segger.com Support: support@segger.com * |
redbird | 0:1bf8f02b0770 | 9 | * * |
redbird | 0:1bf8f02b0770 | 10 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 11 | |
redbird | 0:1bf8f02b0770 | 12 | ** emWin V5.24 - Graphical user interface for embedded applications ** |
redbird | 0:1bf8f02b0770 | 13 | All Intellectual Property rights in the Software belongs to SEGGER. |
redbird | 0:1bf8f02b0770 | 14 | emWin is protected by international copyright laws. Knowledge of the |
redbird | 0:1bf8f02b0770 | 15 | source code may not be used to write a similar product. This file may |
redbird | 0:1bf8f02b0770 | 16 | only be used in accordance with the following terms: |
redbird | 0:1bf8f02b0770 | 17 | |
redbird | 0:1bf8f02b0770 | 18 | The software has been licensed to NXP Semiconductors USA, Inc. whose |
redbird | 0:1bf8f02b0770 | 19 | registered office is situated at 411 E. Plumeria Drive, San Jose, |
redbird | 0:1bf8f02b0770 | 20 | CA 95134, USA solely for the purposes of creating libraries for |
redbird | 0:1bf8f02b0770 | 21 | NXPs M0, M3/M4 and ARM7/9 processor-based devices, sublicensed and |
redbird | 0:1bf8f02b0770 | 22 | distributed under the terms and conditions of the NXP End User License |
redbird | 0:1bf8f02b0770 | 23 | Agreement. |
redbird | 0:1bf8f02b0770 | 24 | Full source code is available at: www.segger.com |
redbird | 0:1bf8f02b0770 | 25 | |
redbird | 0:1bf8f02b0770 | 26 | We appreciate your understanding and fairness. |
redbird | 0:1bf8f02b0770 | 27 | ---------------------------------------------------------------------- |
redbird | 0:1bf8f02b0770 | 28 | File : FRAMEWIN.h |
redbird | 0:1bf8f02b0770 | 29 | Purpose : Frame window include |
redbird | 0:1bf8f02b0770 | 30 | --------------------END-OF-HEADER------------------------------------- |
redbird | 0:1bf8f02b0770 | 31 | */ |
redbird | 0:1bf8f02b0770 | 32 | |
redbird | 0:1bf8f02b0770 | 33 | #ifndef FRAMEWIN_H |
redbird | 0:1bf8f02b0770 | 34 | #define FRAMEWIN_H |
redbird | 0:1bf8f02b0770 | 35 | |
redbird | 0:1bf8f02b0770 | 36 | #include "WM.h" |
redbird | 0:1bf8f02b0770 | 37 | #include "WIDGET.h" /* Req. for WIDGET_DRAW_ITEM_FUNC */ |
redbird | 0:1bf8f02b0770 | 38 | #if GUI_WINSUPPORT |
redbird | 0:1bf8f02b0770 | 39 | #include "DIALOG_Intern.h" /* Req. for Create indirect data structure */ |
redbird | 0:1bf8f02b0770 | 40 | |
redbird | 0:1bf8f02b0770 | 41 | #if defined(__cplusplus) |
redbird | 0:1bf8f02b0770 | 42 | extern "C" { /* Make sure we have C-declarations in C++ programs */ |
redbird | 0:1bf8f02b0770 | 43 | #endif |
redbird | 0:1bf8f02b0770 | 44 | |
redbird | 0:1bf8f02b0770 | 45 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 46 | * |
redbird | 0:1bf8f02b0770 | 47 | * Defines |
redbird | 0:1bf8f02b0770 | 48 | * |
redbird | 0:1bf8f02b0770 | 49 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 50 | */ |
redbird | 0:1bf8f02b0770 | 51 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 52 | * |
redbird | 0:1bf8f02b0770 | 53 | * Configuration |
redbird | 0:1bf8f02b0770 | 54 | */ |
redbird | 0:1bf8f02b0770 | 55 | #ifndef FRAMEWIN_ALLOW_DRAG_ON_FRAME |
redbird | 0:1bf8f02b0770 | 56 | #define FRAMEWIN_ALLOW_DRAG_ON_FRAME 1 |
redbird | 0:1bf8f02b0770 | 57 | #endif |
redbird | 0:1bf8f02b0770 | 58 | |
redbird | 0:1bf8f02b0770 | 59 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 60 | * |
redbird | 0:1bf8f02b0770 | 61 | * Color indices |
redbird | 0:1bf8f02b0770 | 62 | */ |
redbird | 0:1bf8f02b0770 | 63 | #define FRAMEWIN_CI_INACTIVE 0 |
redbird | 0:1bf8f02b0770 | 64 | #define FRAMEWIN_CI_ACTIVE 1 |
redbird | 0:1bf8f02b0770 | 65 | |
redbird | 0:1bf8f02b0770 | 66 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 67 | * |
redbird | 0:1bf8f02b0770 | 68 | * Create / Status flags |
redbird | 0:1bf8f02b0770 | 69 | */ |
redbird | 0:1bf8f02b0770 | 70 | #define FRAMEWIN_CF_ACTIVE (1<<3) |
redbird | 0:1bf8f02b0770 | 71 | #define FRAMEWIN_CF_MOVEABLE (1<<4) |
redbird | 0:1bf8f02b0770 | 72 | #define FRAMEWIN_CF_TITLEVIS (1<<5) |
redbird | 0:1bf8f02b0770 | 73 | #define FRAMEWIN_CF_MINIMIZED (1<<6) |
redbird | 0:1bf8f02b0770 | 74 | #define FRAMEWIN_CF_MAXIMIZED (1<<7) |
redbird | 0:1bf8f02b0770 | 75 | #define FRAMEWIN_CF_DRAGGING (1<<8) |
redbird | 0:1bf8f02b0770 | 76 | |
redbird | 0:1bf8f02b0770 | 77 | #define FRAMEWIN_SF_ACTIVE FRAMEWIN_CF_ACTIVE |
redbird | 0:1bf8f02b0770 | 78 | #define FRAMEWIN_SF_MOVEABLE FRAMEWIN_CF_MOVEABLE |
redbird | 0:1bf8f02b0770 | 79 | #define FRAMEWIN_SF_TITLEVIS FRAMEWIN_CF_TITLEVIS |
redbird | 0:1bf8f02b0770 | 80 | #define FRAMEWIN_SF_MINIMIZED FRAMEWIN_CF_MINIMIZED |
redbird | 0:1bf8f02b0770 | 81 | #define FRAMEWIN_SF_MAXIMIZED FRAMEWIN_CF_MAXIMIZED |
redbird | 0:1bf8f02b0770 | 82 | #define FRAMEWIN_SF_DRAGGING FRAMEWIN_CF_DRAGGING |
redbird | 0:1bf8f02b0770 | 83 | |
redbird | 0:1bf8f02b0770 | 84 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 85 | * |
redbird | 0:1bf8f02b0770 | 86 | * BUTTON Flags |
redbird | 0:1bf8f02b0770 | 87 | */ |
redbird | 0:1bf8f02b0770 | 88 | #define FRAMEWIN_BUTTON_RIGHT (1<<0) |
redbird | 0:1bf8f02b0770 | 89 | #define FRAMEWIN_BUTTON_LEFT (1<<1) |
redbird | 0:1bf8f02b0770 | 90 | |
redbird | 0:1bf8f02b0770 | 91 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 92 | * |
redbird | 0:1bf8f02b0770 | 93 | * Skinning property indices |
redbird | 0:1bf8f02b0770 | 94 | */ |
redbird | 0:1bf8f02b0770 | 95 | #define FRAMEWIN_SKINFLEX_PI_ACTIVE 0 |
redbird | 0:1bf8f02b0770 | 96 | #define FRAMEWIN_SKINFLEX_PI_INACTIVE 1 |
redbird | 0:1bf8f02b0770 | 97 | |
redbird | 0:1bf8f02b0770 | 98 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 99 | * |
redbird | 0:1bf8f02b0770 | 100 | * Getting border size |
redbird | 0:1bf8f02b0770 | 101 | */ |
redbird | 0:1bf8f02b0770 | 102 | #define FRAMEWIN_BORDERSIZE_T 0 |
redbird | 0:1bf8f02b0770 | 103 | #define FRAMEWIN_BORDERSIZE_L 1 |
redbird | 0:1bf8f02b0770 | 104 | #define FRAMEWIN_BORDERSIZE_B 2 |
redbird | 0:1bf8f02b0770 | 105 | #define FRAMEWIN_BORDERSIZE_R 3 |
redbird | 0:1bf8f02b0770 | 106 | |
redbird | 0:1bf8f02b0770 | 107 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 108 | * |
redbird | 0:1bf8f02b0770 | 109 | * Types |
redbird | 0:1bf8f02b0770 | 110 | * |
redbird | 0:1bf8f02b0770 | 111 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 112 | */ |
redbird | 0:1bf8f02b0770 | 113 | typedef WM_HMEM FRAMEWIN_Handle; |
redbird | 0:1bf8f02b0770 | 114 | |
redbird | 0:1bf8f02b0770 | 115 | typedef struct { |
redbird | 0:1bf8f02b0770 | 116 | GUI_COLOR aColorFrame[3]; |
redbird | 0:1bf8f02b0770 | 117 | GUI_COLOR aColorTitle[2]; |
redbird | 0:1bf8f02b0770 | 118 | int Radius; |
redbird | 0:1bf8f02b0770 | 119 | int SpaceX; |
redbird | 0:1bf8f02b0770 | 120 | int BorderSizeL; |
redbird | 0:1bf8f02b0770 | 121 | int BorderSizeR; |
redbird | 0:1bf8f02b0770 | 122 | int BorderSizeT; |
redbird | 0:1bf8f02b0770 | 123 | int BorderSizeB; |
redbird | 0:1bf8f02b0770 | 124 | } FRAMEWIN_SKINFLEX_PROPS; |
redbird | 0:1bf8f02b0770 | 125 | |
redbird | 0:1bf8f02b0770 | 126 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 127 | * |
redbird | 0:1bf8f02b0770 | 128 | * Create functions |
redbird | 0:1bf8f02b0770 | 129 | * |
redbird | 0:1bf8f02b0770 | 130 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 131 | */ |
redbird | 0:1bf8f02b0770 | 132 | FRAMEWIN_Handle FRAMEWIN_Create (const char * pTitle, WM_CALLBACK * cb, int Flags, int x0, int y0, int xSize, int ySize); |
redbird | 0:1bf8f02b0770 | 133 | FRAMEWIN_Handle FRAMEWIN_CreateAsChild (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, const char * pText, WM_CALLBACK * cb, int Flags); |
redbird | 0:1bf8f02b0770 | 134 | FRAMEWIN_Handle FRAMEWIN_CreateEx (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, const char * pTitle, WM_CALLBACK * cb); |
redbird | 0:1bf8f02b0770 | 135 | FRAMEWIN_Handle FRAMEWIN_CreateUser (int x0, int y0, int xSize, int ySize, WM_HWIN hParent, int WinFlags, int ExFlags, int Id, const char * pTitle, WM_CALLBACK * cb, int NumExtraBytes); |
redbird | 0:1bf8f02b0770 | 136 | FRAMEWIN_Handle FRAMEWIN_CreateIndirect(const GUI_WIDGET_CREATE_INFO * pCreateInfo, WM_HWIN hWinParent, int x0, int y0, WM_CALLBACK * cb); |
redbird | 0:1bf8f02b0770 | 137 | |
redbird | 0:1bf8f02b0770 | 138 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 139 | * |
redbird | 0:1bf8f02b0770 | 140 | * The callback ... |
redbird | 0:1bf8f02b0770 | 141 | * |
redbird | 0:1bf8f02b0770 | 142 | * Do not call it directly ! It is only to be used from within an |
redbird | 0:1bf8f02b0770 | 143 | * overwritten callback. |
redbird | 0:1bf8f02b0770 | 144 | */ |
redbird | 0:1bf8f02b0770 | 145 | void FRAMEWIN_Callback(WM_MESSAGE * pMsg); |
redbird | 0:1bf8f02b0770 | 146 | |
redbird | 0:1bf8f02b0770 | 147 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 148 | * |
redbird | 0:1bf8f02b0770 | 149 | * Standard member functions |
redbird | 0:1bf8f02b0770 | 150 | * |
redbird | 0:1bf8f02b0770 | 151 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 152 | */ |
redbird | 0:1bf8f02b0770 | 153 | #define FRAMEWIN_EnableMemdev(hObj) WM_EnableMemdev(hObj) |
redbird | 0:1bf8f02b0770 | 154 | #define FRAMEWIN_DisableMemdev(hObj) WM_DisableMemdev(hObj) |
redbird | 0:1bf8f02b0770 | 155 | #define FRAMEWIN_Delete(hObj) WM_DeleteWindow(hObj) |
redbird | 0:1bf8f02b0770 | 156 | #define FRAMEWIN_Paint(hObj) WM_Paint(hObj) |
redbird | 0:1bf8f02b0770 | 157 | #define FRAMEWIN_Invalidate(hObj) WM_InvalidateWindow(hObj) |
redbird | 0:1bf8f02b0770 | 158 | |
redbird | 0:1bf8f02b0770 | 159 | WM_HWIN FRAMEWIN_AddButton (FRAMEWIN_Handle hObj, int Flags, int Off, int Id); |
redbird | 0:1bf8f02b0770 | 160 | WM_HWIN FRAMEWIN_AddCloseButton(FRAMEWIN_Handle hObj, int Flags, int Off); |
redbird | 0:1bf8f02b0770 | 161 | WM_HWIN FRAMEWIN_AddMaxButton (FRAMEWIN_Handle hObj, int Flags, int Off); |
redbird | 0:1bf8f02b0770 | 162 | void FRAMEWIN_AddMenu (FRAMEWIN_Handle hObj, WM_HWIN hMenu); |
redbird | 0:1bf8f02b0770 | 163 | WM_HWIN FRAMEWIN_AddMinButton (FRAMEWIN_Handle hObj, int Flags, int Off); |
redbird | 0:1bf8f02b0770 | 164 | |
redbird | 0:1bf8f02b0770 | 165 | void FRAMEWIN_Minimize (FRAMEWIN_Handle hObj); |
redbird | 0:1bf8f02b0770 | 166 | void FRAMEWIN_Maximize (FRAMEWIN_Handle hObj); |
redbird | 0:1bf8f02b0770 | 167 | void FRAMEWIN_Restore (FRAMEWIN_Handle hObj); |
redbird | 0:1bf8f02b0770 | 168 | |
redbird | 0:1bf8f02b0770 | 169 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 170 | * |
redbird | 0:1bf8f02b0770 | 171 | * Member functions: Set Properties |
redbird | 0:1bf8f02b0770 | 172 | * |
redbird | 0:1bf8f02b0770 | 173 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 174 | */ |
redbird | 0:1bf8f02b0770 | 175 | void FRAMEWIN_SetActive (FRAMEWIN_Handle hObj, int State); |
redbird | 0:1bf8f02b0770 | 176 | void FRAMEWIN_SetBarColor (FRAMEWIN_Handle hObj, unsigned Index, GUI_COLOR Color); |
redbird | 0:1bf8f02b0770 | 177 | void FRAMEWIN_SetBorderSize (FRAMEWIN_Handle hObj, unsigned Size); |
redbird | 0:1bf8f02b0770 | 178 | void FRAMEWIN_SetClientColor (FRAMEWIN_Handle hObj, GUI_COLOR Color); |
redbird | 0:1bf8f02b0770 | 179 | void FRAMEWIN_SetFont (FRAMEWIN_Handle hObj, const GUI_FONT * pFont); |
redbird | 0:1bf8f02b0770 | 180 | void FRAMEWIN_SetMoveable (FRAMEWIN_Handle hObj, int State); |
redbird | 0:1bf8f02b0770 | 181 | void FRAMEWIN_SetOwnerDraw (FRAMEWIN_Handle hObj, WIDGET_DRAW_ITEM_FUNC * pfDrawItem); |
redbird | 0:1bf8f02b0770 | 182 | void FRAMEWIN_SetResizeable (FRAMEWIN_Handle hObj, int State); |
redbird | 0:1bf8f02b0770 | 183 | void FRAMEWIN_SetText (FRAMEWIN_Handle hObj, const char* s); |
redbird | 0:1bf8f02b0770 | 184 | void FRAMEWIN_SetTextAlign (FRAMEWIN_Handle hObj, int Align); |
redbird | 0:1bf8f02b0770 | 185 | void FRAMEWIN_SetTextColor (FRAMEWIN_Handle hObj, GUI_COLOR Color); |
redbird | 0:1bf8f02b0770 | 186 | void FRAMEWIN_SetTextColorEx (FRAMEWIN_Handle hObj, unsigned Index, GUI_COLOR Color); |
redbird | 0:1bf8f02b0770 | 187 | void FRAMEWIN_SetTitleVis (FRAMEWIN_Handle hObj, int Show); |
redbird | 0:1bf8f02b0770 | 188 | int FRAMEWIN_SetTitleHeight (FRAMEWIN_Handle hObj, int Height); |
redbird | 0:1bf8f02b0770 | 189 | int FRAMEWIN_SetUserData (FRAMEWIN_Handle hObj, const void * pSrc, int NumBytes); |
redbird | 0:1bf8f02b0770 | 190 | |
redbird | 0:1bf8f02b0770 | 191 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 192 | * |
redbird | 0:1bf8f02b0770 | 193 | * Member functions: Skinning |
redbird | 0:1bf8f02b0770 | 194 | * |
redbird | 0:1bf8f02b0770 | 195 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 196 | */ |
redbird | 0:1bf8f02b0770 | 197 | void FRAMEWIN_GetSkinFlexProps (FRAMEWIN_SKINFLEX_PROPS * pProps, int Index); |
redbird | 0:1bf8f02b0770 | 198 | void FRAMEWIN_SetSkinClassic (FRAMEWIN_Handle hObj); |
redbird | 0:1bf8f02b0770 | 199 | void FRAMEWIN_SetSkin (FRAMEWIN_Handle hObj, WIDGET_DRAW_ITEM_FUNC * pfDrawSkin); |
redbird | 0:1bf8f02b0770 | 200 | int FRAMEWIN_DrawSkinFlex (const WIDGET_ITEM_DRAW_INFO * pDrawItemInfo); |
redbird | 0:1bf8f02b0770 | 201 | void FRAMEWIN_SetSkinFlexProps (const FRAMEWIN_SKINFLEX_PROPS * pProps, int Index); |
redbird | 0:1bf8f02b0770 | 202 | void FRAMEWIN_SetDefaultSkinClassic(void); |
redbird | 0:1bf8f02b0770 | 203 | WIDGET_DRAW_ITEM_FUNC * FRAMEWIN_SetDefaultSkin(WIDGET_DRAW_ITEM_FUNC * pfDrawSkin); |
redbird | 0:1bf8f02b0770 | 204 | |
redbird | 0:1bf8f02b0770 | 205 | #define FRAMEWIN_SKIN_FLEX FRAMEWIN_DrawSkinFlex |
redbird | 0:1bf8f02b0770 | 206 | |
redbird | 0:1bf8f02b0770 | 207 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 208 | * |
redbird | 0:1bf8f02b0770 | 209 | * Member functions: Get Properties |
redbird | 0:1bf8f02b0770 | 210 | * |
redbird | 0:1bf8f02b0770 | 211 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 212 | */ |
redbird | 0:1bf8f02b0770 | 213 | const GUI_FONT * FRAMEWIN_GetFont(FRAMEWIN_Handle hObj); |
redbird | 0:1bf8f02b0770 | 214 | |
redbird | 0:1bf8f02b0770 | 215 | int FRAMEWIN_GetActive (FRAMEWIN_Handle hObj); |
redbird | 0:1bf8f02b0770 | 216 | int FRAMEWIN_GetTitleHeight (FRAMEWIN_Handle hObj); |
redbird | 0:1bf8f02b0770 | 217 | GUI_COLOR FRAMEWIN_GetBarColor (FRAMEWIN_Handle hObj, unsigned Index); |
redbird | 0:1bf8f02b0770 | 218 | int FRAMEWIN_GetBorderSize (FRAMEWIN_Handle hObj); |
redbird | 0:1bf8f02b0770 | 219 | int FRAMEWIN_GetBorderSizeEx(FRAMEWIN_Handle hObj, unsigned Edge); |
redbird | 0:1bf8f02b0770 | 220 | void FRAMEWIN_GetText (FRAMEWIN_Handle hObj, char * pBuffer, int MaxLen); |
redbird | 0:1bf8f02b0770 | 221 | int FRAMEWIN_GetTextAlign (FRAMEWIN_Handle hObj); |
redbird | 0:1bf8f02b0770 | 222 | int FRAMEWIN_GetUserData (FRAMEWIN_Handle hObj, void * pDest, int NumBytes); |
redbird | 0:1bf8f02b0770 | 223 | int FRAMEWIN_IsMinimized (FRAMEWIN_Handle hObj); |
redbird | 0:1bf8f02b0770 | 224 | int FRAMEWIN_IsMaximized (FRAMEWIN_Handle hObj); |
redbird | 0:1bf8f02b0770 | 225 | |
redbird | 0:1bf8f02b0770 | 226 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 227 | * |
redbird | 0:1bf8f02b0770 | 228 | * Global functions |
redbird | 0:1bf8f02b0770 | 229 | * |
redbird | 0:1bf8f02b0770 | 230 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 231 | */ |
redbird | 0:1bf8f02b0770 | 232 | GUI_COLOR FRAMEWIN_GetDefaultBarColor (unsigned Index); |
redbird | 0:1bf8f02b0770 | 233 | int FRAMEWIN_GetDefaultBorderSize (void); |
redbird | 0:1bf8f02b0770 | 234 | int FRAMEWIN_GetDefaultTitleHeight(void); |
redbird | 0:1bf8f02b0770 | 235 | GUI_COLOR FRAMEWIN_GetDefaultClientColor(void); |
redbird | 0:1bf8f02b0770 | 236 | const GUI_FONT * FRAMEWIN_GetDefaultFont (void); |
redbird | 0:1bf8f02b0770 | 237 | GUI_COLOR FRAMEWIN_GetDefaultTextColor (unsigned Index); |
redbird | 0:1bf8f02b0770 | 238 | int FRAMEWIN_OwnerDraw (const WIDGET_ITEM_DRAW_INFO * pDrawItemInfo); |
redbird | 0:1bf8f02b0770 | 239 | void FRAMEWIN_SetDefaultBarColor (unsigned Index, GUI_COLOR Color); |
redbird | 0:1bf8f02b0770 | 240 | void FRAMEWIN_SetDefaultBorderSize (int DefaultBorderSize); |
redbird | 0:1bf8f02b0770 | 241 | void FRAMEWIN_SetDefaultTitleHeight(int DefaultTitleHeight); |
redbird | 0:1bf8f02b0770 | 242 | void FRAMEWIN_SetDefaultClientColor(GUI_COLOR Color); |
redbird | 0:1bf8f02b0770 | 243 | void FRAMEWIN_SetDefaultFont (const GUI_FONT * pFont); |
redbird | 0:1bf8f02b0770 | 244 | int FRAMEWIN_SetDefaultTextAlign (int TextAlign); |
redbird | 0:1bf8f02b0770 | 245 | void FRAMEWIN_SetDefaultTextColor (unsigned Index, GUI_COLOR Color); |
redbird | 0:1bf8f02b0770 | 246 | |
redbird | 0:1bf8f02b0770 | 247 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 248 | * |
redbird | 0:1bf8f02b0770 | 249 | * Macros for compatibility |
redbird | 0:1bf8f02b0770 | 250 | * |
redbird | 0:1bf8f02b0770 | 251 | ********************************************************************** |
redbird | 0:1bf8f02b0770 | 252 | */ |
redbird | 0:1bf8f02b0770 | 253 | #define FRAMEWIN_SetDefaultCaptionSize(Height) FRAMEWIN_SetDefaultTitleHeight(Height) |
redbird | 0:1bf8f02b0770 | 254 | #define FRAMEWIN_GetDefaultCaptionSize() FRAMEWIN_GetDefaultTitleHeight() |
redbird | 0:1bf8f02b0770 | 255 | #define FRAMEWIN_CreateButton(hObj, Flags, Off, Id) FRAMEWIN_AddButton(hObj, Flags, Off, Id) |
redbird | 0:1bf8f02b0770 | 256 | #define FRAMEWIN_CreateCloseButton(hObj, Flags, Off) FRAMEWIN_AddCloseButton(hObj, Flags, Off) |
redbird | 0:1bf8f02b0770 | 257 | #define FRAMEWIN_CreateMaxButton(hObj, Flags, Off) FRAMEWIN_AddMaxButton(hObj, Flags, Off) |
redbird | 0:1bf8f02b0770 | 258 | #define FRAMEWIN_CreateMinButton(hObj, Flags, Off) FRAMEWIN_AddMinButton(hObj, Flags, Off) |
redbird | 0:1bf8f02b0770 | 259 | |
redbird | 0:1bf8f02b0770 | 260 | #if defined(__cplusplus) |
redbird | 0:1bf8f02b0770 | 261 | } |
redbird | 0:1bf8f02b0770 | 262 | #endif |
redbird | 0:1bf8f02b0770 | 263 | |
redbird | 0:1bf8f02b0770 | 264 | #endif // GUI_WINSUPPORT |
redbird | 0:1bf8f02b0770 | 265 | #endif // FRAMEWIN_H |
redbird | 0:1bf8f02b0770 | 266 | |
redbird | 0:1bf8f02b0770 | 267 | /*************************** End of file ****************************/ |