當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。