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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? wm.c

?? ucCos移植到廣州友善nano2410
?? C
?? 第 1 頁 / 共 4 頁
字號:
*
* Detaches the given window. The window still exists, it keeps all
* children, but it is no longer visible since it is taken out of
* the tree of the desktop window.
*/
void WM__DetachWindow(WM_HWIN hWin) {
  WM_Obj* pWin;
  WM_HWIN hParent;
  pWin = WM_H2P(hWin);
  hParent = pWin->hParent;
  if (hParent) {
    WM__RemoveWindowFromList(hWin);
    /* Clear area used by this window */
    WM_InvalidateArea(&pWin->Rect);
    pWin->hParent = 0;
  }
}


/*********************************************************************
*
*       _DeleteAllChildren
*/
static void _DeleteAllChildren(WM_HWIN hChild) {
  while (hChild) {
    WM_Obj* pChild = WM_H2P(hChild);
    WM_HWIN hNext = pChild->hNext;
    WM_DeleteWindow(hChild);
    hChild = hNext;
  }
}

/*********************************************************************
*
*             Module internal routines
*
**********************************************************************
*/
/*********************************************************************
*
*       WM__Client2Screen
*/
void WM__Client2Screen(const WM_Obj* pWin, GUI_RECT *pRect) {
  GUI_MoveRect(pRect, pWin->Rect.x0, pWin->Rect.y0);
}

/*********************************************************************
*
*       WM__IsWindow
*/
int WM__IsWindow(WM_HWIN hWin) {
  WM_HWIN iWin;
  for (iWin = WM__FirstWin; iWin; iWin = WM_H2P(iWin)->hNextLin) {
    if (iWin == hWin) {
      return 1;
    }
  }
  return 0;
}

/*********************************************************************
*
*         WM__InvalidateAreaBelow

  Params: pRect  Rectangle in Absolute coordinates
*/
void WM__InvalidateAreaBelow(const GUI_RECT* pRect, WM_HWIN StopWin) {
  GUI_USE_PARA(StopWin);
  WM_InvalidateArea(pRect);      /* Can be optimized to spare windows above */
}

/*********************************************************************
*
*       WM_RemoveFromLinList
*/
void WM__RemoveFromLinList(WM_HWIN hWin) {
  WM_Obj* piWin;
  WM_HWIN hiWin;
  WM_HWIN hNext;
  for (hiWin = WM__FirstWin; hiWin; ) {
    piWin = WM_H2P(hiWin);
    hNext = piWin->hNextLin;
    if (hNext == hWin) {
      piWin->hNextLin = WM_H2P(hWin)->hNextLin;
      break;
    }
    hiWin = hNext;
  }
}

/*********************************************************************
*
*       _AddToLinList
*/
static void _AddToLinList(WM_HWIN hNew) {
  WM_Obj* pFirst;
  WM_Obj* pNew;
  if (WM__FirstWin) {
    pFirst = WM_H2P(WM__FirstWin);
    pNew   = WM_H2P(hNew);
    pNew->hNextLin = pFirst->hNextLin;
    pFirst->hNextLin = hNew;
  } else {
    WM__FirstWin = hNew;
  }
}

/*********************************************************************
*
*       WM__RectIsNZ
*
   Check if the rectangle has some content (is non-zero)
   Returns 0 if the Rectangle has no content, else 1.
*/
int WM__RectIsNZ(const GUI_RECT* pr) {
  if (pr->x0 > pr->x1)
    return 0;
  if (pr->y0 > pr->y1)
    return 0;
  return 1;
}

