#include <CEGUIRect.h>
Public Member Functions | |
Rect (void) | |
Rect (float left, float top, float right, float bottom) | |
Constructor for a Rect. | |
~Rect (void) | |
Destructor for Rect objects. | |
Point | getPosition (void) const |
Return top-left postion of Rect as a Point. | |
float | getWidth (void) const |
return width of Rect area | |
float | getHeight (void) const |
return height of Rect area | |
Size | getSize (void) const |
return the size of the Rect area | |
void | setPosition (const Point &pt) |
set the position of the Rect (leaves size in tact) | |
void | setWidth (float width) |
set the width of the Rect object | |
void | setHeight (float height) |
set the height of the Rect object | |
void | setSize (const Size &sze) |
set the size of the Rect area | |
Rect | getIntersection (const Rect &rect) const |
return a Rect that is the intersection of 'this' Rect with the Rect 'rect' | |
Rect & | offset (const Point &pt) |
Applies an offset the Rect object. | |
bool | isPointInRect (const Point &pt) const |
Return true if the given Point falls within this Rect. | |
Rect & | constrainSizeMax (const Size &sz) |
check the size of the Rect object and if it is bigger than sz, resize it so it isn't. | |
Rect & | constrainSizeMin (const Size &sz) |
check the size of the Rect object and if it is smaller than sz, resize it so it isn't. | |
Rect & | constrainSize (const Size &max_sz, const Size &min_sz) |
check the size of the Rect object and if it is bigger than max_sz or smaller than min_sz, resize it so it isn't. | |
bool | operator== (const Rect &rhs) const |
bool | operator!= (const Rect &rhs) const |
Rect & | operator= (const Rect &rhs) |
Public Attributes | |
float | d_top |
float | d_bottom |
float | d_left |
float | d_right |
Definition at line 40 of file CEGUIRect.h.
|
Definition at line 43 of file CEGUIRect.h. Referenced by getIntersection(). |
|
Constructor for a Rect.
Definition at line 34 of file CEGUIRect.cpp. |
|
Destructor for Rect objects.
Definition at line 57 of file CEGUIRect.h. |
|
check the size of the Rect object and if it is bigger than max_sz or smaller than min_sz, resize it so it isn't.
Definition at line 156 of file CEGUIRect.cpp. References CEGUI::Size::d_height, CEGUI::Size::d_width, getSize(), setHeight(), and setWidth(). Referenced by CEGUI::Window::onParentSized(), CEGUI::Window::setPosition(), CEGUI::Window::setRect(), and CEGUI::Window::setSize(). |
|
check the size of the Rect object and if it is bigger than sz, resize it so it isn't.
Definition at line 116 of file CEGUIRect.cpp. References CEGUI::Size::d_height, CEGUI::Size::d_width, getHeight(), getWidth(), setHeight(), and setWidth(). Referenced by CEGUI::Window::setMaximumSize(). |
|
check the size of the Rect object and if it is smaller than sz, resize it so it isn't.
Definition at line 136 of file CEGUIRect.cpp. References CEGUI::Size::d_height, CEGUI::Size::d_width, getHeight(), getWidth(), setHeight(), and setWidth(). Referenced by CEGUI::Window::setMinimumSize(). |
|
|
return a Rect that is the intersection of 'this' Rect with the Rect 'rect'
Definition at line 45 of file CEGUIRect.cpp. References d_bottom, d_left, d_right, d_top, and Rect(). Referenced by CEGUI::Imageset::draw(), CEGUI::RenderableImage::draw_impl(), CEGUI::StaticText::drawSelf(), CEGUI::Static::drawSelf(), CEGUI::MultiLineEditbox::drawSelf(), CEGUI::MultiColumnList::drawSelf(), CEGUI::Listbox::drawSelf(), CEGUI::Window::getInnerRect(), CEGUI::Window::getPixelRect(), CEGUI::Titlebar::onMouseButtonDown(), and CEGUI::MouseCursor::setConstraintArea(). |
|
Return top-left postion of Rect as a Point.
Definition at line 64 of file CEGUIRect.h. References CEGUI::Point. Referenced by CEGUI::Window::getPosition(), CEGUI::FrameWindow::offsetPixelPosition(), and CEGUI::Thumb::onMouseMove(). |
|
return the size of the Rect area
Definition at line 84 of file CEGUIRect.h. Referenced by constrainSize(), CEGUI::RenderableImage::draw_impl(), CEGUI::Window::getSize(), CEGUI::Window::getWindowSize_impl(), CEGUI::FrameWindow::onSized(), CEGUI::DirectX81Renderer::setDisplaySize(), CEGUI::DirectX9Renderer::setDisplaySize(), setPosition(), and CEGUI::FrameWindow::toggleRollup(). |
|
|
Return true if the given Point falls within this Rect.
Definition at line 86 of file CEGUIRect.cpp. References d_bottom, d_left, d_right, d_top, CEGUI::Vector2::d_x, CEGUI::Vector2::d_y, and CEGUI::Point. Referenced by CEGUI::Listbox::getItemAtPoint(), CEGUI::FrameWindow::getSizingBorderAtPoint(), CEGUI::System::injectMouseButtonDown(), and CEGUI::Window::isHit(). |
|
Applies an offset the Rect object.
Definition at line 73 of file CEGUIRect.cpp. References d_bottom, d_left, d_right, d_top, CEGUI::Vector2::d_x, CEGUI::Vector2::d_y, and CEGUI::Point. Referenced by CEGUI::Image::draw(), CEGUI::StaticText::drawSelf(), CEGUI::MultiLineEditbox::drawSelf(), CEGUI::MultiColumnList::drawSelf(), CEGUI::Listbox::drawSelf(), CEGUI::System::injectMouseButtonDown(), and CEGUI::Window::windowToScreen(). |
|
Definition at line 201 of file CEGUIRect.h. References CEGUI::operator==(). |
|
Definition at line 181 of file CEGUIRect.cpp. |
|
Definition at line 196 of file CEGUIRect.h. |
|
set the height of the Rect object
Definition at line 104 of file CEGUIRect.h. Referenced by constrainSize(), constrainSizeMax(), constrainSizeMin(), and CEGUI::Imageset_xmlHandler::startElement(). |
|
set the position of the Rect (leaves size in tact)
Definition at line 102 of file CEGUIRect.cpp. References d_left, d_top, CEGUI::Vector2::d_x, CEGUI::Vector2::d_y, getSize(), CEGUI::Point, and setSize(). Referenced by CEGUI::System::injectMouseButtonDown(), CEGUI::FrameWindow::offsetPixelPosition(), and CEGUI::Window::setPosition(). |
|
set the size of the Rect area
Definition at line 111 of file CEGUIRect.h. References CEGUI::Size::d_height, and CEGUI::Size::d_width. Referenced by CEGUI::MultiColumnList::drawSelf(), CEGUI::Listbox::drawSelf(), CEGUI::System::injectMouseButtonDown(), CEGUI::FrameWindow::onParentSized(), CEGUI::FrameWindow::onSized(), CEGUI::DirectX81Renderer::setDisplaySize(), CEGUI::DirectX9Renderer::setDisplaySize(), setPosition(), and CEGUI::Window::setSize(). |
|
set the width of the Rect object
Definition at line 98 of file CEGUIRect.h. Referenced by constrainSize(), constrainSizeMax(), constrainSizeMin(), CEGUI::StaticText::drawSelf(), and CEGUI::Imageset_xmlHandler::startElement(). |
|
|
|
|