Skip to content

Workspace::Tools

Functions

Name
Memento *copyNodes(const std::vector< Ptr< GuiNode > > & nodes, float offset =0)
voidduplicateNode(const Ptr< GuiNode > & node, float offset =0)
std::optional< Ptr< GuiNode > >findNodeById(const std::vector< Ptr< GuiNode > > & nodes, Core::ID id)
intnumberOfCharWithDecimalPoint(float value, int numberOfVisibleDecimal)
voidpasteNodes(const Memento & memento)
boolplug(Core::ID from, int fromIdx, Core::ID to, int toIdx)

Functions Documentation

function copyNodes

cpp
Memento * copyNodes(
    const std::vector< Ptr< GuiNode > > & nodes,
    float offset =0
)
Memento * copyNodes(
    const std::vector< Ptr< GuiNode > > & nodes,
    float offset =0
)

function duplicateNode

cpp
void duplicateNode(
    const Ptr< GuiNode > & node,
    float offset =0
)
void duplicateNode(
    const Ptr< GuiNode > & node,
    float offset =0
)

function findNodeById

cpp
std::optional< Ptr< GuiNode > > findNodeById(
    const std::vector< Ptr< GuiNode > > & nodes,
    Core::ID id
)
std::optional< Ptr< GuiNode > > findNodeById(
    const std::vector< Ptr< GuiNode > > & nodes,
    Core::ID id
)

function numberOfCharWithDecimalPoint

cpp
int numberOfCharWithDecimalPoint(
    float value,
    int numberOfVisibleDecimal
)
int numberOfCharWithDecimalPoint(
    float value,
    int numberOfVisibleDecimal
)

function pasteNodes

cpp
void pasteNodes(
    const Memento & memento
)
void pasteNodes(
    const Memento & memento
)

function plug

cpp
bool plug(
    Core::ID from,
    int fromIdx,
    Core::ID to,
    int toIdx
)
bool plug(
    Core::ID from,
    int fromIdx,
    Core::ID to,
    int toIdx
)

Updated on 2025-01-07 at 13:40:43 +0000