Vuo  0.8.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
VuoRendererFonts Class Reference

Description

Provides fonts for rendered items in a composition.

Public Member Functions

QFont nodeTitleFont (void)
 Returns the font for a node's title.
 
QFont nodeClassFont (void)
 Returns the font for a node's class name.
 
QFont nodePortTitleFont (void)
 Returns the font for a port's title or a constant flag's text.
 
QFont portPopoverFont (void)
 Returns the font for a port's popover text.
 

Static Public Member Functions

static VuoRendererFontsgetSharedFonts (void)
 Returns a shared font provider.
 
static double getHorizontalOffset (const QFont font, const QString text)
 Returns the horizontal distance between the left side of the bounding box and the left side of the first glyph in text, to compensate for the empty space left of the first glyph that causes multiple lines of text to appear misaligned.
 

Static Public Attributes

static const qreal thickPenWidth = 20
 Width, in pixels at 1:1 zoom, of the top and bottom node edges. Many other drawing metrics are based on this value.
 
static const qreal midPenWidth = VuoRendererFonts::thickPenWidth/10.0
 Width, in pixels at 1:1 zoom, of stateful indicator bars and typecast port edges.
 
static const qreal nodeTitleFontSize = thickPenWidth*12.0/16.0
 Size, in typographic points, of the node's title.
 

Member Function Documentation

double VuoRendererFonts::getHorizontalOffset ( const QFont  font,
const QString  text 
)
static

Returns the horizontal distance between the left side of the bounding box and the left side of the first glyph in text, to compensate for the empty space left of the first glyph that causes multiple lines of text to appear misaligned.

VuoRendererFonts * VuoRendererFonts::getSharedFonts ( void  )
static

Returns a shared font provider.

Don't free this object.

QFont VuoRendererFonts::nodeClassFont ( void  )

Returns the font for a node's class name.

QFont VuoRendererFonts::nodePortTitleFont ( void  )

Returns the font for a port's title or a constant flag's text.

QFont VuoRendererFonts::nodeTitleFont ( void  )

Returns the font for a node's title.

QFont VuoRendererFonts::portPopoverFont ( void  )

Returns the font for a port's popover text.

Member Data Documentation

const qreal VuoRendererFonts::midPenWidth = VuoRendererFonts::thickPenWidth/10.0
static

Width, in pixels at 1:1 zoom, of stateful indicator bars and typecast port edges.

const qreal VuoRendererFonts::nodeTitleFontSize = thickPenWidth*12.0/16.0
static

Size, in typographic points, of the node's title.

const qreal VuoRendererFonts::thickPenWidth = 20
static

Width, in pixels at 1:1 zoom, of the top and bottom node edges. Many other drawing metrics are based on this value.


The documentation for this class was generated from the following files: