|
Dillo
|
dw::core::Shape implemtation for simple rectangles. More...
#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::Shape implemtation for simple rectangles.
|
inline |
| dw::core::Rectangle::Rectangle | ( | int | x, |
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
|
virtual |
Implements dw::core::Shape.
References dw::core::style::StyleAttrs::color, and dw::core::View::drawRectangle().
Referenced by dw::Table::draw().
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::Image::draw(), dw::core::Layout::draw(), dw::core::style::drawBackground(), and dw::core::Widget::intersects().
|
inline |
Referenced by dw::fltk::FltkViewBase::draw(), and dw::core::Layout::queueDraw().
|
virtual |
Implements dw::core::Shape.
| int dw::core::Rectangle::height |
Referenced by dw::core::Region::addRectangle(), dw::fltk::FltkViewBase::clipPoint(), dw::fltk::FltkViewBase::draw(), dw::Image::draw(), dw::core::Layout::draw(), dw::Textblock::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(), isSubsetOf(), and dw::core::Layout::queueDraw().
| int dw::core::Rectangle::width |
Referenced by dw::core::Region::addRectangle(), dw::fltk::FltkViewBase::clipPoint(), dw::fltk::FltkViewBase::draw(), dw::Image::draw(), dw::core::Layout::draw(), dw::Textblock::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(), isSubsetOf(), and dw::core::Layout::queueDraw().
| int dw::core::Rectangle::x |
Referenced by dw::core::Region::addRectangle(), dw::fltk::FltkViewBase::clipPoint(), dw::fltk::FltkViewBase::draw(), dw::Image::draw(), dw::core::Layout::draw(), dw::Textblock::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().
| int dw::core::Rectangle::y |
Referenced by dw::core::Region::addRectangle(), dw::fltk::FltkViewBase::clipPoint(), dw::fltk::FltkViewBase::draw(), dw::Image::draw(), dw::core::Layout::draw(), dw::Textblock::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.8.2