wm_getwindowrect.c

来自「uCGUI」· C语言 代码 · 共 35 行

C
35
字号
/*************************************************************************************************************
                                                   uC/GUI
                                               嵌入式通用图形软件
File        : WM_GetWindowRect.C
Purpose     : Windows manager, submodule
************************************************************************************************************/


#include "GUI_Protected.h"
#include "WM_Intern.H"

#if GUI_WINSUPPORT    /* If 0, WM will not generate any code */
#include "GUIDebug.h"
#define WM_DEBUG_LEVEL 1

/*************************************************************************************************************
*          WM_GetWindowRect
************************************************************************************************************/

        
void WM_GetWindowRect(GUI_RECT* pRect) {
  WM_LOCK();
  if (pRect) {
    WM_Obj* pWin = WM_HANDLE2PTR(GUI_Context.hAWin);
    *pRect = pWin->Rect;
  }
  WM_UNLOCK();
}

#else

void WM_GetWindowRect(void) {} /* avoid empty object files */

#endif /* WM_MAX_WINDOW */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?