亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? wm.c

?? 基于arm7內核的S3C44B0X的UCGUI應用程序
?? C
?? 第 1 頁 / 共 3 頁
字號:
    r.x0 = ClipContext.CurRect.x1+1;    r.y0 = ClipContext.CurRect.y0;    if (r.x0 > ClipContext.ClientRect.x1) {NextStripe:  /* go down to next stripe */      r.x0 = ClipContext.ClientRect.x0;      r.y0 = ClipContext.CurRect.y1+1;    }  }  /*     STEP 2:       Check if we are done completely.  */  if (r.y0 >ClipContext.ClientRect.y1)    return 0;  /* STEP 3:       Find out the max. height (r.y1) if we are at the left border.       Since we are using the same height for all IVRs at the same y0,       we do this only for the leftmost one.  */  pAWin = WM_H2P(GUI_Context.hAWin);  if (r.x0 == ClipContext.ClientRect.x0) {    r.y1 = ClipContext.ClientRect.y1;    r.x1 = ClipContext.ClientRect.x1;    /* Iterate over all windows which are above */    /* Check all siblings above (Iterate over Parents and top siblings (hNext) */    for (hParent = GUI_Context.hAWin; hParent; hParent = pParent->hParent) {      pParent = WM_H2P(hParent);      for (iWin= pParent->hNext; iWin !=0; iWin = pWin->hNext) {         Status = (pWin = WM_H2P(iWin))->Status;        /* Check if this window affects us at all */            if ((Status & WM_SF_ISVIS)  && (!(Status & WM_SF_HASTRANS)) && GUI_RectsIntersect(&r, &pWin->Rect)) {          if (pWin->Rect.y0 > r.y0) {            ASSIGN_IF_LESS(r.y1, pWin->Rect.y0-1);      /* Check upper border of window */          } else {            ASSIGN_IF_LESS(r.y1, pWin->Rect.y1);        /* Check lower border of window */          }        }      }    }    /* Check all children */    for (iWin= pAWin->hFirstChild; iWin !=0; iWin = pWin->hNext) {       Status = (pWin = WM_H2P(iWin))->Status;      /* Check if this window affects us at all */          if ((Status & WM_SF_ISVIS)  && (!(Status & WM_SF_HASTRANS)) && GUI_RectsIntersect(&r, &pWin->Rect)) {        if (pWin->Rect.y0 > r.y0) {          ASSIGN_IF_LESS(r.y1, pWin->Rect.y0-1);      /* Check upper border of window */        } else {          ASSIGN_IF_LESS(r.y1, pWin->Rect.y1);        /* Check lower border of window */        }      }    }  }  /*     STEP 4      Find out x0 for the given y0, y1 by iterating over windows above.      if we find one that intersects, adjust x0 to the right.  */Find_x0:  r.x1 = r.x0;  /* Iterate over all windows which are above */  /* Check all siblings above */    for (hParent = GUI_Context.hAWin; hParent; hParent = pParent->hParent) {    pParent = WM_H2P(hParent);    for (iWin= pParent->hNext; iWin !=0; iWin = pWin->hNext) {       Status = (pWin = WM_H2P(iWin))->Status;      if ( (Status & WM_SF_ISVIS) && (!(Status & WM_SF_HASTRANS)) && GUI_RectsIntersect(&r, &pWin->Rect)) {     /* Check if this window affects us at all */        r.x0 = pWin->Rect.x1+1;        goto Find_x0;      }    }  }  /* Check all children */  for (iWin= pAWin->hFirstChild; iWin !=0; iWin = pWin->hNext) {     Status = (pWin = WM_H2P(iWin))->Status;    if ( (Status & WM_SF_ISVIS) && (!(Status & WM_SF_HASTRANS)) && GUI_RectsIntersect(&r, &pWin->Rect)) {     /* Check if this window affects us at all */      r.x0 = pWin->Rect.x1+1;      goto Find_x0;    }  }  /*    STEP 5:     If r.x0 out of right border, this stripe is done. Set next stripe and goto STEP 2     Find out x1 for the given x0, y0, y1  */  r.x1 = ClipContext.ClientRect.x1;  if (r.x1 < r.x0) {/* horizontal border reached ? */    ClipContext.CurRect = r;    goto NextStripe;  }      /*    STEP 6:     Find r.x1. We have to Iterate over all windows which are above  */  /* Check all siblings above (Iterate over Parents and top siblings (hNext) */  for (hParent = GUI_Context.hAWin; hParent; hParent = pParent->hParent) {    pParent = WM_H2P(hParent);    for (iWin= pParent->hNext; iWin !=0; iWin = pWin->hNext) {       Status = (pWin = WM_H2P(iWin))->Status;      if (    (Status & WM_SF_ISVIS) && (!(Status & WM_SF_HASTRANS)) && GUI_RectsIntersect(&r, &pWin->Rect)) {     /* Check if this window affects us at all */        r.x1 = pWin->Rect.x0-1;          }    }  }  /* Check all children */  for (iWin= pAWin->hFirstChild; iWin !=0; iWin = pWin->hNext) {     Status = (pWin = WM_H2P(iWin))->Status;    if (    (Status & WM_SF_ISVIS) && (!(Status & WM_SF_HASTRANS)) && GUI_RectsIntersect(&r, &pWin->Rect)) {     /* Check if this window affects us at all */      r.x1 = pWin->Rect.x0-1;        }  }  /* We are done. Return the rectangle we found in the ClipContext. */  if (ClipContext.Cnt >200) {    return 0;  /* error !!! This should not happen !*/  }  ClipContext.CurRect = r;  return 1;  /* IVR is valid ! */}#elsestatic int FindNext_IVR(void) {  if (ClipContext.Cnt ==0) {    ClipContext.CurRect = GUI_Context.pAWin->Rect;    return 1;  /* IVR is valid ! */  }  return 0;  /* Nothing left to draw */}#endif/***********************************************************************              Get next IVR  Sets the next clipping rectangle. If a valid one has  been found (and set), 1 is returned in order to indicate  that the drawing operation needs to be executed.  Returning 0 signals that we have iterated over all  rectangles.  Returns: 0 if no valid rectangle is found           1 if rectangle has been found*/int  WM__GetNextIVR   (void) {  #if GUI_SUPPORT_CURSOR    static char _CursorHidden;  #endif  /* If WM is not active, we have no rectangles to return */  if (WM_IsActive==0)    return 0;  if (ClipContext.EntranceCnt > 1) {    ClipContext.EntranceCnt--;    return 0;  }  #if GUI_SUPPORT_CURSOR    if (_CursorHidden) {      _CursorHidden = 0;      (*GUI_CURSOR_pfTempUnhide) ( &ClipContext.CurRect);    }  #endif  ++ClipContext.Cnt;  /* Find next rectangle and use it as ClipRect */  if (!FindNext_IVR()) {    ClipContext.EntranceCnt--;  /* This search is over ! */    return 0;        /* Could not find an other one ! */  }  /* Hide cursor if necessary */  LCD_SetClipRectEx(&ClipContext.CurRect);  #if GUI_SUPPORT_CURSOR    if (GUI_CURSOR_pfTempHide) {      _CursorHidden = 1;      (*GUI_CURSOR_pfTempHide) ( &ClipContext.CurRect);    }  #endif  return 1;}/***********************************************************************              Init IVR  search  This routine is called from the clipping level  (the WM_ITERATE_START macro) when starting an iteration over the  visible rectangles.  Return value:    0 : There is no valid rectangle (nothing to do ...)    1 : There is a valid rectangle*/int WM__InitIVRSearch(const GUI_RECT* pMaxRect) {  GUI_RECT r;  WM_Obj* pAWin;   /* If WM is not active -> nothing to do, leave cliprect alone */  if (WM_IsActive==0)    return 1;              /* If we entered multiple times, leave Cliprect alone */  if (++ClipContext.EntranceCnt > 1)    return 1;  pAWin = WM_H2P(GUI_Context.hAWin);  ClipContext.Cnt        = -1; /* When using callback mechanism, it is legal to reduce drawing    area to the invalid area ! */  if (IsInCallback) {    WM__GetInvalidRectAbs(pAWin, &r);  } else {  /* Not using callback mechanism, therefor allow entire rectangle */    if (pAWin->Status & WM_SF_ISVIS) {      r = pAWin->Rect;    } else {      --ClipContext.EntranceCnt;      return 0;  /* window is not even visible ! */    }  }  /* If the drawing routine has specified a rectangle, use it to reduce the rectangle */  if (pMaxRect) {    GUI__IntersectRect(&r, pMaxRect);  }  /* If user has reduced the cliprect size, reduce the rectangle */  if (GUI_Context.WM__pUserClipRect) {    GUI_RECT rUser = *(GUI_Context.WM__pUserClipRect);    WM__Client2Screen(pAWin, &rUser);    GUI__IntersectRect(&r, &rUser);  }  /* Iterate over all ancestors and clip at their borders */  _ClipAtParentBorders(&r, pAWin);  /* Store the rectangle and find the first rectangle of the area */  ClipContext.ClientRect = r;  return WM__GetNextIVR();}/*          ********************************************          *                                          *          *       Set default                        *          *                                          *          ********************************************  This routine sets the defaults for WM and the layers below.  It is used before a drawing routine is called in order to  make sure that defaults are set (in case the default settings  had been altered before by the application)*/void WM_SetDefault(void) {  GL_SetDefault();  GUI_Context.WM__pUserClipRect = NULL;   /* No add. clipping */}/*  ********************************************  *  *        Callback for Paint message  *  ********************************************  This callback is used by the window manger in conjunction with banding  memory devices. A pointer to this routine is given to the banding memory device.  This callback in turn will send the paint message to the window.*/#if GUI_SUPPORT_MEMDEVstatic void cbPaint(void* pMsg) {  WM_SendMessage(((WM_MESSAGE*)pMsg)->hWin, (WM_MESSAGE*) pMsg);}#endif/*          ********************************************          *                                          *          *       Draw next window                   *          *                                          *          *********************************************/static void _DrawNext(void) {  int UpdateRem = 1;  WM_HWIN iWin = (NextDrawWin == WM_HWIN_NULL) ? WM__FirstWin : NextDrawWin;  GUI_CONTEXT ContextOld;  GUI_SaveContext(&ContextOld);  /* Make sure the next window to redraw is valid */  for (; (iWin!=WM_HWIN_NULL) && UpdateRem; ) {    WM_Obj* pWin = WM_H2P(iWin);    if (pWin->Status & WM_SF_INVALID) {      U8 Status = (pWin->Status &=  ~WM_SF_INVALID); /* Clear invalid flag */      WM__NumInvalidWindows--;      /* Send WM_PAINT if window is visible and a callback is defined */      if ((pWin->cb != NULL)  && (Status & WM_SF_ISVIS)) {        WM_MESSAGE Msg;        Msg.hWin   = iWin;        Msg.MsgId  = WM_PAINT;        Msg.Data.p = (GUI_RECT*)&pWin->InvalidRect;        WM_SelectWindow(iWin);        WM_SetDefault();        #if GUI_SUPPORT_MEMDEV          if (Status & WM_SF_MEMDEV) {            GUI_RECT r = pWin->InvalidRect;            GUI_MoveRect (&r, pWin->Rect.x0, pWin->Rect.y0);            GUI_MEMDEV_Draw(&r, cbPaint, &Msg, 0, (Status & WM_SF_HASTRANS) ? GUI_MEMDEV_HASTRANS : 0);          } else        #endif        WM_SendMessage(iWin, &Msg);        UpdateRem--;  /* Only the given number of windows at a time ... */      }    }    iWin = pWin->hNextLin;  }    NextDrawWin = iWin;   /* Remember the window */  GUI_RestoreContext(&ContextOld);}/*          *****************************************************************          *                                                               *          *                 Idle loop                                     *          *                                                               *          ******************************************************************/int WM_Exec1(void) {  if (WM_pfHandleHID) {    if (WM_pfHandleHID())      return 1;               /* We have done something ... */  }  if (GUI_PollKeyMsg()) {    return 1;               /* We have done something ... */  }  if (WM_IsActive && WM__NumInvalidWindows) {    WM_LOCK();    _DrawNext();    WM_UNLOCK();    return 1;               /* We have done something ... */  }  return 0;                  /* There was nothing to do ... */}int WM_Exec(void) {  int r = 0;  while (WM_Exec1()) {    r = 1;                  /* We have done something */  }  return r;}/*****************************************************************                                                               **              Callback for background window                   **                                                               *******************************************************************/static WM_RESULT cbBackWin( WM_MESSAGE* pMsg) {  WM_KEY_INFO* pKeyInfo;  switch (pMsg->MsgId) {  case WM_KEY:    pKeyInfo = (WM_KEY_INFO*)pMsg->Data.p;    if (pKeyInfo->PressedCnt == 0) {      GUI_StoreKey(pKeyInfo->Key);    }    break;  case WM_PAINT:    if (WM__BkColor != GUI_INVALID_COLOR) {      GUI_SetBkColor(WM__BkColor);      GUI_Clear();    }  default:    WM_DefaultProc(pMsg);  }}/******************************************************************                    WM_Activate  / WM_Deactivate*******************************************************************/void WM_Activate(void) {  WM_IsActive = 1;       /* Running */}void WM_Deactivate(void) {  WM_IsActive = 0;       /* No clipping performed by WM */  WM__SetMaxClipRect(WM_H2P(WM_HBKWIN));}/*          *****************************************************************          *                                                               *          *              WM_Init                                         *          *                                                               *          ******************************************************************/void WM_Init(void) {	if (!_IsInited) {	  WM_HWIN hWin;	  NextDrawWin = WM__FirstWin = WM_HWIN_NULL;	  GUI_Context.WM__pUserClipRect = NULL;	  WM__NumWindows = WM__NumInvalidWindows =0;	  /* Make sure we have at least one window. This greatly simplifies the		  drawing routines as they do not have to check if the window is valid.	  */	  hWin = WM_CreateWindow(0, 0, GUI_XMAX, GUI_YMAX, WM_CF_SHOW, cbBackWin, 0);	  WM_SelectWindow(hWin);	  WM_Activate();    _IsInited =1;	}}/*          ******************************************************          *                                                    *          *              Default procedure                     *          *                                                    *          *******************************************************/WM_RESULT WM_DefaultProc(WM_MESSAGE* pMsg) {  WM_HWIN hWin = pMsg->hWin;  void *p = pMsg->Data.p;  WM_Obj* pWin = WM_H2P(hWin);  /* Exec message */  switch (pMsg->MsgId) {  case WM_GETORG:    ((GUI_POINT*)p)->x = pWin->Rect.x0;    ((GUI_POINT*)p)->y = pWin->Rect.y0;    break;  case WM_GETCLIENTRECT:     /* return client window in window coordinates */    WM__GetClientRectWin(pWin, (GUI_RECT*)p);    break;  case WM_GETCLIENTRECT_ABS:      /* return client window in absolute (screen) coordinates */    WM__GetClientRectWin(pWin, (GUI_RECT*)p);    GUI_MoveRect((GUI_RECT*)p, pWin->Rect.x0, pWin->Rect.y0);    break;  case WM_GET_CLIENT_WINDOW:      /* return handle to client window. For most windows, there is no seperate client window, so it is the same handle */    pMsg->Data.v = hWin;    return;                       /* Message handled */  case WM_KEY:    WM_SendToParent(hWin, pMsg);    return;                       /* Message handled */   case WM_GET_BKCOLOR:    pMsg->Data.Color = GUI_INVALID_COLOR;    return;                       /* Message handled */  }  /* Message not handled. If it queries something, we return 0 to be on the safe side. */  pMsg->Data.v = 0;  pMsg->Data.p = 0;}#elsevoid WM(void) {} /* avoid empty object files */#endif /* WM_MAX_WINDOW */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲第一电影网| 亚洲国产精品激情在线观看| 亚洲国产美国国产综合一区二区| 99精品视频在线播放观看| 中文字幕在线免费不卡| 色一情一伦一子一伦一区| 亚洲一区影音先锋| 日韩亚洲欧美在线| 黄色资源网久久资源365| 久久精品欧美一区二区三区麻豆| 国产 欧美在线| 一区二区三区四区精品在线视频| 欧美久久一区二区| 韩国女主播成人在线| 亚洲男人电影天堂| 欧美性一区二区| 九色综合狠狠综合久久| 国产精品久久久久aaaa| 欧美日韩美少妇| 久国产精品韩国三级视频| 国产精品毛片久久久久久久| 在线一区二区三区做爰视频网站| 青青草国产精品亚洲专区无| 欧美国产精品久久| 欧美伊人精品成人久久综合97| 美女高潮久久久| 亚洲色图制服诱惑 | 欧美日韩一区二区三区免费看| 久久精品人人做人人综合| 波多野结衣中文一区| 精品一区二区三区在线播放 | 亚洲综合一二三区| 中文字幕亚洲不卡| 国产精品成人午夜| 中文乱码免费一区二区| 国产日韩精品久久久| 久久夜色精品一区| 亚洲精品一区二区三区影院| 日韩欧美电影一区| 亚洲伦在线观看| 成人欧美一区二区三区视频网页| 国产欧美一区二区精品性色超碰| 久久久久一区二区三区四区| 国产女同互慰高潮91漫画| 亚洲国产激情av| 亚洲日本在线看| 夜色激情一区二区| 亚洲成av人在线观看| 婷婷综合另类小说色区| 青娱乐精品视频在线| 精品亚洲国产成人av制服丝袜| 精油按摩中文字幕久久| 国产不卡在线视频| www.日韩av| 色偷偷一区二区三区| 欧美午夜在线一二页| 欧美精品色综合| 精品国产伦一区二区三区免费| 久久久精品综合| 亚洲乱码日产精品bd| 五月天激情小说综合| 韩国一区二区三区| av资源站一区| 7777精品伊人久久久大香线蕉的 | 一区二区三区中文字幕在线观看| 亚洲综合一二区| 久久9热精品视频| 国产成a人亚洲精品| 日本韩国一区二区三区视频| 3751色影院一区二区三区| 久久伊人蜜桃av一区二区| 亚洲视频免费看| 日韩av二区在线播放| 国产91精品一区二区麻豆网站| 91黄色激情网站| 精品国产乱码久久久久久闺蜜| 国产精品福利一区二区| 日韩主播视频在线| 成人午夜激情影院| 欧美日韩三级视频| 久久久美女毛片| 午夜精品影院在线观看| 国产精品一二三四| 欧美天天综合网| 中文字幕巨乱亚洲| 日韩国产欧美在线播放| 成人不卡免费av| 日韩一区二区三区免费观看 | 精品午夜一区二区三区在线观看| 91免费精品国自产拍在线不卡| 777奇米四色成人影色区| 国产精品第一页第二页第三页| 日产欧产美韩系列久久99| 97久久精品人人做人人爽50路 | 日韩精品中午字幕| 亚洲人成亚洲人成在线观看图片| 看国产成人h片视频| 在线视频国内自拍亚洲视频| 久久噜噜亚洲综合| 日韩av一区二区三区四区| 91一区二区三区在线观看| 久久免费电影网| 美国欧美日韩国产在线播放| 91在线高清观看| 亚洲国产精华液网站w| 久久国产乱子精品免费女| 欧美午夜精品一区二区蜜桃| 国产精品无人区| 国产一区二区中文字幕| 欧美无砖专区一中文字| 亚洲444eee在线观看| 成人免费毛片高清视频| 精品国产乱码久久久久久夜甘婷婷 | 成人精品gif动图一区| 欧美成人性战久久| 日韩综合小视频| 欧美图区在线视频| 自拍偷自拍亚洲精品播放| 成人免费看片app下载| 久久精品日韩一区二区三区| 国内外精品视频| 欧美mv日韩mv国产网站| 日韩精品一级中文字幕精品视频免费观看 | 欧美日韩精品一区二区三区| 亚洲精品视频观看| 99视频在线精品| 亚洲欧洲日韩女同| www.亚洲激情.com| 亚洲国产精华液网站w| 国产91精品露脸国语对白| 久久精品网站免费观看| 国产传媒久久文化传媒| 久久久99精品免费观看| 国产成人在线观看| 国产日韩影视精品| 成人一区在线看| 亚洲欧美在线视频观看| 成人免费视频视频在线观看免费| 中文字幕欧美日韩一区| 波多野结衣亚洲| 亚洲女人的天堂| 欧美日韩精品免费| 蜜臀av一区二区| 久久久久久久久久电影| 国产成人aaa| 亚洲男同1069视频| 欧美调教femdomvk| 蜜桃传媒麻豆第一区在线观看| 精品国产第一区二区三区观看体验| 精品一区二区影视| 国产精品理论片在线观看| 91在线小视频| 亚洲一区二区在线观看视频| 欧美三级在线播放| 日本一道高清亚洲日美韩| 2023国产精品| 波多野结衣欧美| 亚洲精品一二三四区| 欧美日韩成人综合| 狠狠久久亚洲欧美| 国产精品久久久久久户外露出| 欧洲在线/亚洲| 麻豆91精品91久久久的内涵| 日本一区二区三区久久久久久久久不| 成人毛片老司机大片| 亚洲国产日韩一区二区| 欧美mv日韩mv亚洲| 日韩一区二区三区视频| 国产精品一级片在线观看| 亚洲精品国产无套在线观| 67194成人在线观看| 精品一区二区三区蜜桃| 国产精品久久久久桃色tv| 欧美日韩亚洲综合一区二区三区| 蜜桃精品在线观看| 18成人在线视频| 日韩欧美一二区| 99久久精品免费精品国产| 日韩av中文字幕一区二区三区| 国产欧美日韩卡一| 欧美日韩国产首页在线观看| 国产v综合v亚洲欧| 日韩电影一区二区三区四区| 欧美国产视频在线| 91精品国产综合久久精品性色| 成人动漫一区二区在线| 青草av.久久免费一区| 中文字幕一区二| 日韩女同互慰一区二区| 日本福利一区二区| 国产毛片精品视频| 日韩精品电影在线观看| 亚洲视频一区二区免费在线观看| 日韩精品一区二区三区视频播放| 色综合天天做天天爱| 国产成人aaa| 九九视频精品免费| 午夜精品久久久久久久久| 成人欧美一区二区三区| 久久精品视频在线免费观看|