DIWNE::Actions::ConnectPinAction
#include "DIWNE/Core/diwne_actions.h"
Inherits from DIWNE::Actions::DiwneAction
Public Functions
Name | |
---|---|
ConnectPinAction(const std::shared_ptr< DiwneObject > & source) | |
virtual void | onEnd() override<br>Called at the end of the frame after the frame in which the action has ended. Called after onFrameEnd(). |
Public Attributes
Name | |
---|---|
ImVec2 | connectionPoint <br>Internal value, target point of the valid connection, used for link snapping. |
Link * | draggedLink <br>The link being dragged (source pin doesn't need to be connected to it necessarily) |
Pin * | sourcePin <br>The pin being dragged. |
bool | validConnection <br>Internal flag, indicates that a valid connection is ready. |
Additional inherited members
Public Functions inherited from DIWNE::Actions::DiwneAction
Name | |
---|---|
DiwneAction(const std::string & name, const std::shared_ptr< DiwneObject > & source) | |
virtual | ~DiwneAction() =default |
void | end()<br>Marks the action to end at the end of the next frame. |
bool | hasSameSource(const DiwneAction & action) const<br>Checks whether the source of this and another action are the same. |
bool | isSource(const DiwneObject * object) const<br>Checks whether passed object is the source of this action (eg. the object that started it. |
virtual void | onFrameEnd()<br>Called at the end of each frame the action is active for, called before onEnd() on the last frame. |
Public Attributes inherited from DIWNE::Actions::DiwneAction
Name | |
---|---|
std::string | name |
std::weak_ptr< DiwneObject > | source |
Friends inherited from DIWNE::Actions::DiwneAction
Name | |
---|---|
class | DIWNE::InteractionState |
Public Functions Documentation
function ConnectPinAction
cpp
inline ConnectPinAction(
const std::shared_ptr< DiwneObject > & source
)
inline ConnectPinAction(
const std::shared_ptr< DiwneObject > & source
)
function onEnd
cpp
virtual void onEnd() override
virtual void onEnd() override
Called at the end of the frame after the frame in which the action has ended. Called after onFrameEnd().
Reimplements: DIWNE::Actions::DiwneAction::onEnd
Public Attributes Documentation
variable connectionPoint
cpp
ImVec2 connectionPoint;
ImVec2 connectionPoint;
Internal value, target point of the valid connection, used for link snapping.
variable draggedLink
cpp
Link * draggedLink {nullptr};
Link * draggedLink {nullptr};
The link being dragged (source pin doesn't need to be connected to it necessarily)
variable sourcePin
cpp
Pin * sourcePin {nullptr};
Pin * sourcePin {nullptr};
The pin being dragged.
variable validConnection
cpp
bool validConnection {false};
bool validConnection {false};
Internal flag, indicates that a valid connection is ready.
Updated on 2025-05-31 at 12:55:31 +0000