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

📄 cpw_window.h

📁 关于游戏手柄的驱动编程
💻 H
📖 第 1 页 / 共 3 页
字号:
  cpwPositionWindow( pCpw cpw, 
                     uint_32 x, 
                     uint_32 y, 
                     uint_32 id );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwReshapeWindow                                                   */
  /*                                                                       */
  /* <Description>                                                         */
  /*    Reshapes (or resizes) the window specified. Parameters indicate    */
  /*    the window's client area.                                          */
  /*                                                                       */
  CPW_API bool    
  cpwReshapeWindow( pCpw cpw, 
                    uint_32 width, 
                    uint_32 height, 
                    uint_32 id );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwGetWindow                                                       */
  /*                                                                       */
  /* <Description>                                                         */
  /*    Returns the id of the current foreground window.                   */
  /*                                                                       */
  CPW_API uint_32 
  cpwGetWindow( pCpw cpw );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwSetWindow                                                       */
  /*                                                                       */
  /* <Description>                                                         */
  /*    Sets the gl rendering context for the specified window             */
  /*    current.                                                           */
  /*                                                                       */
  CPW_API bool    
  cpwSetWindow( pCpw cpw, 
                uint_32 id );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwSetForegroundWindow                                             */
  /*                                                                       */
  /* <Description>                                                         */
  /*    Moves the specified window to the foreground.                      */
  /*                                                                       */
  CPW_API bool    
  cpwSetForegroundWindow( pCpw cpw, 
                          uint_32 id );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwPopWindow                                                       */
  /*                                                                       */
  /* <Description>                                                         */
  /*    Places the current foreground window at the bottom of the window   */
  /*    z-order window stack.                                              */
  /*                                                                       */
  CPW_API bool    
  cpwPopWindow( pCpw cpw );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwPushWindow                                                      */
  /*                                                                       */
  /* <Description>                                                         */
  /*    Pushes the foreground window down one in the window z-order stack, */
  /*    replacing it with the window below.                                */
  /*                                                                       */
  CPW_API bool    
  cpwPushWindow( pCpw cpw );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwIconifyWindow                                                   */
  /*                                                                       */
  /* <Description>                                                         */
  /*    Iconify the window.                                                */
  /*                                                                       */
  CPW_API bool    
  cpwIconifyWindow( pCpw cpw, 
                    uint_32 id );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwRestoreWindow                                                   */
  /*                                                                       */
  /* <Description>                                                         */
  /*    Restores a hidden or iconified window to it's original position on */
  /*    the desktop.                                                       */
  /*                                                                       */
  CPW_API bool    
  cpwRestoreWindow( pCpw cpw, 
                    uint_32 id );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwHideWindow                                                      */
  /*                                                                       */
  /* <Description>                                                         */
  /*    Completely hides a window.                                         */
  /*                                                                       */
  CPW_API bool    
  cpwHideWindow( pCpw cpw, 
                 uint_32 id );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwShowWindow                                                      */
  /*                                                                       */
  /* <Description>                                                         */
  /*    Shows a currently hidden window.                                   */
  /*                                                                       */
  CPW_API bool    
  cpwShowWindow( pCpw cpw, 
                 uint_32 id );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwPostRedisplay                                                   */
  /*                                                                       */
  /* <Description>                                                         */
  /*    Iterates all windows, starting at window id 1, posting a redisplay */
  /*    message to each.                                                   */
  /*                                                                       */
  CPW_API bool    
  cpwPostRedisplay( pCpw cpw );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwPostWindowRedisplay                                             */
  /*                                                                       */
  /* <Description>                                                         */
  /*    Posts a redisplay message to a single window.                      */
  /*                                                                       */
  CPW_API bool    
  cpwPostWindowRedisplay( pCpw cpw, 
                          uint_32 id );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwSwapBuffers                                                     */
  /*                                                                       */
  /* <Description>                                                         */
  /*    Iterates all windows, starting at window id 1, swapping any double */
  /*    buffered ones.                                                     */
  /*                                                                       */
  CPW_API bool    
  cpwSwapBuffers( pCpw cpw );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwSwapWindowBuffers                                               */
  /*                                                                       */
  /* <Description>                                                         */
  /*    Swaps the buffers on a double buffered window.                     */
  /*                                                                       */
  CPW_API bool    
  cpwSwapWindowBuffers( pCpw cpw, 
                        uint_32 id );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwSetCursor                                                       */
  /*                                                                       */
  /* <Description>                                                         */
  /*    Sets the cursor for a window which will be displayed any time the  */
  /*    the cursor is located within that window's client area.            */
  /*                                                                       */
  CPW_API bool    
  cpwSetCursor( pCpw cpw, 

⌨️ 快捷键说明

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