Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
sp-tref.h File Reference

SVG <tref> implementation, see sp-tref.cpp. More...

Go to the source code of this file.

Classes

class  SPTRef
 

Functions

void sp_tref_update_text (SPTRef *tref)
 
bool sp_tref_reference_allowed (SPTRef *tref, SPObject *possible_ref)
 Returns true when the given tref is allowed to refer to a particular object.
 
bool sp_tref_fully_contained (SPObject *start_item, Glib::ustring::iterator &start, SPObject *end_item, Glib::ustring::iterator &end)
 Returns true if a tref is fully contained in the confines of the given iterators and layout (or if there is no tref).
 
SPObjectsp_tref_convert_to_tspan (SPObject *item)
 This function will create a new tspan element with the same attributes as the tref had and add the same text as a child.
 

Detailed Description

SVG <tref> implementation, see sp-tref.cpp.

This file was created based on skeleton.h

Definition in file sp-tref.h.

Function Documentation

◆ sp_tref_convert_to_tspan()

SPObject * sp_tref_convert_to_tspan ( SPObject obj)

◆ sp_tref_fully_contained()

bool sp_tref_fully_contained ( SPObject start_item,
Glib::ustring::iterator &  start,
SPObject end_item,
Glib::ustring::iterator &  end 
)

Returns true if a tref is fully contained in the confines of the given iterators and layout (or if there is no tref).

Definition at line 324 of file sp-tref.cpp.

References end, SPObject::parent, and start.

Referenced by sp_te_apply_style().

◆ sp_tref_reference_allowed()

bool sp_tref_reference_allowed ( SPTRef tref,
SPObject possible_ref 
)

Returns true when the given tref is allowed to refer to a particular object.

Definition at line 298 of file sp-tref.cpp.

References SPObject::parent.

Referenced by sp_tref_href_changed().

◆ sp_tref_update_text()