1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
|
.. highlight:: python
=====
Glyph
=====
.. seealso::
:ref:`Notifications`:
The Glyph object uses notifications to notify observers of changes.
:ref:`Representations`:
The Glyph object can maintain representations of various arbitrary types.
Tasks
-----
Name and Unicodes
"""""""""""""""""
* :attr:`~defcon.Glyph.name`
* :attr:`~defcon.Glyph.unicodes`
* :attr:`~defcon.Glyph.unicode`
Metrics
"""""""
* :attr:`~defcon.Glyph.leftMargin`
* :attr:`~defcon.Glyph.rightMargin`
* :attr:`~defcon.Glyph.width`
Reference Data
""""""""""""""
* :attr:`~defcon.Glyph.area`
* :attr:`~defcon.Glyph.bounds`
* :attr:`~defcon.Glyph.controlPointBounds`
General Editing
"""""""""""""""
* :meth:`~defcon.Glyph.clear`
* :meth:`~defcon.Glyph.move`
Contours
""""""""
* :class:`~defcon.Glyph`
* :meth:`~defcon.Glyph.clearContours`
* :meth:`~defcon.Glyph.appendContour`
* :meth:`~defcon.Glyph.insertContour`
* :meth:`~defcon.Glyph.contourIndex`
* :meth:`~defcon.Glyph.autoContourDirection`
* :meth:`~defcon.Glyph.correctContourDirection`
Components
""""""""""
* :attr:`~defcon.Glyph.components`
* :meth:`~defcon.Glyph.clearComponents`
* :meth:`~defcon.Glyph.appendComponent`
* :meth:`~defcon.Glyph.componentIndex`
* :meth:`~defcon.Glyph.insertComponent`
Anchors
"""""""
* :attr:`~defcon.Glyph.anchors`
* :meth:`~defcon.Glyph.clearAnchors`
* :meth:`~defcon.Glyph.appendAnchor`
* :meth:`~defcon.Glyph.anchorIndex`
* :meth:`~defcon.Glyph.insertAnchor`
Hit Testing
"""""""""""
* :meth:`~defcon.Contour.pointInside`
Pens and Drawing
""""""""""""""""
* :meth:`~defcon.Glyph.getPen`
* :meth:`~defcon.Glyph.getPointPen`
* :meth:`~defcon.Glyph.draw`
* :meth:`~defcon.Glyph.drawPoints`
Representations
"""""""""""""""
* :meth:`~defcon.Glyph.getRepresentation`
* :meth:`~defcon.Glyph.hasCachedRepresentation`
* :meth:`~defcon.Glyph.representationKeys`
* :meth:`~defcon.Glyph.destroyRepresentation`
* :meth:`~defcon.Glyph.destroyAllRepresentations`
Changed State
"""""""""""""
* :attr:`~defcon.Glyph.dirty`
Notifications
"""""""""""""
* :attr:`~defcon.Glyph.dispatcher`
* :meth:`~defcon.Glyph.addObserver`
* :meth:`~defcon.Glyph.removeObserver`
* :meth:`~defcon.Glyph.hasObserver`
Parent
""""""
* :meth:`~defcon.Glyph.getParent`
* :meth:`~defcon.Glyph.setParent`
Glyph
^^^^^
.. module:: defcon
.. autoclass:: Glyph
:inherited-members:
:members:
|