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

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

?? wm.c

?? uCGUI
?? C
?? 第 1 頁 / 共 4 頁
字號:
      break;
    }
    hiWin = hNext;
  }
}


/*************************************************************************************************************
*
*/
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;
  }
}


/*********************************************************************
   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;
}


/*
  ********************************************************************
  *                                                                  *
  *                    Sending messages                              *
  *                                                                  *
  ********************************************************************
*/


void WM_SendMessage(WM_HWIN hWin, WM_MESSAGE* pMsg) {
  WM_Obj* pWin;
  WM_LOCK();
  if (hWin) {
    pWin = WM_H2P(hWin);
  /* Do some checking to avoid program crashes due to user
     programming errors */
    #if GUI_DEBUG_LEVEL > 0
      if (!pWin->Status)
        goto Done;
    #endif
    if (pWin->cb != NULL) {
      pMsg->hWin = hWin;
      IsInCallback = 1;
      (*pWin->cb)(pMsg);
      IsInCallback = 0;
    }
  }
  #if GUI_DEBUG_LEVEL > 0
Done:
  #endif
  WM_UNLOCK();
}

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



/* Get client rectangle in windows coordinates. This means that the
  upper left corner is always at (0,0). */
void WM__GetClientRectWin(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;
}


static void WM__GetInvalidRectAbs(WM_Obj* pWin, GUI_RECT* pRect) {
  *pRect = pWin->InvalidRect;
  GUI_MoveRect (pRect, pWin->Rect.x0, pWin->Rect.y0);
}


/*
          *****************************************************************
          *                                                               *
          *              Invalidation functions                           *
          *                                                               *
          *****************************************************************
*/

/* Invalidate, using window coordinates */
static void WM_InvalidateBWin1(WM_HWIN hWin, const GUI_RECT*pRect) {
  GUI_RECT r;
  WM_Obj* pWin = WM_H2P(hWin);
  WM__GetClientRectWin(pWin, &r);
  if (pRect)
    GUI__IntersectRect(&r, pRect);
  if (WM__RectIsNZ(&r)) {
    if (pWin->Status & WM_SF_INVALID) {
      GUI_MergeRect(&pWin->InvalidRect, &pWin->InvalidRect, &r);
    } else {
      pWin->InvalidRect = r;
      pWin->Status |= WM_SF_INVALID;
      WM__NumInvalidWindows++;
      /* Debug code: shows invalid areas */
      #if (WM_SHOW_INVALID)
      {
        GUI_CONTEXT Context = GUI_Context;
        WM_SelectWindow(hWin);
        GUI_SetBkColor(GUI_GREEN);
        GUI_ClearRect(r.x0, r.y0, r.x1, r.y1);
        GUI_Context = Context;
      }
      #endif


    }
  }
}

/* Invalidate, using desktop coordinates (only this window,
   not the ones below !!!)
*/
static void WM_InvalidateBWin1Abs(WM_HWIN hWin, const GUI_RECT*pRect) {
  GUI_RECT r = *pRect;
  WM_LOCK();
  GUI_MoveRect(&r, -WM_H2P(hWin)->Rect.x0, -WM_H2P(hWin)->Rect.y0);
  WM_InvalidateBWin1(hWin, &r);
  WM_UNLOCK();
}



/*
  Invalidate a certain section of the display. One main reason for this is
  that a window has been moved or destroyed.
  The following windows are affected:
  * windows below the window creating the invalidation.
  * transparent windows located above
  The coordinates given are absolute coordinates (desktop coordinates)
*/
void WM__InvalidateAreaBelow(const GUI_RECT* pRect, WM_HWIN StopWin) {
  WM_HWIN   iWin, iNext;
  /* Iterate over windows below StopWin */
  for (iWin = WM__FirstWin; iWin!=StopWin; iWin = iNext) {
    GUI_RECT r = *pRect;
    WM_Obj* pWin = WM_H2P(iWin);
    iNext = pWin->hNextLin;
    if (GUI__IntersectRects(&r, &r, &pWin->Rect)) {
      WM_InvalidateBWin1Abs (iWin, &r);
    }
  };
}

