OMNeT++ Simulation Library  6.0.3
cFigure::Font Struct Reference

#include <ccanvas.h>

Description

Represents properties of a font.

Public Member Functions

Methods.
 Font ()
 
 Font (std::string typeface, int pointSize=-1, uint8_t style=FONT_NONE)
 
 Font (const Font &other)=default
 
bool operator== (const Font &other) const
 
std::string str () const
 

Public Attributes

Font attributes.
std::string typeface
 Typeface of the font. An empty string means the default font. More...
 
int pointSize = 0
 Font size in points. A zero or negative value means the default size. More...
 
uint8_t style = FONT_NONE
 Font style. Binary OR of FontStyle constants such as FONT_BOLD. More...
 

Member Data Documentation

◆ typeface

std::string typeface

Typeface of the font. An empty string means the default font.

◆ pointSize

int pointSize = 0

Font size in points. A zero or negative value means the default size.

◆ style

uint8_t style = FONT_NONE

Font style. Binary OR of FontStyle constants such as FONT_BOLD.


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