class WXDLLIMPEXP_CORE wxWindowDC : public wxDC
{
public:
- wxWindowDC();
+ wxWindowDC() { Init(); }
wxWindowDC( wxWindow *win );
- ~wxWindowDC();
+ virtual ~wxWindowDC();
virtual bool CanDrawBitmap() const { return true; }
virtual bool CanGetTextExtent() const { return true; }
virtual wxCoord GetCharHeight() const;
virtual wxCoord GetCharWidth() const;
- virtual void DoGetTextExtent(const wxString& string,
- wxCoord *x, wxCoord *y,
- wxCoord *descent = NULL,
- wxCoord *externalLeading = NULL,
- wxFont *theFont = NULL) const;
virtual int GetDepth() const;
virtual wxSize GetPPI() const;
virtual void DestroyClippingRegion();
WXWindow GetWindow() const { return m_window; }
+ virtual void ComputeScaleAndOrigin();
+
protected:
// implementation
// --------------
+ virtual void DoGetTextExtent(const wxString& string,
+ wxCoord *x, wxCoord *y,
+ wxCoord *descent = NULL,
+ wxCoord *externalLeading = NULL,
+ wxFont *theFont = NULL) const;
+
+ void Init();
WXDisplay *m_display;
WXWindow m_window;
void SetUpDC();
void Destroy();
- virtual void ComputeScaleAndOrigin();
private:
DECLARE_DYNAMIC_CLASS(wxWindowDC)