Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
canvas-item-ptr.h File Reference

Go to the source code of this file.

Classes

struct  CanvasItemUnlinkDeleter
 Deleter object which calls the unlink() method of CanvasItem. More...
 

Namespaces

namespace  Inkscape
 Helper class to stream background task notifications as a series of messages.
 

Typedefs

template<typename T >
using CanvasItemPtr = std::unique_ptr< T, CanvasItemUnlinkDeleter >
 Smart pointer used to hold CanvasItems, like std::unique_ptr.
 

Functions

template<typename T , typename... Args>
auto make_canvasitem (Args &&... args)
 Convienence function to create a CanvasItemPtr, like std::make_unique.
 

Typedef Documentation

◆ CanvasItemPtr

template<typename T >
using CanvasItemPtr = std::unique_ptr<T, CanvasItemUnlinkDeleter>

Smart pointer used to hold CanvasItems, like std::unique_ptr.

Definition at line 27 of file canvas-item-ptr.h.

Function Documentation

◆ make_canvasitem()

template<typename T , typename... Args>
auto make_canvasitem ( Args &&...  args)

Convienence function to create a CanvasItemPtr, like std::make_unique.

Definition at line 31 of file canvas-item-ptr.h.