/*
  Invalidate any transparent window above the given area
*/
void WM__InvalidateTransAreaAbove(const GUI_RECT* pRect, WM_HWIN StopWin) {
  GUI_USE_PARA(pRect);
  GUI_USE_PARA(StopWin);
#if 0
  WM_HWIN   iWin;
  /* Iterate over windows below StopWin */
  for (iWin = StopWin; iWin!=WM_HWIN_NULL; iWin = WM_H2P(iWin)->Next) {
    WM_Obj *pWin = WM_H2P(iWin);
    if (pWin->Status & WM_SF_HASTRANS) {
      GUI_RECT r = *pRect;
      if (GUI__IntersectRects(&r, &r, &WM_H2P(iWin)->Rect)) {
        WM_InvalidateBWin1Abs (iWin, &r);
      }
    }
  }
#endif
}


/*
          *****************************************************************
          *                                                               *
          *              Invalidation functions                           *
          *                                                               *
          *****************************************************************
*/

/* 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;
  WM_LOCK();
  pWin = WM_H2P(hWin);
  WM__GetClientRectWin(pWin, &r);
  if (pRect) {
    GUI__IntersectRect(&r, pRect);
  }
  WM_InvalidateBWin1(hWin, &r);
/* Convert into absolute coordinates ... */
  GUI_MoveRect (&r, pWin->Rect.x0, pWin->Rect.y0);
/* Make sure windows below are invalidated if this one is transparent */
  if (pWin->Status & WM_SF_HASTRANS) {
    ResetNextDrawWin();
    WM__InvalidateAreaBelow(&r, hWin);
  }
/* Invalidate the transparent ones above */
  WM__InvalidateTransAreaAbove(&r,hWin);
  WM_UNLOCK();
}

void WM_InvalidateWindow(WM_HWIN hWin) {
  WM_InvalidateRect(hWin, NULL);
}

/* Invalidate, using desktop coordinates */
void WM_InvalidateBWinAbs(WM_HWIN hWin, const GUI_RECT*pRect) {
  GUI_RECT r = *pRect;
  WM_LOCK();
  GUI_MoveRect(&r, -WM_H2P(hWin)->Rect.x0, -WM_H2P(hWin)->Rect.y0);
  WM_InvalidateRect(hWin, &r);
  WM_UNLOCK();
}


/*
  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(GUI_RECT* pRect) {
  WM_HWIN   iWin;
  WM_LOCK();
  /* Iterate over all windows */
  for (iWin=WM__FirstWin; iWin !=0; ) {
    WM_Obj* pWin = WM_H2P(iWin);
    GUI_RECT r = *pRect;
    GUI__IntersectRect(&r, &pWin->Rect);
    /* Calculate which area is actually visible by subtracting the
       windows which are on top of this one */
    WM_InvalidateBWinAbs (iWin, &r);
    iWin = pWin->hNextLin;
  }
  WM_UNLOCK();
}


/*
  ********************************************************************
  *                                                                  *
  *              manage windows stack                                *
  *                                                                  *
  ********************************************************************
*/


/* Return index (handle) of the window which is bottom of stack.
   Note that in the current implementation, this is always
   window 0.
*/
WM_HWIN WM_GetDesktopWindow(void) {
  return WM__FirstWin;
}

/*
  ********************************************************************
  *
  *              Create window (as child)
  *
  ********************************************************************
*/

