#include <CEGUIRect.h>
Public Member Functions | |
Rect (void) | |
Rect (float left, float top, float right, float bottom) | |
Constructor for a Rect. | |
Rect (Point pos, Size sz) | |
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) |
Rect | operator * (float scalar) const |
const Rect & | operator *= (float scalar) |
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. |
|
Definition at line 42 of file CEGUIRect.cpp. |
|
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 165 of file CEGUIRect.cpp. References CEGUI::Size::d_height, CEGUI::Size::d_width, getSize(), setHeight(), and setWidth(). |
|
check the size of the Rect object and if it is bigger than sz, resize it so it isn't.
Definition at line 125 of file CEGUIRect.cpp. References CEGUI::Size::d_height, CEGUI::Size::d_width, getHeight(), getWidth(), setHeight(), and setWidth(). |
|
check the size of the Rect object and if it is smaller than sz, resize it so it isn't.
Definition at line 145 of file CEGUIRect.cpp. References CEGUI::Size::d_height, CEGUI::Size::d_width, getHeight(), getWidth(), setHeight(), and setWidth(). |
|
|
return a Rect that is the intersection of 'this' Rect with the Rect 'rect'
Definition at line 54 of file CEGUIRect.cpp. References d_bottom, d_left, d_right, d_top, and Rect(). Referenced by CEGUI::FrameComponent::doBackgroundRender(), CEGUI::Imageset::draw(), CEGUI::RenderableImage::draw_impl(), CEGUI::Window::getInnerRect(), CEGUI::Window::getPixelRect(), CEGUI::Titlebar::onMouseButtonDown(), CEGUI::MultiColumnList::populateRenderCache(), CEGUI::Listbox::populateRenderCache(), CEGUI::RenderCache::render(), CEGUI::ImageryComponent::render_impl(), and CEGUI::MouseCursor::setConstraintArea(). |
|
Return top-left postion of Rect as a Point.
Definition at line 59 of file CEGUIRect.h. |
|
return the size of the Rect area
Definition at line 79 of file CEGUIRect.h. Referenced by constrainSize(), CEGUI::RenderableImage::draw_impl(), CEGUI::StaticImage::onStaticFrameChanged(), CEGUI::DirectX81Renderer::setDisplaySize(), CEGUI::OpenGLRenderer::setDisplaySize(), CEGUI::DirectX9Renderer::setDisplaySize(), and setPosition(). |
|
|
Return true if the given Point falls within this Rect.
Definition at line 95 of file CEGUIRect.cpp. References d_bottom, d_left, d_right, d_top, CEGUI::Vector2::d_x, and CEGUI::Vector2::d_y. Referenced by CEGUI::Listbox::getItemAtPoint(), CEGUI::FrameWindow::getSizingBorderAtPoint(), CEGUI::System::injectMouseButtonDown(), and CEGUI::Window::isHit(). |
|
Applies an offset the Rect object.
Definition at line 82 of file CEGUIRect.cpp. References d_bottom, d_left, d_right, d_top, CEGUI::Vector2::d_x, and CEGUI::Vector2::d_y. Referenced by CEGUI::MultiLineEditbox::cacheTextLines(), CEGUI::Image::draw(), CEGUI::System::injectMouseButtonDown(), CEGUI::StaticText::populateRenderCache(), CEGUI::RenderCache::render(), and CEGUI::Window::windowToScreen(). |
|
Definition at line 200 of file CEGUIRect.h. |
|
Definition at line 201 of file CEGUIRect.h. |
|
Definition at line 196 of file CEGUIRect.h. References CEGUI::operator==(). |
|
Definition at line 190 of file CEGUIRect.cpp. |
|
Definition at line 191 of file CEGUIRect.h. |
|
set the height of the Rect object
Definition at line 99 of file CEGUIRect.h. Referenced by constrainSize(), constrainSizeMax(), constrainSizeMin(), CEGUI::Imageset_xmlHandler::elementStart(), and CEGUI::ComponentArea::getPixelRect(). |
|
set the position of the Rect (leaves size in tact)
Definition at line 111 of file CEGUIRect.cpp. References d_left, d_top, CEGUI::Vector2::d_x, CEGUI::Vector2::d_y, getSize(), and setSize(). Referenced by CEGUI::System::injectMouseButtonDown(), CEGUI::PopupMenu::layoutItemWidgets(), CEGUI::Menubar::layoutItemWidgets(), and CEGUI::Tooltip::positionSelf(). |
|
|
set the width of the Rect object
Definition at line 93 of file CEGUIRect.h. Referenced by constrainSize(), constrainSizeMax(), constrainSizeMin(), CEGUI::Imageset_xmlHandler::elementStart(), CEGUI::ComponentArea::getPixelRect(), and CEGUI::StaticText::populateRenderCache(). |
|
|
|
|