LibreOffice Module canvas (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
canvas::Page Class Reference

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< FragmentSharedPtrFragmentContainer_t
 

Private Member Functions

bool insert (SurfaceRect &r)
 
bool isValidLocation (const SurfaceRect &r) const
 

Private Attributes

std::shared_ptr< IRenderModulempRenderModule
 
std::shared_ptr< ISurfacempSurface
 
FragmentContainer_t mpFragments
 

Detailed Description

One page of IRenderModule-provided texture space.

Definition at line 41 of file page.hxx.

Member Typedef Documentation

◆ FragmentContainer_t

Definition at line 54 of file page.hxx.

Constructor & Destructor Documentation

◆ Page()

canvas::Page::Page ( const std::shared_ptr< IRenderModule > &  rRenderModule)
explicit

Definition at line 26 of file page.cxx.

Member Function Documentation

◆ allocateSpace()

FragmentSharedPtr canvas::Page::allocateSpace ( const ::basegfx::B2ISize rSize)

Definition at line 46 of file page.cxx.

References insert(), and mpFragments.

◆ free()

void canvas::Page::free ( const FragmentSharedPtr pFragment)

Definition at line 72 of file page.cxx.

References mpFragments.

Referenced by canvas::PageFragment::free().

◆ getSurface()

const std::shared_ptr< ISurface > & canvas::Page::getSurface ( ) const
inline

Definition at line 49 of file page.hxx.

References mpSurface.

Referenced by canvas::PageFragment::refresh(), and canvas::PageFragment::select().

◆ insert()

bool canvas::Page::insert ( SurfaceRect r)
private

◆ isValid()

bool canvas::Page::isValid ( ) const

Definition at line 41 of file page.cxx.

References mpSurface.

Referenced by validate().

◆ isValidLocation()

bool canvas::Page::isValidLocation ( const SurfaceRect r) const
private

◆ nakedFragment()

bool canvas::Page::nakedFragment ( const FragmentSharedPtr pFragment)

Definition at line 59 of file page.cxx.

References insert(), and mpFragments.

◆ validate()

void canvas::Page::validate ( )

Definition at line 32 of file page.cxx.

References isValid(), and mpFragments.

Member Data Documentation

◆ mpFragments

FragmentContainer_t canvas::Page::mpFragments
private

Definition at line 58 of file page.hxx.

Referenced by allocateSpace(), free(), insert(), isValidLocation(), nakedFragment(), and validate().

◆ mpRenderModule

std::shared_ptr<IRenderModule> canvas::Page::mpRenderModule
private

Definition at line 56 of file page.hxx.

Referenced by isValidLocation().

◆ mpSurface

std::shared_ptr<ISurface> canvas::Page::mpSurface
private

Definition at line 57 of file page.hxx.

Referenced by getSurface(), and isValid().


The documentation for this class was generated from the following files: