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 106 of file printtable.h.

Constructor & Destructor Documentation

◆ PrintCell()

PrintCell::PrintCell ( )
inline

Definition at line 141 of file printtable.h.

Member Function Documentation

◆ Adjust()

void PrintCell::Adjust ( )
protected

Definition at line 83 of file printtable.cpp.

◆ GetHeight()

int PrintCell::GetHeight ( )
inline

Definition at line 154 of file printtable.h.

◆ GetPage()

int PrintCell::GetPage ( )
inline

Definition at line 166 of file printtable.h.

◆ GetRect()

wxRect PrintCell::GetRect ( )
inline

Definition at line 148 of file printtable.h.

◆ GetText()

wxString PrintCell::GetText ( )
inline

Definition at line 151 of file printtable.h.

◆ GetWidth()

int PrintCell::GetWidth ( )
inline

Definition at line 157 of file printtable.h.

◆ Init()

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

Definition at line 72 of file printtable.cpp.

◆ SetHeight()

void PrintCell::SetHeight ( int _height)
inline

Definition at line 163 of file printtable.h.

◆ SetPage()

void PrintCell::SetPage ( int _page)
inline

Definition at line 160 of file printtable.h.

Member Data Documentation

◆ bold_font

bool PrintCell::bold_font
protected

Definition at line 134 of file printtable.h.

◆ cellpadding

int PrintCell::cellpadding
protected

Definition at line 118 of file printtable.h.

◆ content

wxString PrintCell::content
protected

Definition at line 121 of file printtable.h.

◆ dc

wxDC* PrintCell::dc
protected

Definition at line 109 of file printtable.h.

◆ height

int PrintCell::height
protected

Definition at line 115 of file printtable.h.

◆ modified_content

wxString PrintCell::modified_content
protected

Definition at line 124 of file printtable.h.

◆ page

int PrintCell::page
protected

Definition at line 130 of file printtable.h.

◆ rect

wxRect PrintCell::rect
protected

Definition at line 127 of file printtable.h.

◆ width

int PrintCell::width
protected

Definition at line 112 of file printtable.h.


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