DIWNE::SettingsDiwne
Collection of various node editor settings. More...
#include "DIWNE/Core/DiwneSettings.h"
Public Attributes
Name | |
---|---|
float | dpiScale |
ImVec2 | linkEndControlOffsetDiwne |
float | linkInteractionWidthDiwne |
ImVec2 | linkStartControlOffsetDiwne |
float | maxWorkAreaZoom <br>maximal value of zoom |
float | minWorkAreaZoom <br>minimal value of zoom |
bool | selectNodeOnDrag |
bool | showGrid |
bool | useChildWindow <br>Whether to wrap NodeEditor components in an ImGui child window. |
bool | useDotGrid |
ImRect const | workAreaDiwne <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 ( |
float | workAreaInitialZoom <br>initial value of zoom |
float | zoomSensitivity |
float | zoomSpeed |
Detailed Description
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
float dpiScale = 1.0f;
float dpiScale = 1.0f;
variable linkEndControlOffsetDiwne
ImVec2 linkEndControlOffsetDiwne = ImVec2(-10, 0);
ImVec2 linkEndControlOffsetDiwne = ImVec2(-10, 0);
variable linkInteractionWidthDiwne
float linkInteractionWidthDiwne = 7;
float linkInteractionWidthDiwne = 7;
variable linkStartControlOffsetDiwne
ImVec2 linkStartControlOffsetDiwne = ImVec2(10, 0);
ImVec2 linkStartControlOffsetDiwne = ImVec2(10, 0);
variable maxWorkAreaZoom
float maxWorkAreaZoom = 4;
float maxWorkAreaZoom = 4;
maximal value of zoom
variable minWorkAreaZoom
float minWorkAreaZoom = 0.25;
float minWorkAreaZoom = 0.25;
minimal value of zoom
variable selectNodeOnDrag
bool selectNodeOnDrag = false;
bool selectNodeOnDrag = false;
variable showGrid
bool showGrid = true;
bool showGrid = true;
variable useChildWindow
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
bool useDotGrid = true;
bool useDotGrid = true;
variable workAreaDiwne
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
float workAreaInitialZoom = 1;
float workAreaInitialZoom = 1;
initial value of zoom
variable zoomSensitivity
float zoomSensitivity = 0.5f;
float zoomSensitivity = 0.5f;
variable zoomSpeed
float zoomSpeed = 0.5f;
float zoomSpeed = 0.5f;
Updated on 2025-05-31 at 12:55:31 +0000