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

Object representing child order change. More...

#include <event.h>

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

Public Member Functions

 EventChgOrder (Node *repr, Node *c, Node *orr, Node *nrr, 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 node that was relocated in sibling order.
 
Nodeoldref
 The node after which the relocated node was in the sibling order before the change, or NULL if it was first.
 
Nodenewref
 The node after which the relocated node is after the change, or if it's 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 order change.

Definition at line 209 of file event.h.

Constructor & Destructor Documentation

◆ EventChgOrder()

Inkscape::XML::EventChgOrder::EventChgOrder ( Node repr,
Node c,
Node orr,
Node nrr,
Event next 
)
inline

Definition at line 211 of file event.h.

Member Function Documentation

◆ _optimizeOne()

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

Implements Inkscape::XML::Event.

Definition at line 381 of file event.cpp.

References child, Inkscape::XML::Event::next, oldref, and Inkscape::XML::Event::repr.

◆ _replayOne()

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

Implements Inkscape::XML::Event.

Definition at line 246 of file event.cpp.

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

◆ _undoOne()

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

Implements Inkscape::XML::Event.

Definition at line 178 of file event.cpp.

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

Member Data Documentation

◆ child

Node* Inkscape::XML::EventChgOrder::child

The node that was relocated in sibling order.

Definition at line 216 of file event.h.

Referenced by _optimizeOne().

◆ newref

Node* Inkscape::XML::EventChgOrder::newref

The node after which the relocated node is after the change, or if it's first.

Definition at line 220 of file event.h.

◆ oldref

Node* Inkscape::XML::EventChgOrder::oldref

The node after which the relocated node was in the sibling order before the change, or NULL if it was first.

Definition at line 218 of file event.h.

Referenced by _optimizeOne().


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