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

A part of a page, which gets allocated to a surface. More...

#include <page.hxx>

Collaboration diagram for canvas::PageFragment:
[legend]

Public Member Functions

 PageFragment (const SurfaceRect &r, Page *pPage)
 
 PageFragment (const ::basegfx::B2ISize &rSize)
 Creates a 'naked' fragment. More...
 
bool isNaked () const
 
const SurfaceRectgetRect () const
 
const ::basegfx::B2IPointgetPos () const
 
const ::basegfx::B2ISizegetSize () const
 
void setColorBuffer (const std::shared_ptr< IColorBuffer > &pColorBuffer)
 
void setSourceOffset (const ::basegfx::B2IPoint &rOffset)
 
void setPage (Page *pPage)
 
void free (const FragmentSharedPtr &pFragment)
 
bool select (bool bRefresh)
 
bool refresh ()
 

Private Attributes

PagempPage
 
SurfaceRect maRect
 
std::shared_ptr< IColorBuffermpBuffer
 
::basegfx::B2IPoint maSourceOffset
 

Detailed Description

A part of a page, which gets allocated to a surface.

Definition at line 69 of file page.hxx.

Constructor & Destructor Documentation

◆ PageFragment() [1/2]

canvas::PageFragment::PageFragment ( const SurfaceRect r,
Page pPage 
)
inline

Definition at line 72 of file page.hxx.

◆ PageFragment() [2/2]

canvas::PageFragment::PageFragment ( const ::basegfx::B2ISize rSize)
inlineexplicit

Creates a 'naked' fragment.

Definition at line 82 of file page.hxx.

Member Function Documentation

◆ free()

void canvas::PageFragment::free ( const FragmentSharedPtr pFragment)
inline

Definition at line 98 of file page.hxx.

References canvas::Page::free(), and mpPage.

◆ getPos()

const ::basegfx::B2IPoint & canvas::PageFragment::getPos ( ) const
inline

Definition at line 92 of file page.hxx.

References canvas::SurfaceRect::maPos, and maRect.

◆ getRect()

const SurfaceRect & canvas::PageFragment::getRect ( ) const
inline

Definition at line 91 of file page.hxx.

References maRect.

◆ getSize()

const ::basegfx::B2ISize & canvas::PageFragment::getSize ( ) const
inline

Definition at line 93 of file page.hxx.

References maRect, and canvas::SurfaceRect::maSize.

◆ isNaked()

bool canvas::PageFragment::isNaked ( ) const
inline

Definition at line 90 of file page.hxx.

References mpPage.

◆ refresh()

bool canvas::PageFragment::refresh ( )
inline

◆ select()

bool canvas::PageFragment::select ( bool  bRefresh)
inline

Definition at line 106 of file page.hxx.

References canvas::Page::getSurface(), mpPage, and refresh().

◆ setColorBuffer()

void canvas::PageFragment::setColorBuffer ( const std::shared_ptr< IColorBuffer > &  pColorBuffer)
inline

Definition at line 94 of file page.hxx.

References mpBuffer.

◆ setPage()

void canvas::PageFragment::setPage ( Page pPage)
inline

Definition at line 96 of file page.hxx.

References mpPage.

◆ setSourceOffset()

void canvas::PageFragment::setSourceOffset ( const ::basegfx::B2IPoint rOffset)
inline

Definition at line 95 of file page.hxx.

References maSourceOffset.

Member Data Documentation

◆ maRect

SurfaceRect canvas::PageFragment::maRect
private

Definition at line 142 of file page.hxx.

Referenced by getPos(), getRect(), getSize(), and refresh().

◆ maSourceOffset

::basegfx::B2IPoint canvas::PageFragment::maSourceOffset
private

Definition at line 144 of file page.hxx.

Referenced by refresh(), and setSourceOffset().

◆ mpBuffer

std::shared_ptr<IColorBuffer> canvas::PageFragment::mpBuffer
private

Definition at line 143 of file page.hxx.

Referenced by refresh(), and setColorBuffer().

◆ mpPage

Page* canvas::PageFragment::mpPage
private

Definition at line 141 of file page.hxx.

Referenced by free(), isNaked(), refresh(), select(), and setPage().


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