parameters: ()
return_statement: return GraphicsContext(ctx, 
                                 (surface.get_width(), surface.get_height()))
docstring: If you need a temporary context just to quickly measure some
          text extents, or etc. then using this function will be a
          little less expensive than creating a real DC for it.
docstring_summary: If you need a temporary context just to quickly measure some
          text extents, or etc. then using this function will be a
          little less expensive than creating a real DC for it.
docstring_tokens: If you need a temporary context just to quickly measure some text extents or etc . then using this function will be a little less expensive than creating a real DC for it .
function: def CreateMeasuringContext():
          """
          If you need a temporary context just to quickly measure some
          text extents, or etc. then using this function will be a
          little less expensive than creating a real DC for it.
          """
          surface = cairo.ImageSurface(FORMAT_ARGB32, 1, 1)
          ctx = cairo.Context(surface)
          return GraphicsContext(ctx, 
                                 (surface.get_width(), surface.get_height()))
function_tokens: def CreateMeasuringContext ( ) : surface = cairo . ImageSurface ( FORMAT_ARGB32 , 1 , 1 ) ctx = cairo . Context ( surface ) return GraphicsContext ( ctx , ( surface . get_width ( ) , surface . get_height ( ) ) )