当前位置: 首页>>代码示例>>C++>>正文


C++ GUI_UNLOCK函数代码示例

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


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

示例1: GUI_DrawBitmapExp

void GUI_DrawBitmapExp(int x0,    int y0,
                       int XSize, int YSize,
                       int XMul,  int YMul,
                       int BitsPerPixel, 
                       int BytesPerLine,
                       const U8* pData,
                       const GUI_LOGPALETTE* pPal)
{
  GUI_DRAWMODE PrevDraw;
  GUI_LOCK();
  PrevDraw = GUI_SetDrawMode((pPal && pPal->HasTrans) ? GUI_DRAWMODE_TRANS : 0);
  #if (GUI_WINSUPPORT)
    WM_ADDORG(x0,y0);
    {
      GUI_RECT r;
      r.x0 = x0;
      r.x1 = x0 + XSize * XMul -1;
      r.y0 = y0;
      r.y1 = y0 + YSize * YMul -1;
      WM_ITERATE_START(&r); {
  #endif
  LCD_DrawBitmap( x0, y0 ,XSize ,YSize, XMul, YMul
                 ,BitsPerPixel, BytesPerLine, pData, pPal);
  #if (GUI_WINSUPPORT)
      } WM_ITERATE_END();
    }
  #endif
  GUI_SetDrawMode(PrevDraw);
  GUI_UNLOCK();
}
开发者ID:Cee,项目名称:uCOS-II-Timebomb,代码行数:30,代码来源:GUI_DrawBitmapExp.c

示例2: GUI_GotoX

/*********************************************************************
*
*       GUI_GotoX
*/
char GUI_GotoX(int x) {
  char r;
  GUI_LOCK();
  r = _GotoX(x);
  GUI_UNLOCK();
  return r;
}
开发者ID:ChunHungLiu,项目名称:ubuntu230os,代码行数:11,代码来源:GUI_Goto.c

示例3: GUI_CURSOR_Activate

/*********************************************************************
*
*       GUI_CURSOR_Activate
*/
void GUI_CURSOR_Activate(void) {
  GUI_LOCK();
  if ((--_CursorDeActCnt) ==0) {
    _Show();
  }
  GUI_UNLOCK();
}
开发者ID:Jaly314,项目名称:CH-K-Lib,代码行数:11,代码来源:GUICurs.c

示例4: GUI_GetPenShape

U8        GUI_GetPenShape  (void) {
  U8 r;
  GUI_LOCK();
  r = GUI_Context.PenShape;
  GUI_UNLOCK();
  return r;
}
开发者ID:rttg125,项目名称:Intelligent-bedroom-system,代码行数:7,代码来源:GUI_Pen.c

示例5: GUI_GetTextAlign

int GUI_GetTextAlign(void) {
  int r;
  GUI_LOCK();
  r = GUI_Context.TextAlign;
  GUI_UNLOCK();
  return r;
}
开发者ID:byxob,项目名称:calendar,代码行数:7,代码来源:GUI_GetTextAlign.c

示例6: GUI_GetCharDistX

/*********************************************************************
*
*       GUI_GetCharDistX
*/
int GUI_GetCharDistX(U16 c) {
  int r;
  GUI_LOCK();
  r = GUI_Context.pAFont->pfGetCharDistX(c);
  GUI_UNLOCK();
  return r;
}
开发者ID:ChunHungLiu,项目名称:ubuntu230os,代码行数:11,代码来源:GUIChar.c

示例7: GUI_Color2Index

/*********************************************************************
*
*       GUI_Color2Index
*/
int GUI_Color2Index(GUI_COLOR Color) {
  int Index;
  GUI_LOCK();
  Index = LCD_Color2Index(Color);
  GUI_UNLOCK();
  return Index;
}
开发者ID:Arakula,项目名称:Misa-Kitara-AP,代码行数:11,代码来源:GUIColor2Index.c

示例8: GUI_GetColor

/*********************************************************************
*
*       GUI_GetColor
*/
GUI_COLOR GUI_GetColor(void) {
  GUI_COLOR r;
  GUI_LOCK();
  r = LCD_Index2Color(LCD_GetColorIndex());
  GUI_UNLOCK();
  return r;
}
开发者ID:Arakula,项目名称:Misa-Kitara-AP,代码行数:11,代码来源:GUI_GetColor.c

