Back to index

plt-scheme  4.2.1
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
wxDC Class Reference

#include <DC.h>

Inheritance diagram for wxDC:
Inheritance graph
[legend]
Collaboration diagram for wxDC:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 wxDC (void)
virtual Bool Blit (double xdest, double ydest, double w, double h, wxBitmap *src, double xsrc, double ysrc, int rop=wxSOLID, wxColour *c=NULL, wxBitmap *mask=NULL)=0
virtual Bool CanGetTextExtent (void)=0
virtual Bool CanDrawBitmap (void)=0
virtual void Clear (void)=0
virtual void DrawArc (double x, double y, double w, double h, double start, double end)=0
virtual void DrawEllipse (double x, double y, double w, double h)=0
virtual void DrawLine (double x1, double y1, double x2, double y2)=0
virtual void DrawLines (int n, wxPoint pts[], double xoff=0, double yoff=0)=0
virtual void DrawLines (wxList *pts, double xoff=0, double yoff=0)
virtual void DrawPoint (double x, double y)=0
void DrawPoint (wxPoint *pt)
virtual void DrawPolygon (int n, wxPoint pts[], double xoff=0, double yoff=0, int fill=wxODDEVEN_RULE)=0
virtual void DrawPolygon (wxList *pts, double xoff=0, double yoff=0, int fill=wxODDEVEN_RULE)
virtual void DrawRectangle (double x, double y, double w, double h)=0
virtual void DrawRoundedRectangle (double x, double y, double w, double h, double radius=20)=0
virtual void DrawPath (wxPath *p, double dx, double dy, int fill=wxODDEVEN_RULE)=0
virtual void DrawText (char *text, double x, double y, Bool combine=FALSE, Bool use16=FALSE, int dt=0, double angle=0.0)=0
virtual double GetCharHeight (void)=0
virtual double GetCharWidth (void)=0
virtual void GetTextExtent (const char *s, double *w, double *h, double *descent=0, double *ext_leading=0, wxFont *font=NULL, Bool combine=FALSE, Bool use16bit=FALSE, int dt=0, int len=-1)=0
virtual void SetBackground (wxColour *c)=0
virtual void SetBrush (wxBrush *brush)=0
virtual void SetClippingRect (double x, double y, double w, double h)=0
virtual void SetClippingRegion (wxRegion *r)=0
virtual wxRegionGetClippingRegion ()=0
virtual void SetColourMap (wxColourMap *cmap)=0
virtual void SetFont (wxFont *font)=0
virtual void SetPen (wxPen *pen)=0
virtual void SetTextBackground (wxColour *col)=0
virtual void SetTextForeground (wxColour *col)=0
virtual void TryColour (wxColour *src, wxColour *dest)=0
virtual Bool StartDoc (char *WXUNUSED(message))
virtual void EndDoc (void)
virtual void StartPage (void)
virtual void EndPage (void)
void AutoSetTools (Bool set_auto)
void BeginDrawing (void)
virtual double DeviceToLogicalX (int x)
virtual double DeviceToLogicalXRel (int x)
virtual double UnscrolledDeviceToLogicalX (int x)
virtual double DeviceToLogicalY (int y)
virtual double DeviceToLogicalYRel (int y)
virtual double UnscrolledDeviceToLogicalY (int y)
void DrawSpline (int n, wxPoint pts[])
void DrawSpline (wxList *pts)
virtual void DrawSpline (double x1, double y1, double x2, double y2, double x3, double y3)
void EndDrawing (void)
wxColourGetBackground (void)
wxBrushGetBrush (void)
wxFontGetFont (void)
int GetMapMode (void)
Bool GetOptimization (void)
wxPenGetPen (void)
Bool GetPixel (double WXUNUSED(x), double WXUNUSED(y), wxColour *WXUNUSED(col))
virtual void GetSize (double *w, double *h)
void GetSizeMM (double *w, double *h)
int GetTextAlignment (void)
wxColourGetTextBackground (void)
wxColourGetTextForeground (void)
virtual int LogicalToDeviceX (double x)
virtual int LogicalToDeviceXRel (double x)
virtual int LogicalToUnscrolledDeviceX (double x)
virtual int LogicalToDeviceY (double y)
virtual int LogicalToDeviceYRel (double y)
virtual int LogicalToUnscrolledDeviceY (double y)
virtual double FLogicalToDeviceX (double x)
virtual double FLogicalToDeviceXRel (double x)
virtual double FLogicalToUnscrolledDeviceX (double x)
virtual double FLogicalToDeviceY (double y)
virtual double FLogicalToDeviceYRel (double y)
virtual double FLogicalToUnscrolledDeviceY (double y)
virtual Bool Ok (void)
void SetBackgroundMode (int mode)
int GetBackgroundMode ()
void SetOptimization (Bool opt)
void SetTextAlignment (int new_alignment)
void SetDeviceOrigin (double x, double y)
void SetLogicalScale (double xs, double ys)
void SetMapMode (int mode)
virtual void SetUserScale (double xs, double ys)
void GetUserScale (double *xs, double *ys)
void GetDeviceOrigin (double *x, double *y)
virtual Bool GlyphAvailable (int c, wxFont *f=NULL)=0
int GetAntiAlias ()
virtual void SetAntiAlias (int v)
virtual void SetAlpha (double d)
double GetAlpha ()
virtual int CacheFontMetricsKey ()
void install_cleanup ()
voidoperator new (size_t size)
voidoperator new (size_t size, GCPlacement gcp)
voidoperator new (size_t size, void *p)
voidoperator new (size_t size)
voidoperator new (size_t size, GCPlacement gcp)
void operator delete (void *obj)
void operator delete (void *, void *)
void operator delete (void *obj)
voidoperator new[] (size_t size)
voidoperator new[] (size_t size, GCPlacement gcp)
voidoperator new[] (size_t size, void *p)
void operator delete[] (void *obj)
void operator delete[] (void *, void *)

