OpenCPN Partial API docs
|
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 |
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.
|
inline |
Definition at line 141 of file printtable.h.
|
protected |
Definition at line 81 of file printtable.cpp.
|
inline |
Definition at line 154 of file printtable.h.
|
inline |
Definition at line 166 of file printtable.h.
|
inline |
Definition at line 148 of file printtable.h.
|
inline |
Definition at line 151 of file printtable.h.
|
inline |
Definition at line 157 of file printtable.h.
void PrintCell::Init | ( | const wxString & | _content, |
wxDC * | _dc, | ||
int | _width, | ||
int | _cellpadding, | ||
bool | bold_font = false |
||
) |
Definition at line 70 of file printtable.cpp.
|
inline |
Definition at line 163 of file printtable.h.
|
inline |
Definition at line 160 of file printtable.h.
|
protected |
Definition at line 134 of file printtable.h.
|
protected |
Definition at line 118 of file printtable.h.
|
protected |
Definition at line 121 of file printtable.h.
|
protected |
Definition at line 109 of file printtable.h.
|
protected |
Definition at line 115 of file printtable.h.
|
protected |
Definition at line 124 of file printtable.h.
|
protected |
Definition at line 130 of file printtable.h.
|
protected |
Definition at line 127 of file printtable.h.
|
protected |
Definition at line 112 of file printtable.h.