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

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

?? wm.c

?? uc/os 嵌入式系統圖形界面PC機模擬仿真工具
?? C
?? 第 1 頁 / 共 4 頁
字號:
/*
*********************************************************************************************************
*                                                uC/GUI
*                        Universal graphic software for embedded applications
*
*                       (c) Copyright 2002, Micrium Inc., Weston, FL
*                       (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
*
*              礐/GUI is protected by international copyright laws. Knowledge of the
*              source code may not be used to write a similar product. This file may
*              only be used in accordance with a license and should not be redistributed
*              in any way. We appreciate your understanding and fairness.
*
----------------------------------------------------------------------
File        : WM.C
Purpose     : Windows manager core
----------------------------------------------------------------------
Version-Date---Author-Explanation
----------------------------------------------------------------------

3.00a   010621 RS     a) module accelerated by skipping parameter
                         to FindNext_IVR
3.00    010502 RS     a) WM module split up for library applications
                      b) Module dramatically accelerated (without
                         changes in the routine structure)
1.18    000909 RS     a) WM_CreateBWin does not activate the
                         new window unless specified via create flags
1.16a   000724 RS     a) Function WM_EnableMemdevRead added
1.16    000614 RS     a) Cleanup
                      b) Counter for invalid windows and
                         WM_GetNumInvalidWindows() added
1.14g   000522 RS     a) WM_ExecAll added
1.14f   000316 RS     a) Internal Create routine created in order to
                         handle creation of regular windows and
                         objects seperately (and correctly) in all
                         cases (by avoiding casts)
1.14e   000307 RS     a) WM_MoveTo added
1.14d   000224 RS     a) WM_CF_ACTIVATE flag now needed in order to
                         automatically activate a created window
1.14c   000209 RS     a) GUI_Clear eliminated in default callback for
                         default background window
1.14b   000125 RS     a) Bugfix for bug created in 1.14a
1.14a   000122 RS     a) WM_CreateObj: Change in order to avoid
                         compiler warning with IARs new frontend
1.14    999109 RS     a) Bugfix: Deleted window could still receive
                         up to 1 drawing message. Fixed. (->NextDrawWin)
                      b) WM_Obj now uses memory handle
                      c) WM_DefaultProc now handles WM_DELETE
                      d) Drawing area reduction for callbacks
                         to invalide area
                      e) WM_SetCallback added
                      f) Call to WM_Error if insufficient windows have
                         been configured
1.12h   000107 RS     a) WM_Sendmessage: unused local eliminated
                      b) WMALLOC_Init call eliminated
1.12g   991230 RS     a) Callback for background window defined
1.12f   991228 RS     a) Locking macros moved -> WM.h
1.12e   991208 RS     a) WM_DrawNext now saves the entire context, not
                         just the active window
1.12d   991204 RS     a) WM_GetBGndWin added
1.12c   991203 RS     a) WM_Init now creates default window
1.12b   991126 RS     a) Cleanup in order to avoid compiler warnings
1.12a   991112 RS     a) Invalidate now also invalidates any
                         transparent window on top of the invalidated
                         area
                      b) Internal changes in order to support
                         dynamic memory (using WM_ALLOC)
                      c) Additional ASSERTs inserted
1.12    991110 RS     a) Invalidate now also invalidates a window
                         below a transparent window
1.10c   991018 RS     a) WM_DrawNext:
                         NextDrawWin=WM_HWIN_NULL -> NextDrawWin==WM_HWIN_NULL
1.10b   991015 RS     a) WM_ValidateBWin corrected (Invalid
                         flag was never reset, leading to superfluos redraws)
                      b) WM_SetDefault(void) implemented
1.10a   991012 RS     a) Compile warnings eliminated
1.10    990918 RS     a) Objects for windows manager added:
                         WM_CreateObject, WM_DeleteObject
                      b) "Magic number" -1 eliminated
                      c) static routines put on top of file
                      d) Locking added (WM_LOCK), ensuring thread
                         safety of all routines
                      e) Window marked as valid only if a callback
                         exists, allowing mixed callback/non callback
                         modes for different windows
1.08.02 990827 RS     a) Optimization bug in WM_SetHasTrans
                         fixed
1.08.01 990826 RS     a) Transparent windows can no longer obstruct
                      an area of a window below in Z-direction
                      (in FindNext_IVR) for correct handling of
                      transparent windows
1.08.00 990823 RS     a) WM__GetOrgX -> WM_GetOrgX
                         WM__GetOrgY -> WM_GetOrgY
                      b) Clearing memory in WM_Init
1.07.01 990730 RS     a) In WM_DrawNext() add. condition added to make
                      sure that loop does not iterate using
                      -1 (end-of-list) as index
1.07    990720 RS     a) New switch: WM_SUPPORT_OBSTRUCT, def. 1
1.06    990504 BB     functions WM_GetWinSizeX() and WM_GetWinSizeY()
                      added.
1.05    990423 RS     a) Prototype for WM_CreateBWin changed,
                      parameter WM_MESSAGE* is no longer const
                      (Causing some other changes reg. const)
                      b) WM_ShowBWin WM_HideBWin tested in simulator
1.04    990417 RS     a) DrawNext bug fixed: It had passed the
                      entire WIndow-Rectangle instead of just
                      the InvalidRectangle with the WM_PAINT
                      command
1.03    990401 RS     a) Implemented the following functions
                      WM_SetHasTrans()
                      WM_ClrHasTrans()
                      WM_GetHasTrans()
                      WM_HideBWin()
                      WM_ShowBWin()
                      WM_ValidateBWin()
                      WM_GetActiveBWin()
1.02    990315 RS     a) Windows stack organisation routines cleaned
                      up, resulting in more efficient code
1.01    990314 RS     a) Invalidation and IVR calculation optimized
                      b) Windows which are on top of a window causing
                      invalidation are no longer affected
1.00    990310 RS     Moving and resizing tested in simulation
0.99    990309 RS     All routines implemented, moving & resizing
                      need to be tested under different circumstances.
0.50    990308 RS     Core of WM works (Calculation and iteration over
                      IVRs). Side routines like moving windows and the
                      corresponding message handling missing.
                      There is now a clear seperation between the LCD
                      and GL layers and WM.
0.01    990301 RS     Incomplete version, for BB to check
----------------------------------------------------------------------
Known problems:
None.
----------------------------------------------------------------------
Open issues:
None.
----------------------------------------------------------------------
Todo:
Nothing.
*/