示例9: GUI_UC_GetCharSize

/*********************************************************************
*
*       GUI_UC_GetCharSize
*/
int GUI_UC_GetCharSize(const char GUI_UNI_PTR * s) {
  int r;
  GUI_LOCK();
  r =  GUI_Context.pUC_API->pfGetCharSize(s);
  GUI_UNLOCK();
  return r;
}
开发者ID:ChunHungLiu,项目名称:ubuntu230os,代码行数:11,代码来源:GUI_UC.c

示例10: GUI_ALLOC_Free

void GUI_ALLOC_Free(GUI_HMEM hMem) {
  int Size;
  if (hMem == GUI_HMEM_NULL)  /* Note: This is not an error, it is permitted */
    return;
  GUI_LOCK();
  GUI_DEBUG_LOG1("\nGUI_ALLOC_Free(%d)", hMem);
  /* Do some error checking ... */
  #if GUI_DEBUG_LEVEL>0
    /* Block not allocated ? */
    if (aBlock[hMem].Size==0) {
      GUI_DEBUG_ERROROUT("GUI_ALLOC_Free(): Invalid hMem");
      return;
    }
  #endif
  Size = aBlock[hMem].Size;
  #ifdef WIN32
    memset(&GUI_Heap.abHeap[aBlock[hMem].Off], 0xcc, Size);
  #endif
  GUI_ALLOC.NumFreeBytes += Size;
  GUI_ALLOC.NumUsedBytes -= Size;
  aBlock[hMem].Size = 0;
  {
    int Next = aBlock[hMem].Next;
    int Prev = aBlock[hMem].Prev;
    aBlock[Prev].Next = Next;
    if (Next)
      aBlock[Next].Prev = Prev;
  }  
  GUI_ALLOC.NumFreeBlocks++;
  GUI_ALLOC.NumUsedBlocks--;
  GUI_UNLOCK();
}
开发者ID:byxob,项目名称:calendar,代码行数:32,代码来源:GUIAlloc.c

示例11: GUI_GetColorIndex

/*********************************************************************
*
*       GUI_GetColorIndex
*/
int GUI_GetColorIndex(void) {
  int r;
  GUI_LOCK();
  r = LCD_GetColorIndex();
  GUI_UNLOCK();
  return r;
}
开发者ID:Arakula,项目名称:Misa-Kitara-AP,代码行数:11,代码来源:GUI_GetColor.c

示例12: GUI_GetFontDistY

/*********************************************************************
*
*       GUI_GetFontDistY
*/
int GUI_GetFontDistY(void) {
  int r;
  GUI_LOCK();
  r = GUI_Context.pAFont->YDist;
  GUI_UNLOCK();
  return r;
}
开发者ID:Jaly314,项目名称:CH-K-Lib,代码行数:11,代码来源:GUIChar.c

示例13: GUI_SetDrawMode

GUI_DRAWMODE GUI_SetDrawMode(GUI_DRAWMODE dm) {
  GUI_DRAWMODE OldMode;
  GUI_LOCK(); {
  OldMode = LCD_SetDrawMode(dm);
  } GUI_UNLOCK();
  return OldMode;
}
开发者ID:byxob,项目名称:calendar,代码行数:7,代码来源:GUI_SetDrawMode.c

示例14: GUI_GetTextMode

int GUI_GetTextMode(void) {
  int r;
  GUI_LOCK();
  r = GUI_Context.TextMode;
  GUI_UNLOCK();
  return r;
}
开发者ID:byxob,项目名称:calendar,代码行数:7,代码来源:GUI_GetTextMode.c

示例15: GUI_CURSOR_GetState

/*********************************************************************
*
*       GUI_CURSOR_GetState
*/
int GUI_CURSOR_GetState(void) {
  int r;
  GUI_LOCK();
  r = _CursorOn;
  GUI_UNLOCK();
  return r;
}
开发者ID:Jaly314,项目名称:CH-K-Lib,代码行数:11,代码来源:GUICurs.c


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