Skip to content

Workspace::CorePin

#include "GUI/Workspace/Nodes/Basic/CorePins.h"

Inherits from DIWNE::Pin, DIWNE::DiwneObject, std::enable_shared_from_this< DiwneObject >

Inherited by Workspace::CoreInPin, Workspace::CoreOutPin

Public Functions

Name
CorePin(DIWNE::Diwne & diwne, DIWNE::ID const id, Core::Pin const & pin, CoreNode & node)
virtual boolbypassFocusForInteractionAction() override
virtual boolcontent() override<br>Draw the pin icon.
Core::Pin const &getCorePin() const
intgetIndex() const
PinKindgetKind() const
CoreNode &getNode()
const CoreNode &getNode() const
Core::EValueTypegetType() const
boolisConnected() const
virtual voidpopupContent() override<br>Content of popup menu raise on this object.
virtual boolprocessConnectionPrepared() override
virtual boolprocessDrag() override

Public Attributes

Name
DIWNE::IconTypem_iconType

Protected Attributes

Name
ImRectm_iconRectDiwne
CoreNode &m_node
Core::Pin const &m_pin

Additional inherited members

Public Functions inherited from DIWNE::Pin

Name
Pin(DIWNE::Diwne & diwne, DIWNE::ID id, std::string const labelDiwne ="DiwnePin")<br>Default constructor.
virtual~Pin()<br>Default destructor.
virtual boolallowProcessPin_Pre_ConnectLink()
virtual voidbegin() override
virtual boolbypassPinLinkConnectionPreparedAction()
virtual voidend() override
virtual DIWNE::DiwneActiongetDragActionType() const
virtual DIWNE::DiwneActiongetHoldActionType() const
DIWNE::ID constgetId() const
virtual const ImVec2 &getLinkConnectionPointDiwne()
virtual ImRectgetRectDiwne() const override
virtual DIWNE::DiwneActiongetTouchActionType() const
virtual boolprocessInteractionsAlways() override
virtual boolprocessPin_Pre_ConnectLinkDiwne()<br>Wrapper is run when new link is created and goal pin is hovered but action not released yet.
virtual voidsetConnectionPointDiwne(const ImVec2 value)
virtual voidupdateSizes() override

Protected Functions inherited from DIWNE::Pin

Name
virtual voidupdateConnectionPointDiwne()

Protected Attributes inherited from DIWNE::Pin

Name
ImVec2m_connectionPointDiwne
ImRectm_pinRectDiwne <br>PIN bounding rectangle.

Public Functions inherited from DIWNE::DiwneObject

Name
DiwneObject(DIWNE::Diwne & diwne, DIWNE::ID id, std::string const labelDiwne)<br>Constructor.
virtual~DiwneObject() =default
virtual boolafterContent()
virtual boolafterContentDiwne()
virtual boolafterEnd()
virtual boolafterEndDiwne()
virtual boolallowDrawing()<br>Decision maker whether object should be drawn (not outside of window for example)
virtual boolallowInteraction()<br>Decision maker whether object can interact (not include content elements)
virtual boolallowProcessDrag()
virtual boolallowProcessFocused()
virtual boolallowProcessFocusedForInteraction()
virtual boolallowProcessHold()
virtual boolallowProcessRaisePopup()
virtual boolallowProcessSelect()
virtual boolallowProcessUnhold()
virtual boolallowProcessUnselect()
virtual boolbeforeBegin()
virtual boolbeforeBeginDiwne()
virtual boolbeforeContent()
virtual boolbeforeContentDiwne()
virtual voidbegin() =0
virtual boolbypassDragAction()
virtual boolbypassFocusAction()
virtual boolbypassHoldAction()
virtual boolbypassRaisePopupAction()
virtual boolbypassSelectAction()
virtual boolbypassTouchAction()
virtual boolbypassUnholdAction()
virtual boolbypassUnselectAction()
virtual boolcontentDiwne()
virtual booldrawDiwne(DrawMode drawMode =DrawMode::Interacting)<br>Main function for drawing object and deal with interactions.
virtual voidend() =0
virtual boolfinalize()
virtual boolfinalizeDiwne()
virtual DIWNE::DiwneActiongetDragActionType() const =0
virtual DIWNE::DiwneActiongetHoldActionType() const =0
DIWNE::ID constgetIdDiwne() const
virtual ImRectgetRectDiwne() const =0
virtual boolgetSelectable()
virtual boolgetSelected() const<br>Getter of selection state.
virtual DIWNE::DiwneActiongetTouchActionType() const =0
virtual boolinitialize()
virtual boolinitializeDiwne()
virtual boolinteractionBeginInLastDraw()
virtual boolinteractionEndInLastDraw()
boolprocessDragDiwne()
virtual boolprocessFocused()
boolprocessFocusedDiwne()
virtual boolprocessFocusedForInteraction()
boolprocessFocusedForInteractionDiwne()
virtual boolprocessHold()
boolprocessHoldDiwne()
virtual boolprocessInteractions()
virtual boolprocessInteractionsAlways()
virtual boolprocessInteractionsDiwne()
virtual boolprocessRaisePopupDiwne()
virtual boolprocessSelect()
boolprocessSelectDiwne()
virtual boolprocessShowPopupDiwne()
virtual boolprocessUnhold()
boolprocessUnholdDiwne()
virtual boolprocessUnselect()
boolprocessUnselectDiwne()
virtual voidsetSelectable(bool const selectable)
virtual boolsetSelected(bool const selected)
voidshowTooltipLabel(std::string const & label, ImColor const && color)<br>Show a colored text for example for immediate hints.
virtual voidupdateSizes()