/*********************************************************************
*
*        _Findy1
*
*/
static void _Findy1(WM_HWIN iWin, GUI_RECT* pRect, GUI_RECT* pParentRect) {
  WM_Obj* pWin;
  for (; iWin; iWin = pWin->hNext) { 
    int Status = (pWin = WM_H2P(iWin))->Status;
    /* Check if this window affects us at all */    
    if (Status & WM_SF_ISVIS) {
      GUI_RECT rWinClipped;               /* Window rect, clipped to part inside of ancestors */
      if (pParentRect) {
        GUI__IntersectRects(&rWinClipped, &pWin->Rect, pParentRect);
      } else {
        rWinClipped = pWin->Rect;
      }
      /* Check if this window affects us at all */    
      if (GUI_RectsIntersect(pRect, &rWinClipped)) {
        if ((Status & WM_SF_HASTRANS) == 0) {
          if (pWin->Rect.y0 > pRect->y0) {
            ASSIGN_IF_LESS(pRect->y1, rWinClipped.y0 - 1);      /* Check upper border of window */
          } else {
            ASSIGN_IF_LESS(pRect->y1, rWinClipped.y1);        /* Check lower border of window */
          }
        } else {
          /* Check all children*/ 
          WM_HWIN hChild;
          WM_Obj* pChild;
          for (hChild = pWin->hFirstChild; hChild; hChild = pChild->hNext) {
            pChild = WM_H2P(hChild);
            _Findy1(hChild, pRect, &rWinClipped);
          }
        }
      }
    }
  }
}

/*********************************************************************
*
*        _Findx0
*/
static int _Findx0(WM_HWIN hWin, GUI_RECT* pRect, GUI_RECT* pParentRect) {
  WM_Obj* pWin;
  int r = 0;
  for (; hWin; hWin = pWin->hNext) { 
    int Status = (pWin = WM_H2P(hWin))->Status;
    if (Status & WM_SF_ISVIS) {           /* If window is not visible, it can be safely ignored */
      GUI_RECT rWinClipped;               /* Window rect, clipped to part inside of ancestors */
      if (pParentRect) {
        GUI__IntersectRects(&rWinClipped, &pWin->Rect, pParentRect);
      } else {
        rWinClipped = pWin->Rect;
      }
      /* Check if this window affects us at all */    
      if (GUI_RectsIntersect(pRect, &rWinClipped)) {
        if ((Status & WM_SF_HASTRANS) == 0) {
          pRect->x0 = rWinClipped.x1+1;
          r = 1;
        } else {
          /* Check all children */
          WM_HWIN hChild;
          WM_Obj* pChild;
          for (hChild = pWin->hFirstChild; hChild; hChild = pChild->hNext) {
            pChild = WM_H2P(hChild);
            if (_Findx0(hChild, pRect, &rWinClipped)) {
              r = 1;
            }
          }
        }
      }
    }
  }
  return r;
}

/*********************************************************************
*
*        _Findx1
*/
static void _Findx1(WM_HWIN hWin, GUI_RECT* pRect, GUI_RECT* pParentRect) {
  WM_Obj* pWin;
  for (; hWin; hWin = pWin->hNext) { 
    int Status = (pWin = WM_H2P(hWin))->Status;
    if (Status & WM_SF_ISVIS) {           /* If window is not visible, it can be safely ignored */
      GUI_RECT rWinClipped;               /* Window rect, clipped to part inside of ancestors */
      if (pParentRect) {
        GUI__IntersectRects(&rWinClipped, &pWin->Rect, pParentRect);
      } else {
        rWinClipped = pWin->Rect;
      }
      /* Check if this window affects us at all */    
      if (GUI_RectsIntersect(pRect, &rWinClipped)) {
        if ((Status & WM_SF_HASTRANS) == 0) {
          pRect->x1 = rWinClipped.x0-1;
        } else {
          /* Check all children */
          WM_HWIN hChild;
          WM_Obj* pChild;
          for (hChild = pWin->hFirstChild; hChild; hChild = pChild->hNext) {
            pChild = WM_H2P(hChild);
            _Findx1(hChild, pRect, &rWinClipped);
          }
        }
      }
    }
  }
}

/*********************************************************************
*
*       Sending messages
*
**********************************************************************
*/
/*********************************************************************
*
*       WM_SendMessage
*/
void WM_SendMessage(WM_HWIN hWin, WM_MESSAGE* pMsg) {
  if (hWin) {
    WM_Obj* pWin;
    WM_LOCK();
    pWin = WM_H2P(hWin);
    if (pWin->cb != NULL) {
      pMsg->hWin = hWin;
      (*pWin->cb)(pMsg);
    }
    WM_UNLOCK();
  }
}

/*********************************************************************
*
*       WM__SendMsgNoData
*/
void WM__SendMsgNoData(WM_HWIN hWin, U8 MsgId) {
  WM_MESSAGE Msg;
  Msg.hWin  = hWin;
  Msg.MsgId = MsgId;
  WM_SendMessage(hWin, &Msg);
}

