Skip to content

DIWNE::PinIconDrawData

Small utility struct for passing around info about pin draw status The actual drawing of pins can be deferred to be done later by a node if the pins stick out of it.

#include "DIWNE/Core/Elements/Pin.h"

Public Attributes

Name
boolactive <br>Whether the pin is active (being held down)
floatalpha <br>Alpha of the pin.
boolhovered <br>Whether the pin icon is hovered.
floatprotrusion <br>Width of the pin sticking outside a node (negative on the left, positive on the right)
ImRectrect <br>Rect of the pin icon, might stick outside a node / reported ImGui item.
boolrendered <br>Whether the pin icon has been drawn or not.

Public Attributes Documentation

variable active

cpp
bool active {false};
bool active {false};

Whether the pin is active (being held down)

variable alpha

cpp
float alpha {1.f};
float alpha {1.f};

Alpha of the pin.

variable hovered

cpp
bool hovered {false};
bool hovered {false};

Whether the pin icon is hovered.

variable protrusion

cpp
float protrusion {0.f};
float protrusion {0.f};

Width of the pin sticking outside a node (negative on the left, positive on the right)

variable rect

cpp
ImRect rect;
ImRect rect;

Rect of the pin icon, might stick outside a node / reported ImGui item.

variable rendered

cpp
bool rendered {false};
bool rendered {false};

Whether the pin icon has been drawn or not.


Updated on 2025-05-31 at 12:55:31 +0000