Skip to content

DIWNE::SettingsDiwne

Collection of various node editor settings. More...

#include "DIWNE/Core/DiwneSettings.h"

Public Attributes

Name
floatdpiScale
ImVec2linkEndControlOffsetDiwne
floatlinkInteractionWidthDiwne
ImVec2linkStartControlOffsetDiwne
floatmaxWorkAreaZoom <br>maximal value of zoom
floatminWorkAreaZoom <br>minimal value of zoom
boolselectNodeOnDrag
boolshowGrid
booluseChildWindow <br>Whether to wrap NodeEditor components in an ImGui child window.
booluseDotGrid
ImRect constworkAreaDiwne <br>workarea in Diwne coordinates (so what part of infinite space of node editor is on window) only initial value - mostly based on window size (
floatworkAreaInitialZoom <br>initial value of zoom
floatzoomSensitivity
floatzoomSpeed

Detailed Description

cpp
struct DIWNE::SettingsDiwne;
struct DIWNE::SettingsDiwne;

Collection of various node editor settings.

See: DIWNE::Style

Style related options are handled by the style subsystem

Public Attributes Documentation

variable dpiScale

cpp
float dpiScale = 1.0f;
float dpiScale = 1.0f;

variable linkEndControlOffsetDiwne

cpp
ImVec2 linkEndControlOffsetDiwne = ImVec2(-10, 0);
ImVec2 linkEndControlOffsetDiwne = ImVec2(-10, 0);

variable linkInteractionWidthDiwne

cpp
float linkInteractionWidthDiwne = 7;
float linkInteractionWidthDiwne = 7;

variable linkStartControlOffsetDiwne

cpp
ImVec2 linkStartControlOffsetDiwne = ImVec2(10, 0);
ImVec2 linkStartControlOffsetDiwne = ImVec2(10, 0);

variable maxWorkAreaZoom

cpp
float maxWorkAreaZoom = 4;
float maxWorkAreaZoom = 4;

maximal value of zoom

variable minWorkAreaZoom

cpp
float minWorkAreaZoom = 0.25;
float minWorkAreaZoom = 0.25;

minimal value of zoom

variable selectNodeOnDrag

cpp
bool selectNodeOnDrag = false;
bool selectNodeOnDrag = false;

variable showGrid

cpp
bool showGrid = true;
bool showGrid = true;

variable useChildWindow

cpp
bool useChildWindow = true;
bool useChildWindow = true;

Whether to wrap NodeEditor components in an ImGui child window.

This is preferable when the node editor does not span the whole area of a parent window. But it prevents other ImGui components being overlaid on top of it, in such cases this can be disabled and the node editor can be wrapped in a child window manually.

variable useDotGrid

cpp
bool useDotGrid = true;
bool useDotGrid = true;

variable workAreaDiwne

cpp
ImRect const workAreaDiwne = ImRect(0, 0, 0, 0);
ImRect const workAreaDiwne = ImRect(0, 0, 0, 0);

workarea in Diwne coordinates (so what part of infinite space of node editor is on window) only initial value - mostly based on window size (

See: updateViewportRects() )

variable workAreaInitialZoom

cpp
float workAreaInitialZoom = 1;
float workAreaInitialZoom = 1;

initial value of zoom

variable zoomSensitivity

cpp
float zoomSensitivity = 0.5f;
float zoomSensitivity = 0.5f;

variable zoomSpeed

cpp
float zoomSpeed = 0.5f;
float zoomSpeed = 0.5f;

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