IntRect getAbsoluteRect() const { return IntRect(mAbsolutePosition.left, mAbsolutePosition.top, mAbsolutePosition.left+mCoord.width, mAbsolutePosition.top+mCoord.height); }
The widget class has derived from this class
This class provides a rectangle structure to contain the widget
Where it been initialized?
The class member function has been called here:
in the widget class
void Widget::frameEntered(float _frame)check weather the current cursor pointer is at the widget rectangle
And show the tool tips
本文介绍了一个用于包含Widget的矩形结构类,并详细说明了如何通过成员函数getAbsoluteRect获取Widget的实际位置和大小。此外,还解释了在Widget类中如何调用此函数来检查鼠标指针是否位于Widget范围内,以便显示提示信息。
1894

被折叠的 条评论
为什么被折叠?



