wxShapeFramework  1.13.0 beta
wxSFCanvasState Class Reference

Class which stores one saved state of the shape canvas. The instaces of this class are managed by the wxSFCanvasHistory class which performs all related Undo/Redo operations. More...

#include <CanvasState.h>

Inheritance diagram for wxSFCanvasState:
Collaboration diagram for wxSFCanvasState:

Public Member Functions

 wxSFCanvasState (wxStreamBuffer *data)
 Constructor for 'histUSE_SERIALIZATION' mode. More...
 
 wxSFCanvasState (wxSFDiagramManager *data)
 Constructor for 'histUSE_CLONING' mode. More...
 
 ~wxSFCanvasState (void)
 Destructor. More...
 

Protected Member Functions

void Restore (wxSFShapeCanvas *canvas)
 Restore stored canvas state. More...
 

Protected Attributes

wxMemoryBuffer m_dataBuffer
 Memory buffer used during the serialization/deserialization operations. More...
 
wxSFDiagramManagerm_pDataManager
 Data manager used for storing of temporal canvas state. More...
 

Friends

class wxSFCanvasHistory
 

Detailed Description

Class which stores one saved state of the shape canvas. The instaces of this class are managed by the wxSFCanvasHistory class which performs all related Undo/Redo operations.

See also
wxSFShapeCanvas

Constructor & Destructor Documentation

◆ wxSFCanvasState() [1/2]

wxSFCanvasState::wxSFCanvasState ( wxStreamBuffer *  data)

Constructor for 'histUSE_SERIALIZATION' mode.

Parameters
dataPointer to the stream buffer containig serialized content of the shape canvas

◆ wxSFCanvasState() [2/2]

wxSFCanvasState::wxSFCanvasState ( wxSFDiagramManager data)

Constructor for 'histUSE_CLONING' mode.

Parameters
dataPointer to temporal data manager

◆ ~wxSFCanvasState()

wxSFCanvasState::~wxSFCanvasState ( void  )

Destructor.

Member Function Documentation

◆ Restore()

void wxSFCanvasState::Restore ( wxSFShapeCanvas canvas)
protected

Restore stored canvas state.

Parameters
canvasPointer to the shape canvas which content will be replaced by the stored one

Friends And Related Function Documentation

◆ wxSFCanvasHistory

friend class wxSFCanvasHistory
friend

Member Data Documentation

◆ m_dataBuffer

wxMemoryBuffer wxSFCanvasState::m_dataBuffer
protected

Memory buffer used during the serialization/deserialization operations.

◆ m_pDataManager

wxSFDiagramManager* wxSFCanvasState::m_pDataManager
protected

Data manager used for storing of temporal canvas state.


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