Skip to content

DIWNE

Classes

Name
classDIWNE::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.
classDIWNE::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,...
classDIWNE::Link
classDIWNE::Node <br>graphical representation od a box in the workspace node editor
classDIWNE::Pin
structDIWNE::SettingsDiwne <br>Storage of all values.

Types

Name
enumDiwneAction { None, FocusOnObject, InteractingContent, NewLink, HoldNode, HoldPin, HoldLink, HoldWorkarea, DragNode, DragPin, DragLink, DragWorkarea, TouchNode, TouchPin, TouchLink, TouchWorkarea, SelectionRectFull, SelectionRectTouch}
enumDrawMode { JustDraw, Interacting}<br>Drawing mode of DiwneObject
enumDrawModeNodePosition { OnCursorPosition, OnItsPosition}<br>Used when one node is inside of another -> the inner node is drawn OnCursorPosition when outer node is drawn.
enumIconType { 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 intID
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&gt; <br>voidexpandPopupContent(T & object)
template <typename... Args&gt; <br>boolpopupDiwne(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.
voidScaleAllSizes(ImGuiStyle & style, float scale_factor)

Types Documentation

enum DiwneAction

EnumeratorValueDescription
None
FocusOnObject
InteractingContent
NewLink
HoldNode
HoldPin
HoldLink
HoldWorkarea
DragNode
DragPin
DragLink
DragWorkarea
TouchNode
TouchPin
TouchLink
TouchWorkarea
SelectionRectFull
SelectionRectTouch

enum DrawMode

EnumeratorValueDescription
JustDrawDraw object only - block all (node editor's) interactions
InteractingUsual mode - draw and allow interaction too

Drawing mode of DiwneObject

enum DrawModeNodePosition

EnumeratorValueDescription
OnCursorPositioncursor position in screen coordinates
OnItsPositionnode 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

EnumeratorValueDescription
NoIcon
Circle
Rectangle
TriangleLeft
TriangleRight
TriangleDownLeft
TriangleDownRight
GrabDownLeft
GrabDownRight
Cross
Hyphen
StopBlack Square For Stop (U+23F9)
PauseDouble Vertical Bar (U+23F8)
SkipBack
SkipBack2"<
SkipForward">
SkipForward2
RewindBlack Left-Pointing Double Triangle (U+23EA)
FastForwardBlack 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 2024-11-06 at 20:16:53 +0000