Public Attributes

Bool Colour
int device
double current_alpha
WXTYPE __type
void__gc_external

Protected Member Functions

void CalcBoundingBox (double x, double y)
void ComputeScaleAndOrigin (void)
double XDEV2LOG (int x)
double XDEV2LOGREL (int x)
double YDEV2LOG (int y)
double YDEV2LOGREL (int y)
int XLOG2DEV (double x)
int XLOG2DEVREL (double x)
int YLOG2DEV (double y)
int YLOG2DEVREL (double y)
virtual void DrawOpenSpline (wxList *pts)

Protected Attributes

Bool auto_setting
Bool optimize
Bool ok
double mm_to_pix_x
double mm_to_pix_y
double scale_x
double scale_y
double device_origin_x
double device_origin_y
double logical_scale_x
double logical_scale_y
double user_scale_x
double user_scale_y
wxColourcurrent_background_color
wxBrushcurrent_brush
wxColourMapcurrent_cmap
wxFontcurrent_font
int current_map_mode
wxPencurrent_pen
int current_text_alignment
wxColourcurrent_text_bg
int current_text_bgmode
wxColourcurrent_text_fg
wxRegionclipping
int anti_alias

Detailed Description

Definition at line 76 of file DC.h.


Constructor & Destructor Documentation


Member Function Documentation

void wxDC::AutoSetTools ( Bool  set_auto) [inline]

Definition at line 132 of file DC.h.

       { auto_setting = set_auto; }
void wxDC::BeginDrawing ( void  ) [inline]

Definition at line 134 of file DC.h.

       {}
virtual Bool wxDC::Blit ( double  xdest,
double  ydest,
double  w,
double  h,
wxBitmap src,
double  xsrc,
double  ysrc,
int  rop = wxSOLID,
wxColour c = NULL,
wxBitmap mask = NULL 
) [pure virtual]

Implemented in wxWindowDC.

