• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ GUI_LOCK函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中GUI_LOCK函数的典型用法代码示例。如果您正苦于以下问题:C++ GUI_LOCK函数的具体用法?C++ GUI_LOCK怎么用?C++ GUI_LOCK使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了GUI_LOCK函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: GUI_SelectLayer

/*********************************************************************
*
*       GUI_SelectLayer
*/
unsigned int GUI_SelectLayer(unsigned int Index) {
  unsigned int OldIndex;
  GUI_LOCK();
  OldIndex = GUI_Context.SelLayer;
  if (Index < GUI_NUM_LAYERS) {
    GUI_Context.SelLayer = Index;
    GUI_SelectLCD();
  }
  GUI_UNLOCK();
  return OldIndex;
}
开发者ID:Jaly314,项目名称:CH-K-Lib,代码行数:15,代码来源:GUI_SelectLayer.c


示例2: CHECKBOX_SetImage

/*********************************************************************
*
*       Exported code
*
**********************************************************************
*/
void CHECKBOX_SetImage(CHECKBOX_Handle hObj, const GUI_BITMAP * pBitmap, unsigned int Index) {
  if (hObj) {
    CHECKBOX_Obj * pObj;
    GUI_LOCK();
    pObj = CHECKBOX_H2P(hObj);
    if (Index <= GUI_COUNTOF(pObj->Props.apBm)) {
      pObj->Props.apBm[Index] = pBitmap;
    }
    GUI_UNLOCK();
  }
}
开发者ID:Liu1992,项目名称:GasSub_LPC1788,代码行数:17,代码来源:CHECKBOX_SetImage.c


示例3: GUI_ALLOC_AllocZero

/*********************************************************************
*
*       GUI_ALLOC_AllocZero
*/
GUI_HMEM GUI_ALLOC_AllocZero(GUI_ALLOC_DATATYPE Size) {
  GUI_HMEM hMem;
  GUI_LOCK();
  GUI_DEBUG_LOG2("\nGUI_ALLOC_Alloc... requesting %d, %d avail", Size, GUI_ALLOC_GetMaxSize());
  hMem = GUI_ALLOC_AllocNoInit(Size);
  if (hMem) {
    GUI_MEMSET((U8*)GUI_ALLOC_h2p(hMem), 0, Size);   /* Zeroinit ! */
  }
  GUI_UNLOCK();
  return hMem;
}
开发者ID:ChunHungLiu,项目名称:ubuntu230os,代码行数:15,代码来源:GUI_ALLOC_AllocZero.c


示例4: GUI_DispCharAt

void GUI_DispCharAt(U16 c, I16P x, I16P y) {
  GUI_LOCK();
  GUI_Context.DispPosX =x;
  GUI_Context.DispPosY =y;
  #if (GUI_WINSUPPORT)
    CL_DispChar(c);
  #else
    GL_DispChar(c);
  #endif
  GUI_UNLOCK();
}
开发者ID:rttg125,项目名称:Intelligent-bedroom-system,代码行数:11,代码来源:GUI_DispChar.c


示例5: GUI_GetUsedMem

int GUI_GetUsedMem(void) {
  int NumUsedBytes=0;
  int i;
  GUI_LOCK();
  CheckInit();
  for (i=1; i; i = aBlock[i].Next) {
    NumUsedBytes += aBlock[i].Size;
  }
  GUI_UNLOCK();
  return NumUsedBytes;
}
开发者ID:byxob,项目名称:calendar,代码行数:11,代码来源:GUIAlloc.c


示例6: GUI_DrawPie

/*********************************************************************
*
*       GUI_DrawPie
*/
void GUI_DrawPie(int x0, int y0, int r, int a0, int a1, int Type) {
  GUI_LOCK();
  #if GUI_WINSUPPORT
    WM_ADDORG(x0,y0);
    WM_ITERATE_START(NULL) {
  #endif
  _DrawPie( x0, y0, r, a0, a1, Type);
  #if GUI_WINSUPPORT
    } WM_ITERATE_END();
  #endif
  GUI_UNLOCK();
}
开发者ID:Liu1992,项目名称:GasSub_LPC1788,代码行数:16,代码来源:GUI_DrawPie.c


示例7: GUI_DrawPoint

/*********************************************************************
*
*       GUI_DrawPoint
*/
void GUI_DrawPoint(int x, int y) {
  GUI_LOCK();
  #if (GUI_WINSUPPORT)
    WM_ADDORG(x, y);
    WM_ITERATE_START(NULL); {
  #endif
  GL_DrawPoint(x, y);
  #if (GUI_WINSUPPORT)
    } WM_ITERATE_END();
  #endif
  GUI_UNLOCK();
}
开发者ID:Jaly314,项目名称:CH-K-Lib,代码行数:16,代码来源:GUI_DrawPoint.c


示例8: GUI_ALLOC_AllocNoInit