/*********************************************************************
*
*       WM__GetClientRectWin
*
  Get client rectangle in windows coordinates. This means that the
  upper left corner is always at (0,0). 
*/
void WM__GetClientRectWin(const WM_Obj* pWin, GUI_RECT* pRect) {
  pRect->x0 = pRect->y0 = 0;
  pRect->x1 = pWin->Rect.x1 - pWin->Rect.x0;
  pRect->y1 = pWin->Rect.y1 - pWin->Rect.y0;
}

/*********************************************************************
*
*       WM__GetInvalidRectAbs
*/
static void WM__GetInvalidRectAbs(WM_Obj* pWin, GUI_RECT* pRect) {
  *pRect = pWin->InvalidRect;
}

/*********************************************************************
*
*       Invalidation functions
*
**********************************************************************
*/
/*********************************************************************
*
*       WM_InvalidateRect
*
*  Invalidate a section of the window. The optional rectangle
*  contains client coordinates, which are independent of the
*  position of the window on the logical desktop area.
*/
void WM_InvalidateRect(WM_HWIN hWin, const GUI_RECT*pRect) {
  GUI_RECT r;
  WM_Obj* pWin;
  int Status;
  if (hWin) {
    WM_LOCK();
    pWin = WM_H2P(hWin);
    Status = pWin->Status;
    if (Status & WM_SF_ISVIS) {
      r = pWin->Rect;
      if (pRect) {
        GUI_RECT rPara;
        rPara = *pRect;
        WM__Client2Screen(pWin, &rPara);
        GUI__IntersectRect(&r, &rPara);
      }
      if (WM__ClipAtParentBorders(&r, hWin)) {      /* Optimization that saves invalidation if window area is not visible ... Not required */
        if ((Status & (WM_SF_HASTRANS | WM_SF_CONST_OUTLINE)) == WM_SF_HASTRANS) {
          WM__InvalidateAreaBelow(&r, hWin);        /* Can be optimized to spare windows above */
        } else {
          _Invalidate1Abs(hWin, &r);
        }
      }
    }
    WM_UNLOCK();
  }
}

/*********************************************************************
*
*        WM_InvalidateWindow
*
  Invalidates an entire window.
*/
void WM_InvalidateWindow(WM_HWIN hWin) {
  WM_InvalidateRect(hWin, NULL);
}

/*********************************************************************
*
*        WM_InvalidateArea

  Invalidate a certain section of the display. One main reason for this is
  that the top window has been moved or destroyed.
  The coordinates given are absolute coordinates (desktop coordinates)
*/
void WM_InvalidateArea(const GUI_RECT* pRect) {
  WM_HWIN   hWin;
  WM_LOCK();
  /* Iterate over all windows */
  for (hWin = WM__FirstWin; hWin; hWin = WM_H2P(hWin)->hNextLin) {
    _Invalidate1Abs(hWin, pRect);
  }
  WM_UNLOCK();
}

