Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CGooCanvasItem.hpp
Go to the documentation of this file.
1#ifndef LIBS_GTK_CGOOCANVASITEM_HPP_
2#define LIBS_GTK_CGOOCANVASITEM_HPP_
3
4#include "third_party/goocanvas/goocanvasitem.h"
6
8{
9public:
10 explicit CGooCanvasItem(GooCanvasItem *gooCanvasItem);
11 CGooCanvasItem() = delete;
12 ~CGooCanvasItem() override = default;
13 CGooCanvasItem(const CGooCanvasItem &other) = delete;
14 CGooCanvasItem(CGooCanvasItem &&other) = delete;
15 CGooCanvasItem &operator=(const CGooCanvasItem &other) = delete;
17
18 // TODO: aag. revisar necesidad
19 // /*virtual */bool operator<(const CGooCanvasItem &other) const;
20
21 GooCanvasItem *getCanvasItem();
22
23private:
24 // GooCanvasItems will be added to a GooCanvas, which at the same time will be added to another Gtk container,
25 // thus the item will be freed with the destruction of its container. For that reason we cannot
26 // own the pointer with a unique_ptr for example or free it in this class' destructor.
27 GooCanvasItem *m_gooCanvasItem;
28};
29
30#endif /* LIBS_GTK_CGOOCANVASITEM_HPP_ */
Definition CGooCanvasItem.hpp:8
CGooCanvasItem & operator=(CGooCanvasItem &&other)=delete
CGooCanvasItem & operator=(const CGooCanvasItem &other)=delete
CGooCanvasItem(CGooCanvasItem &&other)=delete
CGooCanvasItem()=delete
CGooCanvasItem(const CGooCanvasItem &other)=delete
~CGooCanvasItem() override=default
GooCanvasItem * m_gooCanvasItem
Definition CGooCanvasItem.hpp:27
GooCanvasItem * getCanvasItem()
Definition CGooCanvasItem.cpp:21
Definition ICanvasItem.hpp:5