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 bool | bypassFocusForInteractionAction() override |
virtual bool | content() override<br>Draw the pin icon. |
Core::Pin const & | getCorePin() const |
int | getIndex() const |
PinKind | getKind() const |
CoreNode & | getNode() |
const CoreNode & | getNode() const |
Core::EValueType | getType() const |
bool | isConnected() const |
virtual void | popupContent() override<br>Content of popup menu raise on this object. |
virtual bool | processConnectionPrepared() override |
virtual bool | processDrag() override |
Public Attributes
Name | |
---|---|
DIWNE::IconType | m_iconType |
Protected Attributes
Name | |
---|---|
ImRect | m_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 bool | allowProcessPin_Pre_ConnectLink() |
virtual void | begin() override |
virtual bool | bypassPinLinkConnectionPreparedAction() |
virtual void | end() override |
virtual DIWNE::DiwneAction | getDragActionType() const |
virtual DIWNE::DiwneAction | getHoldActionType() const |
DIWNE::ID const | getId() const |
virtual const ImVec2 & | getLinkConnectionPointDiwne() |
virtual ImRect | getRectDiwne() const override |
virtual DIWNE::DiwneAction | getTouchActionType() const |
virtual bool | processInteractionsAlways() override |
virtual bool | processPin_Pre_ConnectLinkDiwne()<br>Wrapper is run when new link is created and goal pin is hovered but action not released yet. |
virtual void | setConnectionPointDiwne(const ImVec2 value) |
virtual void | updateSizes() override |
Protected Functions inherited from DIWNE::Pin
Name | |
---|---|
virtual void | updateConnectionPointDiwne() |
Protected Attributes inherited from DIWNE::Pin
Name | |
---|---|
ImVec2 | m_connectionPointDiwne |
ImRect | m_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 bool | afterContent() |
virtual bool | afterContentDiwne() |
virtual bool | afterEnd() |
virtual bool | afterEndDiwne() |
virtual bool | allowDrawing()<br>Decision maker whether object should be drawn (not outside of window for example) |
virtual bool | allowInteraction()<br>Decision maker whether object can interact (not include content elements) |
virtual bool | allowProcessDrag() |
virtual bool | allowProcessFocused() |
virtual bool | allowProcessFocusedForInteraction() |
virtual bool | allowProcessHold() |
virtual bool | allowProcessRaisePopup() |
virtual bool | allowProcessSelect() |
virtual bool | allowProcessUnhold() |
virtual bool | allowProcessUnselect() |
virtual bool | beforeBegin() |
virtual bool | beforeBeginDiwne() |
virtual bool | beforeContent() |
virtual bool | beforeContentDiwne() |
virtual void | begin() =0 |
virtual bool | bypassDragAction() |
virtual bool | bypassFocusAction() |
virtual bool | bypassHoldAction() |
virtual bool | bypassRaisePopupAction() |
virtual bool | bypassSelectAction() |
virtual bool | bypassTouchAction() |
virtual bool | bypassUnholdAction() |
virtual bool | bypassUnselectAction() |
virtual bool | contentDiwne() |
virtual bool | drawDiwne(DrawMode drawMode =DrawMode::Interacting)<br>Main function for drawing object and deal with interactions. |
virtual void | end() =0 |
virtual bool | finalize() |
virtual bool | finalizeDiwne() |
virtual DIWNE::DiwneAction | getDragActionType() const =0 |
virtual DIWNE::DiwneAction | getHoldActionType() const =0 |
DIWNE::ID const | getIdDiwne() const |
virtual ImRect | getRectDiwne() const =0 |
virtual bool | getSelectable() |
virtual bool | getSelected() const<br>Getter of selection state. |
virtual DIWNE::DiwneAction | getTouchActionType() const =0 |
virtual bool | initialize() |
virtual bool | initializeDiwne() |
virtual bool | interactionBeginInLastDraw() |
virtual bool | interactionEndInLastDraw() |
bool | processDragDiwne() |
virtual bool | processFocused() |
bool | processFocusedDiwne() |
virtual bool | processFocusedForInteraction() |
bool | processFocusedForInteractionDiwne() |
virtual bool | processHold() |
bool | processHoldDiwne() |
virtual bool | processInteractions() |
virtual bool | processInteractionsAlways() |
virtual bool | processInteractionsDiwne() |
virtual bool | processRaisePopupDiwne() |
virtual bool | processSelect() |
bool | processSelectDiwne() |
virtual bool | processShowPopupDiwne() |
virtual bool | processUnhold() |
bool | processUnholdDiwne() |
virtual bool | processUnselect() |
bool | processUnselectDiwne() |
virtual void | setSelectable(bool const selectable) |
virtual bool | setSelected(bool const selected) |
void | showTooltipLabel(std::string const & label, ImColor const && color)<br>Show a colored text for example for immediate hints. |
virtual void | updateSizes() |
Public Attributes inherited from DIWNE::DiwneObject
Name | |
---|---|
DIWNE::Diwne & | diwne |
DrawMode | m_drawMode |
bool | m_focused |
bool | m_focusedForInteraction |
DIWNE::ID const | m_idDiwne |
bool | m_inner_interaction_happen |
bool | m_inner_interaction_happen_previous_draw |
bool | m_isActive |
bool | m_isDragged |
bool | m_isHeld |
std::string const | m_labelDiwne |
std::string const | m_popupIDDiwne |
bool | m_selectable |
bool | m_selected |
Public Functions Documentation
function CorePin
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
virtual bool bypassFocusForInteractionAction() override
virtual bool bypassFocusForInteractionAction() override
Reimplements: DIWNE::DiwneObject::bypassFocusForInteractionAction
action identified as focusing on object for interacting with it
function content
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
Core::Pin const & getCorePin() const
Core::Pin const & getCorePin() const
function getIndex
int getIndex() const
int getIndex() const
function getKind
PinKind getKind() const
PinKind getKind() const
function getNode
inline CoreNode & getNode()
inline CoreNode & getNode()
function getNode
inline const CoreNode & getNode() const
inline const CoreNode & getNode() const
function getType
Core::EValueType getType() const
Core::EValueType getType() const
function isConnected
bool isConnected() const
bool isConnected() const
function popupContent
virtual void popupContent() override
virtual void popupContent() override
Content of popup menu raise on this object.
Reimplements: DIWNE::DiwneObject::popupContent
function processConnectionPrepared
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
virtual bool processDrag() override
virtual bool processDrag() override
Reimplements: DIWNE::Pin::processDrag
Public Attributes Documentation
variable m_iconType
DIWNE::IconType m_iconType = DIWNE::IconType::TriangleRight;
DIWNE::IconType m_iconType = DIWNE::IconType::TriangleRight;
Protected Attributes Documentation
variable m_iconRectDiwne
ImRect m_iconRectDiwne;
ImRect m_iconRectDiwne;
variable m_node
CoreNode & m_node;
CoreNode & m_node;
variable m_pin
Core::Pin const & m_pin;
Core::Pin const & m_pin;
Updated on 2024-11-06 at 20:16:53 +0000