Vuo  0.5.1
 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 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.
 

Member Function Documentation

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::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: