Commit Graph

  • d6b1f0d13d Tables: moved TableHeadersRow(), TableHeader() to their own section. ocornut 2020-12-01 17:02:56 +0100
  • 592fc69054 Tables: moved TableDrawContextMenu(), TableOpenContextMenu() to their own section. ocornut 2020-12-01 17:01:58 +0100
  • 7aed4b152b Tables: improve index, file structure tweaks. ocornut 2020-12-01 16:46:35 +0100
  • 082f1d10d0 Tables: renamed TableBeginUpdateColumns to TableBeginApplyRequests, moved code to TableUpdateLayout, in order to ensure that enable state is not inconsistent due to TableSetupColumn column hiding requests. ocornut 2020-12-01 14:56:06 +0100
  • 79c9eaa78e Tables: Internals: renamed Visible to Enabled to avoid confusion with visibility checks. ocornut 2020-11-23 23:19:08 +0100
  • 5ef7b831c2 Tables: removed ImGuiTableSortSpecs::ColumnsMask because it needlessly exposes our 64-columns limitation which we'd eventually would like to lift ocornut 2020-11-23 17:02:00 +0100
  • e09454aec4 Tables: removed TableGetColumnIsVisible from public api, re-specced as TableGetColumnIsHidden() returning same flag as setter, clipper increase CurrentRow. ocornut 2020-11-23 12:39:05 +0100
  • a70c6aae9f Tables: demo synced tables + fix resizing indented synced tables. ocornut 2020-11-20 19:11:33 +0100
  • 0c9ab0acdd Tables: setup and maintain ItemWidth per column. ocornut 2020-11-20 16:58:48 +0100
  • 8f126d5d95 Tables: rename ImGuiTableFlags_SizingPolicyStretchX to ImGuiTableFlags_ColumnsWidthStretch, ImGuiTableFlags_SizingPolicyFixedX to ImGuiTableFlags_ColumnsWidthFixed. ocornut 2020-11-18 20:55:01 +0100
  • 41f89e0f59 Tables: added ImGuiTableFlags_SameWidths, used in demo. Reordered columns flags and exposed them all in Columns Flags section. ocornut 2020-11-18 17:28:18 +0100
  • 3a2f0bfc04 Tables: demo inner_size + scrollx + stretch, added TableGetRowIndex(), renamed _WidthAlwaysAutoResize to _WidthAutoResize. ocornut 2020-11-18 14:15:38 +0100
  • 3b3503e60f Tables: decent support for auto-resize of stretch columns (trickier than it sounds) ocornut 2020-11-16 20:25:35 +0100
  • c5dcf2fde1 Tables: rework keep-visible/max-width code to be less incorrect, but right-most column may effectively has few pixels less of visible cliprect width. ocornut 2020-11-16 12:30:17 +0100
  • 197e9c085b Tables: separate bg0 and bg1 draw channels, selectable above bg color + will facilitate drawing of borders in EndTable(). ocornut 2020-11-12 15:55:26 +0100
  • 52f24df668 Tables: comments, tweaks, added internal TableSetColumnVisible(), merged the two TableSetColumnWidth(). ocornut 2020-11-11 18:54:39 +0100
  • bf197c74f6 Tables: storing WorkMaxX, made offset_x == MinX to be clearer, clip rect merge uses ClipRect.max.x directly, removed unused ShrinkWidth code, metrics. ocornut 2020-11-06 14:44:44 +0100
  • 5465d30d67 Tables: added ImGuiTableFlags_PreciseStretchWidths. ocornut 2020-11-06 14:28:43 +0100
  • 10db896813 Tables: store RawData in a simple void* pointer, rename ContentMinX > WorkMinX, misc tidying up. ocornut 2020-11-05 17:30:30 +0100
  • 82cf41d804 Tables: tooltip on clipped TableHeader() (amended) ocornut 2020-11-04 22:37:15 +0100
  • 507db499e4 Tables: work on background draw channel handling (amend "create a separate background draw channel") + Selectable disable spacing when spanning. ocornut 2020-11-04 22:17:58 +0100
  • fe6131168a Tables: Additionally commentary about clipper in the demo + minor padding tweak. ocornut 2020-11-03 18:47:05 +0100
  • 94d99f9d0b Tables: Fixed crash when increaasing columns count with bound settings. ocornut 2020-11-03 18:08:26 +0100
  • 24a7c45b02 Tables: Fix for 64 columns (maximum of 131 temporary draw channels). ocornut 2020-11-03 15:10:22 +0100
  • e5a5256971 Tables: Garbage collection to relieve draw splitter buffers + for test engine: compact settings, remove table. ocornut 2020-11-03 11:25:36 +0100
  • f80097ca96 Tables: Fix applying WorkRect in non-scrolling tables. Fix inverted BackgroundClipRect being passed to ImDrawCmd. ocornut 2020-10-30 21:35:23 +0100
  • 557253e776 Tables: create a separate background draw channel for rows below the frozen line. ocornut 2020-10-30 20:30:53 +0100
  • fae362fd0b Tables: fixed auto-fitting columns not marking settings as dirty + fixed CellBg fill not narrow clipping on ScrollX + freeze. ocornut 2020-10-30 19:38:59 +0100
  • 9918b2f147 Tables: Shuffled ordering of draw channels merge group so vertically unfrozen ones come, allowing us to split background channels in two. ocornut 2020-10-28 18:04:59 +0100
  • d3222086f0 Tables: Moved TableSetupScrollFreeze(), TableUpdateDrawChannels() lower in more adequate spots. ocornut 2020-10-27 15:06:05 +0100
  • d9ca3939e1 Tables: Tidy up comments. Replaced some Columns by Tables in demo. Removed ImGuiTableFlags_Scroll (combining ScrollX/ScrollY) because each axis inccur different requirements/constraints. ocornut 2020-10-26 18:28:49 +0100
  • 51abdd53e3 Tables: renamed somehow-duplicate ContentWidth members (implicitly == Max - Min), renamed StartX to ContentMinX for consistency. ocornut 2020-10-26 13:55:53 +0100
  • 1731ae5a09 Tables: Reworked padding/spacing/width. ocornut 2020-10-07 22:44:02 +0200
  • 75c5f534e8 Tables: Avoid allocating into ColumnsName for empty strings, changed TableGetColumnName() to return "" on missing name, generally more friendly. ocornut 2020-10-26 11:49:56 +0100
  • f4800db178 Tables: Extracted parts of BeginTable() into TableFixFlags() and TableBeginInitMemory(). ocornut 2020-10-21 14:07:26 +0200
  • ac5b1648e6 Tables: Various internal renaming + merge StartXHeaders/StartXRows into StartX. ocornut 2020-10-20 19:36:06 +0200
  • 77e561aaf3 Tables: Made demo options consistently compact, replaced constants with font-based sizes, added comments on memory allocations. ocornut 2020-10-07 16:33:33 +0200
  • 02b27b75a4 Tables: Added ImGuiTableFlags_NoBordersInBody, ImGuiTableFlags_NoBordersInBodyUntilResize, removed ImGuiTableFlags_BordersFullHeightV. ocornut 2020-10-06 17:53:59 +0200
  • 172704c079 Tables: Add demo code. Remove dead code + seemingly duplicate border in TableDrawBorders(). ocornut 2020-10-06 15:08:27 +0200
  • 2ee20fdb7c Tables: Frozen rows/columns in nav menu layer, fixed conflict between column id and holding child id. ocornut 2020-10-05 15:20:28 +0200
  • e66b28693a Tables: Added ImGuiTableFlags_ContextMenuInBody flag. ocornut 2020-10-01 19:54:10 +0200
  • 6182973bde Tables: (Breaking) Rename TableNextCell() to TableNextColumn(), made TableNextRow() NOT enter into first column. ocornut 2020-10-01 14:03:25 +0200
  • b1ebf964f5 Tables: Moved TableSetColumnIndex() next to TableNextCell() since they are so similar + made NextCell() crash proof. ocornut 2020-09-30 23:42:37 +0200
  • 248960d64c Tables: Fix ImGuiTableColumnFlags_WidthAlwaysAutoResize columns when clipped (which would be default behavior without _Resizable and when clipping/scrolling) ocornut 2020-09-30 22:37:59 +0200
  • 25b5cc2f95 Tables: Fixes to support any number of frozen rows (over modifications to clipper code in master) + make clipper run eval after clipect update omar 2020-09-28 17:30:39 +0200
  • cc12ea084b Tables: Added TableSetColumnSortDirection() + added in default context menu code (disabled, feels unnecessary, but work is done to ensure programmatic access) ocornut 2020-09-24 15:10:47 +0200
  • 9b37087fbe Tables: (Breaking) Rename TableAutoHeaders() to TableHeadersRow() + added TableGetColumnCount(). ocornut 2020-09-24 14:33:40 +0200
  • 3021608392 Tables: (Breaking) Add TableSetupScrollFreeze() api, remove ImGuiTableFlags_ScrollFreezeXXX flags, tweak comments, move columns block. ocornut 2020-09-23 17:53:52 +0200
  • 36b2f3b4f1 Tables: renamed ImGuiTableFlags_NoClipX to ImGuiTableFlags_NoClip, clarified purpose, moved lower in the list as it doesn't need to be so prominent. ocornut 2020-09-23 16:42:44 +0200
  • 8ec05fc034 Tables: Fixed holding on table pointers accross resize/invalidation of the pool buffer. omar 2020-09-23 14:22:41 +0200
  • 931829f701 Tables: (Breaking change) Sorting: Made it users responsability to clear SpecsDirty back to false, so TableGetSortSpecs() doesn't have side-effect any more. + comments omar 2020-09-23 12:53:10 +0200
  • f6800e9d3b Tables: Extend outer-most clip limits to match those of host when merging draw calls. ocornut 2020-09-18 20:44:50 +0200
  • 3d573103b6 Tables: Fixed lower clipping when using ImGuiTableFlags_NoHostExtendY. ocornut 2020-09-18 20:42:05 +0200
  • 8e97cdf8e8 Tables: Fix for calling TableSetBgColor(ImGuiTableBgTarget_CellBg) multiple times on the same cell. omar 2020-08-24 15:34:43 +0200
  • 45a80716b1 Tables: Fixed three bugs + metrics tweaks. ocornut 2020-08-18 18:39:57 +0200
  • 9372601322 Tables: Fixed stacked popups incorrectly accessing g.CurrentTable of parent-in-stack windows. ocornut 2020-08-17 13:25:27 +0200
  • eb18636e02 Tables: Fix settings not being saved in child window (issue 3367) + fix for change in master. omar 2020-08-05 19:26:54 +0200
  • 9d8b40414a Tables: Added TableSetBgColor() api with color for RowBg and CellBg colors. omar 2020-07-28 15:53:14 +0200
  • b6405a291d Tables: Fixed TableHeader() not declaring its height properly. Do NOT declare width. omar 2020-07-28 15:27:22 +0200
  • 0847373b98 Tables: Comments on Sizing Policies + Rename border V/H flags HInner -> InnerH + offset every flags by two. omar 2020-07-27 21:45:38 +0200
  • 30e21eb280 Tables: non-resizable columns also submit their requested width for auto-fit, omar 2020-07-21 14:36:31 +0200
  • a0e6aa1766 Tables: Fix calculation of auto-fit (remove padding). Demo setting a width in columns setup + ImGuiTableFlags_NoKeepColumnsVisible. omar 2020-07-17 23:23:04 +0200
  • c96c84b6dc Tables: Store submitted column width and avoid saving default default widths. omar 2020-07-17 22:39:28 +0200
  • 57916b891b Tables: Simplified TableHeader() and not relying on Selectable(), fixed various padding issues. Added work-around for CellRect.Min.x offset by CellSpacing.x. omar 2020-07-02 21:41:29 +0200
  • fcdfde2bc6 Tables: Extracted border size into a named variable. omar 2020-07-02 18:59:02 +0200
  • 03c8bfaf23 Tables: Removed extra +1.0f pixels initially allocated to make right-most column visible, fix visible padding asymmetry. Tweaked debug code in demo. omar 2020-07-02 13:59:30 +0200
  • 353bb68e90 Tables: Demo custom per-popup popups, demonstrate TableGetHoveredColumn() and ImGuiPopupFlags_NoOpenOverExistingPopup. omar 2020-06-19 15:39:56 +0200
  • 745d8cdb49 Tables: Made TableHeader() responsible for opening per-column context menu to move responsibility away from TableAutoHeaders(). omar 2020-06-19 17:28:06 +0200
  • 27e779b3ef Tables: Removed dubious window->SkipItem assignment in TableAutoHeaders(). ocornut 2020-06-16 23:40:06 +0200
  • 7ca70dcb81 Tables: Using same seed ID regardless of when using a child window or not. ocornut 2020-06-17 15:27:17 +0200
  • 798aed729a Tables: Added TableGetHoveredColumn(), extracted some context menu code out, simplifying TableAutoHeaders() toward aim of it being a user-land function. ocornut 2020-06-16 21:15:49 +0200
  • 4c4882ffe4 Tables: Fixed channel merge when resizing columns with headers. Disable unnecessary and broken merge when using _NoClipX. ocornut 2020-06-15 15:24:59 +0200
  • 8530b6af3d Tables: Not flagging whole column as SkipItems based on clipping visibility (breaks layout) omar 2020-06-13 18:02:02 +0200
  • 363eae94e6 Tables: Further fix #3293, #3163 + fixed for row unfreezing border not always showing due to unset clip rect. omar 2020-06-13 17:27:51 +0200
  • b741639468 Tables: Fix rendering of row bg and line separators (#3293, broken by fixes #3163, code was accidently relying on SetCurrentChannel not updating rectangle) omar 2020-06-10 11:15:44 +0200
  • 58411f27cb Tables: Avoid TableGetSortSpecs() having a side-effect on sort specs sanitization. ocornut 2020-06-03 19:42:43 +0200
  • dc915c86ca Tables: Fixed a manual resize path not marking settings as dirty, TableSortSpecsSanitize() doesn't need to test table->IsInitializing ocornut 2020-06-02 16:33:06 +0200
  • 8690d1f9ce Tables: Fix sort specs sometimes incorrectly reporting sort spec count when table loses _MultiSortable flag during runtime. Rokas Kupstys 2020-06-01 12:25:08 +0300
  • af992d1321 Tables: Tweak settings functions to more prominently clarify the two levels of function. ocornut 2020-06-02 16:03:50 +0200
  • 7513842284 Tables: Fix assert/crash when a visible column is clipped in a multi clip group situation. omar 2020-05-29 19:31:47 +0200
  • e41fc7b5b0 Tables: Fix TableDrawMergeChannels() mistakenly merging unfrozen columns cliprect with host cliprect. Comments, debug. omar 2020-05-29 18:32:04 +0200
  • fec9d7d226 Tables: Rescale fixed widths when font size change to support varying dpi scale at runtime and on .ini reload. omar 2020-05-24 20:07:21 +0200
  • 6bc0bbccf3 Tables: Restore width/weight saving/loading code. Non-weighted width currently not font/DPI change friendly. omar 2020-05-22 18:00:23 +0200
  • af52a0cea2 Tables: Resizing weighted column preserve sum of weights. Fix ResizedColumn init leading to undesirable TableSetColumnWidth() on first run. Rework TableSettingsHandler_ReadLine() structure to allow other types of line. omar 2020-05-22 16:48:13 +0200
  • bc170e7325 Tables: Renamed ResizeWeight->WidthStretchWeight, WidthRequested->WidthFixedRequest, clarififications, comments. omar 2020-05-22 15:27:53 +0200
  • 23c60b2814 Tables: Renamed internal fields: Active->Visible, Visible->VisibleUnclipped to be less misleading. omar 2020-05-14 17:57:25 +0200
  • dff26191bd Tables: Try to report contents width to outer window, generally better auto-fit. omar 2020-05-13 23:42:22 +0200
  • 466b6e619a Tables: Fixed incorrect application of CursorMaxPos.x (3162) omar 2020-05-13 22:24:20 +0200
  • 95c273618e Tables: Allow hot-reload of settings (merge policy), tidying up settings code omar 2020-05-13 20:24:37 +0200
  • 9b6d0fdb7a Tables: Fixed ignoring DefaultHide or DefaultSort data from flags when loading settings that don't have them. omar 2020-05-13 13:30:41 +0200
  • 9f43aae226 Tables: Calculating ideal total width, some renaming, comments. Clarify that inner_width is unused with ScrollX=0. Clip many comments to 120 columns. omar 2020-05-12 17:23:10 +0200
  • b7ff85d9ad Tables: Browse settings list in Metrics (outside of Table entry). omar 2020-05-07 23:52:17 +0200
  • 8eb1c925f0 Tables: Internals: Added FindTableByID(), removing trailing spaces. omar 2020-04-15 11:05:50 +0200
  • e60b5a3f75 Tables: Internals: Added TableGetColumnResizeID(), renamed InstanceNo > InstanceCurrent. omar 2020-04-06 17:20:17 +0200
  • 104b11051f Tables: Added ImGuiTableColumnFlags_NoReorder. omar 2020-03-20 18:53:44 +0100
  • b7fa96679e Tables: Locking IndentX per-row so multiple columns with IndentEnabled don't get indent shearing. omar 2020-03-19 14:55:42 +0100
  • 5ffc9e0846 Tables: Renaming Table's DisplayOrder[] -> DisplayOrderToIndex[], Columns's IndexDisplayOrder -> DisplayOrder omar 2020-03-18 18:20:17 +0100
  • a956629b40 Tables: Using same allocation for our Columns and DisplayOrder array. Mostly designed to facilitate adding new arrays. omar 2020-03-18 18:17:22 +0100
  • 6dff061309 Internals: added ImSpanAllocator<> helper. omar 2020-03-18 17:49:13 +0100
  • 182115409a Internals: added ImSpan helper structure + 2020/10/01 stricter bound checking omar 2020-03-18 12:20:53 +0100