Public Attributes inherited from DIWNE::DiwneObject

Name
DIWNE::Diwne &diwne
DrawModem_drawMode
boolm_focused
boolm_focusedForInteraction
DIWNE::ID constm_idDiwne
boolm_inner_interaction_happen
boolm_inner_interaction_happen_previous_draw
boolm_isActive
boolm_isDragged
boolm_isHeld
std::string constm_labelDiwne
std::string constm_popupIDDiwne
boolm_selectable
boolm_selected

Public Functions Documentation

function CorePin

cpp
CorePin(
    DIWNE::Diwne & diwne,
    DIWNE::ID const id,
    Core::Pin const & pin,
    CoreNode & node
)
CorePin(
    DIWNE::Diwne & diwne,
    DIWNE::ID const id,
    Core::Pin const & pin,
    CoreNode & node
)

function bypassFocusForInteractionAction

cpp
virtual bool bypassFocusForInteractionAction() override
virtual bool bypassFocusForInteractionAction() override

Reimplements: DIWNE::DiwneObject::bypassFocusForInteractionAction

action identified as focusing on object for interacting with it

function content

cpp
virtual bool content() override
virtual bool content() override

Draw the pin icon.

Return: false - no interaction allowed

Reimplements: DIWNE::Pin::content

Reimplemented by: Workspace::CoreInPin::content, Workspace::CoreOutPin::content, Workspace::DataOutPin::content

function getCorePin

cpp
Core::Pin const  & getCorePin() const
Core::Pin const  & getCorePin() const

function getIndex

cpp
int getIndex() const
int getIndex() const

function getKind

cpp
PinKind getKind() const
PinKind getKind() const

function getNode

cpp
inline CoreNode & getNode()
inline CoreNode & getNode()

function getNode

cpp
inline const CoreNode & getNode() const
inline const CoreNode & getNode() const

function getType

cpp
Core::EValueType getType() const
Core::EValueType getType() const

function isConnected

cpp
bool isConnected() const
bool isConnected() const

function popupContent

cpp
virtual void popupContent() override
virtual void popupContent() override

Content of popup menu raise on this object.

Reimplements: DIWNE::DiwneObject::popupContent

function processConnectionPrepared

cpp
virtual bool processConnectionPrepared() override
virtual bool processConnectionPrepared() override

Reimplements: DIWNE::Pin::processConnectionPrepared

your content/actions when new link hovered goal pin but not released yet

Same nodes.

function processDrag

cpp
virtual bool processDrag() override
virtual bool processDrag() override

Reimplements: DIWNE::Pin::processDrag

Public Attributes Documentation

variable m_iconType

cpp
DIWNE::IconType m_iconType = DIWNE::IconType::TriangleRight;
DIWNE::IconType m_iconType = DIWNE::IconType::TriangleRight;

Protected Attributes Documentation

variable m_iconRectDiwne

cpp
ImRect m_iconRectDiwne;
ImRect m_iconRectDiwne;

variable m_node

cpp
CoreNode & m_node;
CoreNode & m_node;

variable m_pin

cpp
Core::Pin const  & m_pin;
Core::Pin const  & m_pin;

Updated on 2024-11-06 at 20:16:53 +0000