Here is the caller graph for this function:

Reimplemented in wxWindowDC.

Definition at line 261 of file DC.cc.

{
  return 0;
}
void wxDC::CalcBoundingBox ( double  x,
double  y 
) [protected]
virtual Bool wxDC::CanDrawBitmap ( void  ) [pure virtual]

Implemented in wxWindowDC.

virtual Bool wxDC::CanGetTextExtent ( void  ) [pure virtual]

Implemented in wxWindowDC.

virtual void wxDC::Clear ( void  ) [pure virtual]

Implemented in wxWindowDC.

Definition at line 93 of file DC.cc.

Here is the caller graph for this function:

virtual double wxDC::DeviceToLogicalX ( int  x) [inline, virtual]

Definition at line 136 of file DC.h.

       { return XDEV2LOG(x); }

Here is the call graph for this function:

virtual double wxDC::DeviceToLogicalXRel ( int  x) [inline, virtual]

Definition at line 138 of file DC.h.

       { return XDEV2LOGREL(x); }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual double wxDC::DeviceToLogicalY ( int  y) [inline, virtual]

Definition at line 142 of file DC.h.

       { return YDEV2LOG(y); }

Here is the call graph for this function:

virtual double wxDC::DeviceToLogicalYRel ( int  y) [inline, virtual]

Definition at line 144 of file DC.h.

       { return YDEV2LOGREL(y); }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void wxDC::DrawArc ( double  x,
double  y,
double  w,
double  h,
double  start,
double  end 
) [pure virtual]

Implemented in wxWindowDC.

virtual void wxDC::DrawEllipse ( double  x,
double  y,
double  w,
double  h 
) [pure virtual]

Implemented in wxWindowDC.

virtual void wxDC::DrawLine ( double  x1,
double  y1,
double  x2,
double  y2 
) [pure virtual]

Implemented in wxWindowDC.

virtual void wxDC::DrawLines ( int  n,
wxPoint  pts[],
double  xoff = 0,
double  yoff = 0 
) [pure virtual]

Implemented in wxWindowDC.

Here is the caller graph for this function:

void wxDC::DrawLines ( wxList pts,
double  xoff = 0,
double  yoff = 0 
) [virtual]

Definition at line 166 of file DC.cc.

{
  int n;
  wxPoint *points;

  n = list->Number();
  points = PointListToArray(list, n);

  DrawLines(n, points, xoffset, yoffset);
}

Here is the call graph for this function:

void wxDC::DrawOpenSpline ( wxList pts) [protected, virtual]

Definition at line 286 of file DC.cc.

{
    wxPoint *p;
    double  cx1, cy1, cx2, cy2, cx3, cy3, cx4, cy4;
    double  x1,  y1,  x2 , y2;
    wxNode *node;

    node = pts->First();
    p = (wxPoint*)node->Data();
    x1 = p->x; y1 = p->y;

    node = node->Next();
    p = (wxPoint *)node->Data();
    x2 = p->x; y2 = p->y;

    cx1 = half(x1, x2);  cy1 = half(y1, y2);
    cx2 = half(cx1, x2); cy2 = half(cy1, y2);

    wx_spline_add_point(x1, y1);

    while ((node=node->Next()) != NULL) {
        p = (wxPoint*)node->Data();
       x1  = x2;           y1  = y2;
       x2  = p->x;         y2  = p->y;
        cx4 = half(x1, x2);   cy4 = half(y1, y2);
        cx3 = half(x1, cx4);  cy3 = half(y1, cy4);

        wx_quadratic_spline(cx1, cy1, cx2, cy2, cx3, cy3, cx4, cy4);

       cx1 = cx4;          cy1 = cy4;
        cx2 = half(cx1, x2);  cy2 = half(cy1, y2);
    }
    wx_spline_add_point(cx1, cy1);
    wx_spline_add_point(x2, y2);
    wx_spline_draw_point_array(this);
}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void wxDC::DrawPath ( wxPath p,
double  dx,
double  dy,
int  fill = wxODDEVEN_RULE 
) [pure virtual]

