CBlueUI  
C++ 跨平台跨框架的数据可视化工具
载入中...
搜索中...
未找到
BUI::GRect类 参考

矩形(int) 更多...

Public 成员函数

 GRect ()
 
 GRect (int l, int t, int r, int b)
 
 GRect (const GRect &rt)
 
BOOL IsRectEmpty () const
 
BOOL IsInRect (int x, int y) const
 
void Normalization ()
 
int Width () const
 
void SetWidth (int w)
 
int Height () const
 
void SetHeight (int h)
 
void OffsetRect (int x, int y)
 
void SetPoint (int x, int y)
 
void SetSize (int w, int h)
 
void SetRect (int l, int t, int r, int b)
 
void SetRect (const GRect &rt)
 
POINT CenterPoint () const
 
int Length () const
 
int Area () const
 
BOOL IntersectRect (const GRect &rt)
 
BOOL IntersectRect (const GRect &rt1, const GRect &rt2)
 
void UnionRect (const GRect &rt)
 
void UnionRect (const GRect &rt1, const GRect &rt2)
 
void InflateRect (int l, int t, int r, int b)
 
void InflateRect (int x, int y)
 
void InflateRect (const GRect &rt)
 
void DeflateRect (int l, int t, int r, int b)
 
void DeflateRect (int x, int y)
 
void SwapLeftRight ()
 
void SwapTopBottom ()
 
void Swap ()
 
void SetRectEmpty ()
 
void Translate (int dx_, int dy_)
 
RECT ToRECT () const
 
const GRectoperator= (const GRect &rt)
 
BOOL operator== (const GRect &rt) const
 
BOOL operator!= (const GRect &rt) const
 
const GRectoperator&= (const GRect &rt)
 
const GRectoperator|= (const GRect &rt)
 
GRect operator& (const GRect &rt) const
 
GRect operator| (const GRect &rt) const
 

Public 属性

int left
 
int right
 
int top
 
int bottom
 

详细描述

矩形(int)

构造及析构函数说明

◆ GRect() [1/3]

BUI::GRect::GRect ( )

◆ GRect() [2/3]

BUI::GRect::GRect ( int  l,
int  t,
int  r,
int  b 
)

◆ GRect() [3/3]

BUI::GRect::GRect ( const GRect rt)

成员函数说明

◆ Area()

int BUI::GRect::Area ( ) const

◆ CenterPoint()

POINT BUI::GRect::CenterPoint ( ) const

◆ DeflateRect() [1/2]

void BUI::GRect::DeflateRect ( int  l,
int  t,
int  r,
int  b 
)

◆ DeflateRect() [2/2]

void BUI::GRect::DeflateRect ( int  x,
int  y 
)

◆ Height()

int BUI::GRect::Height ( ) const

◆ InflateRect() [1/3]

void BUI::GRect::InflateRect ( const GRect rt)

◆ InflateRect() [2/3]

void BUI::GRect::InflateRect ( int  l,
int  t,
int  r,
int  b 
)

◆ InflateRect() [3/3]

void BUI::GRect::InflateRect ( int  x,
int  y 
)

◆ IntersectRect() [1/2]

BOOL BUI::GRect::IntersectRect ( const GRect rt)

◆ IntersectRect() [2/2]

BOOL BUI::GRect::IntersectRect ( const GRect rt1,
const GRect rt2 
)

◆ IsInRect()

BOOL BUI::GRect::IsInRect ( int  x,
int  y 
) const

◆ IsRectEmpty()

BOOL BUI::GRect::IsRectEmpty ( ) const

◆ Length()

int BUI::GRect::Length ( ) const

◆ Normalization()

void BUI::GRect::Normalization ( )

◆ OffsetRect()

void BUI::GRect::OffsetRect ( int  x,
int  y 
)

◆ operator!=()

BOOL BUI::GRect::operator!= ( const GRect rt) const

◆ operator&()

GRect BUI::GRect::operator& ( const GRect rt) const

◆ operator&=()

const GRect & BUI::GRect::operator&= ( const GRect rt)

◆ operator=()

const GRect & BUI::GRect::operator= ( const GRect rt)

◆ operator==()

BOOL BUI::GRect::operator== ( const GRect rt) const

◆ operator|()

GRect BUI::GRect::operator| ( const GRect rt) const

◆ operator|=()

const GRect & BUI::GRect::operator|= ( const GRect rt)

◆ SetHeight()

void BUI::GRect::SetHeight ( int  h)

◆ SetPoint()

void BUI::GRect::SetPoint ( int  x,
int  y 
)

◆ SetRect() [1/2]

void BUI::GRect::SetRect ( const GRect rt)

◆ SetRect() [2/2]

void BUI::GRect::SetRect ( int  l,
int  t,
int  r,
int  b 
)

◆ SetRectEmpty()

void BUI::GRect::SetRectEmpty ( )

◆ SetSize()

void BUI::GRect::SetSize ( int  w,
int  h 
)

◆ SetWidth()

void BUI::GRect::SetWidth ( int  w)

◆ Swap()

void BUI::GRect::Swap ( )

◆ SwapLeftRight()

void BUI::GRect::SwapLeftRight ( )

◆ SwapTopBottom()

void BUI::GRect::SwapTopBottom ( )

◆ ToRECT()

RECT BUI::GRect::ToRECT ( ) const

◆ Translate()

void BUI::GRect::Translate ( int  dx_,
int  dy_ 
)

◆ UnionRect() [1/2]

void BUI::GRect::UnionRect ( const GRect rt)

◆ UnionRect() [2/2]

void BUI::GRect::UnionRect ( const GRect rt1,
const GRect rt2 
)

◆ Width()

int BUI::GRect::Width ( ) const

类成员变量说明

◆ bottom

int BUI::GRect::bottom

◆ left

int BUI::GRect::left

◆ right

int BUI::GRect::right

◆ top

int BUI::GRect::top
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2025 · CBlueStudio 版权所有