#include <types.hh>
Public Member Functions | |
| Rectangle () | |
| Rectangle (int x, int y, int width, int height) | |
| void | draw (core::View *view, core::style::Style *style, int x, int y) |
| bool | intersectsWith (Rectangle *otherRect, Rectangle *dest) |
| bool | isSubsetOf (Rectangle *otherRect) |
| bool | isPointWithin (int x, int y) |
| bool | isEmpty () |
Public Attributes | |
| int | x |
| int | y |
| int | width |
| int | height |
| dw::core::Rectangle::Rectangle | ( | ) | [inline] |
| dw::core::Rectangle::Rectangle | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | height | |||
| ) |
| void dw::core::Rectangle::draw | ( | core::View * | view, | |
| core::style::Style * | style, | |||
| int | x, | |||
| int | y | |||
| ) | [virtual] |
Implements dw::core::Shape.
References dw::core::style::StyleAttrs::color, dw::core::View::drawRectangle(), and dw::core::style::Color::SHADING_NORMAL.
Return whether this rectangle and otherRect intersect. If yes, return the intersection rectangle in dest.
References height, lout::misc::max(), lout::misc::min(), width, x, and y.
Referenced by dw::core::Layout::draw(), dw::Image::draw(), dw::core::style::drawBackground(), and dw::core::Widget::intersects().
| bool dw::core::Rectangle::isEmpty | ( | ) | [inline] |
Referenced by dw::fltk::FltkViewBase::draw(), and dw::core::Layout::queueDraw().
| bool dw::core::Rectangle::isPointWithin | ( | int | x, | |
| int | y | |||
| ) | [virtual] |
Referenced by dw::core::Region::addRectangle(), dw::fltk::FltkViewBase::clipPoint(), dw::Textblock::draw(), dw::core::Layout::draw(), dw::Image::draw(), dw::fltk::FltkViewBase::draw(), dw::core::style::drawBackground(), dw::core::Widget::drawBox(), dw::Image::drawRow(), dw::core::Widget::drawWidgetBox(), dw::fltk::FltkImgbuf::getRowArea(), dw::core::Widget::intersects(), intersectsWith(), isEmpty(), isPointWithin(), isSubsetOf(), and dw::core::Layout::queueDraw().
Referenced by dw::core::Region::addRectangle(), dw::fltk::FltkViewBase::clipPoint(), dw::core::Layout::draw(), dw::Image::draw(), dw::fltk::FltkViewBase::draw(), dw::core::style::drawBackground(), dw::core::Widget::drawBox(), dw::Textblock::drawLine(), dw::Image::drawRow(), dw::core::Widget::drawWidgetBox(), dw::fltk::FltkImgbuf::getRowArea(), dw::core::Widget::intersects(), intersectsWith(), isEmpty(), isPointWithin(), isSubsetOf(), and dw::core::Layout::queueDraw().
Referenced by dw::core::Region::addRectangle(), dw::fltk::FltkViewBase::clipPoint(), dw::core::Layout::draw(), dw::Image::draw(), dw::fltk::FltkViewBase::draw(), dw::core::style::drawBackground(), dw::core::Widget::drawBox(), dw::Textblock::drawLine(), dw::Image::drawRow(), dw::core::Widget::drawWidgetBox(), dw::fltk::FltkImgbuf::getRowArea(), dw::core::Widget::intersects(), intersectsWith(), isSubsetOf(), and dw::core::Layout::queueDraw().
Referenced by dw::core::Region::addRectangle(), dw::fltk::FltkViewBase::clipPoint(), dw::Textblock::draw(), dw::core::Layout::draw(), dw::Image::draw(), dw::fltk::FltkViewBase::draw(), dw::core::style::drawBackground(), dw::core::Widget::drawBox(), dw::Image::drawRow(), dw::core::Widget::drawWidgetBox(), dw::fltk::FltkImgbuf::getRowArea(), dw::core::Widget::intersects(), intersectsWith(), isSubsetOf(), and dw::core::Layout::queueDraw().
1.5.9