Headers for emWin lib
Dependents: DISCO-F746NG_rtos_test
emWin_header/WM.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 : WM.h |
redbird | 0:1bf8f02b0770 | 29 | Purpose : Windows manager include |
redbird | 0:1bf8f02b0770 | 30 | ---------------------------------------------------------------------- |
redbird | 0:1bf8f02b0770 | 31 | */ |
redbird | 0:1bf8f02b0770 | 32 | |
redbird | 0:1bf8f02b0770 | 33 | #ifndef WM_H /* Make sure we only include it once */ |
redbird | 0:1bf8f02b0770 | 34 | #define WM_H |
redbird | 0:1bf8f02b0770 | 35 | |
redbird | 0:1bf8f02b0770 | 36 | |
redbird | 0:1bf8f02b0770 | 37 | #include "GUI_ConfDefaults.h" |
redbird | 0:1bf8f02b0770 | 38 | #include "GUI_Type.h" /* Needed because of typedefs only */ |
redbird | 0:1bf8f02b0770 | 39 | #include "WM_GUI.h" /* Some functions needed by GUI routines */ |
redbird | 0:1bf8f02b0770 | 40 | #include "GUI.h" |
redbird | 0:1bf8f02b0770 | 41 | |
redbird | 0:1bf8f02b0770 | 42 | #if defined(__cplusplus) |
redbird | 0:1bf8f02b0770 | 43 | extern "C" { /* Make sure we have C-declarations in C++ programs */ |
redbird | 0:1bf8f02b0770 | 44 | #endif |
redbird | 0:1bf8f02b0770 | 45 | |
redbird | 0:1bf8f02b0770 | 46 | /* Static memory devices */ |
redbird | 0:1bf8f02b0770 | 47 | #ifndef WM_SUPPORT_STATIC_MEMDEV |
redbird | 0:1bf8f02b0770 | 48 | #define WM_SUPPORT_STATIC_MEMDEV GUI_SUPPORT_MEMDEV |
redbird | 0:1bf8f02b0770 | 49 | #endif |
redbird | 0:1bf8f02b0770 | 50 | |
redbird | 0:1bf8f02b0770 | 51 | /* Support for transparency. Switching it off makes Wm smaller and faster */ |
redbird | 0:1bf8f02b0770 | 52 | #ifndef WM_SUPPORT_TRANSPARENCY |
redbird | 0:1bf8f02b0770 | 53 | #define WM_SUPPORT_TRANSPARENCY 1 /* Should be defined outside of GUI_WINSUPPORT because of '#if GUI_WINSUPPORT && WM_SUPPORT_TRANSPARENCY' in some files */ |
redbird | 0:1bf8f02b0770 | 54 | #endif |
redbird | 0:1bf8f02b0770 | 55 | |
redbird | 0:1bf8f02b0770 | 56 | /* This is for tests only. It will fill the invalid area of a window. |
redbird | 0:1bf8f02b0770 | 57 | Can be used for debugging. */ |
redbird | 0:1bf8f02b0770 | 58 | #ifndef WM_SUPPORT_DIAG |
redbird | 0:1bf8f02b0770 | 59 | #ifdef WIN32 /* In simulation */ |
redbird | 0:1bf8f02b0770 | 60 | #define WM_SUPPORT_DIAG GUI_WINSUPPORT |
redbird | 0:1bf8f02b0770 | 61 | #else |
redbird | 0:1bf8f02b0770 | 62 | #define WM_SUPPORT_DIAG 0 |
redbird | 0:1bf8f02b0770 | 63 | #endif |
redbird | 0:1bf8f02b0770 | 64 | #endif |
redbird | 0:1bf8f02b0770 | 65 | |
redbird | 0:1bf8f02b0770 | 66 | /* Make sure we actually have configured windows. If we have not, |
redbird | 0:1bf8f02b0770 | 67 | there is no point for a windows manager and it will therefor not |
redbird | 0:1bf8f02b0770 | 68 | generate any code ! |
redbird | 0:1bf8f02b0770 | 69 | */ |
redbird | 0:1bf8f02b0770 | 70 | |
redbird | 0:1bf8f02b0770 | 71 | #if GUI_WINSUPPORT |
redbird | 0:1bf8f02b0770 | 72 | |
redbird | 0:1bf8f02b0770 | 73 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 74 | * |
redbird | 0:1bf8f02b0770 | 75 | * Config defaults |
redbird | 0:1bf8f02b0770 | 76 | */ |
redbird | 0:1bf8f02b0770 | 77 | #ifndef WM_ASSERT |
redbird | 0:1bf8f02b0770 | 78 | #define WM_ASSERT(expr) GUI_DEBUG_ASSERT(expr) |
redbird | 0:1bf8f02b0770 | 79 | #endif |
redbird | 0:1bf8f02b0770 | 80 | |
redbird | 0:1bf8f02b0770 | 81 | #ifndef WM_SUPPORT_TOUCH |
redbird | 0:1bf8f02b0770 | 82 | #define WM_SUPPORT_TOUCH GUI_SUPPORT_TOUCH |
redbird | 0:1bf8f02b0770 | 83 | #endif |
redbird | 0:1bf8f02b0770 | 84 | |
redbird | 0:1bf8f02b0770 | 85 | /* Allow older API calls */ |
redbird | 0:1bf8f02b0770 | 86 | #ifndef WM_COMPATIBLE_MODE |
redbird | 0:1bf8f02b0770 | 87 | #define WM_COMPATIBLE_MODE 1 |
redbird | 0:1bf8f02b0770 | 88 | #endif |
redbird | 0:1bf8f02b0770 | 89 | |
redbird | 0:1bf8f02b0770 | 90 | /* Send a message if visibility of a window has changed */ |
redbird | 0:1bf8f02b0770 | 91 | #ifndef WM_SUPPORT_NOTIFY_VIS_CHANGED |
redbird | 0:1bf8f02b0770 | 92 | #define WM_SUPPORT_NOTIFY_VIS_CHANGED 0 |
redbird | 0:1bf8f02b0770 | 93 | #endif |
redbird | 0:1bf8f02b0770 | 94 | |
redbird | 0:1bf8f02b0770 | 95 | #ifndef WM_SUPPORT_CPP |
redbird | 0:1bf8f02b0770 | 96 | #if defined (_MSC_VER) |
redbird | 0:1bf8f02b0770 | 97 | #define WM_SUPPORT_CPP 1 |
redbird | 0:1bf8f02b0770 | 98 | #else |
redbird | 0:1bf8f02b0770 | 99 | #define WM_SUPPORT_CPP 0 |
redbird | 0:1bf8f02b0770 | 100 | #endif |
redbird | 0:1bf8f02b0770 | 101 | #endif |
redbird | 0:1bf8f02b0770 | 102 | |
redbird | 0:1bf8f02b0770 | 103 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 104 | * |
redbird | 0:1bf8f02b0770 | 105 | * Locking macros |
redbird | 0:1bf8f02b0770 | 106 | */ |
redbird | 0:1bf8f02b0770 | 107 | #define WM_LOCK() GUI_LOCK() |
redbird | 0:1bf8f02b0770 | 108 | #define WM_UNLOCK() GUI_UNLOCK() |
redbird | 0:1bf8f02b0770 | 109 | |
redbird | 0:1bf8f02b0770 | 110 | #define WM_LOCK_H(hWin) (WM_Obj *)GUI_LOCK_H(hWin) |
redbird | 0:1bf8f02b0770 | 111 | |
redbird | 0:1bf8f02b0770 | 112 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 113 | * |
redbird | 0:1bf8f02b0770 | 114 | * Data types |
redbird | 0:1bf8f02b0770 | 115 | */ |
redbird | 0:1bf8f02b0770 | 116 | typedef struct { |
redbird | 0:1bf8f02b0770 | 117 | int Key, PressedCnt; |
redbird | 0:1bf8f02b0770 | 118 | } WM_KEY_INFO; |
redbird | 0:1bf8f02b0770 | 119 | |
redbird | 0:1bf8f02b0770 | 120 | typedef struct { |
redbird | 0:1bf8f02b0770 | 121 | int NumItems, v, PageSize; |
redbird | 0:1bf8f02b0770 | 122 | } WM_SCROLL_STATE; |
redbird | 0:1bf8f02b0770 | 123 | |
redbird | 0:1bf8f02b0770 | 124 | typedef struct { |
redbird | 0:1bf8f02b0770 | 125 | int Done; |
redbird | 0:1bf8f02b0770 | 126 | int ReturnValue; |
redbird | 0:1bf8f02b0770 | 127 | } WM_DIALOG_STATUS; |
redbird | 0:1bf8f02b0770 | 128 | |
redbird | 0:1bf8f02b0770 | 129 | typedef struct { |
redbird | 0:1bf8f02b0770 | 130 | int x,y; |
redbird | 0:1bf8f02b0770 | 131 | U8 State; |
redbird | 0:1bf8f02b0770 | 132 | U8 StatePrev; |
redbird | 0:1bf8f02b0770 | 133 | } WM_PID_STATE_CHANGED_INFO; |
redbird | 0:1bf8f02b0770 | 134 | |
redbird | 0:1bf8f02b0770 | 135 | typedef struct { |
redbird | 0:1bf8f02b0770 | 136 | void (* cbBegin)(void); |
redbird | 0:1bf8f02b0770 | 137 | void (* cbEnd) (void); |
redbird | 0:1bf8f02b0770 | 138 | } WM_MULTIBUF_API; |
redbird | 0:1bf8f02b0770 | 139 | |
redbird | 0:1bf8f02b0770 | 140 | typedef struct { |
redbird | 0:1bf8f02b0770 | 141 | int Cmd; |
redbird | 0:1bf8f02b0770 | 142 | int dx, dy, da; |
redbird | 0:1bf8f02b0770 | 143 | int xPos, yPos; |
redbird | 0:1bf8f02b0770 | 144 | int Period; |
redbird | 0:1bf8f02b0770 | 145 | int SnapX; |
redbird | 0:1bf8f02b0770 | 146 | int SnapY; |
redbird | 0:1bf8f02b0770 | 147 | int FinalMove; |
redbird | 0:1bf8f02b0770 | 148 | U32 Flags; |
redbird | 0:1bf8f02b0770 | 149 | GUI_PID_STATE * pState; |
redbird | 0:1bf8f02b0770 | 150 | GUI_HMEM hContext; |
redbird | 0:1bf8f02b0770 | 151 | } WM_MOTION_INFO; |
redbird | 0:1bf8f02b0770 | 152 | |
redbird | 0:1bf8f02b0770 | 153 | typedef struct { |
redbird | 0:1bf8f02b0770 | 154 | I32 FactorMin; // Minimum factor to be used (<< 16) |
redbird | 0:1bf8f02b0770 | 155 | I32 FactorMax; // Maximum factor to be used (<< 16) |
redbird | 0:1bf8f02b0770 | 156 | U32 xSize; // Native xSize of window to be zoomed in pixels |
redbird | 0:1bf8f02b0770 | 157 | U32 ySize; // Native ySize of window to be zoomed in pixels |
redbird | 0:1bf8f02b0770 | 158 | U32 xSizeParent; // xSize of parent window |
redbird | 0:1bf8f02b0770 | 159 | U32 ySizeParent; // ySize of parent window |
redbird | 0:1bf8f02b0770 | 160 | I32 Factor0; // Primary factor when starting zoom gesture (<< 16) |
redbird | 0:1bf8f02b0770 | 161 | int xPos0; // Primary window position in x when starting the gesture |
redbird | 0:1bf8f02b0770 | 162 | int yPos0; // Primary window position in y when starting the gesture |
redbird | 0:1bf8f02b0770 | 163 | GUI_POINT Center0; // Primary center point when starting the gesture |
redbird | 0:1bf8f02b0770 | 164 | } WM_ZOOM_INFO; |
redbird | 0:1bf8f02b0770 | 165 | |
redbird | 0:1bf8f02b0770 | 166 | typedef struct { |
redbird | 0:1bf8f02b0770 | 167 | int Flags; // Information regarding gesture type |
redbird | 0:1bf8f02b0770 | 168 | GUI_POINT Point; // Relative movement |
redbird | 0:1bf8f02b0770 | 169 | GUI_POINT Center; // Center point for zooming |
redbird | 0:1bf8f02b0770 | 170 | I32 Angle; // Angle between the touch points |
redbird | 0:1bf8f02b0770 | 171 | I32 Factor; // Current zoom factor |
redbird | 0:1bf8f02b0770 | 172 | WM_ZOOM_INFO * pZoomInfo; // Pointer to WM_ZOOM_INFO structure |
redbird | 0:1bf8f02b0770 | 173 | } WM_GESTURE_INFO; |
redbird | 0:1bf8f02b0770 | 174 | |
redbird | 0:1bf8f02b0770 | 175 | typedef struct { |
redbird | 0:1bf8f02b0770 | 176 | int dx, dy; |
redbird | 0:1bf8f02b0770 | 177 | } WM_MOVE_INFO; |
redbird | 0:1bf8f02b0770 | 178 | |
redbird | 0:1bf8f02b0770 | 179 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 180 | * |
redbird | 0:1bf8f02b0770 | 181 | * Gesture flags for multi touch support |
redbird | 0:1bf8f02b0770 | 182 | */ |
redbird | 0:1bf8f02b0770 | 183 | #define WM_GF_BEGIN (1 << 0) |
redbird | 0:1bf8f02b0770 | 184 | #define WM_GF_END (1 << 1) |
redbird | 0:1bf8f02b0770 | 185 | #define WM_GF_PAN (1 << 2) |
redbird | 0:1bf8f02b0770 | 186 | #define WM_GF_ZOOM (1 << 3) |
redbird | 0:1bf8f02b0770 | 187 | #define WM_GF_ROTATE (1 << 4) |
redbird | 0:1bf8f02b0770 | 188 | |
redbird | 0:1bf8f02b0770 | 189 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 190 | * |
redbird | 0:1bf8f02b0770 | 191 | * Messages Ids |
redbird | 0:1bf8f02b0770 | 192 | * |
redbird | 0:1bf8f02b0770 | 193 | * The following is the list of windows messages. |
redbird | 0:1bf8f02b0770 | 194 | */ |
redbird | 0:1bf8f02b0770 | 195 | #define WM_CREATE 0x0001 /* The first message received, right after client has actually been created */ |
redbird | 0:1bf8f02b0770 | 196 | #define WM_MOVE 0x0003 /* window has been moved (Same as WIN32) */ |
redbird | 0:1bf8f02b0770 | 197 | |
redbird | 0:1bf8f02b0770 | 198 | #define WM_SIZE 0x0005 /* Is sent to a window after its size has changed (Same as WIN32, do not change !) */ |
redbird | 0:1bf8f02b0770 | 199 | |
redbird | 0:1bf8f02b0770 | 200 | #define WM_DELETE 11 /* Delete (Destroy) command: This tells the client to free its data strutures since the window |
redbird | 0:1bf8f02b0770 | 201 | it is associates with no longer exists.*/ |
redbird | 0:1bf8f02b0770 | 202 | #define WM_TOUCH 0x0240 /* Touch screen message */ |
redbird | 0:1bf8f02b0770 | 203 | #define WM_TOUCH_CHILD 13 /* Touch screen message to ancestors */ |
redbird | 0:1bf8f02b0770 | 204 | #define WM_KEY 14 /* Key has been pressed */ |
redbird | 0:1bf8f02b0770 | 205 | |
redbird | 0:1bf8f02b0770 | 206 | #define WM_PAINT 0x000F /* Repaint window (because content is (partially) invalid */ |
redbird | 0:1bf8f02b0770 | 207 | |
redbird | 0:1bf8f02b0770 | 208 | #if GUI_SUPPORT_MOUSE |
redbird | 0:1bf8f02b0770 | 209 | #define WM_MOUSEOVER 16 /* Mouse has moved, no key pressed */ |
redbird | 0:1bf8f02b0770 | 210 | #define WM_MOUSEOVER_END 18 /* Mouse has moved, no key pressed */ |
redbird | 0:1bf8f02b0770 | 211 | #endif |
redbird | 0:1bf8f02b0770 | 212 | |
redbird | 0:1bf8f02b0770 | 213 | #define WM_PID_STATE_CHANGED 17 /* Pointer input device state has changed */ |
redbird | 0:1bf8f02b0770 | 214 | |
redbird | 0:1bf8f02b0770 | 215 | #define WM_GET_INSIDE_RECT 20 /* get inside rectangle: client rectangle minus pixels lost to effect */ |
redbird | 0:1bf8f02b0770 | 216 | #define WM_GET_ID 21 /* Get id of widget */ |
redbird | 0:1bf8f02b0770 | 217 | #define WM_SET_ID 22 /* Set id of widget */ |
redbird | 0:1bf8f02b0770 | 218 | #define WM_GET_CLIENT_WINDOW 23 /* Get window handle of client window. Default is the same as window */ |
redbird | 0:1bf8f02b0770 | 219 | #define WM_CAPTURE_RELEASED 24 /* Let window know that mouse capture is over */ |
redbird | 0:1bf8f02b0770 | 220 | |
redbird | 0:1bf8f02b0770 | 221 | #define WM_INIT_DIALOG 29 /* Inform dialog that it is ready for init */ |
redbird | 0:1bf8f02b0770 | 222 | |
redbird | 0:1bf8f02b0770 | 223 | #define WM_SET_FOCUS 30 /* Inform window that it has gotten or lost the focus */ |
redbird | 0:1bf8f02b0770 | 224 | #define WM_GET_ACCEPT_FOCUS 31 /* Find out if window can accept the focus */ |
redbird | 0:1bf8f02b0770 | 225 | #define WM_NOTIFY_CHILD_HAS_FOCUS 32 /* Sent to parent when child receives / loses focus */ |
redbird | 0:1bf8f02b0770 | 226 | |
redbird | 0:1bf8f02b0770 | 227 | #define WM_NOTIFY_OWNER_KEY 33 /* Some widgets (e.g. listbox) notify owner when receiving key messages */ |
redbird | 0:1bf8f02b0770 | 228 | |
redbird | 0:1bf8f02b0770 | 229 | #define WM_GET_BKCOLOR 34 /* Return back ground color (only frame window and similar) */ |
redbird | 0:1bf8f02b0770 | 230 | #define WM_GET_SCROLL_STATE 35 /* Query state of scroll bar */ |
redbird | 0:1bf8f02b0770 | 231 | |
redbird | 0:1bf8f02b0770 | 232 | #define WM_SET_SCROLL_STATE 36 /* Set scroll info ... only effective for scrollbars */ |
redbird | 0:1bf8f02b0770 | 233 | |
redbird | 0:1bf8f02b0770 | 234 | #define WM_NOTIFY_CLIENTCHANGE 37 /* Client area may have changed */ |
redbird | 0:1bf8f02b0770 | 235 | #define WM_NOTIFY_PARENT 38 /* Notify parent. Information is detailed as notification code */ |
redbird | 0:1bf8f02b0770 | 236 | #define WM_NOTIFY_PARENT_REFLECTION 39 /* Notify parent reflection. |
redbird | 0:1bf8f02b0770 | 237 | Sometimes send back as a result of the WM_NOTIFY_PARENT message |
redbird | 0:1bf8f02b0770 | 238 | to let child react on behalf of its parent. |
redbird | 0:1bf8f02b0770 | 239 | Information is detailed as notification code */ |
redbird | 0:1bf8f02b0770 | 240 | #define WM_NOTIFY_ENABLE 40 /* Enable or disable widget */ |
redbird | 0:1bf8f02b0770 | 241 | #define WM_NOTIFY_VIS_CHANGED 41 /* Visibility of a window has or may have changed */ |
redbird | 0:1bf8f02b0770 | 242 | |
redbird | 0:1bf8f02b0770 | 243 | #define WM_HANDLE_DIALOG_STATUS 42 /* Set or get dialog status */ |
redbird | 0:1bf8f02b0770 | 244 | #define WM_GET_RADIOGROUP 43 /* Send to all siblings and children of a radio control when |
redbird | 0:1bf8f02b0770 | 245 | selection changed */ |
redbird | 0:1bf8f02b0770 | 246 | #define WM_MENU 44 /* Send to owner window of menu widget */ |
redbird | 0:1bf8f02b0770 | 247 | #define WM_SCREENSIZE_CHANGED 45 /* Send to all windows when size of screen has changed */ |
redbird | 0:1bf8f02b0770 | 248 | #define WM_PRE_PAINT 46 /* Send to a window before it receives a WM_PAINT message */ |
redbird | 0:1bf8f02b0770 | 249 | #define WM_POST_PAINT 47 /* Send to a window after (the last) WM_PAINT message */ |
redbird | 0:1bf8f02b0770 | 250 | |
redbird | 0:1bf8f02b0770 | 251 | #define WM_MOTION 48 /* Automatic motion messages */ |
redbird | 0:1bf8f02b0770 | 252 | |
redbird | 0:1bf8f02b0770 | 253 | #define WM_GESTURE 0x0119 /* Gesture message */ |
redbird | 0:1bf8f02b0770 | 254 | |
redbird | 0:1bf8f02b0770 | 255 | #define WM_TIMER 0x0113 /* Timer has expired (Keep the same as WIN32) */ |
redbird | 0:1bf8f02b0770 | 256 | #define WM_WIDGET 0x0300 /* 256 messages reserved for Widget messages */ |
redbird | 0:1bf8f02b0770 | 257 | #define WM_USER 0x0400 /* Reserved for user messages ... (Keep the same as WIN32) */ |
redbird | 0:1bf8f02b0770 | 258 | |
redbird | 0:1bf8f02b0770 | 259 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 260 | * |
redbird | 0:1bf8f02b0770 | 261 | * Motion messages |
redbird | 0:1bf8f02b0770 | 262 | */ |
redbird | 0:1bf8f02b0770 | 263 | #define WM_MOTION_INIT 0 |
redbird | 0:1bf8f02b0770 | 264 | #define WM_MOTION_MOVE 1 |
redbird | 0:1bf8f02b0770 | 265 | #define WM_MOTION_GETPOS 2 |
redbird | 0:1bf8f02b0770 | 266 | #define WM_MOTION_GETCONTEXT 3 |
redbird | 0:1bf8f02b0770 | 267 | |
redbird | 0:1bf8f02b0770 | 268 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 269 | * |
redbird | 0:1bf8f02b0770 | 270 | * Motion flags |
redbird | 0:1bf8f02b0770 | 271 | */ |
redbird | 0:1bf8f02b0770 | 272 | #define WM_MOTION_MANAGE_BY_WINDOW (1 << 0) // Window movement is managed by window itself |
redbird | 0:1bf8f02b0770 | 273 | |
redbird | 0:1bf8f02b0770 | 274 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 275 | * |
redbird | 0:1bf8f02b0770 | 276 | * Notification codes |
redbird | 0:1bf8f02b0770 | 277 | * |
redbird | 0:1bf8f02b0770 | 278 | * The following is the list of notification codes send |
redbird | 0:1bf8f02b0770 | 279 | * with the WM_NOTIFY_PARENT message |
redbird | 0:1bf8f02b0770 | 280 | */ |
redbird | 0:1bf8f02b0770 | 281 | #define WM_NOTIFICATION_CLICKED 1 |
redbird | 0:1bf8f02b0770 | 282 | #define WM_NOTIFICATION_RELEASED 2 |
redbird | 0:1bf8f02b0770 | 283 | #define WM_NOTIFICATION_MOVED_OUT 3 |
redbird | 0:1bf8f02b0770 | 284 | #define WM_NOTIFICATION_SEL_CHANGED 4 |
redbird | 0:1bf8f02b0770 | 285 | #define WM_NOTIFICATION_VALUE_CHANGED 5 |
redbird | 0:1bf8f02b0770 | 286 | #define WM_NOTIFICATION_SCROLLBAR_ADDED 6 /* Scroller added */ |
redbird | 0:1bf8f02b0770 | 287 | #define WM_NOTIFICATION_CHILD_DELETED 7 /* Inform window that child is about to be deleted */ |
redbird | 0:1bf8f02b0770 | 288 | #define WM_NOTIFICATION_GOT_FOCUS 8 |
redbird | 0:1bf8f02b0770 | 289 | #define WM_NOTIFICATION_LOST_FOCUS 9 |
redbird | 0:1bf8f02b0770 | 290 | #define WM_NOTIFICATION_SCROLL_CHANGED 10 |
redbird | 0:1bf8f02b0770 | 291 | |
redbird | 0:1bf8f02b0770 | 292 | #define WM_NOTIFICATION_WIDGET 11 /* Space for widget defined notifications */ |
redbird | 0:1bf8f02b0770 | 293 | #define WM_NOTIFICATION_USER 16 /* Space for application (user) defined notifications */ |
redbird | 0:1bf8f02b0770 | 294 | |
redbird | 0:1bf8f02b0770 | 295 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 296 | * |
redbird | 0:1bf8f02b0770 | 297 | * Memory management |
redbird | 0:1bf8f02b0770 | 298 | */ |
redbird | 0:1bf8f02b0770 | 299 | #define WM_HWIN GUI_HWIN |
redbird | 0:1bf8f02b0770 | 300 | #define WM_HWIN_NULL GUI_HMEM_NULL |
redbird | 0:1bf8f02b0770 | 301 | #define WM_HMEM GUI_HMEM |
redbird | 0:1bf8f02b0770 | 302 | #define WM_HMEM_NULL GUI_HMEM_NULL |
redbird | 0:1bf8f02b0770 | 303 | #define WM_HTIMER GUI_HMEM |
redbird | 0:1bf8f02b0770 | 304 | |
redbird | 0:1bf8f02b0770 | 305 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 306 | * |
redbird | 0:1bf8f02b0770 | 307 | * Window defines |
redbird | 0:1bf8f02b0770 | 308 | */ |
redbird | 0:1bf8f02b0770 | 309 | #define WM_HBKWIN WM_GetDesktopWindow() /* Handle of background window */ |
redbird | 0:1bf8f02b0770 | 310 | #define WM_UNATTACHED ((WM_HMEM) - 1) /* Do not attach to a window */ |
redbird | 0:1bf8f02b0770 | 311 | |
redbird | 0:1bf8f02b0770 | 312 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 313 | * |
redbird | 0:1bf8f02b0770 | 314 | * Window create flags. |
redbird | 0:1bf8f02b0770 | 315 | * |
redbird | 0:1bf8f02b0770 | 316 | * These flags can be passed to the create window |
redbird | 0:1bf8f02b0770 | 317 | * function as flag-parameter. The flags are combinable using the |
redbird | 0:1bf8f02b0770 | 318 | * binary or operator. |
redbird | 0:1bf8f02b0770 | 319 | */ |
redbird | 0:1bf8f02b0770 | 320 | #define WM_CF_HASTRANS (1UL << 0) /* Has transparency. Needs to be defined for windows which do not fill the entire |
redbird | 0:1bf8f02b0770 | 321 | section of their (client) rectangle. */ |
redbird | 0:1bf8f02b0770 | 322 | #define WM_CF_HIDE (0UL << 1) /* Hide window after creation (default !) */ |
redbird | 0:1bf8f02b0770 | 323 | #define WM_CF_SHOW (1UL << 1) /* Show window after creation */ |
redbird | 0:1bf8f02b0770 | 324 | #define WM_CF_MEMDEV (1UL << 2) /* Use memory device for redraws */ |
redbird | 0:1bf8f02b0770 | 325 | #define WM_CF_STAYONTOP (1UL << 3) /* Stay on top */ |
redbird | 0:1bf8f02b0770 | 326 | #define WM_CF_DISABLED (1UL << 4) /* Disabled: Does not receive PID (mouse & touch) input */ |
redbird | 0:1bf8f02b0770 | 327 | |
redbird | 0:1bf8f02b0770 | 328 | /* Create only flags ... Not available as status flags */ |
redbird | 0:1bf8f02b0770 | 329 | #define WM_CF_ACTIVATE (1UL << 5) /* If automatic activation upon creation of window is desired */ |
redbird | 0:1bf8f02b0770 | 330 | #define WM_CF_FGND (0UL << 6) /* Put window in foreground after creation (default !) */ |
redbird | 0:1bf8f02b0770 | 331 | #define WM_CF_BGND (1UL << 6) /* Put window in background after creation */ |
redbird | 0:1bf8f02b0770 | 332 | |
redbird | 0:1bf8f02b0770 | 333 | /* Anchor flags */ |
redbird | 0:1bf8f02b0770 | 334 | #define WM_CF_ANCHOR_RIGHT (1UL << 7) /* Right anchor ... If parent is resized, distance to right will remain const (left is default) */ |
redbird | 0:1bf8f02b0770 | 335 | #define WM_CF_ANCHOR_BOTTOM (1UL << 8) /* Bottom anchor ... If parent is resized, distance to bottom will remain const (top is default) */ |
redbird | 0:1bf8f02b0770 | 336 | #define WM_CF_ANCHOR_LEFT (1UL << 9) /* Left anchor ... If parent is resized, distance to left will remain const (left is default) */ |
redbird | 0:1bf8f02b0770 | 337 | #define WM_CF_ANCHOR_TOP (1UL << 10) /* Top anchor ... If parent is resized, distance to top will remain const (top is default) */ |
redbird | 0:1bf8f02b0770 | 338 | |
redbird | 0:1bf8f02b0770 | 339 | #define WM_CF_CONST_OUTLINE (1UL << 11) /* Constant outline. This is relevant for transparent windows only. If a window is transparent |
redbird | 0:1bf8f02b0770 | 340 | and does not have a constant outline, its background is invalided instead of the window itself. |
redbird | 0:1bf8f02b0770 | 341 | This causes add. computation time when redrawing. */ |
redbird | 0:1bf8f02b0770 | 342 | #define WM_CF_LATE_CLIP (1UL << 12) |
redbird | 0:1bf8f02b0770 | 343 | #define WM_CF_MEMDEV_ON_REDRAW (1UL << 13) |
redbird | 0:1bf8f02b0770 | 344 | |
redbird | 0:1bf8f02b0770 | 345 | #define WM_SF_INVALID_DRAW (1UL << 14) |
redbird | 0:1bf8f02b0770 | 346 | #define WM_SF_DELETE (1UL << 15) /* Marks the window to be deleted within WM_Exec() when no callback routine is executed */ |
redbird | 0:1bf8f02b0770 | 347 | |
redbird | 0:1bf8f02b0770 | 348 | #define WM_CF_STATIC (1UL << 16) /* Use static memory device for redraws */ |
redbird | 0:1bf8f02b0770 | 349 | |
redbird | 0:1bf8f02b0770 | 350 | #define WM_CF_MOTION_X (1UL << 17) /* Window can be moved automatically in X axis */ |
redbird | 0:1bf8f02b0770 | 351 | #define WM_CF_MOTION_Y (1UL << 18) /* Window can be moved automatically in Y axis */ |
redbird | 0:1bf8f02b0770 | 352 | |
redbird | 0:1bf8f02b0770 | 353 | #define WM_CF_GESTURE (1UL << 19) /* Marks the window to be a able to receive gesture messages */ |
redbird | 0:1bf8f02b0770 | 354 | |
redbird | 0:1bf8f02b0770 | 355 | #define WM_CF_ZOOM (1UL << 20) /* Window can be scaled automatically by multi touch gesture input */ |
redbird | 0:1bf8f02b0770 | 356 | |
redbird | 0:1bf8f02b0770 | 357 | #define WM_CF_MOTION_R (1UL << 21) // Window can be rotated |
redbird | 0:1bf8f02b0770 | 358 | |
redbird | 0:1bf8f02b0770 | 359 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 360 | * |
redbird | 0:1bf8f02b0770 | 361 | * Window manager types |
redbird | 0:1bf8f02b0770 | 362 | */ |
redbird | 0:1bf8f02b0770 | 363 | typedef struct WM_Obj WM_Obj; |
redbird | 0:1bf8f02b0770 | 364 | typedef struct WM_MESSAGE WM_MESSAGE; |
redbird | 0:1bf8f02b0770 | 365 | |
redbird | 0:1bf8f02b0770 | 366 | typedef void WM_CALLBACK( WM_MESSAGE * pMsg); |
redbird | 0:1bf8f02b0770 | 367 | |
redbird | 0:1bf8f02b0770 | 368 | struct WM_MESSAGE { |
redbird | 0:1bf8f02b0770 | 369 | int MsgId; /* type of message */ |
redbird | 0:1bf8f02b0770 | 370 | WM_HWIN hWin; /* Destination window */ |
redbird | 0:1bf8f02b0770 | 371 | WM_HWIN hWinSrc; /* Source window */ |
redbird | 0:1bf8f02b0770 | 372 | union { |
redbird | 0:1bf8f02b0770 | 373 | const void * p; /* Some messages need more info ... Pointer is declared "const" because some systems (M16C) have 4 byte const, byte 2 byte default ptrs */ |
redbird | 0:1bf8f02b0770 | 374 | int v; |
redbird | 0:1bf8f02b0770 | 375 | GUI_COLOR Color; |
redbird | 0:1bf8f02b0770 | 376 | } Data; |
redbird | 0:1bf8f02b0770 | 377 | }; |
redbird | 0:1bf8f02b0770 | 378 | |
redbird | 0:1bf8f02b0770 | 379 | struct WM_Obj { |
redbird | 0:1bf8f02b0770 | 380 | GUI_RECT Rect; /* Outer dimensions of window */ |
redbird | 0:1bf8f02b0770 | 381 | GUI_RECT InvalidRect; /* Invalid rectangle */ |
redbird | 0:1bf8f02b0770 | 382 | WM_CALLBACK* cb; /* Ptr to notification callback */ |
redbird | 0:1bf8f02b0770 | 383 | WM_HWIN hNextLin; /* Next window in linear list */ |
redbird | 0:1bf8f02b0770 | 384 | WM_HWIN hParent; |
redbird | 0:1bf8f02b0770 | 385 | WM_HWIN hFirstChild; |
redbird | 0:1bf8f02b0770 | 386 | WM_HWIN hNext; |
redbird | 0:1bf8f02b0770 | 387 | #if WM_SUPPORT_STATIC_MEMDEV |
redbird | 0:1bf8f02b0770 | 388 | GUI_MEMDEV_Handle hMem; /* Static memory device */ |
redbird | 0:1bf8f02b0770 | 389 | #endif |
redbird | 0:1bf8f02b0770 | 390 | U32 Status; /* Status flags */ |
redbird | 0:1bf8f02b0770 | 391 | #if WM_SUPPORT_CPP |
redbird | 0:1bf8f02b0770 | 392 | void * ObjPtr; |
redbird | 0:1bf8f02b0770 | 393 | #endif |
redbird | 0:1bf8f02b0770 | 394 | }; |
redbird | 0:1bf8f02b0770 | 395 | |
redbird | 0:1bf8f02b0770 | 396 | typedef void WM_tfPollPID(void); |
redbird | 0:1bf8f02b0770 | 397 | typedef void WM_tfForEach(WM_HWIN hWin, void * pData); |
redbird | 0:1bf8f02b0770 | 398 | |
redbird | 0:1bf8f02b0770 | 399 | typedef void (* WM_tfInvalidateParent) (const GUI_RECT * pInvalidRect, WM_HWIN hParent, WM_HWIN hStop); |
redbird | 0:1bf8f02b0770 | 400 | typedef void (* WM_tfInvalidateDrawFunc)(WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 401 | typedef void (* WM_tfPaint1Func) (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 402 | |
redbird | 0:1bf8f02b0770 | 403 | typedef struct { |
redbird | 0:1bf8f02b0770 | 404 | WM_HMEM hTimer; |
redbird | 0:1bf8f02b0770 | 405 | WM_HWIN hWin; |
redbird | 0:1bf8f02b0770 | 406 | int UserId; |
redbird | 0:1bf8f02b0770 | 407 | } WM_TIMER_OBJ; |
redbird | 0:1bf8f02b0770 | 408 | |
redbird | 0:1bf8f02b0770 | 409 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 410 | * |
redbird | 0:1bf8f02b0770 | 411 | * General control routines |
redbird | 0:1bf8f02b0770 | 412 | */ |
redbird | 0:1bf8f02b0770 | 413 | void WM_Activate (void); |
redbird | 0:1bf8f02b0770 | 414 | void WM_Deactivate(void); |
redbird | 0:1bf8f02b0770 | 415 | void WM_Init (void); |
redbird | 0:1bf8f02b0770 | 416 | int WM_Exec (void); /* Execute all jobs ... Return 0 if nothing was done. */ |
redbird | 0:1bf8f02b0770 | 417 | U32 WM_SetCreateFlags(U32 Flags); |
redbird | 0:1bf8f02b0770 | 418 | WM_tfPollPID * WM_SetpfPollPID(WM_tfPollPID * pf); |
redbird | 0:1bf8f02b0770 | 419 | |
redbird | 0:1bf8f02b0770 | 420 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 421 | * |
redbird | 0:1bf8f02b0770 | 422 | * Window manager interface |
redbird | 0:1bf8f02b0770 | 423 | */ |
redbird | 0:1bf8f02b0770 | 424 | void WM_AttachWindow (WM_HWIN hWin, WM_HWIN hParent); |
redbird | 0:1bf8f02b0770 | 425 | void WM_AttachWindowAt (WM_HWIN hWin, WM_HWIN hParent, int x, int y); |
redbird | 0:1bf8f02b0770 | 426 | int WM_CheckScrollPos (WM_SCROLL_STATE * pScrollState, int Pos, int LowerDist, int UpperDist); /* not to be documented (may change in future version) */ |
redbird | 0:1bf8f02b0770 | 427 | void WM_ClrHasTrans (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 428 | WM_HWIN WM_CreateWindow (int x0, int y0, int xSize, int ySize, U32 Style, WM_CALLBACK * cb, int NumExtraBytes); |
redbird | 0:1bf8f02b0770 | 429 | WM_HWIN WM_CreateWindowAsChild (int x0, int y0, int xSize, int ySize, WM_HWIN hWinParent, U32 Style, WM_CALLBACK* cb, int NumExtraBytes); |
redbird | 0:1bf8f02b0770 | 430 | void WM_DeleteWindow (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 431 | void WM_DetachWindow (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 432 | void WM_EnableGestures (WM_HWIN hWin, int OnOff); |
redbird | 0:1bf8f02b0770 | 433 | int WM_GetHasTrans (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 434 | WM_HWIN WM_GetFocussedWindow (void); |
redbird | 0:1bf8f02b0770 | 435 | int WM_GetInvalidRect (WM_HWIN hWin, GUI_RECT * pRect); |
redbird | 0:1bf8f02b0770 | 436 | int WM_GetStayOnTop (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 437 | void WM_HideWindow (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 438 | void WM_InvalidateArea (const GUI_RECT * pRect); |
redbird | 0:1bf8f02b0770 | 439 | void WM_InvalidateRect (WM_HWIN hWin, const GUI_RECT * pRect); |
redbird | 0:1bf8f02b0770 | 440 | void WM_InvalidateWindow (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 441 | void WM_InvalidateWindowAndDescsEx(WM_HWIN hWin, const GUI_RECT * pInvalidRect, U16 Flags); |
redbird | 0:1bf8f02b0770 | 442 | void WM_InvalidateWindowAndDescs (WM_HWIN hWin); /* not to be documented (may change in future version) */ |
redbird | 0:1bf8f02b0770 | 443 | int WM_IsEnabled (WM_HWIN hObj); |
redbird | 0:1bf8f02b0770 | 444 | char WM_IsCompletelyCovered (WM_HWIN hWin); /* Checks if the window is completely covered by other windows */ |
redbird | 0:1bf8f02b0770 | 445 | char WM_IsCompletelyVisible (WM_HWIN hWin); /* Is the window completely visible ? */ |
redbird | 0:1bf8f02b0770 | 446 | int WM_IsFocussable (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 447 | int WM_IsVisible (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 448 | int WM_IsWindow (WM_HWIN hWin); /* Check validity */ |
redbird | 0:1bf8f02b0770 | 449 | void WM_SetAnchor (WM_HWIN hWin, U16 AnchorFlags); |
redbird | 0:1bf8f02b0770 | 450 | void WM_SetHasTrans (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 451 | void WM_SetId (WM_HWIN hObj, int Id); |
redbird | 0:1bf8f02b0770 | 452 | void WM_SetStayOnTop (WM_HWIN hWin, int OnOff); |
redbird | 0:1bf8f02b0770 | 453 | void WM_SetTransState (WM_HWIN hWin, unsigned State); |
redbird | 0:1bf8f02b0770 | 454 | void WM_ShowWindow (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 455 | void WM_ValidateRect (WM_HWIN hWin, const GUI_RECT * pRect); |
redbird | 0:1bf8f02b0770 | 456 | void WM_ValidateWindow (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 457 | |
redbird | 0:1bf8f02b0770 | 458 | /* Gesture support */ |
redbird | 0:1bf8f02b0770 | 459 | void WM_GESTURE_Enable (int OnOff); |
redbird | 0:1bf8f02b0770 | 460 | int WM_GESTURE_EnableEx(int OnOff, int MaxFactor); |
redbird | 0:1bf8f02b0770 | 461 | void WM_GESTURE_Exec (void); |
redbird | 0:1bf8f02b0770 | 462 | |
redbird | 0:1bf8f02b0770 | 463 | /* Motion support */ |
redbird | 0:1bf8f02b0770 | 464 | void WM_MOTION_Enable (int OnOff); |
redbird | 0:1bf8f02b0770 | 465 | void WM_MOTION_SetMovement (WM_HWIN hWin, int Axis, I32 Velocity, I32 Dist); |
redbird | 0:1bf8f02b0770 | 466 | void WM_MOTION_SetMotion (WM_HWIN hWin, int Axis, I32 Velocity, I32 Deceleration); |
redbird | 0:1bf8f02b0770 | 467 | void WM_MOTION_SetMoveable (WM_HWIN hWin, U32 Flags, int OnOff); |
redbird | 0:1bf8f02b0770 | 468 | void WM_MOTION_SetDeceleration (WM_HWIN hWin, int Axis, I32 Deceleration); |
redbird | 0:1bf8f02b0770 | 469 | unsigned WM_MOTION_SetDefaultPeriod(unsigned Period); |
redbird | 0:1bf8f02b0770 | 470 | void WM_MOTION_SetSpeed (WM_HWIN hWin, int Axis, I32 Velocity); |
redbird | 0:1bf8f02b0770 | 471 | |
redbird | 0:1bf8f02b0770 | 472 | /* Motion support, private interface */ |
redbird | 0:1bf8f02b0770 | 473 | WM_HMEM WM_MOTION__CreateContext(void); |
redbird | 0:1bf8f02b0770 | 474 | void WM_MOTION__DeleteContext(WM_HMEM hContext); |
redbird | 0:1bf8f02b0770 | 475 | |
redbird | 0:1bf8f02b0770 | 476 | /* Motion support, private function(s) */ |
redbird | 0:1bf8f02b0770 | 477 | void WM__SetMotionCallback (void(* cbMotion) (GUI_PID_STATE * pState, void * p)); |
redbird | 0:1bf8f02b0770 | 478 | |
redbird | 0:1bf8f02b0770 | 479 | /* Static memory devices */ |
redbird | 0:1bf8f02b0770 | 480 | #if (GUI_SUPPORT_MEMDEV) |
redbird | 0:1bf8f02b0770 | 481 | #define GUI_MEMDEV_EDGE_LEFT 0 |
redbird | 0:1bf8f02b0770 | 482 | #define GUI_MEMDEV_EDGE_RIGHT 1 |
redbird | 0:1bf8f02b0770 | 483 | #define GUI_MEMDEV_EDGE_TOP 2 |
redbird | 0:1bf8f02b0770 | 484 | #define GUI_MEMDEV_EDGE_BOTTOM 3 |
redbird | 0:1bf8f02b0770 | 485 | |
redbird | 0:1bf8f02b0770 | 486 | int GUI_MEMDEV_BlendWinBk (WM_HWIN hWin, int Period, U32 BlendColor, U8 BlendIntens); |
redbird | 0:1bf8f02b0770 | 487 | int GUI_MEMDEV_BlurAndBlendWinBk(WM_HWIN hWin, int Period, U8 BlurDepth, U32 BlendColor, U8 BlendIntens); |
redbird | 0:1bf8f02b0770 | 488 | int GUI_MEMDEV_BlurWinBk (WM_HWIN hWin, int Period, U8 BlurDepth); |
redbird | 0:1bf8f02b0770 | 489 | void GUI_MEMDEV_CreateStatic (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 490 | int GUI_MEMDEV_FadeInWindow (WM_HWIN hWin, int Period); |
redbird | 0:1bf8f02b0770 | 491 | int GUI_MEMDEV_FadeOutWindow (WM_HWIN hWin, int Period); |
redbird | 0:1bf8f02b0770 | 492 | GUI_MEMDEV_Handle GUI_MEMDEV_GetStaticDevice (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 493 | GUI_MEMDEV_Handle GUI_MEMDEV_GetWindowDevice (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 494 | int GUI_MEMDEV_MoveInWindow (WM_HWIN hWin, int x, int y, int a180, int Period); |
redbird | 0:1bf8f02b0770 | 495 | int GUI_MEMDEV_MoveOutWindow (WM_HWIN hWin, int x, int y, int a180, int Period); |
redbird | 0:1bf8f02b0770 | 496 | void GUI_MEMDEV_Paint1Static (WM_HWIN hWin); /* not to be documented */ |
redbird | 0:1bf8f02b0770 | 497 | int GUI_MEMDEV_ShiftInWindow (WM_HWIN hWin, int Period, int Direction); |
redbird | 0:1bf8f02b0770 | 498 | int GUI_MEMDEV_ShiftOutWindow (WM_HWIN hWin, int Period, int Direction); |
redbird | 0:1bf8f02b0770 | 499 | int GUI_MEMDEV_SwapWindow (WM_HWIN hWin, int Period, int Edge); |
redbird | 0:1bf8f02b0770 | 500 | |
redbird | 0:1bf8f02b0770 | 501 | #endif |
redbird | 0:1bf8f02b0770 | 502 | |
redbird | 0:1bf8f02b0770 | 503 | /* Move/resize windows */ |
redbird | 0:1bf8f02b0770 | 504 | void WM_MoveWindow (WM_HWIN hWin, int dx, int dy); |
redbird | 0:1bf8f02b0770 | 505 | void WM_ResizeWindow (WM_HWIN hWin, int dx, int dy); |
redbird | 0:1bf8f02b0770 | 506 | void WM_MoveTo (WM_HWIN hWin, int x, int y); |
redbird | 0:1bf8f02b0770 | 507 | void WM_MoveChildTo (WM_HWIN hWin, int x, int y); |
redbird | 0:1bf8f02b0770 | 508 | void WM_SetSize (WM_HWIN hWin, int XSize, int YSize); |
redbird | 0:1bf8f02b0770 | 509 | void WM_SetWindowPos (WM_HWIN hWin, int xPos, int yPos, int xSize, int ySize); |
redbird | 0:1bf8f02b0770 | 510 | int WM_SetXSize (WM_HWIN hWin, int xSize); |
redbird | 0:1bf8f02b0770 | 511 | int WM_SetYSize (WM_HWIN hWin, int ySize); |
redbird | 0:1bf8f02b0770 | 512 | int WM_SetScrollbarH (WM_HWIN hWin, int OnOff); /* not to be documented (may change in future version) */ |
redbird | 0:1bf8f02b0770 | 513 | int WM_SetScrollbarV (WM_HWIN hWin, int OnOff); /* not to be documented (may change in future version) */ |
redbird | 0:1bf8f02b0770 | 514 | |
redbird | 0:1bf8f02b0770 | 515 | /* ToolTip support */ |
redbird | 0:1bf8f02b0770 | 516 | #define WM_TOOLTIP_PI_FIRST 0 |
redbird | 0:1bf8f02b0770 | 517 | #define WM_TOOLTIP_PI_SHOW 1 |
redbird | 0:1bf8f02b0770 | 518 | #define WM_TOOLTIP_PI_NEXT 2 |
redbird | 0:1bf8f02b0770 | 519 | |
redbird | 0:1bf8f02b0770 | 520 | #define WM_TOOLTIP_CI_BK 0 |
redbird | 0:1bf8f02b0770 | 521 | #define WM_TOOLTIP_CI_FRAME 1 |
redbird | 0:1bf8f02b0770 | 522 | #define WM_TOOLTIP_CI_TEXT 2 |
redbird | 0:1bf8f02b0770 | 523 | |
redbird | 0:1bf8f02b0770 | 524 | typedef WM_HMEM WM_TOOLTIP_HANDLE; |
redbird | 0:1bf8f02b0770 | 525 | |
redbird | 0:1bf8f02b0770 | 526 | typedef struct { |
redbird | 0:1bf8f02b0770 | 527 | int Id; |
redbird | 0:1bf8f02b0770 | 528 | const char * pText; |
redbird | 0:1bf8f02b0770 | 529 | } TOOLTIP_INFO; |
redbird | 0:1bf8f02b0770 | 530 | |
redbird | 0:1bf8f02b0770 | 531 | int WM_TOOLTIP_AddTool (WM_TOOLTIP_HANDLE hToolTip, WM_HWIN hTool, const char * pText); |
redbird | 0:1bf8f02b0770 | 532 | WM_TOOLTIP_HANDLE WM_TOOLTIP_Create (WM_HWIN hDlg, const TOOLTIP_INFO * pInfo, unsigned NumItems); |
redbird | 0:1bf8f02b0770 | 533 | void WM_TOOLTIP_Delete (WM_TOOLTIP_HANDLE hToolTip); |
redbird | 0:1bf8f02b0770 | 534 | GUI_COLOR WM_TOOLTIP_SetDefaultColor (unsigned Index, GUI_COLOR Color); |
redbird | 0:1bf8f02b0770 | 535 | const GUI_FONT * WM_TOOLTIP_SetDefaultFont (const GUI_FONT * pFont); |
redbird | 0:1bf8f02b0770 | 536 | unsigned WM_TOOLTIP_SetDefaultPeriod(unsigned Index, unsigned Period); |
redbird | 0:1bf8f02b0770 | 537 | |
redbird | 0:1bf8f02b0770 | 538 | /* ToolTip support, private */ |
redbird | 0:1bf8f02b0770 | 539 | void WM__SetToolTipCallback(void(* cbToolTip)(GUI_PID_STATE * pState, WM_HWIN)); |
redbird | 0:1bf8f02b0770 | 540 | |
redbird | 0:1bf8f02b0770 | 541 | /* Timer */ |
redbird | 0:1bf8f02b0770 | 542 | #ifdef GUI_X_CREATE_TIMER |
redbird | 0:1bf8f02b0770 | 543 | int WM_CreateTimer (WM_HWIN hWin, int UserID, int Period, int Mode); /* not to be documented (may change in future version) */ |
redbird | 0:1bf8f02b0770 | 544 | void WM_DeleteTimer (WM_HWIN hWin, int UserId); /* not to be documented (may change in future version) */ |
redbird | 0:1bf8f02b0770 | 545 | #else |
redbird | 0:1bf8f02b0770 | 546 | WM_HMEM WM_CreateTimer (WM_HWIN hWin, int UserID, int Period, int Mode); /* not to be documented (may change in future version) */ |
redbird | 0:1bf8f02b0770 | 547 | void WM_DeleteTimer (WM_HMEM hTimer); /* not to be documented (may change in future version) */ |
redbird | 0:1bf8f02b0770 | 548 | void WM_RestartTimer(WM_HMEM hTimer, int Period); |
redbird | 0:1bf8f02b0770 | 549 | #endif |
redbird | 0:1bf8f02b0770 | 550 | int WM_GetTimerId(WM_HTIMER hTimer); |
redbird | 0:1bf8f02b0770 | 551 | |
redbird | 0:1bf8f02b0770 | 552 | /* Diagnostics */ |
redbird | 0:1bf8f02b0770 | 553 | int WM_GetNumWindows(void); |
redbird | 0:1bf8f02b0770 | 554 | int WM_GetNumInvalidWindows(void); |
redbird | 0:1bf8f02b0770 | 555 | |
redbird | 0:1bf8f02b0770 | 556 | /* Scroll state related functions */ |
redbird | 0:1bf8f02b0770 | 557 | void WM_CheckScrollBounds(WM_SCROLL_STATE * pScrollState); /* not to be documented (may change in future version) */ |
redbird | 0:1bf8f02b0770 | 558 | int WM_GetScrollPosH (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 559 | int WM_GetScrollPosV (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 560 | void WM_SetScrollPosH (WM_HWIN hWin, unsigned ScrollPos); |
redbird | 0:1bf8f02b0770 | 561 | void WM_SetScrollPosV (WM_HWIN hWin, unsigned ScrollPos); |
redbird | 0:1bf8f02b0770 | 562 | int WM_SetScrollValue (WM_SCROLL_STATE * pScrollState, int v); /* not to be documented (may change in future version) */ |
redbird | 0:1bf8f02b0770 | 563 | |
redbird | 0:1bf8f02b0770 | 564 | /* Get / Set (new) callback function */ |
redbird | 0:1bf8f02b0770 | 565 | WM_CALLBACK * WM_SetCallback(WM_HWIN hWin, WM_CALLBACK * cb); |
redbird | 0:1bf8f02b0770 | 566 | WM_CALLBACK * WM_GetCallback(WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 567 | |
redbird | 0:1bf8f02b0770 | 568 | /* Get size/origin of a window */ |
redbird | 0:1bf8f02b0770 | 569 | void WM_GetClientRect (GUI_RECT * pRect); |
redbird | 0:1bf8f02b0770 | 570 | void WM_GetClientRectEx (WM_HWIN hWin, GUI_RECT * pRect); |
redbird | 0:1bf8f02b0770 | 571 | void WM_GetInsideRect (GUI_RECT * pRect); |
redbird | 0:1bf8f02b0770 | 572 | void WM_GetInsideRectEx (WM_HWIN hWin, GUI_RECT * pRect); |
redbird | 0:1bf8f02b0770 | 573 | void WM_GetInsideRectExScrollbar(WM_HWIN hWin, GUI_RECT * pRect); /* not to be documented (may change in future version) */ |
redbird | 0:1bf8f02b0770 | 574 | void WM_GetWindowRect (GUI_RECT * pRect); |
redbird | 0:1bf8f02b0770 | 575 | void WM_GetWindowRectEx (WM_HWIN hWin, GUI_RECT * pRect); |
redbird | 0:1bf8f02b0770 | 576 | int WM_GetOrgX (void); |
redbird | 0:1bf8f02b0770 | 577 | int WM_GetOrgY (void); |
redbird | 0:1bf8f02b0770 | 578 | int WM_GetWindowOrgX (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 579 | int WM_GetWindowOrgY (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 580 | int WM_GetWindowSizeX (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 581 | int WM_GetWindowSizeY (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 582 | WM_HWIN WM_GetFirstChild (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 583 | WM_HWIN WM_GetNextSibling (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 584 | WM_HWIN WM_GetParent (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 585 | WM_HWIN WM_GetPrevSibling (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 586 | int WM_GetId (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 587 | WM_HWIN WM_GetScrollbarV (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 588 | WM_HWIN WM_GetScrollbarH (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 589 | WM_HWIN WM_GetScrollPartner (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 590 | WM_HWIN WM_GetClientWindow (WM_HWIN hObj); |
redbird | 0:1bf8f02b0770 | 591 | GUI_COLOR WM_GetBkColor (WM_HWIN hObj); |
redbird | 0:1bf8f02b0770 | 592 | |
redbird | 0:1bf8f02b0770 | 593 | /* Change Z-Order of windows */ |
redbird | 0:1bf8f02b0770 | 594 | void WM_BringToBottom(WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 595 | void WM_BringToTop(WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 596 | |
redbird | 0:1bf8f02b0770 | 597 | GUI_COLOR WM_SetDesktopColor (GUI_COLOR Color); |
redbird | 0:1bf8f02b0770 | 598 | GUI_COLOR WM_SetDesktopColorEx(GUI_COLOR Color, unsigned int LayerIndex); |
redbird | 0:1bf8f02b0770 | 599 | void WM_SetDesktopColors (GUI_COLOR Color); |
redbird | 0:1bf8f02b0770 | 600 | |
redbird | 0:1bf8f02b0770 | 601 | /* Select window used for drawing operations */ |
redbird | 0:1bf8f02b0770 | 602 | WM_HWIN WM_SelectWindow (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 603 | WM_HWIN WM_GetActiveWindow (void); |
redbird | 0:1bf8f02b0770 | 604 | void WM_Paint (WM_HWIN hObj); |
redbird | 0:1bf8f02b0770 | 605 | void WM_Update (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 606 | void WM_PaintWindowAndDescs (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 607 | void WM_UpdateWindowAndDescs (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 608 | |
redbird | 0:1bf8f02b0770 | 609 | /* Get foreground/background windows */ |
redbird | 0:1bf8f02b0770 | 610 | WM_HWIN WM_GetDesktopWindow (void); |
redbird | 0:1bf8f02b0770 | 611 | WM_HWIN WM_GetDesktopWindowEx(unsigned int LayerIndex); |
redbird | 0:1bf8f02b0770 | 612 | |
redbird | 0:1bf8f02b0770 | 613 | /* Reduce clipping area of a window */ |
redbird | 0:1bf8f02b0770 | 614 | const GUI_RECT * WM_SetUserClipRect(const GUI_RECT * pRect); |
redbird | 0:1bf8f02b0770 | 615 | void WM_SetDefault (void); |
redbird | 0:1bf8f02b0770 | 616 | |
redbird | 0:1bf8f02b0770 | 617 | /* Use of memory devices */ |
redbird | 0:1bf8f02b0770 | 618 | void WM_EnableMemdev (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 619 | void WM_DisableMemdev (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 620 | |
redbird | 0:1bf8f02b0770 | 621 | /* Automatic use of multiple buffers */ |
redbird | 0:1bf8f02b0770 | 622 | int WM_MULTIBUF_Enable(int OnOff); |
redbird | 0:1bf8f02b0770 | 623 | |
redbird | 0:1bf8f02b0770 | 624 | extern const WM_MULTIBUF_API * WM_MULTIBUF__pAPI; |
redbird | 0:1bf8f02b0770 | 625 | |
redbird | 0:1bf8f02b0770 | 626 | typedef void (* T_WM_EXEC_GESTURE)(void); |
redbird | 0:1bf8f02b0770 | 627 | |
redbird | 0:1bf8f02b0770 | 628 | extern T_WM_EXEC_GESTURE WM__pExecGestures; |
redbird | 0:1bf8f02b0770 | 629 | |
redbird | 0:1bf8f02b0770 | 630 | /* ... */ |
redbird | 0:1bf8f02b0770 | 631 | int WM_OnKey(int Key, int Pressed); |
redbird | 0:1bf8f02b0770 | 632 | void WM_MakeModal(WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 633 | |
redbird | 0:1bf8f02b0770 | 634 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 635 | * |
redbird | 0:1bf8f02b0770 | 636 | * Message related functions |
redbird | 0:1bf8f02b0770 | 637 | * |
redbird | 0:1bf8f02b0770 | 638 | * Please note that some of these functions do not yet show up in the |
redbird | 0:1bf8f02b0770 | 639 | * documentation, as they should not be required by application program. |
redbird | 0:1bf8f02b0770 | 640 | */ |
redbird | 0:1bf8f02b0770 | 641 | void WM_NotifyParent (WM_HWIN hWin, int Notification); |
redbird | 0:1bf8f02b0770 | 642 | void WM_SendMessage (WM_HWIN hWin, WM_MESSAGE * p); |
redbird | 0:1bf8f02b0770 | 643 | void WM_SendMessageNoPara (WM_HWIN hWin, int MsgId); /* not to be documented (may change in future */ |
redbird | 0:1bf8f02b0770 | 644 | void WM_DefaultProc (WM_MESSAGE * pMsg); |
redbird | 0:1bf8f02b0770 | 645 | int WM_BroadcastMessage (WM_MESSAGE * pMsg); |
redbird | 0:1bf8f02b0770 | 646 | void WM_SetScrollState (WM_HWIN hWin, const WM_SCROLL_STATE * pState); |
redbird | 0:1bf8f02b0770 | 647 | void WM_SetEnableState (WM_HWIN hItem, int State); |
redbird | 0:1bf8f02b0770 | 648 | void WM_SendToParent (WM_HWIN hWin, WM_MESSAGE * pMsg); |
redbird | 0:1bf8f02b0770 | 649 | int WM_HasFocus (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 650 | int WM_SetFocus (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 651 | WM_HWIN WM_SetFocusOnNextChild (WM_HWIN hParent); /* Set the focus to the next child */ |
redbird | 0:1bf8f02b0770 | 652 | WM_HWIN WM_SetFocusOnPrevChild (WM_HWIN hParent); /* Set the focus to the previous child */ |
redbird | 0:1bf8f02b0770 | 653 | WM_HWIN WM_GetDialogItem (WM_HWIN hWin, int Id); |
redbird | 0:1bf8f02b0770 | 654 | void WM_EnableWindow (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 655 | void WM_DisableWindow (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 656 | void WM_GetScrollState (WM_HWIN hObj, WM_SCROLL_STATE * pScrollState); |
redbird | 0:1bf8f02b0770 | 657 | |
redbird | 0:1bf8f02b0770 | 658 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 659 | * |
redbird | 0:1bf8f02b0770 | 660 | * Managing user data |
redbird | 0:1bf8f02b0770 | 661 | */ |
redbird | 0:1bf8f02b0770 | 662 | int WM_GetUserData (WM_HWIN hWin, void * pDest, int SizeOfBuffer); |
redbird | 0:1bf8f02b0770 | 663 | int WM_SetUserData (WM_HWIN hWin, const void * pSrc, int SizeOfBuffer); |
redbird | 0:1bf8f02b0770 | 664 | int WM__GetUserDataEx(WM_HWIN hWin, void * pDest, int NumBytes, int SizeOfObject); |
redbird | 0:1bf8f02b0770 | 665 | int WM__SetUserDataEx(WM_HWIN hWin, const void * pSrc, int NumBytes, int SizeOfObject); |
redbird | 0:1bf8f02b0770 | 666 | |
redbird | 0:1bf8f02b0770 | 667 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 668 | * |
redbird | 0:1bf8f02b0770 | 669 | * Capturing input focus |
redbird | 0:1bf8f02b0770 | 670 | */ |
redbird | 0:1bf8f02b0770 | 671 | int WM_HasCaptured (WM_HWIN hWin); |
redbird | 0:1bf8f02b0770 | 672 | void WM_SetCapture (WM_HWIN hObj, int AutoRelease); |
redbird | 0:1bf8f02b0770 | 673 | void WM_SetCaptureMove(WM_HWIN hWin, const GUI_PID_STATE * pState, int MinVisibility, int LimitTop); /* Not yet documented */ |
redbird | 0:1bf8f02b0770 | 674 | void WM_ReleaseCapture(void); |
redbird | 0:1bf8f02b0770 | 675 | |
redbird | 0:1bf8f02b0770 | 676 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 677 | * |
redbird | 0:1bf8f02b0770 | 678 | * Misc routines |
redbird | 0:1bf8f02b0770 | 679 | */ |
redbird | 0:1bf8f02b0770 | 680 | int WM_HandlePID (void); |
redbird | 0:1bf8f02b0770 | 681 | WM_HWIN WM_Screen2hWin (int x, int y); |
redbird | 0:1bf8f02b0770 | 682 | WM_HWIN WM_Screen2hWinEx (WM_HWIN hStop, int x, int y); |
redbird | 0:1bf8f02b0770 | 683 | void WM_ForEachDesc (WM_HWIN hWin, WM_tfForEach * pcb, void * pData); |
redbird | 0:1bf8f02b0770 | 684 | void WM_SetScreenSize (int xSize, int ySize); |
redbird | 0:1bf8f02b0770 | 685 | int WM_PollSimMsg (void); |
redbird | 0:1bf8f02b0770 | 686 | |
redbird | 0:1bf8f02b0770 | 687 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 688 | * |
redbird | 0:1bf8f02b0770 | 689 | * Diagnostics routines |
redbird | 0:1bf8f02b0770 | 690 | */ |
redbird | 0:1bf8f02b0770 | 691 | #if (WM_SUPPORT_DIAG) |
redbird | 0:1bf8f02b0770 | 692 | void WM_DIAG_EnableInvalidationColoring(int OnOff); |
redbird | 0:1bf8f02b0770 | 693 | #endif |
redbird | 0:1bf8f02b0770 | 694 | |
redbird | 0:1bf8f02b0770 | 695 | /********************************************************************* |
redbird | 0:1bf8f02b0770 | 696 | * |
redbird | 0:1bf8f02b0770 | 697 | * Macros for compatibility with older versions |
redbird | 0:1bf8f02b0770 | 698 | */ |
redbird | 0:1bf8f02b0770 | 699 | #if WM_COMPATIBLE_MODE |
redbird | 0:1bf8f02b0770 | 700 | #define HBWIN WM_HWIN |
redbird | 0:1bf8f02b0770 | 701 | #define HBWIN_NULL WM_HWIN_NULL |
redbird | 0:1bf8f02b0770 | 702 | |
redbird | 0:1bf8f02b0770 | 703 | #define WM_HideWin WM_HideWindow |
redbird | 0:1bf8f02b0770 | 704 | #define WM_ShowWin WM_ShowWindow |
redbird | 0:1bf8f02b0770 | 705 | #define WM_GetKey GUI_GetKey |
redbird | 0:1bf8f02b0770 | 706 | #define WM_WaitKey GUI_WaitKey |
redbird | 0:1bf8f02b0770 | 707 | |
redbird | 0:1bf8f02b0770 | 708 | #define WM_ExecIdle WM_Exec |
redbird | 0:1bf8f02b0770 | 709 | #define WM_ExecIdle1 WM_Exec1 |
redbird | 0:1bf8f02b0770 | 710 | |
redbird | 0:1bf8f02b0770 | 711 | #define WM_Invalidate WM_InvalidateWindow |
redbird | 0:1bf8f02b0770 | 712 | #define WM_GetWinRect WM_GetWindowRect |
redbird | 0:1bf8f02b0770 | 713 | #define WM_GetWinOrgX WM_GetWindowOrgX |
redbird | 0:1bf8f02b0770 | 714 | #define WM_GetWinOrgY WM_GetWindowOrgY |
redbird | 0:1bf8f02b0770 | 715 | #define WM_GetWinSizeX WM_GetWindowSizeX |
redbird | 0:1bf8f02b0770 | 716 | #define WM_GetWinSizeY WM_GetWindowSizeY |
redbird | 0:1bf8f02b0770 | 717 | #define WM_GetXSize WM_GetWindowSizeX |
redbird | 0:1bf8f02b0770 | 718 | #define WM_GetYSize WM_GetWindowSizeY |
redbird | 0:1bf8f02b0770 | 719 | #define WM_SelWin WM_SelectWindow |
redbird | 0:1bf8f02b0770 | 720 | #define WM_GetBackgroundWindow WM_GetDesktopWindow |
redbird | 0:1bf8f02b0770 | 721 | #define WM_GetForegroundWindow 0 |
redbird | 0:1bf8f02b0770 | 722 | #define WM_SetForegroundWindow WM_BringToTop |
redbird | 0:1bf8f02b0770 | 723 | #define WM_SetUserClipArea WM_SetUserClipRect |
redbird | 0:1bf8f02b0770 | 724 | |
redbird | 0:1bf8f02b0770 | 725 | |
redbird | 0:1bf8f02b0770 | 726 | #define WM_Start() |
redbird | 0:1bf8f02b0770 | 727 | #define WM_Stop() |
redbird | 0:1bf8f02b0770 | 728 | #define WM_SetBkWindowColor(Color) WM_SetDesktopColor(Color) |
redbird | 0:1bf8f02b0770 | 729 | |
redbird | 0:1bf8f02b0770 | 730 | #endif |
redbird | 0:1bf8f02b0770 | 731 | |
redbird | 0:1bf8f02b0770 | 732 | |
redbird | 0:1bf8f02b0770 | 733 | #endif /* GUI_WINSUPPORT */ |
redbird | 0:1bf8f02b0770 | 734 | |
redbird | 0:1bf8f02b0770 | 735 | #if defined(__cplusplus) |
redbird | 0:1bf8f02b0770 | 736 | } |
redbird | 0:1bf8f02b0770 | 737 | #endif |
redbird | 0:1bf8f02b0770 | 738 | |
redbird | 0:1bf8f02b0770 | 739 | #endif /* WM_H */ |
redbird | 0:1bf8f02b0770 | 740 | |
redbird | 0:1bf8f02b0770 | 741 | /*************************** End of file ****************************/ |