OpenCPN Partial API docs
Loading...
Searching...
No Matches
PrintCell Class Reference

This class takes multilined string and modifies it to fit into given width for given device. More...

#include <printtable.h>

Public Member Functions

void Init (const wxString &_content, wxDC *_dc, int _width, int _cellpadding, bool bold_font=false)
 
wxRect GetRect ()
 
wxString GetText ()
 
int GetHeight ()
 
int GetWidth ()
 
void SetPage (int _page)
 
void SetHeight (int _height)
 
int GetPage ()
 

Protected Member Functions

void Adjust ()
 

Protected Attributes

wxDC * dc
 
int width
 
int height
 
int cellpadding
 
wxString content
 
wxString modified_content
 
wxRect rect
 
int page
 
bool bold_font
 

Detailed Description

This class takes multilined string and modifies it to fit into given width for given device.

If it is too wide for given DC (by class PrintTable ) it introduces new lines between words

Definition at line 113 of file printtable.h.

Constructor & Destructor Documentation

◆ PrintCell()

PrintCell::PrintCell ( )
inline

Definition at line 148 of file printtable.h.

Member Function Documentation

◆ Adjust()

void PrintCell::Adjust ( )
protected

Definition at line 89 of file printtable.cpp.

◆ GetHeight()

int PrintCell::GetHeight ( )
inline

Definition at line 161 of file printtable.h.

◆ GetPage()

int PrintCell::GetPage ( )
inline

Definition at line 173 of file printtable.h.

◆ GetRect()

wxRect PrintCell::GetRect ( )
inline

Definition at line 155 of file printtable.h.

◆ GetText()

wxString PrintCell::GetText ( )
inline

Definition at line 158 of file printtable.h.

◆ GetWidth()

int PrintCell::GetWidth ( )
inline

Definition at line 164 of file printtable.h.

◆ Init()

void PrintCell::Init ( const wxString &  _content,
wxDC *  _dc,
int  _width,
int  _cellpadding,
bool  bold_font = false 
)

Definition at line 78 of file printtable.cpp.

◆ SetHeight()

void PrintCell::SetHeight ( int  _height)
inline

Definition at line 170 of file printtable.h.

◆ SetPage()

void PrintCell::SetPage ( int  _page)
inline

Definition at line 167 of file printtable.h.

Member Data Documentation

◆ bold_font

bool PrintCell::bold_font
protected

Definition at line 141 of file printtable.h.

◆ cellpadding

int PrintCell::cellpadding
protected

Definition at line 125 of file printtable.h.

◆ content

wxString PrintCell::content
protected

Definition at line 128 of file printtable.h.

◆ dc

wxDC* PrintCell::dc
protected

Definition at line 116 of file printtable.h.

◆ height

int PrintCell::height
protected

Definition at line 122 of file printtable.h.

◆ modified_content

wxString PrintCell::modified_content
protected

Definition at line 131 of file printtable.h.

◆ page

int PrintCell::page
protected

Definition at line 137 of file printtable.h.

◆ rect

wxRect PrintCell::rect
protected

Definition at line 134 of file printtable.h.

◆ width

int PrintCell::width
protected

Definition at line 119 of file printtable.h.


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