robofab.interface.mac.quartzPens
index
/code/projects/robofab/Lib/robofab/interface/mac/quartzPens.py

 
Modules
       
Carbon.CG

 
Classes
       
QuartzMarkerPen
QuartzPen
GlyphContourPen
GlyphOffCurvePen
GlyphOnCurvePen
GlyphStartMarkerPen
QuartzWrapper

 
class GlyphContourPen(QuartzPen)
    draw the contour of the glyph
 
  Methods defined here:
curveTo(self, pt1, pt2, pt3, smooth=False)
doneDrawing(self)
lineTo(self, pt, smooth=False)
moveTo(self, pt, smooth=False)
qCurveTo(self, *pts, **kwargs)

Methods inherited from QuartzPen:
__init__(self, possize, ctx, glyphSet=None)
addAnchor(self, name, (x, y))
addComponent(self, baseName, offset=(0, 0), scale=(1, 1))
closePath(self)
setNote(self, note)
setWidth(self, width)

 
class GlyphOffCurvePen(QuartzPen)
    draw on curve markers
 
  Methods defined here:
__init__(self, possize, ctx, markerSize, glyphSet=None, offCurveLineWeight=0)
curveTo(self, pt1, pt2, pt3, smooth=False)
doneDrawing(self)
lineTo(self, pt, smooth=False)
moveTo(self, pt, smooth=False)
qCurveTo(self, *pts, **kwargs)

Methods inherited from QuartzPen:
addAnchor(self, name, (x, y))
addComponent(self, baseName, offset=(0, 0), scale=(1, 1))
closePath(self)
setNote(self, note)
setWidth(self, width)

 
class GlyphOnCurvePen(QuartzPen)
    draw on curve markers
 
  Methods defined here:
__init__(self, possize, ctx, markerSize, glyphSet=None)
curveTo(self, pt1, pt2, pt3, smooth=False)
doneDrawing(self)
lineTo(self, pt, smooth=False)
moveTo(self, pt, smooth=False)
qCurveTo(self, *pts, **kwargs)

Methods inherited from QuartzPen:
addAnchor(self, name, (x, y))
addComponent(self, baseName, offset=(0, 0), scale=(1, 1))
closePath(self)
setNote(self, note)
setWidth(self, width)

 
class GlyphStartMarkerPen(QuartzPen)
    draw start markers
 
  Methods defined here:
__init__(self, possize, ctx, markerSize, glyphSet=None)
curveTo(self, pt1, pt2, pt3, smooth=False)
doneDrawing(self)
lineTo(self, pt, smooth=False)
moveTo(self, pt, smooth=False)
qCurveTo(self, *pts, **kwargs)

Methods inherited from QuartzPen:
addAnchor(self, name, (x, y))
addComponent(self, baseName, offset=(0, 0), scale=(1, 1))
closePath(self)
setNote(self, note)
setWidth(self, width)

 
class QuartzMarkerPen
    A pen which draws glyphs with various kinds of selection markers in quartz. This pen takes the flags from robofab.interface.mac.qWidget.GlyphLine
 
  Methods defined here:
__init__(self, ctx, flags, glyphSet=None)
addAnchor(self, name, (x, y))
addComponent(self, baseName, offset=(0, 0), scale=(1, 1))
closePath(self)
curveTo(self, pt1, pt2, pt3, smooth=False)
doneDrawing(self)
lineTo(self, pt, smooth=False)
moveTo(self, pt, smooth=False)
qCurveTo(self, *pts, **kwargs)
setNote(self, note)
setWidth(self, width)

 
class QuartzPen
    a postscipt like drawing tool for quartz
 
  Methods defined here:
__init__(self, possize, ctx, glyphSet=None)
addAnchor(self, name, (x, y))
addComponent(self, baseName, offset=(0, 0), scale=(1, 1))
closePath(self)
curveTo(self, pt1, pt2, pt3, smooth=False)
doneDrawing(self)
lineTo(self, pt, smooth=False)
moveTo(self, pt, smooth=False)
qCurveTo(self, *pts, **kwargs)
setNote(self, note)
setWidth(self, width)

 
class QuartzWrapper
    Provide nice names vor Quartz API's.
 
  Methods defined here:
__init__(self, ctx)

 
Functions
       
markerBox(pt, ctx, color, size)
Draw a square marker
markerCircle(pt, ctx, color, size, lineWidth=2)
Draw a circle around a marker
markerCross(pt, ctx, color, size)
Draw a (+) shaped marker
markerDot(pt, ctx, color, size)
Draw a round marker
markerLine(pt1, pt2, ctx, color, size)
Draw a circle around a marker