fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
  SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation)  

cgdebug.h File Reference

#include <stdio.h>
#include <Carbon/Carbon.h>
Include dependency graph for cgdebug.h:

Go to the source code of this file.

Defines

#define CGContextClipToRect(a, b)
#define CGContextFillRect(a, b)
#define QDEndCGContext(a, b)
#define QDBeginCGContext(a, b)
#define ClipCGContextToRegion(a, b, c)
#define CGContextMoveToPoint(a, b, c)
#define CGContextFillPath(a)
#define CGContextClosePath(a)
#define CGContextFlush(a)
#define CGContextSaveGState(a)
#define CGContextRestoreGState(a)

Functions

OSStatus dbgLocation (const char *file, int line)
OSStatus dbgEndl ()
void dbgCGContextClipToRect (CGContextRef a, CGRect b)
void dbgCGContextFillRect (CGContextRef a, CGRect b)
OSStatus dbgQDEndCGContext (CGrafPtr a, CGContextRef *b)
OSStatus dbgQDBeginCGContext (CGrafPtr a, CGContextRef *b)
void dbgClipCGContextToRegion (CGContextRef a, const Rect *b, RgnHandle c)
void dbgCGContextMoveToPoint (CGContextRef context, float x, float y)
void dbgCGContextFillPath (CGContextRef context)
void dbgCGContextClosePath (CGContextRef context)
void dbgCGContextFlush (CGContextRef context)
void dbgCGContextSaveGState (CGContextRef context)
void dbgCGContextRestoreGState (CGContextRef context)

Define Documentation

#define CGContextClipToRect (   a,
  b 
)
Value:
{ \
  fprintf(stderr, "%s:%d ", __FILE__, __LINE__); \
  dbgCGContextClipToRect(a, b); \
  fprintf(stderr, "\n"); }

Definition at line 104 of file cgdebug.h.

Referenced by dbgCGContextClipToRect().

#define CGContextClosePath (   a)
Value:
{ \
  fprintf(stderr, "%s:%d ", __FILE__, __LINE__); \
  dbgCGContextClosePath(a); \
  fprintf(stderr, "\n"); }

Definition at line 174 of file cgdebug.h.

Referenced by dbgCGContextClosePath(), Fl_Graphics_Driver::end_complex_polygon(), Fl_Graphics_Driver::end_polygon(), Fl_Graphics_Driver::loop(), Fl_Graphics_Driver::pie(), and Fl_Graphics_Driver::polygon().

#define CGContextFillPath (   a)
Value:
{ \
  fprintf(stderr, "%s:%d ", __FILE__, __LINE__); \
  dbgCGContextFillPath(a); \
  fprintf(stderr, "\n"); }

Definition at line 164 of file cgdebug.h.

Referenced by Fl_Graphics_Driver::circle(), dbgCGContextFillPath(), Fl_Graphics_Driver::end_complex_polygon(), Fl_Graphics_Driver::end_polygon(), Fl_Graphics_Driver::pie(), and Fl_Graphics_Driver::polygon().

#define CGContextFillRect (   a,
  b 
)
Value:
{ \
  fprintf(stderr, "%s:%d ", __FILE__, __LINE__); \
  dbgCGContextFillRect(a, b); \
  fprintf(stderr, "\n"); }

Definition at line 114 of file cgdebug.h.

Referenced by dbgCGContextFillRect(), and Fl_Graphics_Driver::rectf().

#define CGContextFlush (   a)
Value:
{ \
  fprintf(stderr, "%s:%d ", __FILE__, __LINE__); \
  dbgCGContextFlush(a); \
  fprintf(stderr, "\n"); }

Definition at line 184 of file cgdebug.h.

Referenced by dbgCGContextFlush(), and Fl::flush().

#define CGContextRestoreGState (   a)
Value:
{ \
  fprintf(stderr, "%s:%d ", __FILE__, __LINE__); \
  dbgCGContextRestoreGState(a); \
  fprintf(stderr, "\n"); }

Definition at line 204 of file cgdebug.h.

Referenced by Fl_Graphics_Driver::arc(), dbgCGContextRestoreGState(), and Fl_Graphics_Driver::pie().

#define CGContextSaveGState (   a)
Value:
{ \
  fprintf(stderr, "%s:%d ", __FILE__, __LINE__); \
  dbgCGContextSaveGState(a); \
  fprintf(stderr, "\n"); }

Definition at line 194 of file cgdebug.h.

Referenced by Fl_Graphics_Driver::arc(), dbgCGContextSaveGState(), Fl_Window::make_current(), and Fl_Graphics_Driver::pie().

#define ClipCGContextToRegion (   a,
  b,
 
)
Value:
{ \
  fprintf(stderr, "%s:%d ", __FILE__, __LINE__); \
  dbgClipCGContextToRegion(a, b, c); \
  fprintf(stderr, "\n"); }

Definition at line 144 of file cgdebug.h.

Referenced by dbgClipCGContextToRegion().

#define QDBeginCGContext (   a,
  b 
)
Value:
( \
  dbgLocation(__FILE__, __LINE__) + \
  dbgQDBeginCGContext(a, b) + \
  dbgEndl() )

Definition at line 134 of file cgdebug.h.

Referenced by dbgQDBeginCGContext(), and Fl_Window::make_current().

#define QDEndCGContext (   a,
  b 
)
Value:
( \
  dbgLocation(__FILE__, __LINE__) + \
  dbgQDEndCGContext(a, b) + \
  dbgEndl() )

Definition at line 124 of file cgdebug.h.

Referenced by dbgQDEndCGContext().


Function Documentation

void dbgCGContextClipToRect ( CGContextRef  a,
CGRect  b 
) [inline]

Definition at line 99 of file cgdebug.h.

References CGContextClipToRect.

void dbgCGContextClosePath ( CGContextRef  context) [inline]

Definition at line 169 of file cgdebug.h.

References CGContextClosePath.

void dbgCGContextFillPath ( CGContextRef  context) [inline]

Definition at line 159 of file cgdebug.h.

References CGContextFillPath.

void dbgCGContextFillRect ( CGContextRef  a,
CGRect  b 
) [inline]

Definition at line 109 of file cgdebug.h.

References CGContextFillRect.

void dbgCGContextFlush ( CGContextRef  context) [inline]

Definition at line 179 of file cgdebug.h.

References CGContextFlush.

void dbgCGContextMoveToPoint ( CGContextRef  context,
float  x,
float  y 
) [inline]

Definition at line 149 of file cgdebug.h.

References CGContextMoveToPoint.

void dbgCGContextRestoreGState ( CGContextRef  context) [inline]

Definition at line 199 of file cgdebug.h.

References CGContextRestoreGState.

void dbgCGContextSaveGState ( CGContextRef  context) [inline]

Definition at line 189 of file cgdebug.h.

References CGContextSaveGState.

void dbgClipCGContextToRegion ( CGContextRef  a,
const Rect *  b,
RgnHandle  c 
) [inline]

Definition at line 139 of file cgdebug.h.

References ClipCGContextToRegion.

OSStatus dbgEndl ( ) [inline]

Definition at line 92 of file cgdebug.h.

OSStatus dbgLocation ( const char *  file,
int  line 
) [inline]

Definition at line 86 of file cgdebug.h.

OSStatus dbgQDBeginCGContext ( CGrafPtr  a,
CGContextRef *  b 
) [inline]

Definition at line 129 of file cgdebug.h.

References QDBeginCGContext.

OSStatus dbgQDEndCGContext ( CGrafPtr  a,
CGContextRef *  b 
) [inline]

Definition at line 119 of file cgdebug.h.

References QDEndCGContext.