Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

SPItem Class Reference

#include <sp-item.h>

Inheritance diagram for SPItem:

SPObject SPRoot SPOffset SPSpiral

List of all members.


Detailed Description

Abstract base class for all visible shapes.

SPItem is an abstract base class for all graphic (visible) SVG nodes. It is a subclass of SPObject, with great deal of specific functionality.

Definition at line 91 of file sp-item.h.


Public Types

enum  CollectionPolicy { COLLECT_WITH_PARENT, ALWAYS_COLLECT }
typedef
Inkscape::Util::ForwardPointerIterator
< SPObject const,
ParentIteratorStrategy
ConstParentIterator
typedef
Inkscape::Util::ForwardPointerIterator
< SPObject const,
SiblingIteratorStrategy
ConstSiblingIterator
typedef
Inkscape::Util::ForwardPointerIterator
< SPObject,
ParentIteratorStrategy
ParentIterator
typedef
Inkscape::Util::ForwardPointerIterator
< SPObject,
SiblingIteratorStrategy
SiblingIterator

Public Member Functions

void _requireSVGVersion (Inkscape::Version version)
void _requireSVGVersion (unsigned major, unsigned minor)
void _sendDeleteSignalRecursive ()
void _updateTotalHRefCount (int increment)
SPObjectappendChildRepr (Inkscape::XML::Node *repr)
CollectionPolicy collectionPolicy () const
 Set the policy under which this object will be orphan-collected.
void collectOrphan ()
 Unconditionally delete the object if it is not referenced.
sigc::connection connectDelete (sigc::slot< void, SPObject * > slot)
 Connects a slot to be called when an object is deleted.
sigc::connection connectPositionChanged (sigc::slot< void, SPObject * > slot)
sigc::connection connectTransformed (sigc::slot< void, NR::Matrix const *, SPItem * > slot)
gchar const * defaultLabel () const
 Returns a default label for this object.
void deleteObject (bool propagate=true)
 Deletes on object.
void deleteObject (bool propagate, bool propagate_descendants)
 Deletes an object.
gchar const * desc () const
void emitModified (unsigned int flags)
 Emits a modification notification signal.
SPObject const * firstChild () const
SPObjectfirstChild ()
NR::Point getCenter ()
NR::Matrix getRelativeTransform (SPObject const *obj) const
bool hasChildren () const
void init ()
NR::Rect invokeBbox (NR::Matrix const &transform) const
bool isAncestorOf (SPObject const *object) const
bool isCenterSet ()
bool isEvaluated () const
bool isExplicitlyHidden () const
bool isHidden (unsigned display_key) const
bool isHidden () const
bool isLocked () const
bool isReferenced ()
 Check if object is referenced by any other object.
bool isSiblingOf (SPObject const *object) const
bool isVisibleAndUnlocked (unsigned display_key) const
bool isVisibleAndUnlocked () const
gchar const * label () const
 Gets the author-visible label for this object.
SPObject const * lastChild () const
SPObjectlastChild ()
void lowerOne ()
void lowerToBottom ()
SPObject const * nearestCommonAncestor (SPObject const *object) const
void raiseOne ()
void raiseToTop ()
void requestDisplayUpdate (unsigned int flags)
 Queues an deferred update of this object's display.
void requestModified (unsigned int flags)
 Requests that a modification notification signal be emitted later (e.g. during the idle loop).
void requestOrphanCollection ()
 Requests a later automatic call to collectOrphan().
void resetEvaluated ()
void setCenter (NR::Point object_centre)
void setCollectionPolicy (CollectionPolicy policy)
 Sets the orphan-collection policy in effect for this object.
void setDesc (gchar const *desc)
void setEvaluated (bool visible)
void setExplicitlyHidden (bool val)
void setHidden (bool hidden)
void setLabel (gchar const *label)
 Sets the author-visible label for this object.
void setLocked (bool lock)
void setSuccessor (SPObject *successor)
 Indicates that another object supercedes this one.
void setTitle (gchar const *title)
SPObjectsuccessor ()
 Returns the object which supercedes this one (if any).
gchar const * title () const
void unsetCenter ()
void updateDisplay (SPCtx *ctx, unsigned int flags)
 Updates the object's display immediately.
Inkscape::XML::NodeupdateRepr (Inkscape::XML::Node *repr, unsigned int flags)
 Updates the given repr based on the object's state.
Inkscape::XML::NodeupdateRepr (unsigned int flags=SP_OBJECT_WRITE_EXT)
 Updates the object's repr based on the object's state.

Public Attributes

CollectionPolicy _collection_policy
gchar * _default_label
sigc::signal< void, SPObject * > _delete_signal
gchar * _label
SPObject_last_child
sigc::signal< void, SPObject * > _position_changed_signal
SPObject_successor
unsigned int _total_hrefcount
sigc::signal< void, NR::Matrix
const *, SPItem * > 
_transformed_signal
SPAvoidRef * avoidRef
SPObjectchildren
SPClipPathReference * clip_ref
unsigned int cloned: 1
std::vector< SPGuideConstraint > constraints
SPItemViewdisplay
SPDocumentdocument
unsigned int hrefcount
gchar * id
SPMaskReference * mask_ref
unsigned int mflags: 8
SPObjectnext
SPObjectparent
Inkscape::XML::Noderepr
unsigned int sensitive: 1
unsigned int stop_paint: 1
SPStylestyle
NR::Matrix transform
double transform_center_x
double transform_center_y
unsigned int uflags: 8
SPIXmlSpace xml_space

Private Types

enum  EvaluatedStatus { StatusUnknown, StatusCalculated, StatusSet }

Private Attributes

EvaluatedStatus _evaluated_status
bool _is_evaluated

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

Generated by  Doxygen 1.6.0   Back to index