Internals: Columns: Renamed fields. Comments and tweak. Moved a demo block.

This commit is contained in:
omar
2019-05-09 12:56:03 +02:00
parent a4d0b0efa4
commit e29176df53
4 changed files with 58 additions and 55 deletions

View File

@ -680,11 +680,11 @@ struct ImGuiColumns
bool IsBeingResized;
int Current;
int Count;
float MinX, MaxX;
float OffMinX, OffMaxX; // Offsets from HostWorkRect.Min.x
float LineMinY, LineMaxY;
float BackupCursorPosY; // Backup of CursorPos at the time of BeginColumns()
float BackupCursorMaxPosX; // Backup of CursorMaxPos at the time of BeginColumns()
ImRect BackupClipRect;
float HostCursorPosY; // Backup of CursorPos at the time of BeginColumns()
float HostCursorMaxPosX; // Backup of CursorMaxPos at the time of BeginColumns()
ImRect HostClipRect; // Backup of ClipRect at the time of BeginColumns()
ImVector<ImGuiColumnData> Columns;
ImGuiColumns() { Clear(); }
@ -696,10 +696,10 @@ struct ImGuiColumns
IsBeingResized = false;
Current = 0;
Count = 1;
MinX = MaxX = 0.0f;
OffMinX = OffMaxX = 0.0f;
LineMinY = LineMaxY = 0.0f;
BackupCursorPosY = 0.0f;
BackupCursorMaxPosX = 0.0f;
HostCursorPosY = 0.0f;
HostCursorMaxPosX = 0.0f;
Columns.clear();
}
};