Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
SPIShapes Class Reference

Shapes type internal to SPStyle. More...

#include <style-internal.h>

Inheritance diagram for SPIShapes:
SPIString SPIBase TypedSPI< SPAttr::SHAPE_INSIDE, SPIShapes > TypedSPI< SPAttr::SHAPE_SUBTRACT, SPIShapes >

Public Member Functions

 ~SPIShapes () override
 
 SPIShapes ()
 
 SPIShapes (const SPIShapes &)=delete
 
void read (gchar const *str) override
 
void clear () override
 
bool containsAnyShape (Inkscape::ObjectSet *set)
 Check if a Shape object exists in the selection Needed for when user selects multiple objects and.
 
- Public Member Functions inherited from SPIString
 SPIString (bool inherits=true)
 
 SPIString (const SPIString &rhs)
 
 ~SPIString () override
 
void read (gchar const *str) override
 
const Glib::ustring get_value () const override
 Value as it should be written to CSS representation, including quotes if needed.
 
void clear () override
 
void cascade (const SPIBase *const parent) override
 
void merge (const SPIBase *const parent) override
 
SPIStringoperator= (const SPIString &rhs)
 
bool equals (const SPIBase &rhs) const override
 
char const * value () const
 Get value if set, or inherited value, or default value (may be NULL)
 
- Public Member Functions inherited from SPIBase
 SPIBase (bool inherits_=true)
 
virtual ~SPIBase ()=default
 
void readIfUnset (gchar const *str, SPStyleSrc source=SPStyleSrc::STYLE_PROP)
 
void readAttribute (Inkscape::XML::Node *repr)
 
bool shall_write (guint const flags=SP_STYLE_FLAG_IFSET, SPStyleSrc const &style_src_req=SPStyleSrc::STYLE_PROP, SPIBase const *const base=nullptr) const
 Check if this property should be written.
 
virtual const Glib::ustring write (guint const flags=SP_STYLE_FLAG_IFSET, SPStyleSrc const &style_src_req=SPStyleSrc::STYLE_PROP, SPIBase const *const base=nullptr) const
 Compile this style conditionally into a 'name: value' string suitable for css attrs.
 
void overwrite (const SPIBase *const other)
 
void setStylePointer (SPStyle *style_in)
 
SPIBaseoperator= (const SPIBase &rhs)=default
 
bool operator== (const SPIBase &rhs) const
 
virtual SPAttr id () const
 
Glib::ustring const & name () const
 

Public Attributes

std::vector< SPShapeReference * > hrefs
 
- Public Attributes inherited from SPIBase
bool inherits: 1
 
bool set: 1
 
bool inherit: 1
 
bool important: 1
 
SPStyleSrc style_src
 

Private Member Functions

void hrefs_clear ()
 

Additional Inherited Members

- Protected Member Functions inherited from SPIBase
char const * important_str () const
 
- Protected Attributes inherited from SPIBase
SPStylestyle
 

Detailed Description

Shapes type internal to SPStyle.

Definition at line 658 of file style-internal.h.

Constructor & Destructor Documentation

◆ ~SPIShapes()

SPIShapes::~SPIShapes ( )
override

Definition at line 1361 of file style-internal.cpp.

References hrefs_clear().

◆ SPIShapes() [1/2]

SPIShapes::SPIShapes ( )

Definition at line 1365 of file style-internal.cpp.

◆ SPIShapes() [2/2]

SPIShapes::SPIShapes ( const SPIShapes )
delete

Member Function Documentation

◆ clear()

void SPIShapes::clear ( )
overridevirtual

Reimplemented from SPIBase.

Definition at line 1436 of file style-internal.cpp.

References SPIBase::clear(), and hrefs_clear().

◆ containsAnyShape()

bool SPIShapes::containsAnyShape ( Inkscape::ObjectSet set)

Check if a Shape object exists in the selection Needed for when user selects multiple objects and.

  • transforms them all simultaneously ie. Flowed text and a Rectangle (See issue 1029)
Parameters
theObjectSet to search
Returns
true if found, else false

Definition at line 1379 of file style-internal.cpp.

References hrefs, ref, and SPIBase::set.

◆ hrefs_clear()

void SPIShapes::hrefs_clear ( )
private

Definition at line 1443 of file style-internal.cpp.

References hrefs.

Referenced by clear(), and ~SPIShapes().

◆ read()

void SPIShapes::read ( gchar const *  str)
overridevirtual

Member Data Documentation

◆ hrefs

std::vector<SPShapeReference *> SPIShapes::hrefs

Definition at line 670 of file style-internal.h.

Referenced by containsAnyShape(), find_references(), hrefs_clear(), and read().


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