Commit Graph

  • 0920ad9f04 Begin: WIP consistent Begin/End behavior, BeginTooltip API (one issue with BeginDragDropSource) ocornut 2020-10-19 17:45:34 +0200
  • 698743c849 Begin: WIP consistent Begin/End behavior, docking bits ocornut 2020-10-19 14:09:34 +0200
  • 1848480798 Begin: WIP consistent Begin/End behavior, more fixes. ocornut 2020-10-19 14:06:14 +0200
  • f4edca3e65 Begin: WIP consistent Begin/End behavior. omar 2020-07-20 23:20:16 +0200
  • 8035405481 Begin: Move code from BeginChild() to EndChild() to allow End() calling EndChild() in new-begin experiments. omar 2020-07-20 23:12:21 +0200
  • 3346544cf5 Examples: Fix batch files (amend b1a18d82, #3513), standardize them + DirectX12: Move ImGui::Render() call above the first barrier to clarify its lack of effect on the graphics pipe. ocornut 2020-12-09 18:12:38 +0100
  • 17536f9add Tables: more consistent use of CellPadding.x*2 and clip-rect on right-most side of non-bordered column + fix cellbg for standalone TableHeader call. ocornut 2020-12-08 16:26:18 +0100
  • dd4ca70b0d Merge branch 'master' into docking ocornut 2020-12-04 19:22:15 +0100
  • 9874077fc0 Merge branch 'tables' ocornut 2020-12-04 19:17:13 +0100
  • 0b14dd9e55 Tables: fixed propagation of line height from outside the table. Added outer-width demo. ocornut 2020-12-04 19:02:35 +0100
  • 6e38026627 Tables: changelog. removed TableGetHoveredColumn() from public API in favor of using TableGetColumnFlags(). renamed ImGuiTableSortSpecsColumn to ImGuiTableColumnSortSpecs. ocornut 2020-12-04 17:54:40 +0100
  • 7a61f3407b Tables: support internal TableResetSettings(), clarify lifetime, fixed missing auto-fit on column unhidden after first run, fixed resize assert when changing column sizing policy to stretch mid-frame (before of -1.0f weight) ocornut 2020-12-04 15:52:51 +0100
  • b194df413c Tables: exposed status flags via TableGetColumnFlags(), removed TableGetColumnIsSorted() ocornut 2020-12-03 18:45:15 +0100
  • 984c4cb5f8 Tables: distinguishing per-column IsVisible from IsRequestOutput which is returned to user. Clarified clipping rules/requirements. Comments. ocornut 2020-12-03 16:29:08 +0100
  • f70bf69e3b Tables: comments and tweaks on TableUpdateLayout(). changed "apply final width" loop to use natural column order. ocornut 2020-12-03 09:40:47 +0100
  • 155b8bb816 Tables: Shared menu item id for "Size all" variations. Avoid allocation on single sort specs. Fix TableGetColumnIsEnabled(). Massage TableHeaderRows(). ocornut 2020-12-02 13:58:55 +0100
  • e126a64782 Tables: using a typedef in internal code to specify column/draw channel index storage. ocornut 2020-12-01 19:19:01 +0100
  • 6aa8388e9f Tables: index tweaks, fixed some inconsistent spacings. ocornut 2020-12-01 17:51:17 +0100
  • 5877b9d722 Tables: moved TablePushBackgroundChannel(), TablePopBackgroundChannel(), TableDrawBorders() to their own section. ocornut 2020-12-01 17:34:24 +0100
  • 5180025de5 Tables: moved + renamed TableSetupDrawChannels(), TableMergeDrawChannels() to their own section. ocornut 2020-12-01 17:31:59 +0100
  • b7c83e4bac Tables: moved TableGetSortSpecs(), TableGetColumnIsSorted(), TableFixColumnSortDirection(), TableSetColumnSortDirection() to their own section. ocornut 2020-12-01 17:16:59 +0100
  • 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