Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::LivePathEffect::EnumEffectDataConverter< E > Class Template Reference

Simplified management of enumerations of LPE items with UI labels. More...

#include <effect-enum.h>

Public Types

typedef EnumEffectData< EData
 

Public Member Functions

 EnumEffectDataConverter (const EnumEffectData< E > *cd, const unsigned int length)
 
E get_id_from_label (const Glib::ustring &label) const
 
E get_id_from_key (const Glib::ustring &key) const
 
bool is_valid_key (const Glib::ustring &key) const
 
bool is_valid_id (const E id) const
 
const Glib::ustring & get_label (const E id) const
 
const Glib::ustring & get_key (const E id) const
 
const Glib::ustring & get_icon (const E id) const
 
const Glib::ustring & get_description (const E id) const
 
LPECategory get_category (const E id) const
 
bool get_on_path (const E id) const
 
bool get_on_shape (const E id) const
 
bool get_on_group (const E id) const
 
bool get_on_image (const E id) const
 
bool get_on_text (const E id) const
 
bool get_experimental (const E id) const
 
const EnumEffectData< E > & data (const unsigned int i) const
 

Public Attributes

const unsigned int _length
 

Private Attributes

const EnumEffectData< E > * _data
 

Detailed Description

template<typename E>
class Inkscape::LivePathEffect::EnumEffectDataConverter< E >

Simplified management of enumerations of LPE items with UI labels.

Note
that get_id_from_key and get_id_from_label return 0 if it cannot find an entry for that key string.
that get_label and get_key return an empty string when the requested id is not in the list.

Definition at line 142 of file effect-enum.h.

Member Typedef Documentation

◆ Data

template<typename E >
typedef EnumEffectData<E> Inkscape::LivePathEffect::EnumEffectDataConverter< E >::Data

Definition at line 144 of file effect-enum.h.

Constructor & Destructor Documentation

◆ EnumEffectDataConverter()

template<typename E >
Inkscape::LivePathEffect::EnumEffectDataConverter< E >::EnumEffectDataConverter ( const EnumEffectData< E > *  cd,
const unsigned int  length 
)
inline

Definition at line 146 of file effect-enum.h.

Member Function Documentation

◆ data()

template<typename E >
const EnumEffectData< E > & Inkscape::LivePathEffect::EnumEffectDataConverter< E >::data ( const unsigned int  i) const
inline

◆ get_category()

◆ get_description()

◆ get_experimental()

◆ get_icon()

◆ get_id_from_key()

template<typename E >
E Inkscape::LivePathEffect::EnumEffectDataConverter< E >::get_id_from_key ( const Glib::ustring &  key) const
inline

◆ get_id_from_label()

template<typename E >
E Inkscape::LivePathEffect::EnumEffectDataConverter< E >::get_id_from_label ( const Glib::ustring &  label) const
inline

◆ get_key()

◆ get_label()

◆ get_on_group()

◆ get_on_image()

◆ get_on_path()

◆ get_on_shape()

◆ get_on_text()

◆ is_valid_id()

◆ is_valid_key()

template<typename E >
bool Inkscape::LivePathEffect::EnumEffectDataConverter< E >::is_valid_key ( const Glib::ustring &  key) const
inline

Member Data Documentation

◆ _data

◆ _length


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