Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
IModelTree.hpp
Go to the documentation of this file.
1#ifndef LIBS_GUI_IMODELTREE_HPP_
2#define LIBS_GUI_IMODELTREE_HPP_
3
5
6class CTree;
7
14{
15public:
16 IModelTree() = default;
17 virtual ~IModelTree() = default;
18 IModelTree(const IModelTree &other) = delete;
19 IModelTree(IModelTree &&other) = delete;
20 IModelTree &operator=(const IModelTree &other) = delete;
21 IModelTree &operator=(IModelTree &&other) = delete;
22
23 [[nodiscard]] virtual uint64_t numRows() const = 0;
24 [[nodiscard]] virtual std::shared_ptr<CDataList> getDataCell(uint64_t indRow, uint64_t indColumn) const = 0;
25 [[nodiscard]] virtual uint64_t getParentRow(uint64_t indRow) const = 0;// must return 'indRow' if has no parent
26
27 virtual void addColumns(CTree *tree) = 0;
28
29 [[nodiscard]] virtual bool isCellActive(uint64_t indRow, uint64_t indCol) const
30 {
31 return true;
32 }
33
34 virtual bool hasForeground(uint64_t indRow, uint64_t indColumn, iv::types::color *rgbForeground) const
35 {
36 return false;
37 }
38
39 virtual bool hasBackground(uint64_t indRow, uint64_t indColumn, iv::types::color *rgbBackground) const
40 {
41 return false;
42 }
43};
44
45#endif /* LIBS_GUI_IMODELTREE_HPP_ */
Definition CTree.hpp:10
Definition IModelTree.hpp:14
virtual std::shared_ptr< CDataList > getDataCell(uint64_t indRow, uint64_t indColumn) const =0
virtual ~IModelTree()=default
IModelTree & operator=(IModelTree &&other)=delete
virtual bool isCellActive(uint64_t indRow, uint64_t indCol) const
Definition IModelTree.hpp:29
virtual bool hasBackground(uint64_t indRow, uint64_t indColumn, iv::types::color *rgbBackground) const
Definition IModelTree.hpp:39
IModelTree & operator=(const IModelTree &other)=delete
IModelTree(IModelTree &&other)=delete
IModelTree(const IModelTree &other)=delete
virtual uint64_t getParentRow(uint64_t indRow) const =0
virtual bool hasForeground(uint64_t indRow, uint64_t indColumn, iv::types::color *rgbForeground) const
Definition IModelTree.hpp:34
virtual uint64_t numRows() const =0
virtual void addColumns(CTree *tree)=0
IModelTree()=default
uint32_t color
Definition types.hpp:12