/*********************************************************************
*
*       GUI_ALLOC_AllocNoInit
*/
GUI_HMEM GUI_ALLOC_AllocNoInit(GUI_ALLOC_DATATYPE Size) {
  GUI_HMEM hMem;
  if (Size == 0) {
    return (GUI_HMEM)0;
  }
  GUI_LOCK();
  GUI_DEBUG_LOG2("\nGUI_ALLOC_AllocNoInit... requesting %d, %d avail", Size, GUI_ALLOC.NumFreeBytes);
  hMem = _Alloc(Size);
  GUI_DEBUG_LOG1("\nGUI_ALLOC_AllocNoInit : Handle", hMem);
  GUI_UNLOCK();
  return hMem;
}
开发者ID:Arakula,项目名称:Misa-Kitara-AP,代码行数:16,代码来源:GUIAlloc.c


示例9: GUI_DispStringLen

/*********************************************************************
*
*       GUI_DispStringLen
*/
void GUI_DispStringLen(const char GUI_UNI_PTR *s, int MaxNumChars) {
    U16 Char;
    GUI_LOCK();
    while (MaxNumChars && ((Char = GUI_UC__GetCharCodeInc(&s)) != 0)) {
        GUI_DispChar(Char);
        MaxNumChars--;
    }
    while (MaxNumChars--) {
        GUI_DispChar(' ');
    }
    GUI_UNLOCK();
}
开发者ID:hyq19921011,项目名称:MyScop_GUI3.98,代码行数:16,代码来源:GUI_DispStringLen.c


示例10: GUI_LOCK

void GUI_DrawPolyLine     (const GUI_POINT* pPoints, int NumPoints, int x0, int y0) {
  GUI_LOCK();
  #if (GUI_WINSUPPORT)
    WM_ADDORG(x0,y0);
    WM_ITERATE_START(NULL); {
  #endif
  _DrawPolyLine (pPoints, NumPoints, x0, y0);
  #if (GUI_WINSUPPORT)
    } WM_ITERATE_END();
  #endif
  GUI_UNLOCK();
}
开发者ID:byxob,项目名称:calendar,代码行数:12,代码来源:GUI_DrawPolyline.c


示例11: GUI_DispStringInRectMax

void GUI_DispStringInRectMax(const char GUI_UNI_PTR *s, GUI_RECT* pRect, int TextAlign, int MaxLen) {
  GUI_RECT Rect_Old, r;
  if (s && pRect) {
    GUI_LOCK();
    Rect_Old = GUI_Context.ClipRect[GUI_Context.SelLayer];
    GUI__IntersectRects(&r, pRect, &Rect_Old);
    LCD_SetClipRectEx(&r);
    GUI__DispStringInRect(s, pRect, TextAlign, MaxLen);
    LCD_SetClipRectEx(&Rect_Old);
    GUI_UNLOCK();
  }
}
开发者ID:silview,项目名称:C100A,代码行数:12,代码来源:GUI_DispStringInRect.c


示例12: GUI_DrawGraph

/*********************************************************************
*
*       GUI_DrawGraph
*/  
void GUI_DrawGraph(I16 *pay, int NumPoints, int x0, int y0) {
  GUI_LOCK();
  #if (GUI_WINSUPPORT)
    WM_ADDORG(x0,y0);
    WM_ITERATE_START(NULL); {
  #endif
  _DrawGraph(pay, NumPoints, x0, y0);
  #if (GUI_WINSUPPORT)
    } WM_ITERATE_END();
  #endif
  GUI_UNLOCK();
}
开发者ID:Jaly314,项目名称:CH-K-Lib,代码行数:16,代码来源:GUI_DrawGraph.c


示例13: FRAMEWIN_SetFont

/*********************************************************************
*
*       FRAMEWIN_SetFont
*/
void FRAMEWIN_SetFont(FRAMEWIN_Handle hObj, const GUI_FONT GUI_UNI_PTR * pFont) {
  GUI_LOCK();
  if (hObj) {
    FRAMEWIN_Obj* pObj = FRAMEWIN_H2P(hObj);
    int OldHeight = FRAMEWIN__CalcTitleHeight(pObj);
    pObj->Props.pFont = pFont;
    FRAMEWIN__UpdatePositions(pObj);
    FRAMEWIN__UpdateButtons(pObj, OldHeight);
    FRAMEWIN_Invalidate(hObj);
  }
  GUI_UNLOCK();
}
开发者ID:Liu1992,项目名称:GasSub_LPC1788,代码行数:16,代码来源:FRAMEWIN_SetFont.c


示例14: GUI_SelLCD

unsigned int GUI_SelLCD(unsigned int Index) {
    unsigned int OldIndex = 0;
    if (Index < LCD_NUM_DISPLAYS) {
        GUI_LOCK();
        GUI_SetDefault();
        OldIndex = (GUI_Context.pDeviceAPI == aAPI[0]) ? 0 : 1;
        GUI_Context.pDeviceAPI = aAPI[Index];
        LCD_SetClipRectMax();
    }
    GUI_UNLOCK();
    return OldIndex;
}
开发者ID:stormbay,项目名称:DragonVer1.0,代码行数:12,代码来源:GUI_SelLCD.c


