⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wm_settrans.lst

📁 Keil C下通过的UCGUI,UCGUI的移植源代码
💻 LST
字号:
C51 COMPILER V8.05a   WM_SETTRANS                                                          04/11/2008 14:19:57 PAGE 1   


C51 COMPILER V8.05a, COMPILATION OF MODULE WM_SETTRANS
OBJECT MODULE PLACED IN WM_SetTrans.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\WM\WM_SetTrans.c LARGE BROWSE MDU_F120 DEBUG OBJECTEXTEND
                    - PRINT(.\WM_SetTrans.lst) OBJECT(WM_SetTrans.obj)

line level    source

   1          /*
   2          *********************************************************************************************************
   3          *                                                uC/GUI
   4          *                        Universal graphic software for embedded applications
   5          *
   6          *                       (c) Copyright 2002, Micrium Inc., Weston, FL
   7          *                       (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
   8          *
   9          *              礐/GUI is protected by international copyright laws. Knowledge of the
  10          *              source code may not be used to write a similar product. This file may
  11          *              only be used in accordance with a license and should not be redistributed
  12          *              in any way. We appreciate your understanding and fairness.
  13          *
  14          ----------------------------------------------------------------------
  15          File        : WM_SetTrans.C
  16          Purpose     : Windows manager, optional routines
  17          ----------------------------------------------------------------------
  18          */
  19          
  20          
  21          #include "WM_Intern.h"
  22          
  23          #if GUI_WINSUPPORT    /* If 0, WM will not generate any code */
              #include "gui\Core\GUIDebug.h"
              #define WM_DEBUG_LEVEL 1
              
              /*
                ********************************************************************
                *                                                                  *
                *           Manage transparency attributes                         *
                *                                                                  *
                ********************************************************************
              
              */
              void WM_SetHasTrans(WM_HWIN hWin) {
                WM_Obj *pWin = WM_HANDLE2PTR(hWin);  
                /* First check if this is necessary at all */
                if (pWin->Status&WM_SF_HASTRANS)
                  return;
                /* Set Transparency flag */
                pWin->Status |= WM_SF_HASTRANS;
                /* Mark content as invalid */
                WM_InvalidateWindow(hWin);
              }
              
              void WM_ClrHasTrans(WM_HWIN hWin) {
                WM_Obj *pWin = WM_HANDLE2PTR(hWin);  
              /* First check if this is necessary at all */
                if ((pWin->Status&WM_SF_HASTRANS) ==0)
                  return;
                pWin->Status &= ~WM_SF_HASTRANS;
                /* Mark content as invalid */
                WM_InvalidateWindow(hWin);
              }
C51 COMPILER V8.05a   WM_SETTRANS                                                          04/11/2008 14:19:57 PAGE 2   

              
              int WM_GetHasTrans(WM_HWIN hWin) {
                return WM_HANDLE2PTR(hWin)->Status &WM_SF_HASTRANS;
              }
              
              #else
  61          
  62          void WM_SetTrans(void) {} /* avoid empty object files */
  63          
  64          #endif /* WM_MAX_WINDOW */


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =      1    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -