Ipelib
Classes | Typedefs | Enumerations | Variables

Ipe Attributes

Attributes for Ipe objects. More...

Classes

Typedefs

Enumerations

Variables


Detailed Description

Attributes for Ipe objects.

Ipe objects have attributes such as color, line width, dash pattern, etc. Most attributes can be symbolic (the need to be looked up in a style sheet before rendering) or absolute.

The Color class represents absolute values of colors. The class Attribute encapsulates all attributes that can be either symbolic or absolute.

The Lua bindings for attributes are described here.


Typedef Documentation

A sequence of attribute values.


Enumeration Type Documentation

enum ipe::Kind

The different kinds of attributes.The same symbolic attribute (say "normal") has a different value in the StyleSheet depending on the Kind of attribute. The main use for Kind is as an argument to StyleSheet::find.

ESymbol, EGradient, ETiling, and EEffect have their own lookup methods in the StyleSheet. The values are still useful as an argument to allNames(), has(), and findDefinition().

Enumerator:
EPen 
ESymbolSize 
EArrowSize 
EColor 
EDashStyle 
ETextSize 
ETextStretch 
ETextStyle 
EGridSize 
EAngleSize 
EOpacity 
ETiling 
ESymbol 
EGradient 
EEffect 

A Property identifies an attribute that an object can have.The Property identifies a unique attribute of an object, while different Property values can be of the same ipe::Kind. For instance, both EPropStrokeColor and EPropFillColor identify an Attribute of Kind EColor.

Enumerator:
EPropPen 
EPropSymbolSize 
EPropFArrow 
EPropRArrow 
EPropFArrowSize 
EPropRArrowSize 
EPropFArrowShape 
EPropRArrowShape 
EPropStrokeColor 
EPropFillColor 
EPropMarkShape 
EPropPathMode 
EPropDashStyle 
EPropTextSize 
EPropTextStyle 
EPropOpacity 
EPropTiling 
EPropGradient 
EPropHorizontalAlignment 
EPropVerticalAlignment 
EPropLineJoin 
EPropLineCap 
EPropFillRule 
EPropPinned 
EPropTransformations 
EPropTransformableText 
EPropMinipage 
EPropWidth 

Path mode (stroked, filled, or both).

Enumerator:
EStrokedOnly 
EStrokedAndFilled 
EFilledOnly 

Horizontal alignment.

Enumerator:
EAlignLeft 
EAlignRight 
EAlignHCenter 

Vertical alignment.

Enumerator:
EAlignBottom 
EAlignBaseline 
EAlignTop 
EAlignVCenter 

Line join style.

The EDefaultJoin means to use the setting from the style sheet.

Enumerator:
EDefaultJoin 
EMiterJoin 
ERoundJoin 
EBevelJoin 

Line cap style.

The EDefaultCap means to use the setting from the style sheet.

Enumerator:
EDefaultCap 
EButtCap 
ERoundCap 
ESquareCap 

Fill rule.

The EDefaultRule means to use the setting from the style sheet.

Enumerator:
EDefaultRule 
EWindRule 
EEvenOddRule 

Pinning status of objects.

Enumerator:
ENoPin 
EHorizontalPin 
EVerticalPin 
EFixedPin 

Transformations that are permitted for an object.

Enumerator:
ETransformationsTranslations 
ETransformationsRigidMotions 
ETransformationsAffine 

Selection status of an object on the page.

Enumerator:
ENotSelected 
EPrimarySelected 
ESecondarySelected 

Variable Documentation

const char *const ipe::kind_names
Initial value:
 {
    "pen", "symbolsize", "arrowsize", "color",
    "dashstyle", "textsize", "textstretch", "textstyle",
    "gridsize", "anglesize", "opacity", "tiling", 
    "symbol", "gradient", "effect", 0 }
const char *const ipe::property_names
Initial value:
 {
    "pen", "symbolsize", 
    "farrow", "rarrow", 
    "farrowsize", "rarrowsize", 
    "farrowshape", "rarrowshape", 
    "stroke", "fill", "markshape", 
    "pathmode", "dashstyle", 
    "textsize", "textstyle", 
    "opacity", "tiling", "gradient", 
    "horizontalalignment", "verticalalignment",
    "linejoin", "linecap", "fillrule", 
    "pinned", "transformations", "transformabletext", 
    "minipage", "width", 0 }