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 | |
|---|---|
| bool | active <br>Whether the pin is active (being held down) |
| float | alpha <br>Alpha of the pin. |
| bool | hovered <br>Whether the pin icon is hovered. |
| float | protrusion <br>Width of the pin sticking outside a node (negative on the left, positive on the right) |
| ImRect | rect <br>Rect of the pin icon, might stick outside a node / reported ImGui item. |
| bool | rendered <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 2026-05-21 at 15:39:36 +0000