Ardour  9.0-pre0-582-g084a23a80d
Gtkmm2ext::EmScale Class Reference

#include <emscale.h>

Public Member Functions

 EmScale (const Pango::FontDescription &)
 
unsigned int char_pixel_width ()
 
unsigned int char_pixel_height ()
 
float char_avg_pixel_width ()
 

Static Public Member Functions

static EmScaleby_font (const Pango::FontDescription &)
 

Private Member Functions

void recalc_char_pixel_geometry ()
 

Private Attributes

Pango::FontDescription _font
 
unsigned int _char_pixel_width
 
unsigned int _char_pixel_height
 
float _char_avg_pixel_width
 

Static Private Attributes

static std::map< std::string, EmScale_emscales
 

Detailed Description

Definition at line 32 of file emscale.h.

Constructor & Destructor Documentation

◆ EmScale()

Gtkmm2ext::EmScale::EmScale ( const Pango::FontDescription &  )

Member Function Documentation

◆ by_font()

static EmScale& Gtkmm2ext::EmScale::by_font ( const Pango::FontDescription &  )
static

◆ char_avg_pixel_width()

float Gtkmm2ext::EmScale::char_avg_pixel_width ( )
inline

Definition at line 39 of file emscale.h.

◆ char_pixel_height()

unsigned int Gtkmm2ext::EmScale::char_pixel_height ( )
inline

Definition at line 38 of file emscale.h.

◆ char_pixel_width()

unsigned int Gtkmm2ext::EmScale::char_pixel_width ( )
inline

Definition at line 37 of file emscale.h.

◆ recalc_char_pixel_geometry()

void Gtkmm2ext::EmScale::recalc_char_pixel_geometry ( )
private

Member Data Documentation

◆ _char_avg_pixel_width

float Gtkmm2ext::EmScale::_char_avg_pixel_width
private

Definition at line 47 of file emscale.h.

◆ _char_pixel_height

unsigned int Gtkmm2ext::EmScale::_char_pixel_height
private

Definition at line 46 of file emscale.h.

◆ _char_pixel_width

unsigned int Gtkmm2ext::EmScale::_char_pixel_width
private

Definition at line 45 of file emscale.h.

◆ _emscales

std::map<std::string,EmScale> Gtkmm2ext::EmScale::_emscales
staticprivate

Definition at line 51 of file emscale.h.

◆ _font

Pango::FontDescription Gtkmm2ext::EmScale::_font
private

Definition at line 44 of file emscale.h.


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