DIWNE
Classes
| Name | |
|---|---|
| class | DIWNE::Diwne <br>The node editor object In ancestor of this object you will probably store your nodes (links, pins) It store inter-object interactions Every DiwneObject has reference to this object. |
| class | DIWNE::DiwneObject <br>All objects in DIWNE are inherited from DiwneObjectDiwneObject covers the functionality common to all Objects in the node editor - such as selecting, dragging, hovering,... |
| class | DIWNE::Link |
| class | DIWNE::Node <br>graphical representation od a box in the workspace node editor |
| class | DIWNE::Pin |
| struct | DIWNE::SettingsDiwne <br>Storage of all values. |
Types
| Name | |
|---|---|
| enum | DiwneAction { None, FocusOnObject, InteractingContent, NewLink, HoldNode, HoldPin, HoldLink, HoldWorkarea, DragNode, DragPin, DragLink, DragWorkarea, TouchNode, TouchPin, TouchLink, TouchWorkarea, SelectionRectFull, SelectionRectTouch} |
| enum | DrawMode { JustDraw, Interacting}<br>Drawing mode of DiwneObject |
| enum | DrawModeNodePosition { OnCursorPosition, OnItsPosition}<br>Used when one node is inside of another -> the inner node is drawn OnCursorPosition when outer node is drawn. |
| enum | IconType { NoIcon, Circle, Rectangle, TriangleLeft, TriangleRight, TriangleDownLeft, TriangleDownRight, GrabDownLeft, GrabDownRight, Cross, Hyphen, Stop, Pause, SkipBack, SkipBack2, SkipForward, SkipForward2, Rewind, FastForward, AtFrom, AtTo}<br>pin icon shape type used in WorkspaceCorePin::content(), file WorkspaceElementWitCoreData.cpp::379 drawn by Diwne::DrawIcon, method Diwne::DrawIconXXXX, file Diwne.cpp |
| typedef unsigned int | ID |
| typedef std::function< void(...)> | popupContent_function_pointer <br>you can pass any arguments to you function with popup menu content |
Functions
| Name | |
|---|---|
| template <typename T ,std::enable_if< std::is_base_of< DiwneObject, T >::value, bool >::type =true> <br>void | expandPopupContent(T & object) |
| template <typename... Args> <br>bool | popupDiwne(std::string const popupID, ImVec2 const & popupPos, void(*)(Args...) popupContent, Args &&... args)<br>Function showing popup It open ImGui popup on given position, fill in your content and close it. |
| void | ScaleAllSizes(ImGuiStyle & style, float scale_factor) |
Types Documentation
enum DiwneAction
| Enumerator | Value | Description |
|---|---|---|
| None | ||
| FocusOnObject | ||
| InteractingContent | ||
| NewLink | ||
| HoldNode | ||
| HoldPin | ||
| HoldLink | ||
| HoldWorkarea | ||
| DragNode | ||
| DragPin | ||
| DragLink | ||
| DragWorkarea | ||
| TouchNode | ||
| TouchPin | ||
| TouchLink | ||
| TouchWorkarea | ||
| SelectionRectFull | ||
| SelectionRectTouch |
enum DrawMode
| Enumerator | Value | Description |
|---|---|---|
| JustDraw | Draw object only - block all (node editor's) interactions | |
| Interacting | Usual mode - draw and allow interaction too |
Drawing mode of DiwneObject
enum DrawModeNodePosition
| Enumerator | Value | Description |
|---|---|---|
| OnCursorPosition | cursor position in screen coordinates | |
| OnItsPosition | node position in Diwne coordinates |
Used when one node is inside of another -> the inner node is drawn OnCursorPosition when outer node is drawn.
enum IconType
| Enumerator | Value | Description |
|---|---|---|
| NoIcon | ||
| Circle | ||
| Rectangle | ||
| TriangleLeft | ||
| TriangleRight | ||
| TriangleDownLeft | ||
| TriangleDownRight | ||
| GrabDownLeft | ||
| GrabDownRight | ||
| Cross | ||
| Hyphen | ||
| Stop | Black Square For Stop (U+23F9) | |
| Pause | Double Vertical Bar (U+23F8) | |
| SkipBack | ||
| SkipBack2 | "< | |
| SkipForward | "> | |
| SkipForward2 | ||
| Rewind | Black Left-Pointing Double Triangle (U+23EA) | |
| FastForward | Black Right-Pointing Double Triangle (U+23E9) | |
| AtFrom | ||
| AtTo |
pin icon shape type used in WorkspaceCorePin::content(), file WorkspaceElementWitCoreData.cpp::379 drawn by Diwne::DrawIcon, method Diwne::DrawIconXXXX, file Diwne.cpp
typedef ID
cpp
typedef unsigned int DIWNE::ID;typedef unsigned int DIWNE::ID;typedef popupContent_function_pointer
cpp
typedef std::function<void(...)> DIWNE::popupContent_function_pointer;typedef std::function<void(...)> DIWNE::popupContent_function_pointer;you can pass any arguments to you function with popup menu content
Functions Documentation
function expandPopupContent
cpp
template <typename T ,
std::enable_if< std::is_base_of< DiwneObject, T >::value, bool >::type =true>
static void expandPopupContent(
T & object
)template <typename T ,
std::enable_if< std::is_base_of< DiwneObject, T >::value, bool >::type =true>
static void expandPopupContent(
T & object
)function popupDiwne
cpp
template <typename... Args>
static bool popupDiwne(
std::string const popupID,
ImVec2 const & popupPos,
void(*)(Args...) popupContent,
Args &&... args
)template <typename... Args>
static bool popupDiwne(
std::string const popupID,
ImVec2 const & popupPos,
void(*)(Args...) popupContent,
Args &&... args
)Function showing popup It open ImGui popup on given position, fill in your content and close it.
Parameters:
- popupID is identification of popup that have been raised (so is open and should be drawn)
- popupPos position of popup in screen coords
- popupContent is function with content of popup - it can take any (number of) arguments
- args arguments that will be passed to popupContent function
Return: true if popup is drawn, false otherwise
function ScaleAllSizes
cpp
void ScaleAllSizes(
ImGuiStyle & style,
float scale_factor
)void ScaleAllSizes(
ImGuiStyle & style,
float scale_factor
)Updated on 2025-09-07 at 16:13:51 +0000