20 #ifndef __WXWIDGETS_H__ 21 #define __WXWIDGETS_H__ 33 #include <wx/spinctrl.h> 34 #include <wx/dcgraph.h> 51 Font(
PLUNICODE fci,
PLFLT size,
bool underlined,
bool createFontOnConstruction =
false );
86 virtual void DrawLine(
short x1a,
short y1a,
short x2a,
short y2a ) {}
104 void DrawTextLine(
PLUNICODE* ucs4,
int ucs4Len, wxCoord xOrigin, wxCoord yOrigin, wxCoord x, wxCoord y,
PLFLT *transform,
PLFLT baseFontSize,
bool drawText,
bool &underlined,
PLUNICODE &fci,
unsigned char red,
unsigned char green,
unsigned char blue,
PLFLT alpha, wxCoord &textWidth, wxCoord &textHeight, wxCoord &textDepth );
105 virtual void DrawTextSection( wxString section, wxCoord xOrigin, wxCoord yOrigin, wxCoord x, wxCoord y,
PLFLT *transform,
PLFLT scaledFontSize,
bool drawText,
bool underlined,
PLUNICODE fci,
unsigned char red,
unsigned char green,
unsigned char blue,
PLFLT alpha,
PLFLT &yScale, wxCoord §ionWidth, wxCoord §ionHeight, wxCoord §ionDepth ) {}
123 void DrawLine(
short x1a,
short y1a,
short x2a,
short y2a );
124 void DrawPolyline(
short *xa,
short *ya,
PLINT npts );
129 void SetXorMode(
bool on );
130 void SetDC(
PLStream *pls, wxDC* dc );
133 void SetSize(
PLStream* pls,
int width,
int height );
134 void FixAspectRatio(
bool fix );
137 void PreDestructorTidy(
PLStream *pls );
140 void DrawTextSection( wxString section, wxCoord xOrigin, wxCoord yOrigin, wxCoord x, wxCoord y,
PLFLT *transform,
PLFLT scaledFontSize,
bool drawText,
bool underlined,
PLUNICODE fci,
unsigned char red,
unsigned char green,
unsigned char blue,
PLFLT alpha,
PLFLT &yScale, wxCoord §ionWidth, wxCoord §ionHeight, wxCoord §ionDepth );
141 void TransmitBuffer(
PLStream* pls,
unsigned char transmissionType );
142 void SetupMemoryMap();
143 wxRegion GetClipRegion();
173 static const int m_max_string_length = 500;
191 #ifdef PL_WXWIDGETS_IPC3 246 wxFONTFAMILY_TELETYPE,
262 #endif // __WXWIDGETS_H__ wxGCDC * m_interactiveTextGcdc
const PLFLT m_plplotEdgeLength
wxImage m_interactiveTextImage
virtual void FillPolygon(PLStream *pls)
virtual void BeginPage(PLStream *pls)
bool m_useDcTextTransform
virtual void DrawPolyline(short *xa, short *ya, PLINT npts)
virtual void DrawTextSection(wxString section, wxCoord xOrigin, wxCoord yOrigin, wxCoord x, wxCoord y, PLFLT *transform, PLFLT scaledFontSize, bool drawText, bool underlined, PLUNICODE fci, unsigned char red, unsigned char green, unsigned char blue, PLFLT alpha, PLFLT &yScale, wxCoord §ionWidth, wxCoord §ionHeight, wxCoord §ionDepth)
virtual void SetDC(PLStream *pls, wxDC *dc)
virtual void PreDestructorTidy(PLStream *pls)
size_t m_localBufferPosition
bool getUnderlined() const
virtual void EndPage(PLStream *pls)
virtual void SetColor(PLStream *pls)
static PLStream * pls[PL_NSTREAMS]
virtual void SetWidth(PLStream *pls)
virtual void Locate(PLStream *pls, PLGraphicsIn *graphicsIn)
virtual void SetSize(PLStream *pls, int width, int height)
virtual void Flush(PLStream *pls)
virtual void FixAspectRatio(bool fix)
virtual void SetXorMode(bool on)
wxCoord m_prevSymbolHeight
virtual void DrawLine(short x1a, short y1a, short x2a, short y2a)
PLMemoryMap m_outputMemoryMap
wxCoord m_prevSymbolWidth
FontGrabber m_fontGrabber
wxCoord m_prevSymbolDepth
virtual void ClearBackground(PLStream *pls, PLINT x1=-1, PLINT y1=-1, PLINT x2=-1, PLINT y2=-1)