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

📄 obj.hpp

📁 一个嵌入式系统的C代码
💻 HPP
字号:
//***********************************************************************//  MODULE : Obj - Class Header                                         *//  AUTHOR : Ron Chernich                                               *//  PURPOSE: Class header for geometric objects used by RCOS            *//  HISTORY:                                                            *//   18-JAN-93  First (MSC/C++ 7.00) version                            *//***********************************************************************#ifndef _RCOS_OBJ  #define _RCOS_OBJ  #include "rcos.hpp"  ////////////////  // (typically) a screen location in pixels  //  class point {  public:    INT16 x, y;                         // xy location of point    point (INT16 = 0, INT16 = 0);    point (point& pt) { x = pt.x, y = pt.y; }    ~point () {};    point& operator= (point&);    BOOL operator >= (point&);    BOOL operator <= (point&);    void MovePt (INT16, INT16);  };  ///////////////////  // an area bounded by two points  //  class rect {  public:    point ul, lr;                               // upper-left, lower-right    rect ()  {};    ~rect () {};    rect (point&, point&);    rect (point&, INT16, INT16);    rect (INT16, INT16, INT16, INT16);    BOOL InRect (point&);  };#endif/************************************ EOF ********************************/

⌨️ 快捷键说明

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