Giveda® Embedded Midware  1.2.0
本文档受《版权法》、《版权公约》保护。深圳技达®版权所有
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 友元 | 所有成员列表
GRect类 参考

GRect 代表二维平面中的一个矩形区域。对二维平面上的一个矩形区域进行各种数学运算。 更多...

#include <gRect.h>

Public 成员函数

 GRect ()
 
 GRect (const GPoint &topleft, const GSize &size)
 
 GRect (T_OFFSET left, T_OFFSET top, T_OFFSET width, T_OFFSET height)
 
 GRect (const T_RECT &tr)
 
bool isNull () const
 
bool isEmpty () const
 
bool isValid () const
 
T_OFFSET left () const
 
T_OFFSET top () const
 
T_OFFSET right () const
 
T_OFFSET bottom () const
 
T_OFFSET x () const
 
T_OFFSET y () const
 
GSize size () const
 
T_OFFSET width () const
 
T_OFFSET height () const
 
void setWidth (T_OFFSET w)
 
void setHeight (T_OFFSET h)
 
void setSize (const GSize &s)
 
void translate (T_OFFSET dx, T_OFFSET dy)
 
void translate (const GPoint &p)
 
void moveBy (T_OFFSET dx, T_OFFSET dy)
 
void moveBy (const GPoint &p)
 
void moveTopLeft (const GPoint &p)
 
void setRect (T_OFFSET x, T_OFFSET y, T_OFFSET w, T_OFFSET h)
 
GRect intersect (const GRect &r) const
 
bool intersects (const GRect &r) const
 
GPoint topLeft () const
 
GPoint bottomLeft () const
 
GPoint topRight () const
 
GPoint bottomRight () const
 
GPoint center () const
 
void moveLeft (T_OFFSET pos)
 
void moveRight (T_OFFSET pos)
 
void moveTop (T_OFFSET pos)
 
void moveBottom (T_OFFSET pos)
 
bool contains (const GRect &r, bool proper=false) const
 
bool contains (const GPoint &p, bool proper=false) const
 
GRect operator& (const GRect &r) const
 
void setLeft (T_OFFSET pos)
 
void setTop (T_OFFSET pos)
 
void setRight (T_OFFSET pos)
 
void setBottom (T_OFFSET pos)
 
const T_RECT toT_RECT () const
 

友元

bool operator== (const GRect &, const GRect &)
 

详细描述

GRect 代表二维平面中的一个矩形区域。对二维平面上的一个矩形区域进行各种数学运算。

构造及析构函数说明

GRect::GRect ( )
GRect::GRect ( const GPoint topleft,
const GSize size 
)
GRect::GRect ( T_OFFSET  left,
T_OFFSET  top,
T_OFFSET  width,
T_OFFSET  height 
)
GRect::GRect ( const T_RECT tr)

成员函数说明

T_OFFSET GRect::bottom ( ) const
GPoint GRect::bottomLeft ( ) const
GPoint GRect::bottomRight ( ) const
GPoint GRect::center ( ) const
bool GRect::contains ( const GRect r,
bool  proper = false 
) const
bool GRect::contains ( const GPoint p,
bool  proper = false 
) const
T_OFFSET GRect::height ( ) const
GRect GRect::intersect ( const GRect r) const
bool GRect::intersects ( const GRect r) const
bool GRect::isEmpty ( ) const
bool GRect::isNull ( ) const
bool GRect::isValid ( ) const
T_OFFSET GRect::left ( ) const
void GRect::moveBottom ( T_OFFSET  pos)
void GRect::moveBy ( T_OFFSET  dx,
T_OFFSET  dy 
)
void GRect::moveBy ( const GPoint p)
void GRect::moveLeft ( T_OFFSET  pos)
void GRect::moveRight ( T_OFFSET  pos)
void GRect::moveTop ( T_OFFSET  pos)
void GRect::moveTopLeft ( const GPoint p)
GRect GRect::operator& ( const GRect r) const
T_OFFSET GRect::right ( ) const
void GRect::setBottom ( T_OFFSET  pos)
void GRect::setHeight ( T_OFFSET  h)
void GRect::setLeft ( T_OFFSET  pos)
void GRect::setRect ( T_OFFSET  x,
T_OFFSET  y,
T_OFFSET  w,
T_OFFSET  h 
)
void GRect::setRight ( T_OFFSET  pos)
void GRect::setSize ( const GSize s)
void GRect::setTop ( T_OFFSET  pos)
void GRect::setWidth ( T_OFFSET  w)
GSize GRect::size ( ) const
T_OFFSET GRect::top ( ) const
GPoint GRect::topLeft ( ) const
GPoint GRect::topRight ( ) const
const T_RECT GRect::toT_RECT ( ) const
void GRect::translate ( T_OFFSET  dx,
T_OFFSET  dy 
)
void GRect::translate ( const GPoint p)
T_OFFSET GRect::width ( ) const
T_OFFSET GRect::x ( ) const
T_OFFSET GRect::y ( ) const

友元及相关函数文档

bool operator== ( const GRect ,
const GRect  
)
friend

该类的文档由以下文件生成: