OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
MWGui::TypesetBook Struct Referenceabstract

#include <bookpage.hpp>

Inheritance diagram for MWGui::TypesetBook:
Collaboration diagram for MWGui::TypesetBook:

Public Types

typedef boost::shared_ptr
< TypesetBook
Ptr
 
typedef intptr_t InteractiveId
 

Public Member Functions

virtual size_t pageCount () const =0
 Returns the number of pages in the document. More...
 
virtual std::pair< unsigned
int, unsigned int
getSize () const =0
 

Detailed Description

A formatted and paginated document to be used with the book page widget.

Member Typedef Documentation

typedef boost::shared_ptr<TypesetBook> MWGui::TypesetBook::Ptr

Member Function Documentation

virtual std::pair<unsigned int, unsigned int> MWGui::TypesetBook::getSize ( ) const
pure virtual

Return the area covered by the document. The first integer is the maximum with of any line. This is not the largest coordinate of the right edge of any line, it is the largest distance from the left edge to the right edge. The second integer is the height of all text combined prior to pagination.

Implemented in MWGui::TypesetBookImpl.

virtual size_t MWGui::TypesetBook::pageCount ( ) const
pure virtual

Returns the number of pages in the document.

Implemented in MWGui::TypesetBookImpl.


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