#include <stddef.h>           /* needed for definition of NULL */
#include <string.h>           /* required for memset */

#define WM_C
#include "WM_Intern.h"

#if GUI_WINSUPPORT    /* If 0, WM will not generate any code */


/******************************************************************
*
*              Config defaults
*
*******************************************************************
*/

/* This is for tests only. It will fill the invalid area of a window.
   Can be used for debugging. */

#ifndef WM_SHOW_INVALID
  #define WM_SHOW_INVALID 0
#endif

/*******************************************************************
*
*                 Macros for internal use
*
********************************************************************
*/

#define ASSIGN_IF_LESS(v0,v1) if (v1<v0) v0=v1

/******************************************************************
*
*              Local typedefs
*
*******************************************************************
*/

typedef struct {
  GUI_RECT ClientRect;
  GUI_RECT CurRect;
  int Cnt;
  int EntranceCnt;
} WM_IVR_CONTEXT;

/******************************************************************
*
*              WM_ global data
*
*******************************************************************
*/

U8                     WM_IsActive;
U16                    WM__CreateFlags;
WM_DELETE_WINDOW_HOOK* WM__pfDeleteWindowHook;
GUI_COLOR              WM__BkColor = GUI_INVALID_COLOR;
WM_HWIN                WM__hCapture, WM__hWinFocus;
char                   WM__CaptureReleaseAuto;
WM_tfPollPID*          WM_pfPollPID;

/******************************************************************
*
*              Static data
*
*******************************************************************
*/

static WM_HWIN        NextDrawWin;
static U8             IsInCallback;
static WM_IVR_CONTEXT ClipContext;
static char           _IsInited;

/*******************************************************************
*
*       Static routines
*
********************************************************************
*/


/*******************************************************************
*
*       _ClipAtParentBorders

  Iterates over all its ancestors and intersects all rectangles to
  find out which part is actually visible.
  Reduces the rectangle to the visible area.
*/
void _ClipAtParentBorders(GUI_RECT* pRect, WM_Obj* pWin) {
  WM_HWIN hWin;
  hWin = pWin->hParent;
  while (hWin) {
    pWin = WM_H2P(hWin);
    GUI__IntersectRect(pRect, &pWin->Rect);
    hWin = pWin->hParent;
  }
}

/*******************************************************************
*
*

  When drawing, we have to start at the bottom window !
*/

static void ResetNextDrawWin(void) {
  NextDrawWin = WM_HWIN_NULL;
}