Implemented in wxWindowDC.

virtual void wxDC::DrawPoint ( double  x,
double  y 
) [pure virtual]

Implemented in wxWindowDC.

void wxDC::DrawPoint ( wxPoint pt) [inline]

Definition at line 93 of file DC.h.

{ DrawPoint(pt->x, pt->y); }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void wxDC::DrawPolygon ( int  n,
wxPoint  pts[],
double  xoff = 0,
double  yoff = 0,
int  fill = wxODDEVEN_RULE 
) [pure virtual]

Implemented in wxWindowDC.

Here is the caller graph for this function:

void wxDC::DrawPolygon ( wxList pts,
double  xoff = 0,
double  yoff = 0,
int  fill = wxODDEVEN_RULE 
) [virtual]

Definition at line 177 of file DC.cc.

{
  int n;
  wxPoint *points;

  n = list->Number();
  points = PointListToArray(list, n);

  DrawPolygon(n, points, xoffset, yoffset, fillStyle);
}

Here is the call graph for this function:

virtual void wxDC::DrawRectangle ( double  x,
double  y,
double  w,
double  h 
) [pure virtual]

Implemented in wxWindowDC.

virtual void wxDC::DrawRoundedRectangle ( double  x,
double  y,
double  w,
double  h,
double  radius = 20 
) [pure virtual]

Implemented in wxWindowDC.

void wxDC::DrawSpline ( int  n,
wxPoint  pts[] 
)

Definition at line 197 of file DC.cc.