WM_HWIN WM_CreateWindowAsChild(
                    int x0, int y0, int width, int height
                   ,WM_HWIN hWinParent
                   ,U16 Style
                   ,WM_CALLBACK* cb
                   ,int NumExtraBytes)
{
  WM_Obj* pWin;
  WM_HWIN hWin;
  WM_LOCK();
  Style |= WM__CreateFlags;
  /* Get Parent info */
  if (!hWinParent) {
    if (WM__NumWindows) {
      hWinParent = WM_HBKWIN;
    }
  }
  if (hWinParent) {
    GUI_RECT Rect;
    WM_MESSAGE Msg;
    Msg.MsgId = WM_GETCLIENTRECT_ABS;
    Msg.Data.p = &Rect;
    WM_SendMessage(hWinParent, &Msg);
    x0 += Rect.x0;
    y0 += Rect.y0;
    if (width==0)
      width = Rect.x1-Rect.x0+1;
    if (height==0)
      height = Rect.y1-Rect.y0+1;
  }
  if ((hWin = (WM_HWIN) WM_ALLOC(NumExtraBytes+sizeof(WM_Obj))) == 0) {
    GUI_DEBUG_ERROROUT("WM_CreateWindow: No memory to create window");
  } else {
    WM__NumWindows++;
    pWin = WM_H2P(hWin);
    memset (pWin,   0, sizeof(WM_Obj));        /* erase this data structure
           The explicit zero-init is no longer needed since the entire data structure
           is already zeroed. The advantage is that it reduces program size.
           */
    pWin->Rect.x0 = x0;
    pWin->Rect.y0 = y0;
    pWin->Rect.x1 = x0+width-1;
    pWin->Rect.y1 = y0+height-1;
    pWin->Status = WM_SF_INUSE;     /* Mark window as in use */
    pWin->cb = cb;
    /* Add to linked lists */
    pWin->hParent = hWinParent;
    _AddChild(hWinParent, hWin, Style & WM_CF_STAYONTOP);
    _AddToLinList(hWin);
  /* Put Window on top (or bottom) of windows stack */
    if (Style & WM_CF_ACTIVATE /*| (cb==NULL)*/) {
      WM_SelectWindow(hWin);  /* This is not needed

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人h精品动漫一区二区三区| 成人久久视频在线观看| 国产精品一区二区三区四区| 色国产综合视频| 日韩欧美国产一区在线观看| 久久精品网站免费观看| 亚洲另类色综合网站| 日本三级亚洲精品| 高清shemale亚洲人妖| 在线亚洲高清视频| 国产亚洲精品超碰| 日韩电影免费在线观看网站| 国产91清纯白嫩初高中在线观看| 欧亚一区二区三区| 欧美激情一区二区三区四区| 亚洲高清久久久| 风流少妇一区二区| 日韩你懂的在线播放| 日韩精品成人一区二区在线| 午夜电影网亚洲视频| 色综合久久久久久久久| 中文字幕精品一区| 国产成人aaa| 精品国产免费视频| 裸体一区二区三区| 日韩视频国产视频| 蜜桃视频一区二区三区| 6080国产精品一区二区| 亚洲成av人片www| 欧美色爱综合网| 亚洲国产成人av网| 欧美日韩免费一区二区三区视频| 亚洲伦在线观看| 91成人网在线| 亚洲午夜私人影院| 欧美一区二区在线观看| 日本三级亚洲精品| 久久色在线观看| 国产精品综合二区| 国产精品私人自拍| 色综合久久88色综合天天6 | 国产成人在线视频网站| 精品久久久三级丝袜| 精品一区二区成人精品| 久久精品亚洲精品国产欧美kt∨ | 91亚洲资源网| 亚洲一线二线三线视频| 欧美日本在线一区| 紧缚奴在线一区二区三区| 久久精品免视看| av一区二区三区| 夜夜爽夜夜爽精品视频| 在线成人高清不卡| 国产精品一区二区在线观看网站| 国产蜜臀97一区二区三区| 91在线视频免费91| 亚洲一级二级在线| 精品日韩欧美一区二区| 国产69精品一区二区亚洲孕妇| 亚洲人成在线观看一区二区| 欧美三级欧美一级| 国内精品第一页| 自拍偷拍欧美激情| 日韩一区二区三区视频| 成人高清免费观看| 日日夜夜免费精品| ww亚洲ww在线观看国产| 91年精品国产| 天堂资源在线中文精品| 久久看人人爽人人| 欧美日韩精品一区二区在线播放 | 亚洲精品一区二区三区在线观看| 国产夫妻精品视频| 亚洲色图清纯唯美| 欧美裸体一区二区三区| 久久99热国产| 综合网在线视频| 欧美日韩国产高清一区二区三区| 亚洲男人的天堂在线aⅴ视频| 欧美一a一片一级一片| 日韩av一区二区在线影视| 久久综合九色综合97婷婷女人 | 91精品国产品国语在线不卡| 国产.欧美.日韩| 日韩av一级片| 亚洲一区二区三区四区在线观看 | 亚洲一二三区不卡| 中文av一区特黄| 日韩欧美一级二级| 欧美偷拍一区二区| 一本到不卡精品视频在线观看| 国产在线不卡视频| 日韩精品电影一区亚洲| 亚洲欧美一区二区久久| 国产亚洲一区二区三区| 欧美日韩另类国产亚洲欧美一级| av在线这里只有精品| 国产成人99久久亚洲综合精品| 久久精品国产一区二区三 | 国产精品久久精品日日| 欧美tickling挠脚心丨vk| 欧美老肥妇做.爰bbww视频| 97se亚洲国产综合在线| 国产成人自拍网| 国产美女视频91| 激情亚洲综合在线| 久久成人久久爱| 男男视频亚洲欧美| 日韩中文字幕一区二区三区| 性欧美疯狂xxxxbbbb| 亚洲精品免费一二三区| 中文字幕一区二区三区乱码在线 | 精品免费日韩av| 91精品麻豆日日躁夜夜躁| 欧美性受xxxx| 欧美日韩在线播放三区四区| 欧美视频你懂的| 欧美日韩免费一区二区三区视频| 欧美日韩一区二区在线视频| 欧美三级日韩在线| 欧美麻豆精品久久久久久| 欧美一区二区三区影视| 日韩一区二区中文字幕| 亚洲精品在线免费观看视频| 国产亚洲自拍一区| 国产精品久久久久三级| 亚洲老司机在线| 亚洲妇熟xx妇色黄| 久久99久国产精品黄毛片色诱| 经典三级视频一区| av在线播放成人| 欧美午夜寂寞影院| 欧美变态凌虐bdsm| 国产亚洲福利社区一区| 亚洲婷婷综合久久一本伊一区| 亚洲日本免费电影| 午夜精品福利久久久| 久久精品72免费观看| 国产黄色91视频| 色94色欧美sute亚洲13| 3d成人动漫网站| 久久精品无码一区二区三区| 136国产福利精品导航| 午夜日韩在线观看| 激情综合色丁香一区二区| www.av精品| 这里只有精品电影| 国产欧美日产一区| 亚洲一区二区三区四区在线免费观看| 免费高清在线一区| 成人h动漫精品| 欧美一区二区三区视频在线观看| 337p日本欧洲亚洲大胆精品| 亚洲免费色视频| 卡一卡二国产精品 | 国产精品伊人色| 91激情在线视频| 欧美成人猛片aaaaaaa| 国产日韩视频一区二区三区| 夜夜夜精品看看| 国产成a人无v码亚洲福利| 欧美探花视频资源| 欧美国产日本韩| 秋霞电影一区二区| jizzjizzjizz欧美| 欧美精品一区二| 日韩激情中文字幕| 91一区二区三区在线播放| 欧美成人免费网站| 亚洲高清在线精品| 95精品视频在线| 国产农村妇女毛片精品久久麻豆 | 91麻豆高清视频| 精品久久人人做人人爰| 亚洲国产成人av网| 国产aⅴ综合色| 精品裸体舞一区二区三区| 一区二区三区欧美亚洲| 成人丝袜18视频在线观看| 日韩欧美成人激情| 午夜精品久久久久久不卡8050 | 国产毛片精品国产一区二区三区| 在线观看免费亚洲| 国产情人综合久久777777| 日韩国产欧美在线播放| 欧美在线视频不卡| 国产精品初高中害羞小美女文| 国精产品一区一区三区mba桃花| 欧美日本韩国一区| 亚洲自拍另类综合| kk眼镜猥琐国模调教系列一区二区| 久久综合九色综合久久久精品综合| 日本欧美一区二区| 在线播放91灌醉迷j高跟美女| 一区二区免费看| 欧美亚洲国产一区二区三区| 亚洲免费电影在线| 欧美亚洲国产bt| 成人免费一区二区三区在线观看| 不卡大黄网站免费看|