![]() |
Chemical Data Processing Library Python API - Version 1.4.0
|
Implements the FontMetrics interface for the Cairo rendering backend. More...
Inheritance diagram for CDPL.Vis.CairoBackend.CairoFontMetrics:Public Member Functions | |
| None | __init__ (cairo.Context cairo_ctxt) |
| Constructs a font metrics object that operates on the Cairo drawing context specified by cairo_ctxt. More... | |
| None | setFont (Vis.Font font) |
| Specifies the font to use for the calculation of text metrics. More... | |
| float | getAscent () |
| Returns the ascent of the current font. More... | |
| float | getDescent () |
| Returns the descent of the current font. More... | |
| float | getHeight () |
| Returns the height of the current font. More... | |
| float | getLeading () |
| Returns the leading of the current font. More... | |
| float | getWidth () |
| float | getBounds (str string, Vis.Rectangle2D bounds) |
Public Member Functions inherited from CDPL.Vis.FontMetrics | |
| None | __init__ () |
Initializes the FontMetrics instance. | |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| None | setFont (Font font) |
| Specifies the font for which to obtain the metrics. More... | |
| float | getWidth (str string) |
| None | getBounds (str string, Rectangle2D bounds) |
Additional Inherited Members | |
Properties inherited from CDPL.Vis.FontMetrics | |
| objectID = property(getObjectID) | |
Implements the FontMetrics interface for the Cairo rendering backend.
For more information about the Cairo 2D Graphics Library see [CAIRO].
| None CDPL.Vis.CairoBackend.CairoFontMetrics.__init__ | ( | cairo.Context | cairo_ctxt | ) |
Constructs a font metrics object that operates on the Cairo drawing context specified by cairo_ctxt.
| cairo_ctxt | The Cairo drawing context. |
| Base.NullPointerException | if cairo_ctxt is None. |
| None CDPL.Vis.CairoBackend.CairoFontMetrics.setFont | ( | Vis.Font | font | ) |
Specifies the font to use for the calculation of text metrics.
| font | The font used for the calculation of text metrics. |
| float CDPL.Vis.CairoBackend.CairoFontMetrics.getAscent | ( | ) |
Returns the ascent of the current font.
Reimplemented from CDPL.Vis.FontMetrics.
| float CDPL.Vis.CairoBackend.CairoFontMetrics.getDescent | ( | ) |
Returns the descent of the current font.
Reimplemented from CDPL.Vis.FontMetrics.
| float CDPL.Vis.CairoBackend.CairoFontMetrics.getHeight | ( | ) |
Returns the height of the current font.
Reimplemented from CDPL.Vis.FontMetrics.
| float CDPL.Vis.CairoBackend.CairoFontMetrics.getLeading | ( | ) |
Returns the leading of the current font.
Reimplemented from CDPL.Vis.FontMetrics.
| float CDPL.Vis.CairoBackend.CairoFontMetrics.getWidth | ( | ) |
| float CDPL.Vis.CairoBackend.CairoFontMetrics.getBounds | ( | str | string, |
| Vis.Rectangle2D | bounds | ||
| ) |
| string | |
| bounds |