/*******************************************************************
*
*       _AddChild
*/
void _AddChild(WM_HWIN hParent, WM_HWIN hChild, int OnTop) {
  WM_Obj* pChild;
  WM_Obj* pParent;
  WM_Obj* pi;
  WM_HWIN hi;
  if (hParent) {
    pParent = WM_H2P(hParent);
    pChild  = WM_H2P(hChild);
    hi = pParent->hFirstChild;
    if (hi == 0) {   /* No child yet ... Makes things easy ! */
      pParent->hFirstChild = hChild;
        return;                         /* Early out ... We are done */
    }
    if (!OnTop) {
      pi = WM_H2P(hi);
      if (pi->Status & WM_SF_STAYONTOP) {
        pChild->hNext = hi;
        pParent->hFirstChild = hChild;
        return;                         /* Early out ... We are done */
      }
    }
    /* put if at the end of the list or after the last non "STAY-ON-TOP" child */
    do {
      WM_Obj* pNext;
      WM_HWIN hNext;
      pi = WM_H2P(hi);
      if ((hNext = pi->hNext) == 0) {
        pi->hNext = hChild;
        break;
      }
      if (!OnTop) {
        pNext = WM_H2P(hNext);
        if (pNext->Status & WM_SF_STAYONTOP) {
          pi->hNext = hChild;
          pChild->hNext = hNext;
          break;
        }
      }
      hi = hNext;
    }  while (1);
  }
}

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

/*******************************************************************
*
*
*/
static void _DeleteInSiblingList(WM_HWIN hWin) {
  WM_Obj* pWin;
  WM_Obj* pParent;
  WM_Obj* pi;
  WM_HWIN hParent;
  WM_HWIN hi;
  pWin = WM_H2P(hWin);
  if (pWin->hParent) {
    hParent = pWin->hParent;
    pParent = WM_H2P(hParent);
    hi = pParent->hFirstChild;
    if (hi == hWin) {
      pi = WM_H2P(hi);
      pParent->hFirstChild = pi->hNext;
    } else {
      while (hi) {
        pi = WM_H2P(hi);
        if (pi->hNext == hWin) {
          pi->hNext = pWin->hNext;
          return;
        }
        hi = pi->hNext;
      }
    }
  }
}


