|
Ipelib
|
#include <ipeattributes.h>
Public Member Functions | |
| String | toString (int index) const |
| int | toIndex (String str) |
Static Public Member Functions | |
| static Repository * | get () |
| static void | cleanup () |
Repository of strings.
Ipe documents can use symbolic attributes, such as 'normal', 'fat', or 'thin' for line thickness, or 'red', 'navy', 'turquoise' for color, as well as absolute attributes such as "[3 1] 0" for a dash pattern. To avoid storing these common strings hundreds of times, Repository keeps a repository of strings. Inside an Object, strings are replaced by indices into the repository.
The Repository is a singleton object. It is created the first time it is used. You obtain access to the repository using ipe::Path::setAttribute().
If the symbolic attribute is not defined in the current style sheet, nothing is d490ae40111eb98bc075f463b8">iInPath, r5a169">imp;attr)