From 1b0a8f9ac36b149eac7d0547903519e66d95833c Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 5 Aug 2015 10:00:05 -0600 Subject: [PATCH] Comments --- imgui_internal.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/imgui_internal.h b/imgui_internal.h index fb88644cf..fc6c1bf8d 100644 --- a/imgui_internal.h +++ b/imgui_internal.h @@ -163,7 +163,7 @@ enum ImGuiPlotType }; // 2D axis aligned bounding-box -// NB: we can't rely on ImVec2 math operators and helpers (ImMin,ImMax..) being available here +// NB: we can't rely on ImVec2 math operators being available here struct ImRect { ImVec2 Min; // Upper-left @@ -361,19 +361,19 @@ struct ImGuiState ImGuiID ScalarAsInputTextId; // Temporary text input when CTRL+clicking on a slider, etc. ImGuiStorage ColorEditModeStorage; // Store user selection of color edit mode ImVec2 ActiveClickDeltaToCenter; - float DragCurrentValue; // current dragged value, always float, not rounded by end-user precision settings + float DragCurrentValue; // Currently dragged value, always float, not rounded by end-user precision settings ImVec2 DragLastMouseDelta; - float DragSpeedDefaultRatio; // if speed == 0.0f, uses (max-min) * DragSpeedDefaultRatio + float DragSpeedDefaultRatio; // If speed == 0.0f, uses (max-min) * DragSpeedDefaultRatio float DragSpeedScaleSlow; float DragSpeedScaleFast; - float ScrollbarClickDeltaToGrabCenter; // distance between mouse and center of grab box, normalized in parent space + float ScrollbarClickDeltaToGrabCenter; // Distance between mouse and center of grab box, normalized in parent space char Tooltip[1024]; - char* PrivateClipboard; // if no custom clipboard handler is defined + char* PrivateClipboard; // If no custom clipboard handler is defined // Logging bool LogEnabled; - FILE* LogFile; - ImGuiTextBuffer* LogClipboard; // pointer so our GImGui static constructor doesn't call heap allocators. + FILE* LogFile; // If != NULL log to stdout/ file + ImGuiTextBuffer* LogClipboard; // Else log to clipboard. This is pointer so our GImGui static constructor doesn't call heap allocators. int LogStartDepth; int LogAutoExpandMaxDepth;