For now removed LogRenderedTextNewLine() - it is eventually desirable but currently carries too much ambiguities, so reverted until we have a better system and test suite.
@ -247,12 +247,14 @@ It's mostly a bunch of personal notes, probably incomplete. Feel free to query i
- style: gradients fill (#1223) ~ 2 bg colors for each fill? tricky with rounded shapes and using textures for corners.
- style: gradients fill (#1223) ~ 2 bg colors for each fill? tricky with rounded shapes and using textures for corners.
- style editor: color child window height expressed in multiple of line height.
- style editor: color child window height expressed in multiple of line height.
- log: improve logging of ArrowButton, ListBox, TabItem
- log: carry on indent / tree depth when opening a child window
- log: enabling log ends up pushing and growing vertices buffers because we don't distinguish layout vs render clipping
- log: have more control over the log scope (e.g. stop logging when leaving current tree node scope)
- log: have more control over the log scope (e.g. stop logging when leaving current tree node scope)
- log: be able to log anything (e.g. right-click on a window/tree-node, shows context menu? log into tty/file/clipboard)
- log: be able to log anything (e.g. right-click on a window/tree-node, shows context menu? log into tty/file/clipboard)
- log: let user copy any window content to clipboard easily (CTRL+C on windows? while moving it? context menu?). code is commented because it fails with multiple Begin/End pairs.
- log: let user copy any window content to clipboard easily (CTRL+C on windows? while moving it? context menu?). code is commented because it fails with multiple Begin/End pairs.
ImFileHandleLogFile;// If != NULL log to stdout/ file
ImFileHandleLogFile;// If != NULL log to stdout/ file
ImGuiTextBufferLogBuffer;// Accumulation buffer when log to clipboard. This is pointer so our GImGui static constructor doesn't call heap allocators.
ImGuiTextBufferLogBuffer;// Accumulation buffer when log to clipboard. This is pointer so our GImGui static constructor doesn't call heap allocators.
constchar*LogNextPrefix;
constchar*LogNextSuffix;
floatLogLinePosY;
floatLogLinePosY;
boolLogLineFirstItem;
boolLogLineFirstItem;
intLogDepthRef;
intLogDepthRef;
@ -1620,6 +1622,7 @@ struct ImGuiContext
LogEnabled=false;
LogEnabled=false;
LogType=ImGuiLogType_None;
LogType=ImGuiLogType_None;
LogNextPrefix=LogNextSuffix=NULL;
LogFile=NULL;
LogFile=NULL;
LogLinePosY=FLT_MAX;
LogLinePosY=FLT_MAX;
LogLineFirstItem=false;
LogLineFirstItem=false;
@ -2253,6 +2256,8 @@ namespace ImGui
// Logging/Capture
// Logging/Capture
IMGUI_APIvoidLogBegin(ImGuiLogTypetype,intauto_open_depth);// -> BeginCapture() when we design v2 api, for now stay under the radar by using the old name.
IMGUI_APIvoidLogBegin(ImGuiLogTypetype,intauto_open_depth);// -> BeginCapture() when we design v2 api, for now stay under the radar by using the old name.
IMGUI_APIvoidLogToBuffer(intauto_open_depth=-1);// Start logging/capturing to internal buffer
IMGUI_APIvoidLogToBuffer(intauto_open_depth=-1);// Start logging/capturing to internal buffer
// NB: '##' is normally used to hide text (as a library-wide feature), so we need to specify the text range to make sure the ## aren't stripped out here.