LibreOffice Module canvas (master) 1
|
One page of IRenderModule-provided texture space. More...
#include <page.hxx>
Public Member Functions | |
Page (const std::shared_ptr< IRenderModule > &rRenderModule) | |
FragmentSharedPtr | allocateSpace (const ::basegfx::B2ISize &rSize) |
bool | nakedFragment (const FragmentSharedPtr &pFragment) |
void | free (const FragmentSharedPtr &pFragment) |
const std::shared_ptr< ISurface > & | getSurface () const |
bool | isValid () const |
void | validate () |
Private Types | |
typedef std::vector< FragmentSharedPtr > | FragmentContainer_t |
Private Member Functions | |
bool | insert (SurfaceRect &r) |
bool | isValidLocation (const SurfaceRect &r) const |
Private Attributes | |
std::shared_ptr< IRenderModule > | mpRenderModule |
std::shared_ptr< ISurface > | mpSurface |
FragmentContainer_t | mpFragments |
|
private |
|
explicit |
FragmentSharedPtr canvas::Page::allocateSpace | ( | const ::basegfx::B2ISize & | rSize | ) |
Definition at line 46 of file page.cxx.
References insert(), and mpFragments.
void canvas::Page::free | ( | const FragmentSharedPtr & | pFragment | ) |
Definition at line 72 of file page.cxx.
References mpFragments.
Referenced by canvas::PageFragment::free().
|
inline |
Definition at line 49 of file page.hxx.
References mpSurface.
Referenced by canvas::PageFragment::refresh(), and canvas::PageFragment::select().
|
private |
Definition at line 85 of file page.cxx.
References basegfx::Size2D< typename TYPE >::getHeight(), basegfx::Size2D< typename TYPE >::getWidth(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), h, isValidLocation(), canvas::SurfaceRect::maPos, canvas::SurfaceRect::maSize, mpFragments, basegfx::Tuple2D< typename TYPE >::setX(), basegfx::Tuple2D< typename TYPE >::setY(), w, x, and y.
Referenced by allocateSpace(), and nakedFragment().
bool canvas::Page::isValid | ( | ) | const |
|
private |
Definition at line 116 of file page.cxx.
References canvas::SurfaceRect::inside(), canvas::SurfaceRect::intersection(), mpFragments, and mpRenderModule.
Referenced by insert().
bool canvas::Page::nakedFragment | ( | const FragmentSharedPtr & | pFragment | ) |
Definition at line 59 of file page.cxx.
References insert(), and mpFragments.
void canvas::Page::validate | ( | ) |
Definition at line 32 of file page.cxx.
References isValid(), and mpFragments.
|
private |
Definition at line 58 of file page.hxx.
Referenced by allocateSpace(), free(), insert(), isValidLocation(), nakedFragment(), and validate().
|
private |
Definition at line 56 of file page.hxx.
Referenced by isValidLocation().
|
private |
Definition at line 57 of file page.hxx.
Referenced by getSurface(), and isValid().