The Battle for Wesnoth  1.19.10+dev
Public Member Functions | Private Attributes | List of all members
font::attribute_list Class Reference

Helper class to encapsulate the management of a PangoAttrList. More...

#include <attributes.hpp>

Public Member Functions

 attribute_list ()
 
 attribute_list (attribute_list &&o)
 
 ~attribute_list ()
 
 attribute_list (const attribute_list &)=delete
 
attribute_listoperator= (const attribute_list &)=delete
 
attribute_listoperator= (attribute_list &&o)
 
void insert (PangoAttribute *attr)
 
void modify (PangoAttribute *attr)
 
void apply_to (PangoLayout *layout) const
 
void splice_into (PangoAttrList *target) const
 

Private Attributes

PangoAttrList * attributes_
 

Detailed Description

Helper class to encapsulate the management of a PangoAttrList.

Definition at line 27 of file attributes.hpp.

Constructor & Destructor Documentation

◆ attribute_list() [1/3]

font::attribute_list::attribute_list ( )
inline

Definition at line 30 of file attributes.hpp.

◆ attribute_list() [2/3]

font::attribute_list::attribute_list ( attribute_list &&  o)
inline

Definition at line 35 of file attributes.hpp.

◆ ~attribute_list()

font::attribute_list::~attribute_list ( )
inline

Definition at line 40 of file attributes.hpp.

References attributes_.

◆ attribute_list() [3/3]

font::attribute_list::attribute_list ( const attribute_list )
delete

Member Function Documentation

◆ apply_to()

void font::attribute_list::apply_to ( PangoLayout *  layout) const
inline

Definition at line 66 of file attributes.hpp.

References attributes_, and draw_manager::layout().

Referenced by font::pango_text::apply_attributes().

◆ insert()

void font::attribute_list::insert ( PangoAttribute *  attr)
inline

Definition at line 56 of file attributes.hpp.

References attributes_.

◆ modify()

void font::attribute_list::modify ( PangoAttribute *  attr)
inline

Definition at line 61 of file attributes.hpp.

References attributes_.

◆ operator=() [1/2]

attribute_list& font::attribute_list::operator= ( attribute_list &&  o)
inline

Definition at line 50 of file attributes.hpp.

References attributes_.

◆ operator=() [2/2]

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

◆ splice_into()

void font::attribute_list::splice_into ( PangoAttrList *  target) const
inline

Definition at line 71 of file attributes.hpp.

References attributes_.

Referenced by font::pango_text::apply_attributes().

Member Data Documentation

◆ attributes_

PangoAttrList* font::attribute_list::attributes_
private

Definition at line 77 of file attributes.hpp.

Referenced by apply_to(), insert(), modify(), operator=(), splice_into(), and ~attribute_list().


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