LibreOffice Module canvas (master) 1
|
This implements some equivalent to basegfx::B2IBox, but instead of two BasicBox ranges, it uses a position and a size. More...
#include <surfacerect.hxx>
Public Member Functions | |
SurfaceRect (const ::basegfx::B2ISize &rSize) | |
bool | pointInside (sal_Int32 px, sal_Int32 py) const |
bool | intersection (const SurfaceRect &r) const |
returns true if the passed rect intersects this one. More... | |
bool | inside (const SurfaceRect &r) const |
Public Attributes | |
::basegfx::B2IPoint | maPos |
::basegfx::B2ISize | maSize |
This implements some equivalent to basegfx::B2IBox, but instead of two BasicBox ranges, it uses a position and a size.
maPos and maSize could be replaced by:
The current allocation algorithm uses size and pos a lot. Not sure how time-critical any of this code is and if that would be a problem.
Definition at line 37 of file surfacerect.hxx.
|
inlineexplicit |
Definition at line 42 of file surfacerect.hxx.
|
inline |
Definition at line 77 of file surfacerect.hxx.
References basegfx::Size2D< typename TYPE >::getHeight(), basegfx::Size2D< typename TYPE >::getWidth(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), maPos, maSize, and pointInside().
Referenced by canvas::Page::isValidLocation().
|
inline |
returns true if the passed rect intersects this one.
Definition at line 62 of file surfacerect.hxx.
References basegfx::Size2D< typename TYPE >::getHeight(), basegfx::Size2D< typename TYPE >::getWidth(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), maPos, and maSize.
Referenced by canvas::Page::isValidLocation().
|
inline |
Definition at line 48 of file surfacerect.hxx.
References basegfx::Size2D< typename TYPE >::getHeight(), basegfx::Size2D< typename TYPE >::getWidth(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), maPos, maSize, and px.
Referenced by inside().
::basegfx::B2IPoint canvas::SurfaceRect::maPos |
Definition at line 39 of file surfacerect.hxx.
Referenced by canvas::PageFragment::getPos(), canvas::Page::insert(), inside(), intersection(), pointInside(), and canvas::PageFragment::refresh().
::basegfx::B2ISize canvas::SurfaceRect::maSize |
Definition at line 40 of file surfacerect.hxx.
Referenced by canvas::PageFragment::getSize(), canvas::Page::insert(), inside(), intersection(), pointInside(), and canvas::PageFragment::refresh().