Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <AbstractCanvasItem.hpp>
Public Types | |
enum class | EMarkMode { None , Selected } |
enum class | EStandOutMode { Highlighted , Warning , None } |
typedef uint32_t | TId |
typedef std::pair< double, double > | TPosition2d |
typedef uint32_t | TIndex |
typedef std::tuple< EMarkMode, EStandOutMode > | TTupleDrawingMode |
Static Public Attributes | |
static const TId | kInvalidCanvasItemId = 0 |
static const TId | kStartingCanvasItemId = 1 |
static const TPosition2d | kZeroPosition = {0., 0.} |
Private Attributes | |
TId | m_id |
TPosition2d | m_globalPosition2d |
TTupleDrawingMode | m_currentDrawingMode |
bool | m_redrawFlag |
ICanvasItem * | m_canvasItem |
std::vector< std::unique_ptr< IListenerCanvasItemClick > > | m_listenersItemClick |
std::vector< std::unique_ptr< IListenerCanvasItemMove > > | m_listenersItemMove |
std::vector< std::unique_ptr< IListenerCanvasItemEnter > > | m_listenersItemEnter |
std::vector< std::unique_ptr< IListenerCanvasItemLeave > > | m_listenersItemLeave |
An item can be composed of different parts: a main shape, a text, a subtext, ... Each part will have an index, having the main shape index 0, the main text index 1, etc.
uint32_t AbstractCanvasItem::TId |
uint32_t AbstractCanvasItem::TIndex |
std::pair<double, double> AbstractCanvasItem::TPosition2d |
std::tuple<EMarkMode, EStandOutMode> AbstractCanvasItem::TTupleDrawingMode |
|
strong |
|
strong |
AbstractCanvasItem::AbstractCanvasItem | ( | ) |
|
explicit |
|
virtual |
|
delete |
|
delete |
void AbstractCanvasItem::addListenerClick | ( | std::unique_ptr< IListenerCanvasItemClick > | listener | ) |
void AbstractCanvasItem::addListenerEnter | ( | std::unique_ptr< IListenerCanvasItemEnter > | listener | ) |
void AbstractCanvasItem::addListenerLeave | ( | std::unique_ptr< IListenerCanvasItemLeave > | listener | ) |
void AbstractCanvasItem::addListenerMove | ( | std::unique_ptr< IListenerCanvasItemMove > | listener | ) |
ICanvasItem * AbstractCanvasItem::getCanvasItem | ( | ) |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
pure virtual |
Implemented in AbstractLogicsElement, CLogicsComponent, and CLogicsConnectionPoint.
|
nodiscard |
|
delete |
|
delete |
|
pure virtual |
Implemented in AbstractLogicsElement, CLogicsComponent, CLogicsComponentChannel, CLogicsComponentConstant, CLogicsComponentExec, CLogicsComponentLabel, CLogicsComponentLibrary, CLogicsComponentLibraryInOutBlock, CLogicsComponentOthers, CLogicsConnection, CLogicsConnectionPoint, iv::logic::component::LogicRectangle, iv::logic::component::LogicText, and LogicComponentBroadCastChannel.
|
pure virtual |
Implemented in AbstractLogicsElement, CLogicsComponent, CLogicsConnection, and CLogicsConnectionPoint.
void AbstractCanvasItem::runListenersClick | ( | CEventCanvasButton * | evtCanvasButton | ) |
void AbstractCanvasItem::runListenersEnter | ( | ) |
void AbstractCanvasItem::runListenersLeave | ( | ) |
void AbstractCanvasItem::runListenersMove | ( | CEventCanvasButton * | evtCanvasButton | ) |
|
pure virtual |
Implemented in AbstractLogicsElement, CLogicsComponent, CLogicsComponentChannel, CLogicsComponentConstant, CLogicsComponentExec, CLogicsComponentLabel, CLogicsComponentLibrary, CLogicsComponentLibraryInOutBlock, CLogicsComponentOthers, CLogicsConnection, CLogicsConnectionPoint, iv::logic::component::LogicRectangle, iv::logic::component::LogicText, and LogicComponentBroadCastChannel.
void AbstractCanvasItem::setCanvasItem | ( | ICanvasItem * | canvasItem | ) |
void AbstractCanvasItem::setCurrentMarkMode | ( | EMarkMode | markMode | ) |
void AbstractCanvasItem::setCurrentStandoutMode | ( | EStandOutMode | standoutMode | ) |
void AbstractCanvasItem::setGlobalPosition2d | ( | const TPosition2d & | position2d | ) |
void AbstractCanvasItem::setId | ( | TId | id | ) |
void AbstractCanvasItem::setRedrawFlag | ( | bool | redraw | ) |
|
pure virtual |
Implemented in AbstractLogicsElement, CLogicsComponent, and CLogicsConnectionPoint.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |