wxPdfDocument  1.4.0
Library for generating PDF documents from wxWidgets applications
Loading...
Searching...
No Matches
wxPdfTableCell Class Reference

#include <pdfxml.h>

Public Member Functions

 wxPdfTableCell (wxXmlNode *cell, unsigned int row, unsigned int col, unsigned int rows, unsigned int cols)
 Constructor.
virtual ~wxPdfTableCell ()
 Destructor.
unsigned int GetRow () const
 Get row of cell.
unsigned int GetCol () const
 Get column of cell.
unsigned int GetRowSpan () const
 Get row span of cell.
unsigned int GetColSpan () const
 Get column span of cell.
void SetWidth (double w)
 Set width of cell.
void SetHeight (double h)
 Set height of cell.
double GetHeight () const
 Get height of cell.
double GetWidth () const
 Get width of cell.
void SetContext (wxPdfCellContext *context)
 Set cell context.
wxPdfCellContextGetContext ()
 Get cell context.
void SetHAlign (wxPdfAlignment hAlign)
 Set horizontal alignment.
wxPdfAlignment GetHAlign ()
 Get horizontal alignment.
void SetVAlign (wxPdfAlignment vAlign)
 Set vertical alignment.
wxPdfAlignment GetVAlign ()
 Get vertical alignment.
void SetBorder (int border)
 Set border.
int GetBorder ()
 Get border.
bool HasCellColour () const
 Check whether cell has a coloured or transparent background.
void SetCellColour (wxPdfColour colour)
 Set background colour of cell.
wxPdfColour GetCellColour () const
 Get background colour of cell.
wxXmlNode * GetXmlNode ()
 Get root node of cell.

Detailed Description

Class representing table cells. (For internal use only)

Constructor & Destructor Documentation

◆ wxPdfTableCell()

wxPdfTableCell::wxPdfTableCell ( wxXmlNode * cell,
unsigned int row,
unsigned int col,
unsigned int rows,
unsigned int cols )

Constructor.

Parameters
cellPointer to the XML node of the cell
rowRow index
colColumn index
rowsRow span
colsColumn span

◆ ~wxPdfTableCell()

virtual wxPdfTableCell::~wxPdfTableCell ( )
virtual

Destructor.

Member Function Documentation

◆ GetBorder()

int wxPdfTableCell::GetBorder ( )
inline

Get border.

Returns
Border flags

◆ GetCellColour()

wxPdfColour wxPdfTableCell::GetCellColour ( ) const
inline

Get background colour of cell.

Returns
Background colour

◆ GetCol()

unsigned int wxPdfTableCell::GetCol ( ) const
inline

Get column of cell.

Returns
Column index

◆ GetColSpan()

unsigned int wxPdfTableCell::GetColSpan ( ) const
inline

Get column span of cell.

Returns
Column span

◆ GetContext()

wxPdfCellContext * wxPdfTableCell::GetContext ( )
inline

Get cell context.

Returns
Pointer to cell context

◆ GetHAlign()

wxPdfAlignment wxPdfTableCell::GetHAlign ( )
inline

Get horizontal alignment.

Returns
Horizontal alignment

◆ GetHeight()

double wxPdfTableCell::GetHeight ( ) const
inline

Get height of cell.

Returns
Height

◆ GetRow()

unsigned int wxPdfTableCell::GetRow ( ) const
inline

Get row of cell.

Returns
Row index

◆ GetRowSpan()

unsigned int wxPdfTableCell::GetRowSpan ( ) const
inline

Get row span of cell.

Returns
Row span

◆ GetVAlign()

wxPdfAlignment wxPdfTableCell::GetVAlign ( )
inline

Get vertical alignment.

Returns
Vertical alignment

◆ GetWidth()

double wxPdfTableCell::GetWidth ( ) const
inline

Get width of cell.

Returns
Width

◆ GetXmlNode()

wxXmlNode * wxPdfTableCell::GetXmlNode ( )
inline

Get root node of cell.

Returns
Pointer to XML node

◆ HasCellColour()

bool wxPdfTableCell::HasCellColour ( ) const
inline

Check whether cell has a coloured or transparent background.

Returns
true if cell has background colour, false otherwise

◆ SetBorder()

void wxPdfTableCell::SetBorder ( int border)
inline

Set border.

Parameters
borderBorder flags

◆ SetCellColour()

void wxPdfTableCell::SetCellColour ( wxPdfColour colour)
inline

Set background colour of cell.

Parameters
colourBackground colour

◆ SetContext()

void wxPdfTableCell::SetContext ( wxPdfCellContext * context)
inline

Set cell context.

Parameters
contextPointer to cell context

◆ SetHAlign()

void wxPdfTableCell::SetHAlign ( wxPdfAlignment hAlign)
inline

Set horizontal alignment.

Parameters
hAlignHorizontal alignment

◆ SetHeight()

void wxPdfTableCell::SetHeight ( double h)
inline

Set height of cell.

Parameters
hHeight

◆ SetVAlign()

void wxPdfTableCell::SetVAlign ( wxPdfAlignment vAlign)
inline

Set vertical alignment.

Parameters
vAlignVertical alignment

◆ SetWidth()

void wxPdfTableCell::SetWidth ( double w)
inline

Set width of cell.

Parameters
wWidth

The documentation for this class was generated from the following file:
  • E:/github/wxpdfdoc-current/include/wx/pdfxml.h