/*********************************************************************
*
*             Module internal routines
*
**********************************************************************
*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品国产色蜜蜜麻豆| 在线观看成人免费视频| 色综合久久天天综合网| 欧美一激情一区二区三区| 亚洲人成网站色在线观看| 久久精品国产99国产| 色一情一伦一子一伦一区| 国产婷婷色一区二区三区在线| 亚洲成人av资源| 色婷婷久久综合| 中文字幕一区二区在线观看| 国产精品88888| 欧美电影免费观看高清完整版在线 | 午夜精品aaa| 91麻豆精品一区二区三区| 久久久久青草大香线综合精品| 日韩av午夜在线观看| 欧美裸体bbwbbwbbw| 亚洲一区二区三区中文字幕在线| 成人aa视频在线观看| 久久久久久久久久久99999| 久久97超碰国产精品超碰| 日韩一区二区在线观看视频播放| 午夜精品一区二区三区电影天堂 | 日韩毛片视频在线看| 国产精品69毛片高清亚洲| 精品少妇一区二区三区| 精品在线播放午夜| 欧美成人伊人久久综合网| 奇米色777欧美一区二区| 9191国产精品| 日本午夜精品一区二区三区电影| 在线播放/欧美激情| 欧美bbbbb| 久久亚洲春色中文字幕久久久| 国产在线视频一区二区| 国产拍欧美日韩视频二区| 成人自拍视频在线| 亚洲免费高清视频在线| 欧美综合一区二区三区| 天天操天天综合网| 日韩欧美的一区二区| 久久精品国产**网站演员| 久久综合九色综合欧美就去吻| 国产一区二区福利视频| 欧美国产欧美亚州国产日韩mv天天看完整| 国产福利一区二区三区视频| 国产精品亲子伦对白| 91久久精品一区二区| 日韩av电影一区| 久久久久久久久久美女| 99re成人在线| 婷婷开心激情综合| 久久尤物电影视频在线观看| 99久久99久久综合| 午夜电影网一区| 国产三级精品三级| 精品1区2区3区| 国产激情视频一区二区在线观看 | 欧洲视频一区二区| 美女视频网站久久| 国产精品麻豆欧美日韩ww| 欧日韩精品视频| 久久91精品国产91久久小草 | 久久久不卡网国产精品二区 | 自拍偷拍亚洲综合| 91精品国产综合久久久久久久 | 日韩欧美你懂的| 盗摄精品av一区二区三区| 一区二区成人在线| 久久噜噜亚洲综合| 欧美日韩一二区| 成人精品鲁一区一区二区| 无码av中文一区二区三区桃花岛| 久久一区二区三区国产精品| 欧美色男人天堂| 国产v综合v亚洲欧| 免费精品视频在线| 一区二区在线看| 中文字幕av一区二区三区| 欧美老女人第四色| 91在线精品一区二区| 久久国内精品视频| 亚洲成av人片| 中文字幕人成不卡一区| 久久精品日产第一区二区三区高清版| 欧美日韩在线播放| 色呦呦网站一区| 成人视屏免费看| 国内外精品视频| 日本成人在线一区| 亚洲国产精品久久久久秋霞影院 | 欧美性videosxxxxx| 国产91综合一区在线观看| 免费看日韩a级影片| 亚洲电影你懂得| 亚洲精选一二三| 成人欧美一区二区三区黑人麻豆| 久久伊人蜜桃av一区二区| 日韩女优电影在线观看| 欧美一区日本一区韩国一区| 欧美精品一级二级| 欧美三级资源在线| 91国偷自产一区二区开放时间| av一区二区三区在线| 成人永久aaa| 国产一区二区三区在线观看免费视频 | 成人污污视频在线观看| 国产精品伊人色| 狠狠色狠狠色综合| 国产乱妇无码大片在线观看| 久久99精品国产麻豆婷婷| 国内久久婷婷综合| 国产成人综合自拍| 国产精品综合一区二区三区| 国产一区二区三区不卡在线观看| 蜜臀久久久99精品久久久久久| 久久99国产精品久久| 国产酒店精品激情| 成人黄色片在线观看| 99久久精品99国产精品| 在线欧美日韩国产| 在线91免费看| 精品国产髙清在线看国产毛片| 精品国产免费人成电影在线观看四季 | 成人性视频网站| 91小视频免费看| 日本伦理一区二区| 欧美三级在线视频| 欧美xxx久久| 中文字幕精品一区二区三区精品| 国产精品福利电影一区二区三区四区 | 欧美日韩一级片在线观看| 日韩一区二区三区四区| 久久久99久久| 亚洲天堂a在线| 日韩成人午夜电影| 国产成人精品网址| 色综合av在线| 精品国产乱码久久久久久蜜臀 | 国产日韩精品一区二区浪潮av| 亚洲国产精品精华液2区45| 亚洲乱码中文字幕| 欧美aⅴ一区二区三区视频| 国产激情视频一区二区在线观看 | 日韩高清中文字幕一区| 精品一区二区三区在线播放| av午夜一区麻豆| 欧美一二三在线| 成人免费视频在线观看| 日韩—二三区免费观看av| 国产 欧美在线| 欧美高清dvd| 国产精品久久久久aaaa樱花| 日韩电影在线观看网站| jvid福利写真一区二区三区| 在线播放国产精品二区一二区四区 | 日韩高清中文字幕一区| 成人99免费视频| 精品欧美一区二区在线观看| 亚洲精品久久嫩草网站秘色| 狠狠色综合日日| 欧美日韩免费高清一区色橹橹| 国产亚洲精久久久久久| 日韩精品乱码免费| 99精品热视频| 亚洲国产精品二十页| 久久不见久久见免费视频7| 欧美性一区二区| 亚洲欧美韩国综合色| 国产激情一区二区三区| 欧美一区二区三区爱爱| 亚洲国产日韩av| 99久久精品免费看| 国产女人水真多18毛片18精品视频| 亚洲午夜免费视频| av一二三不卡影片| 中文字幕av一区二区三区免费看 | 捆绑紧缚一区二区三区视频| 在线视频你懂得一区| 国产精品久久看| 国产成人h网站| 日韩精品专区在线影院重磅| 午夜精品久久久久久久久| 色播五月激情综合网| 亚洲欧洲精品一区二区三区| 国产不卡视频一区二区三区| 久久影院视频免费| 国模大尺度一区二区三区| 日韩欧美一区二区久久婷婷| 日韩国产在线观看一区| 7777精品伊人久久久大香线蕉超级流畅 | 亚洲国产wwwccc36天堂| 在线观看视频一区二区 | 欧美精品乱码久久久久久| 亚洲综合精品自拍| 欧美亚洲综合色| 日韩成人一级片| 精品久久一二三区| 国产黄色成人av|