The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Private Attributes | List of all members
font::p_font Class Reference

Small helper class to make sure the pango font object is destroyed properly. More...

#include <font.hpp>

Public Member Functions

 p_font (const std::string &name, const unsigned size, font::pango_text::FONT_STYLE style)
 
 p_font (const p_font &)=delete
 
p_fontoperator= (const p_font &)=delete
 
 ~p_font ()
 
PangoFontDescription * get ()
 

Private Attributes

PangoFontDescription * font_
 

Detailed Description

Small helper class to make sure the pango font object is destroyed properly.

Definition at line 24 of file font.hpp.

Constructor & Destructor Documentation

◆ p_font() [1/2]

font::p_font::p_font ( const std::string &  name,
const unsigned  size,
font::pango_text::FONT_STYLE  style 
)
inline

◆ p_font() [2/2]

font::p_font::p_font ( const p_font )
delete

◆ ~p_font()

font::p_font::~p_font ( )
inline

Definition at line 49 of file font.hpp.

References font_.

Member Function Documentation

◆ get()

PangoFontDescription* font::p_font::get ( )
inline

Definition at line 51 of file font.hpp.

References font_.

◆ operator=()

p_font& font::p_font::operator= ( const p_font )
delete

Member Data Documentation

◆ font_

PangoFontDescription* font::p_font::font_
private

Definition at line 54 of file font.hpp.

Referenced by get(), p_font(), and ~p_font().


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