Gnash
0.8.11dev
|
Namespaces | |
detail | |
Classes | |
class | Point2d |
2D Point class More... | |
class | Range2d |
2d Range template class More... | |
class | SnappingRanges2d |
Enumerations | |
enum | RangeKind { finiteRange, nullRange, worldRange } |
Kinds of a range. More... | |
Functions | |
std::ostream & | operator<< (std::ostream &os, const Point2d &p) |
Output operator. More... | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const Range2d< T > &rect) |
template<typename T > | |
bool | operator== (const Range2d< T > &r1, const Range2d< T > &r2) |
template<typename T > | |
bool | operator!= (const Range2d< T > &r1, const Range2d< T > &r2) |
template<typename T > | |
bool | Intersect (const Range2d< T > &r1, const Range2d< T > &r2) |
Return true of the two ranges intersect (boundaries included) More... | |
template<typename T > | |
Range2d< T > | Union (const Range2d< T > &r1, const Range2d< T > &r2) |
Return a rectangle being the union of the two rectangles. More... | |
template<typename T > | |
Range2d< T > | Intersection (const Range2d< T > &r1, const Range2d< T > &r2) |
Return a rectangle being the intersetion of the two rectangles. More... | |
template<class T > | |
std::ostream & | operator<< (std::ostream &os, const SnappingRanges2d< T > &r) |
bool | pointTest (const std::vector< Path > &paths, const std::vector< LineStyle > &lineStyles, std::int32_t x, std::int32_t y, const SWFMatrix &wm) |
|
inline |
Return true of the two ranges intersect (boundaries included)
References gnash::geometry::Range2d< T >::intersects().
|
inline |
Return a rectangle being the intersetion of the two rectangles.
Any NULL operand will make the result also NULL.
References gnash::geometry::Range2d< T >::intersects(), gnash::geometry::Range2d< T >::isNull(), gnash::geometry::Range2d< T >::isWorld(), and nullRange.
Referenced by gnash::geometry::SnappingRanges2d< std::int32_t >::intersect(), gnash::SdlAggGlue::setInvalidatedRegions(), gnash::KdeAggGlue::setInvalidatedRegions(), gnash::AOS4AggGlue::setInvalidatedRegions(), gnash::AOS4CairoGlue::setInvalidatedRegions(), gnash::HaikuAggGlue::setInvalidatedRegions(), gnash::FltkGui::setInvalidatedRegions(), gnash::gui::FBOvgGlue::setInvalidatedRegions(), gnash::gui::FBAggGlue::setInvalidatedRegions(), gnash::Qt4Gui::setInvalidatedRegions(), and gnash::GtkGui::setInvalidatedRegions().
|
inline |
|
inline |
Output operator.
References gnash::geometry::Point2d::x, and gnash::geometry::Point2d::y.
Referenced by gnash::operator==().
std::ostream& gnash::geometry::operator<< | ( | std::ostream & | os, |
const SnappingRanges2d< T > & | r | ||
) |
|
inline |
|
inline |
References gnash::geometry::Range2d< T >::isNull(), and gnash::geometry::Range2d< T >::isWorld().
Referenced by gnash::SWFMatrix::get_y_translation().
bool gnash::geometry::pointTest | ( | const std::vector< Path > & | paths, |
const std::vector< LineStyle > & | lineStyles, | ||
std::int32_t | x, | ||
std::int32_t | y, | ||
const SWFMatrix & | wm | ||
) |
References _, gnash::Path::ap, gnash::Path::empty(), gnash::SWFMatrix::get_x_scale(), gnash::SWFMatrix::get_y_scale(), gnash::LineStyle::getThickness(), LOG_ONCE, gnash::log_unimpl(), gnash::Path::m_edges, gnash::Path::m_line, gnash::geometry::Point2d::x, and gnash::geometry::Point2d::y.
Referenced by gnash::Path::operator[](), and gnash::SWF::ShapeRecord::pointTest().
|
inline |
Return a rectangle being the union of the two rectangles.
References gnash::geometry::Range2d< T >::expandTo().