/*********************************************************************
*
*       manage windows stack
*
**********************************************************************
*/
/*********************************************************************
*
*       WM_CreateWindowAsChild
*/
WM_HWIN WM_CreateWindowAsChild( int x0, int y0, int width, int height
                               ,WM_HWIN hParent, U16 Style, WM_CALLBACK* cb
                               ,int NumExtraBytes) {
  WM_Obj* pWin;
  WM_HWIN hWin;
  WM_ASSERT_NOT_IN_PAINT();
  WM_LOCK();
  Style |= WM__CreateFlags;
  /* Default parent is Desktop 0 */
  if (!hParent) {
    if (WM__NumWindows) {
    #if GUI_NUM_LAYERS == 1
      hParent = WM__ahDesktopWin[0];
    #else
      hParent = WM__ahDesktopWin[GUI_Context.SelLayer];
    #endif
    }
  }
  if (hParent == WM_UNATTACHED) {
    hParent = WM_HWIN_NULL;
  }  
  if (hParent) {
    WM_Obj* pParent = WM_H2P(hParent);
    x0 += pParent->Rect.x0;
    y0 += pParent->Rect.y0;
    if (width==0) {
      width = pParent->Rect.x1 - pParent->Rect.x0+1;
    }
    if (height==0) {
      height = pParent->Rect.y1 - pParent->Rect.y0+1;
    }
  }
  if ((hWin = (WM_HWIN) GUI_ALLOC_AllocZero(NumExtraBytes + sizeof(WM_Obj))) == 0) {
    GUI_DEBUG_ERROROUT("WM_CreateWindow: No memory to create window");
  } else {
    WM__NumWindows++;
    pWin = WM_H2P(hWin);
    pWin->Rect.x0 = x0;
    pWin->Rect.y0 = y0;
    pWin->Rect.x1 = x0 + width - 1;
    pWin->Rect.y1 = y0 + height - 1;
    pWin->cb = cb;
    /* Copy the flags which can simply be accepted */
    pWin->Status |= (Style & (WM_CF_SHOW |
                              WM_SF_MEMDEV |
                              WM_CF_MEMDEV_ON_REDRAW |
                              WM_SF_STAYONTOP |
                              WM_SF_CONST_OUTLINE |
                              WM_SF_HASTRANS |
                              WM_CF_ANCHOR_RIGHT |
                              WM_CF_ANCHOR_BOTTOM |
                              WM_CF_ANCHOR_LEFT |
                              WM_CF_ANCHOR_TOP |
                              WM_CF_LATE_CLIP));
    /* Add to linked lists */
    _AddToLinList(hWin);
    WM__InsertWindowIntoList(hWin, hParent);
    /* Activate window if WM_CF_ACTIVATE is specified */
    if (Style & WM_CF_ACTIVATE) {
      WM_SelectWindow(hWin);  /* This is not needed if callbacks are being used, but it does not cost a lot and makes life easier ... */
    }
    /* Handle the Style flags, one at a time */
    #if WM_SUPPORT_TRANSPARENCY
      if (Style & WM_SF_HASTRANS) {
        WM__TransWindowCnt++;          /* Increment counter for transparency windows */
      }
    #endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区四区五区视频在线观看| 久久精品夜色噜噜亚洲aⅴ| 国产精品久久二区二区| 国产精品一区二区久久不卡| 337p粉嫩大胆色噜噜噜噜亚洲| 国产在线视频不卡二| 久久综合狠狠综合| www.色精品| 亚洲永久精品国产| 日韩欧美亚洲国产另类| 国产精品一区二区男女羞羞无遮挡 | 欧美一二三区精品| 黑人巨大精品欧美一区| 中文字幕永久在线不卡| 欧美日韩一区成人| 捆绑紧缚一区二区三区视频| 国产三区在线成人av| 成人在线综合网| **性色生活片久久毛片| 91亚洲国产成人精品一区二区三 | 中文无字幕一区二区三区| 91香蕉视频黄| 免费一级片91| 亚洲欧美日韩综合aⅴ视频| 亚洲综合区在线| 欧美一区二区精品在线| 成人激情图片网| 日本女人一区二区三区| 国产精品久久影院| 欧美一区二区视频在线观看2020| 丰满白嫩尤物一区二区| 调教+趴+乳夹+国产+精品| 国产欧美一二三区| 欧美日韩国产在线播放网站| 风间由美一区二区三区在线观看| 亚洲成人av一区二区| 国产欧美一区二区精品性色超碰| 欧美视频在线不卡| 成人晚上爱看视频| 久久91精品国产91久久小草| 亚洲欧美激情小说另类| 久久久亚洲欧洲日产国码αv| 欧美日韩在线直播| 99精品视频在线观看免费| 蜜桃av噜噜一区| 亚洲电影在线播放| 亚洲欧洲成人精品av97| 亚洲精品一区二区三区香蕉| 欧美色网站导航| 色综合欧美在线| 成人永久免费视频| 国产一区二区视频在线| 日本欧美一区二区在线观看| 一区二区三区在线观看国产| 中文字幕精品一区二区精品绿巨人| 日韩欧美国产午夜精品| 精品污污网站免费看| 91视频一区二区| 成人av在线电影| 国产99久久久精品| 国产精品88av| 国产精品中文字幕日韩精品| 久久99精品久久只有精品| 日本免费在线视频不卡一不卡二| 一区二区高清免费观看影视大全 | 日韩精品一二三四| 亚洲国产cao| 亚洲成人www| 亚洲国产精品久久久男人的天堂| 玉米视频成人免费看| 亚洲乱码中文字幕| 亚洲另类中文字| 亚洲美女区一区| 亚洲最大成人网4388xx| 一级做a爱片久久| 亚洲大片免费看| 日韩国产一区二| 麻豆精品国产91久久久久久| 久久99精品视频| 国产东北露脸精品视频| 国产suv一区二区三区88区| 成人国产精品免费观看视频| 成人动漫一区二区| 日本韩国欧美在线| 欧美日韩一区不卡| 制服丝袜亚洲播放| 精品久久人人做人人爱| 中文字幕欧美日本乱码一线二线| 国产人久久人人人人爽| 国产精品视频免费看| 亚洲蜜臀av乱码久久精品蜜桃| 亚洲综合一区二区精品导航| 午夜私人影院久久久久| 久久av老司机精品网站导航| 国产一区二区福利| 97久久精品人人做人人爽| 色狠狠色狠狠综合| 91精品国产91久久久久久一区二区| 日韩亚洲欧美中文三级| 国产日韩欧美亚洲| 亚洲国产欧美一区二区三区丁香婷| 天天影视涩香欲综合网| 国产精品亚洲成人| 日本电影亚洲天堂一区| 日韩视频国产视频| 国产精品入口麻豆九色| 亚洲精品成人少妇| 另类综合日韩欧美亚洲| 成人国产精品视频| 在线不卡中文字幕播放| 国产午夜一区二区三区| 亚洲最快最全在线视频| 美女视频网站黄色亚洲| 99久久国产免费看| 日韩欧美国产一区二区在线播放| 国产精品久久久久久一区二区三区 | 日韩午夜电影在线观看| 欧美激情一二三区| 丝袜国产日韩另类美女| 高清在线不卡av| 666欧美在线视频| 国产精品天天看| 久久精品国产一区二区| 91同城在线观看| 久久久久久亚洲综合影院红桃 | 日韩中文字幕不卡| 懂色中文一区二区在线播放| 7777精品伊人久久久大香线蕉的| 亚洲国产精品精华液ab| 日本 国产 欧美色综合| 91在线视频播放地址| 欧美成人一区二区三区片免费| 一区二区三区四区在线| 国内精品伊人久久久久av一坑| 91国偷自产一区二区使用方法| 国产欧美1区2区3区| 麻豆国产精品官网| 欧美日韩mp4| 一区二区三区在线不卡| 成人免费av网站| 久久久三级国产网站| 日本怡春院一区二区| 日本高清不卡aⅴ免费网站| 国产日产亚洲精品系列| 久久超碰97中文字幕| 欧美日韩卡一卡二| 亚洲激情男女视频| av资源站一区| 欧美激情一区二区三区不卡| 国产米奇在线777精品观看| 日韩免费一区二区| 日本亚洲天堂网| 欧美日本乱大交xxxxx| 一区二区免费看| 色狠狠色噜噜噜综合网| 亚洲男人的天堂在线aⅴ视频| 东方欧美亚洲色图在线| 国产欧美综合在线观看第十页 | 日本美女一区二区三区视频| 欧美亚洲一区三区| 亚洲伦在线观看| 日本精品视频一区二区| 亚洲欧美日韩国产一区二区三区| 成人福利在线看| |精品福利一区二区三区| av在线播放成人| 亚洲免费观看高清完整版在线观看| 91亚洲永久精品| 一区二区在线观看视频| 日本精品裸体写真集在线观看| 亚洲精品欧美专区| 色噜噜狠狠色综合欧洲selulu| 一区二区三区中文在线| 欧美群妇大交群中文字幕| 日韩国产欧美在线视频| 欧美电影免费观看高清完整版在线 | 在线亚洲欧美专区二区| 一区二区不卡在线播放| 欧美久久高跟鞋激| 久久99国产精品成人| 国产拍欧美日韩视频二区| 99re6这里只有精品视频在线观看| a在线播放不卡| 一区二区三区欧美日| 精品视频1区2区| 久久成人av少妇免费| 国产亚洲欧美在线| 99精品国产一区二区三区不卡 | 午夜精品久久久久久| 91精品国产综合久久国产大片| 韩国一区二区三区| 国产精品美女www爽爽爽| 91精彩视频在线观看| 日韩av网站免费在线| 国产欧美日产一区| 色综合久久天天| 久久er精品视频| 亚洲欧美另类综合偷拍| 91精品国产综合久久国产大片| 国产成人午夜视频|