OpenCPN Partial API docs
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
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.


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