Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::XML::EventAdd Class Reference

Object representing child addition. More...

#include <event.h>

Inheritance diagram for Inkscape::XML::EventAdd:
Inkscape::XML::Event Inkscape::GC::Managed< Inkscape::GC::SCANNED, Inkscape::GC::MANUAL >

Public Member Functions

 EventAdd (Node *repr, Node *c, Node *rr, Event *next)
 
- Public Member Functions inherited from Inkscape::XML::Event
virtual ~Event ()=default
 
EventoptimizeOne ()
 If possible, combine this event with the next to reduce memory use.
 
void undoOne (NodeObserver &observer) const
 Undo this event to an observer.
 
void replayOne (NodeObserver &observer) const
 Replay this event to an observer.
 
- Public Member Functions inherited from Inkscape::GC::Managed< Inkscape::GC::SCANNED, Inkscape::GC::MANUAL >
void * operator new (std::size_t size, ScanPolicy scan=default_scan, CollectionPolicy collect=default_collect)
 
void * operator new[] (std::size_t size, ScanPolicy scan=default_scan, CollectionPolicy collect=default_collect)
 
void operator delete (void *p)
 

Public Attributes

Nodechild
 The added child node.
 
Noderef
 The node after which the child has been added, or NULL if it was added as first.
 
- Public Attributes inherited from Inkscape::XML::Event
Eventnext
 Pointer to the next event in the event chain.
 
int serial
 Serial number of the event, not used at the moment.
 
Noderepr
 Pointer to the node that was the object of the event.
 

Private Member Functions

Event_optimizeOne () override
 
void _undoOne (NodeObserver &observer) const override
 
void _replayOne (NodeObserver &observer) const override
 

Additional Inherited Members

- Public Types inherited from Inkscape::XML::Event
typedef Inkscape::Util::ForwardPointerIterator< Event, IteratorStrategyIterator
 
typedef Inkscape::Util::ForwardPointerIterator< Event const, IteratorStrategyConstIterator
 
- Protected Member Functions inherited from Inkscape::XML::Event
 Event (Node *r, Event *n)
 

Detailed Description

Object representing child addition.

Definition at line 124 of file event.h.

Constructor & Destructor Documentation

◆ EventAdd()

Inkscape::XML::EventAdd::EventAdd ( Node repr,
Node c,
Node rr,
Event next 
)
inline

Definition at line 126 of file event.h.

Member Function Documentation

◆ _optimizeOne()

Inkscape::XML::Event * Inkscape::XML::EventAdd::_optimizeOne ( )
overrideprivatevirtual

Implements Inkscape::XML::Event.

Definition at line 335 of file event.cpp.

◆ _replayOne()

void Inkscape::XML::EventAdd::_replayOne ( NodeObserver observer) const
overrideprivatevirtual

Implements Inkscape::XML::Event.

Definition at line 222 of file event.cpp.

References Inkscape::XML::NodeObserver::notifyChildAdded(), and observer.

◆ _undoOne()

void Inkscape::XML::EventAdd::_undoOne ( NodeObserver observer) const
overrideprivatevirtual

Implements Inkscape::XML::Event.

Definition at line 154 of file event.cpp.

References observer, and Inkscape::XML::Event::repr.

Member Data Documentation

◆ child

Node* Inkscape::XML::EventAdd::child

The added child node.

Definition at line 130 of file event.h.

◆ ref

Node* Inkscape::XML::EventAdd::ref

The node after which the child has been added, or NULL if it was added as first.

Definition at line 132 of file event.h.


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