Ipelib
Public Member Functions | Public Attributes | List of all members
ipe::AttributeMap Class Reference

#include <ipeattributes.h>

Public Member Functions

int count () const noexcept
 
Attribute map (Kind kind, Attribute sym) const
 
void saveAsXml (Stream &stream) const
 
void add (const AttributeMapping &map)
 

Public Attributes

std::vector< AttributeMappingiMap
 

Member Function Documentation

◆ count()

int ipe::AttributeMap::count ( ) const
inlinenoexcept

References iMap.

Referenced by ipe::Page::saveAsXml().

◆ map()

Attribute AttributeMap::map ( Kind  kind,
Attribute  sym 
) const

Map the given symbolic attribute sym. Returns sym if there is no mapping.

References iMap.

Referenced by add(), ipe::Painter::doDrawSymbol(), ipe::PdfPainter::doDrawSymbol(), and ipe::Painter::lookup().

◆ saveAsXml()

void AttributeMap::saveAsXml ( Stream stream) const

◆ add()

void AttributeMap::add ( const AttributeMapping map)

Add a mapping.

References iMap, and map().

Referenced by ipe::ImlParser::parseView().

Member Data Documentation

◆ iMap

std::vector<AttributeMapping> ipe::AttributeMap::iMap

Referenced by add(), count(), map(), and saveAsXml().


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