{
    wxList *list;
    list = new wxList;
    for (int i=0; i<n; ++i) {
      list->Append((wxObject*)&pts[i]);
    }
    DrawSpline(list);
    DELETE_OBJ list;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 208 of file DC.cc.

{
    DrawOpenSpline(pts);
}

Here is the call graph for this function:

void wxDC::DrawSpline ( double  x1,
double  y1,
double  x2,
double  y2,
double  x3,
double  y3 
) [virtual]

Definition at line 213 of file DC.cc.

{
    wxList *list;
    wxPoint *point1, *point2, *point3;

    list = new wxList;

    point1 = new wxPoint;
    point1->x = x1; point1->y = y1;
    list->Append((wxObject*)point1);

    point2 = new wxPoint;
    point2->x = x2; point2->y = y2;
    list->Append((wxObject*)point2);

    point3 = new wxPoint;
    point3->x = x3; point3->y = y3;
    list->Append((wxObject*)point3);

    DrawSpline(list);

    DELETE_OBJ list;
}

Here is the call graph for this function:

virtual void wxDC::DrawText ( char *  text,
double  x,
double  y,
Bool  combine = FALSE,
Bool  use16 = FALSE,
int  dt = 0,
double  angle = 0.0 
) [pure virtual]

Implemented in wxWindowDC.

virtual void wxDC::EndDoc ( void  ) [inline, virtual]

Definition at line 127 of file DC.h.

{}
void wxDC::EndDrawing ( void  ) [inline]

Definition at line 151 of file DC.h.

       {}
virtual void wxDC::EndPage ( void  ) [inline, virtual]

Definition at line 129 of file DC.h.

{}
virtual double wxDC::FLogicalToDeviceX ( double  x) [inline, virtual]

Definition at line 189 of file DC.h.

       { return XLOG2DEV(x); }

Here is the call graph for this function:

virtual double wxDC::FLogicalToDeviceXRel ( double  x) [inline, virtual]

Definition at line 191 of file DC.h.

       { return XLOG2DEVREL(x); }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual double wxDC::FLogicalToDeviceY ( double  y) [inline, virtual]

Definition at line 195 of file DC.h.

       { return YLOG2DEV(y); }

Here is the call graph for this function:

virtual double wxDC::FLogicalToDeviceYRel ( double  y) [inline, virtual]

Definition at line 197 of file DC.h.

       { return YLOG2DEVREL(y); }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual double wxDC::FLogicalToUnscrolledDeviceX ( double  x) [inline, virtual]

Definition at line 193 of file DC.h.

       { return XLOG2DEV(x); }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual double wxDC::FLogicalToUnscrolledDeviceY ( double  y) [inline, virtual]

Definition at line 199 of file DC.h.

       { return YLOG2DEV(y); }

Here is the call graph for this function:

Here is the caller graph for this function:

double wxDC::GetAlpha ( )

Definition at line 256 of file DC.cc.

{
  return current_alpha;
}

Definition at line 240 of file DC.cc.

{
  return anti_alias;
}

Definition at line 74 of file DC.cc.

                                 {
  wxColour *c;
  c = new wxColour();
  c->CopyFrom(current_background_color);
  return c;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 205 of file DC.h.

       { return current_text_bgmode; }
wxBrush* wxDC::GetBrush ( void  ) [inline]

Definition at line 154 of file DC.h.

       { return current_brush; }
virtual double wxDC::GetCharHeight ( void  ) [pure virtual]

Implemented in wxWindowDC.

virtual double wxDC::GetCharWidth ( void  ) [pure virtual]

Implemented in wxWindowDC.

virtual wxRegion* wxDC::GetClippingRegion ( ) [pure virtual]

Implemented in wxWindowDC.

void wxDC::GetDeviceOrigin ( double *  x,
double *  y 
) [inline]

Definition at line 219 of file DC.h.

Here is the caller graph for this function:

wxFont* wxDC::GetFont ( void  ) [inline]

Definition at line 156 of file DC.h.

       { return current_font; }
int wxDC::GetMapMode ( void  ) [inline]

Definition at line 158 of file DC.h.

       { return current_map_mode; }

Definition at line 160 of file DC.h.

       { return optimize; }
wxPen* wxDC::GetPen ( void  ) [inline]

Definition at line 162 of file DC.h.

       { return current_pen; }
Bool wxDC::GetPixel ( double   WXUNUSEDx,
double   WXUNUSEDy,
wxColour WXUNUSEDcol 
) [inline]

Definition at line 164 of file DC.h.

       { return FALSE; }
virtual void wxDC::GetSize ( double *  w,
double *  h 
) [inline, virtual]

Reimplemented in wxWindowDC.

Definition at line 167 of file DC.h.

       { *w = (double)10; *h = (double)10; }

Here is the caller graph for this function:

void wxDC::GetSizeMM ( double *  w,
double *  h 
) [inline]

Definition at line 169 of file DC.h.

       { GetSize(w, h); *w/=(scale_x*mm_to_pix_x); *h/=(scale_y*mm_to_pix_y); }

Here is the call graph for this function:

Definition at line 171 of file DC.h.

Definition at line 173 of file DC.h.

       { return current_text_bg; }

Here is the caller graph for this function:

virtual void wxDC::GetTextExtent ( const char *  s,
double *  w,
double *  h,
double *  descent = 0,
double *  ext_leading = 0,
wxFont font = NULL,
Bool  combine = FALSE,
Bool  use16bit = FALSE,
int  dt = 0,
int  len = -1 
) [pure virtual]

Implemented in wxWindowDC.

Here is the caller graph for this function:

Definition at line 175 of file DC.h.

       { return current_text_fg; }

Here is the caller graph for this function:

void wxDC::GetUserScale ( double *  xs,
double *  ys 
) [inline]

Definition at line 217 of file DC.h.

      { *xs = user_scale_x; *ys = user_scale_y; }

Here is the caller graph for this function:

virtual Bool wxDC::GlyphAvailable ( int  c,
wxFont f = NULL 
) [pure virtual]

Implemented in wxWindowDC.

Definition at line 99 of file wxGC.cxx.

{
  GC_finalization_proc old_fn;
  void *old_data;

# ifdef MZ_PRECISE_GC
#  define ALLOW_NON_BASE 0
#  define CHECK_BASE 0
# else
#  ifdef wx_xt
#   define ALLOW_NON_BASE 0
#   define CHECK_BASE 0
#  else
#   ifdef WIN32
#    define ALLOW_NON_BASE 0
#    define CHECK_BASE 1
#    define CRASH_ON_NONBASE 1
#   else
#    define ALLOW_NON_BASE 1
#    define CHECK_BASE 0
#   endif
#  endif
# endif

# if CHECK_BASE || ALLOW_NON_BASE
  if (GC_base(this) != (void *)this) {
#  if ALLOW_NON_BASE
    return;
#  else
#   ifdef CRASH_ON_NONBASE
    *(long *)0x0 = 1;
#   else
    printf("Clean-up object is not the base object\n");
    abort();
#   endif
#  endif
  }
# endif

  GC_register_finalizer_ignore_self(gcOBJ_TO_PTR(this), 
                                CAST_GCP GC_cleanup, NULL, 
                                CAST_GCPP &old_fn, &old_data);

# if CHECK_BASE
  if (old_fn) {
#  ifdef CRASH_ON_NONBASE
       *(long *)0x0 = 1;
#  else
    printf("Object already has a clean-up\n");
    abort();
#  endif
  }
# endif
}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual int wxDC::LogicalToDeviceX ( double  x) [inline, virtual]

Definition at line 177 of file DC.h.

       { return XLOG2DEV(x); }

Here is the call graph for this function:

virtual int wxDC::LogicalToDeviceXRel ( double  x) [inline, virtual]

Definition at line 179 of file DC.h.

       { return XLOG2DEVREL(x); }

Here is the call graph for this function:

virtual int wxDC::LogicalToDeviceY ( double  y) [inline, virtual]

Definition at line 183 of file DC.h.

       { return YLOG2DEV(y); }

Here is the call graph for this function:

virtual int wxDC::LogicalToDeviceYRel ( double  y) [inline, virtual]

Definition at line 185 of file DC.h.

       { return YLOG2DEVREL(y); }

Here is the call graph for this function:

virtual int wxDC::LogicalToUnscrolledDeviceX ( double  x) [inline, virtual]

Definition at line 181 of file DC.h.

       { return XLOG2DEV(x); }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual int wxDC::LogicalToUnscrolledDeviceY ( double  y) [inline, virtual]

Definition at line 187 of file DC.h.

       { return YLOG2DEV(y); }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual Bool wxDC::Ok ( void  ) [inline, virtual]

Reimplemented in wxWindowDC.

Definition at line 201 of file DC.h.

       { return ok; }
void gc::operator delete ( void obj) [inline, inherited]
void gc::operator delete ( void obj) [inline, inherited]

Definition at line 287 of file gc_cpp.h.

                                           {
    GC_FREE( obj );}

Here is the caller graph for this function:

void gc::operator delete ( void ,
void  
) [inline, inherited]

Definition at line 291 of file gc_cpp.h.

{}
void gc::operator delete[] ( void obj) [inline, inherited]

Definition at line 305 of file gc_cpp.h.

                                             {
    gc::operator delete( obj );}

Here is the call graph for this function:

void gc::operator delete[] ( void ,
void  
) [inline, inherited]

Definition at line 309 of file gc_cpp.h.

{}
void* gc::operator new ( size_t  size) [inline, inherited]
void* gc::operator new ( size_t  size,
GCPlacement  gcp 
) [inline, inherited]
void * gc::operator new ( size_t  size) [inline, inherited]

Definition at line 273 of file gc_cpp.h.

                                           {
    return GC_MALLOC( size );}

Here is the caller graph for this function:

void * gc::operator new ( size_t  size,
GCPlacement  gcp 
) [inline, inherited]

Definition at line 276 of file gc_cpp.h.

                                                            {
    if (gcp == UseGC) 
        return GC_MALLOC( size );
    else if (gcp == PointerFreeGC)
       return GC_MALLOC_ATOMIC( size );
    else
        return GC_MALLOC_UNCOLLECTABLE( size );}
void * gc::operator new ( size_t  size,
void p 
) [inline, inherited]

Definition at line 284 of file gc_cpp.h.

                                                    {
    return p;}
void * gc::operator new[] ( size_t  size) [inline, inherited]

Definition at line 296 of file gc_cpp.h.

                                             {
    return gc::operator new( size );}

Here is the call graph for this function:

void * gc::operator new[] ( size_t  size,
GCPlacement  gcp 
) [inline, inherited]

Definition at line 299 of file gc_cpp.h.

                                                              {
    return gc::operator new( size, gcp );}

Here is the call graph for this function:

void * gc::operator new[] ( size_t  size,
void p 
) [inline, inherited]

Definition at line 302 of file gc_cpp.h.

                                                      {
    return p;}
void wxDC::SetAlpha ( double  d) [virtual]

Definition at line 251 of file DC.cc.

void wxDC::SetAntiAlias ( int  v) [virtual]

Reimplemented in wxWindowDC.

Definition at line 245 of file DC.cc.

{
  if (Colour)
    anti_alias = v;
}
virtual void wxDC::SetBackground ( wxColour c) [pure virtual]

Implemented in wxWindowDC.

void wxDC::SetBackgroundMode ( int  mode) [inline]

Definition at line 203 of file DC.h.

       { current_text_bgmode = mode; }
virtual void wxDC::SetBrush ( wxBrush brush) [pure virtual]

Implemented in wxWindowDC.

Here is the caller graph for this function:

virtual void wxDC::SetClippingRect ( double  x,
double  y,
double  w,
double  h 
) [pure virtual]

Implemented in wxWindowDC.

virtual void wxDC::SetClippingRegion ( wxRegion r) [pure virtual]

Implemented in wxWindowDC.

virtual void wxDC::SetColourMap ( wxColourMap cmap) [pure virtual]

Implemented in wxWindowDC.

void wxDC::SetDeviceOrigin ( double  x,
double  y 
)

Definition at line 99 of file DC.cc.

Here is the call graph for this function:

virtual void wxDC::SetFont ( wxFont font) [pure virtual]

Implemented in wxWindowDC.

Here is the caller graph for this function:

void wxDC::SetLogicalScale ( double  xs,
double  ys 
)

Definition at line 106 of file DC.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 113 of file DC.cc.

Here is the call graph for this function:

void wxDC::SetOptimization ( Bool  opt) [inline]

Definition at line 207 of file DC.h.

       { optimize = opt; }
virtual void wxDC::SetPen ( wxPen pen) [pure virtual]

Implemented in wxWindowDC.

Here is the caller graph for this function:

void wxDC::SetTextAlignment ( int  new_alignment) [inline]

Definition at line 209 of file DC.h.

       { current_text_alignment = new_alignment; }
virtual void wxDC::SetTextBackground ( wxColour col) [pure virtual]

Implemented in wxWindowDC.

virtual void wxDC::SetTextForeground ( wxColour col) [pure virtual]

Implemented in wxWindowDC.

void wxDC::SetUserScale ( double  xs,
double  ys 
) [virtual]

Definition at line 135 of file DC.cc.

Here is the call graph for this function:

virtual Bool wxDC::StartDoc ( char *  WXUNUSEDmessage) [inline, virtual]

Definition at line 126 of file DC.h.

{ return TRUE; }
virtual void wxDC::StartPage ( void  ) [inline, virtual]

Definition at line 128 of file DC.h.

{}
virtual void wxDC::TryColour ( wxColour src,
wxColour dest 
) [pure virtual]

Implemented in wxWindowDC.

virtual double wxDC::UnscrolledDeviceToLogicalX ( int  x) [inline, virtual]

Definition at line 140 of file DC.h.

       { return XDEV2LOG(x); }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual double wxDC::UnscrolledDeviceToLogicalY ( int  y) [inline, virtual]

Definition at line 146 of file DC.h.

       { return YDEV2LOG(y); }

Here is the call graph for this function:

Here is the caller graph for this function:

double wxDC::XDEV2LOG ( int  x) [inline, protected]

Definition at line 264 of file DC.h.

      { return (double(x) / scale_x) - device_origin_x; }

Here is the caller graph for this function:

double wxDC::XDEV2LOGREL ( int  x) [inline, protected]

Definition at line 266 of file DC.h.

      { return double(double(x) / scale_x); }

Here is the caller graph for this function:

int wxDC::XLOG2DEV ( double  x) [inline, protected]

Definition at line 272 of file DC.h.

      { double a = (x * scale_x) + device_origin_x;
       return (int)floor(a); }

Here is the caller graph for this function:

int wxDC::XLOG2DEVREL ( double  x) [inline, protected]

Definition at line 275 of file DC.h.

      { double a = x * scale_x;
       return (int)floor(a); }

Here is the caller graph for this function:

double wxDC::YDEV2LOG ( int  y) [inline, protected]

Definition at line 268 of file DC.h.

      { return (double(y) / scale_y) - device_origin_y; }

Here is the caller graph for this function:

double wxDC::YDEV2LOGREL ( int  y) [inline, protected]

Definition at line 270 of file DC.h.

      { return double(double(y) / scale_y); }

Here is the caller graph for this function:

int wxDC::YLOG2DEV ( double  y) [inline, protected]

Definition at line 278 of file DC.h.

      { double a = (y * scale_y) + device_origin_y;
       return (int)floor(a); }

Here is the caller graph for this function:

int wxDC::YLOG2DEVREL ( double  y) [inline, protected]

Definition at line 281 of file DC.h.

      { double a = y * scale_y;
       return (int)floor(a); }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 146 of file wxGC.h.

WXTYPE wxObject::__type [inherited]

Definition at line 77 of file Object.h.

int wxDC::anti_alias [protected]

Definition at line 259 of file DC.h.

Bool wxDC::auto_setting [protected]

Definition at line 241 of file DC.h.

wxRegion* wxDC::clipping [protected]

Definition at line 258 of file DC.h.

Definition at line 237 of file DC.h.

Definition at line 239 of file DC.h.

Definition at line 248 of file DC.h.

Definition at line 249 of file DC.h.

Definition at line 250 of file DC.h.

wxFont* wxDC::current_font [protected]

Definition at line 251 of file DC.h.

Definition at line 252 of file DC.h.

wxPen* wxDC::current_pen [protected]

Definition at line 253 of file DC.h.

Definition at line 254 of file DC.h.

Definition at line 255 of file DC.h.

Definition at line 256 of file DC.h.

Definition at line 257 of file DC.h.

Definition at line 238 of file DC.h.

double wxDC::device_origin_x [protected]

Definition at line 245 of file DC.h.

double wxDC::device_origin_y [protected]

Definition at line 245 of file DC.h.

double wxDC::logical_scale_x [protected]

Definition at line 246 of file DC.h.

double wxDC::logical_scale_y [protected]

Definition at line 246 of file DC.h.

double wxDC::mm_to_pix_x [protected]

Definition at line 243 of file DC.h.

double wxDC::mm_to_pix_y [protected]

Definition at line 243 of file DC.h.

Bool wxDC::ok [protected]

Definition at line 241 of file DC.h.

Bool wxDC::optimize [protected]

Definition at line 241 of file DC.h.

double wxDC::scale_x [protected]

Definition at line 244 of file DC.h.

double wxDC::scale_y [protected]

Definition at line 244 of file DC.h.

double wxDC::user_scale_x [protected]

Definition at line 246 of file DC.h.

double wxDC::user_scale_y [protected]

Definition at line 246 of file DC.h.


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