示例15: GUI_DrawArc

void GUI_DrawArc (int x0, int y0, int rx, int ry, int a0, int a1) {
  GUI_LOCK();
  #if (GUI_WINSUPPORT)
    WM_ADDORG(x0,y0);
    WM_ITERATE_START(NULL) {
  #endif
  GL_DrawArc( x0, y0, rx, ry, a0, a1);
  #if (GUI_WINSUPPORT)
    } WM_ITERATE_END();
  #endif
  GUI_UNLOCK();
}
开发者ID:rttg125,项目名称:Intelligent-bedroom-system,代码行数:12,代码来源:guiarc.c


示例16: GUI_MEASDEV_ClearRect

/*********************************************************************
*
*       GUI_MEASDEV_ClearRect
*/
void GUI_MEASDEV_ClearRect(GUI_MEASDEV_Handle hMemDev) {
  if (hMemDev) {
    GUI_MEASDEV* pDevData;
    GUI_LOCK();
    pDevData = (GUI_MEASDEV*)GUI_ALLOC_h2p(hMemDev);
    pDevData->rUsed.x0 = GUI_XMAX;
    pDevData->rUsed.y0 = GUI_YMAX;
    pDevData->rUsed.x1 = GUI_XMIN;
    pDevData->rUsed.y1 = GUI_YMIN;
    GUI_UNLOCK();
  } 
}
开发者ID:Jaly314,项目名称:CH-K-Lib,代码行数:16,代码来源:GUIDEV_Measure.c


示例17: GUI_UC_Encode

/*********************************************************************
*
*       GUI_UC_Encode
*/
int GUI_UC_Encode(char* s, U16 Char) {
  #if GUI_COMPILER_SUPPORTS_FP
    int r;
    GUI_LOCK();
    r = GUI_Context.pUC_API->pfEncode(s, Char);
    GUI_UNLOCK();
    return r;
  #else
    GUI_USE_PARA(s);
    GUI_USE_PARA(Char);
    return 0;
  #endif
}
开发者ID:ChunHungLiu,项目名称:ubuntu230os,代码行数:17,代码来源:GUI_UC.c


示例18: _SetRotation

/*********************************************************************
*
*       Static code
*
**********************************************************************
*/
static const GUI_ROTATION * _SetRotation(const GUI_ROTATION* pLCD_Api) {
  const GUI_ROTATION * pLCD_ApiOld;
  GUI_LOCK();
  pLCD_ApiOld = GUI_pLCD_APIList;
  if (pLCD_Api) {
    GUI_Context.pClipRect_HL = NULL;           /* Do not perform high level clipping in rotated mode */
  } else {
    GUI_Context.pClipRect_HL = &GUI_Context.ClipRect;
  }
  GUI_pLCD_APIList = pLCD_Api;
  GUI_UNLOCK();
  return pLCD_ApiOld;
}
开发者ID:Arakula,项目名称:Misa-Kitara-AP,代码行数:19,代码来源:GUI_DispStringInRectEx.c


示例19: GUI_TIMER_Restart

/*********************************************************************
*
*       GUI_TIMER_Restart
*/
void GUI_TIMER_Restart(GUI_TIMER_HANDLE hObj) {
  GUI_TIMER_Obj* pObj;
  GUI_LOCK();
  {
    if (hObj == 0) {
      hObj = _hActiveTimer;
    }
   	pObj = GUI_TIMER_H2P(hObj);
    pObj->t0 = GUI_GetTime() +pObj->Period;
		_Unlink(hObj);
		_Link(hObj);
  } GUI_UNLOCK(); 
}
开发者ID:HackLinux,项目名称:jz4725,代码行数:17,代码来源:GUITimer.c


示例20: GUI_MEASDEV_GetRect

/*********************************************************************
*
*       GUI_MEASDEV_GetRect
*/
void GUI_MEASDEV_GetRect(GUI_MEASDEV_Handle hMem, GUI_RECT* pRect) {
  if (hMem) {
    GUI_MEASDEV* pDev;
    GUI_LOCK();
    pDev = (GUI_MEASDEV*)GUI_ALLOC_h2p(hMem);
    if (pRect) {
      pRect->x0 = pDev->rUsed.x0;
      pRect->y0 = pDev->rUsed.y0;
      pRect->x1 = pDev->rUsed.x1;
      pRect->y1 = pDev->rUsed.y1;
    }
    GUI_UNLOCK();
  }
}
开发者ID:Jaly314,项目名称:CH-K-Lib,代码行数:18,代码来源:GUIDEV_Measure.c



注:本文中的GUI_LOCK函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ GUI_Mouse_Hide_Safe函数代码示例发布时间:2022-05-30
下一篇:
C++ GUI_Init函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap