LASi
LASi::setFont Class Reference

stream manipulator applied to oPostscriptStream. More...

#include <LASi.h>

Public Member Functions

 setFont (const char *const family="sans", const LASi::FontStyle style=LASi::NORMAL_STYLE, const LASi::FontWeight weight=LASi::NORMAL_WEIGHT, const LASi::FontVariant variant=LASi::NORMAL_VARIANT, const LASi::FontStretch stretch=LASi::NORMAL_STRETCH)
 Usage: os << setFont("Vera Sans",LASi::ITALIC,LASi::BOLD) << ...
 

Protected Member Functions

void apply (oPostscriptStream &os) const
 

Private Attributes

const char *const _family
 
const LASi::FontStyle _style
 
const LASi::FontWeight _weight
 
const LASi::FontVariant _variant
 
const LASi::FontStretch _stretch
 

Friends

oPostscriptStreamoperator<< (oPostscriptStream &os, const setFont &x)
 Stream inserter for 'setFont' stream manipulator.
 

Detailed Description

stream manipulator applied to oPostscriptStream.

Constructor & Destructor Documentation

◆ setFont()

LASi::setFont::setFont ( const char *const family = "sans",
const LASi::FontStyle style = LASi::NORMAL_STYLE,
const LASi::FontWeight weight = LASi::NORMAL_WEIGHT,
const LASi::FontVariant variant = LASi::NORMAL_VARIANT,
const LASi::FontStretch stretch = LASi::NORMAL_STRETCH )
inline

Member Function Documentation

◆ apply()

void LASi::setFont::apply ( oPostscriptStream & os) const
inlineprotected

Friends And Related Symbol Documentation

◆ operator<<

oPostscriptStream & operator<< ( oPostscriptStream & os,
const setFont & x )
friend

Stream inserter for 'setFont' stream manipulator.

References apply(), and setFont().

Member Data Documentation

◆ _family

const char* const LASi::setFont::_family
private

Referenced by apply(), and setFont().

◆ _stretch

const LASi::FontStretch LASi::setFont::_stretch
private

Referenced by apply(), and setFont().

◆ _style

const LASi::FontStyle LASi::setFont::_style
private

Referenced by apply(), and setFont().

◆ _variant

const LASi::FontVariant LASi::setFont::_variant
private

Referenced by apply(), and setFont().

◆ _weight

const LASi::FontWeight LASi::setFont::_weight
private

Referenced by apply(), and setFont().


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