gui_getdisppos.c

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

C
35
字号
/*************************************************************************************************************
                                                   uC/GUI
                                               嵌入式通用图形软件
File        : GUI_GetDispPos.c
Purpose     : Implementation of optional routines
************************************************************************************************************/
#include "GUI_Protected.H"

/*************************************************************************************************************
  Return X-component of current display position
*************************************************************************************************************/
int GUI_GetDispPosX(void) 
{
  int r;
  GUI_LOCK();
  r = GUI_Context.DispPosX;
  GUI_UNLOCK();
  return r;
}

/*************************************************************************************************************
  Return Y-component of current display position
*************************************************************************************************************/
int GUI_GetDispPosY(void) 
{
  int r;
  GUI_LOCK();
  r = GUI_Context.DispPosY;
  GUI_UNLOCK();
  return r;
}



⌨️ 快捷键说明

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