Inkscape
Vector Graphics Editor
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Concepts
SPMaskReference Class Reference

#include <sp-mask.h>

Inheritance diagram for SPMaskReference:
Inkscape::URIReference

Public Member Functions

 SPMaskReference (SPObject *obj)
 
SPMaskgetObject () const
 
- Public Member Functions inherited from Inkscape::URIReference
 URIReference (SPObject *owner)
 Constructor.
 
 URIReference (SPDocument *owner_document)
 
void operator= (URIReference const &ref)=delete
 
virtual ~URIReference ()
 Destructor.
 
void attach (URI const &uri)
 Attaches to a URI, relative to the specified document.
 
bool try_attach (char const *uri)
 Try to attach to a URI.
 
void detach ()
 Detaches from the currently attached URI target, if any; the current referrent is signaled as NULL.
 
SPObjectgetObject () const
 Returns a pointer to the current referrent of the attached URI, or NULL.
 
SPObjectgetOwner () const
 Returns a pointer to the URIReference's owner.
 
sigc::signal< void(SPObject *, SPObject *)> changedSignal ()
 Accessor for the referrent change notification signal; this signal is emitted whenever the URIReference's referrent changes.
 
URI const * getURI () const
 Returns a pointer to a URI containing the currently attached URI, or NULL if no URI is currently attached.
 
bool isAttached () const
 Returns true if there is currently an attached URI.
 
SPDocumentgetOwnerDocument ()
 
SPObjectgetOwnerObject ()
 

Public Attributes

sigc::connection modified_connection
 

Protected Member Functions

bool _acceptObject (SPObject *obj) const override
 If the owner element of this reference (the element with <... mask="...">) is a child of the mask it refers to, return false.
 

Detailed Description

Definition at line 76 of file sp-mask.h.

Constructor & Destructor Documentation

◆ SPMaskReference()

SPMaskReference::SPMaskReference ( SPObject obj)
inline

Definition at line 80 of file sp-mask.h.

Member Function Documentation

◆ _acceptObject()

bool SPMaskReference::_acceptObject ( SPObject obj) const
overrideprotectedvirtual

If the owner element of this reference (the element with <... mask="...">) is a child of the mask it refers to, return false.

Returns
false if obj is not a mask or if obj is a parent of this reference's owner element. True otherwise.

Reimplemented from Inkscape::URIReference.

Definition at line 265 of file sp-mask.cpp.

References Inkscape::URIReference::getOwner(), SPObject::getRepr(), and Inkscape::XML::Node::name().

◆ getObject()

SPMask * SPMaskReference::getObject ( ) const
inline

Definition at line 83 of file sp-mask.h.

Referenced by SPItem::getMaskObject().

Member Data Documentation

◆ modified_connection

sigc::connection SPMaskReference::modified_connection

Definition at line 88 of file sp-mask.h.

Referenced by SPItem::mask_ref_changed().


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