6182973bde
Tables: (Breaking) Rename TableNextCell() to TableNextColumn(), made TableNextRow() NOT enter into first column.
ocornut2020-10-01 14:03:25 +02:00
b1ebf964f5
Tables: Moved TableSetColumnIndex() next to TableNextCell() since they are so similar + made NextCell() crash proof.
ocornut2020-09-30 23:42:37 +02:00
248960d64c
Tables: Fix ImGuiTableColumnFlags_WidthAlwaysAutoResize columns when clipped (which would be default behavior without _Resizable and when clipping/scrolling)
ocornut2020-09-30 22:37:59 +02:00
25b5cc2f95
Tables: Fixes to support any number of frozen rows (over modifications to clipper code in master) + make clipper run eval after clipect update
omar2020-09-28 17:30:39 +02:00
cc12ea084b
Tables: Added TableSetColumnSortDirection() + added in default context menu code (disabled, feels unnecessary, but work is done to ensure programmatic access)
ocornut2020-09-24 15:10:47 +02:00
36b2f3b4f1
Tables: renamed ImGuiTableFlags_NoClipX to ImGuiTableFlags_NoClip, clarified purpose, moved lower in the list as it doesn't need to be so prominent.
ocornut2020-09-23 16:42:44 +02:00
8ec05fc034
Tables: Fixed holding on table pointers accross resize/invalidation of the pool buffer.
omar2020-09-23 14:22:41 +02:00
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
omar2020-09-23 12:53:10 +02:00
f6800e9d3b
Tables: Extend outer-most clip limits to match those of host when merging draw calls.
ocornut2020-09-18 20:44:50 +02:00
3d573103b6
Tables: Fixed lower clipping when using ImGuiTableFlags_NoHostExtendY.
ocornut2020-09-18 20:42:05 +02:00
8e97cdf8e8
Tables: Fix for calling TableSetBgColor(ImGuiTableBgTarget_CellBg) multiple times on the same cell.
omar2020-08-24 15:34:43 +02:00
eb18636e02
Tables: Fix settings not being saved in child window (issue 3367) + fix for change in master.
omar2020-08-05 19:26:54 +02:00
9d8b40414a
Tables: Added TableSetBgColor() api with color for RowBg and CellBg colors.
omar2020-07-28 15:53:14 +02:00
b6405a291d
Tables: Fixed TableHeader() not declaring its height properly. Do NOT declare width.
omar2020-07-28 15:27:22 +02:00
0847373b98
Tables: Comments on Sizing Policies + Rename border V/H flags HInner -> InnerH + offset every flags by two.
omar2020-07-27 21:45:38 +02:00
30e21eb280
Tables: non-resizable columns also submit their requested width for auto-fit,
omar2020-07-21 14:36:31 +02:00
a0e6aa1766
Tables: Fix calculation of auto-fit (remove padding). Demo setting a width in columns setup + ImGuiTableFlags_NoKeepColumnsVisible.
omar2020-07-17 23:23:04 +02:00
c96c84b6dc
Tables: Store submitted column width and avoid saving default default widths.
omar2020-07-17 22:39:28 +02:00
57916b891b
Tables: Simplified TableHeader() and not relying on Selectable(), fixed various padding issues. Added work-around for CellRect.Min.x offset by CellSpacing.x.
omar2020-07-02 21:41:29 +02:00
fcdfde2bc6
Tables: Extracted border size into a named variable.
omar2020-07-02 18:59:02 +02:00
03c8bfaf23
Tables: Removed extra +1.0f pixels initially allocated to make right-most column visible, fix visible padding asymmetry. Tweaked debug code in demo.
omar2020-07-02 13:59:30 +02:00
745d8cdb49
Tables: Made TableHeader() responsible for opening per-column context menu to move responsibility away from TableAutoHeaders().
omar2020-06-19 17:28:06 +02:00
7ca70dcb81
Tables: Using same seed ID regardless of when using a child window or not.
ocornut2020-06-17 15:27:17 +02:00
798aed729a
Tables: Added TableGetHoveredColumn(), extracted some context menu code out, simplifying TableAutoHeaders() toward aim of it being a user-land function.
ocornut2020-06-16 21:15:49 +02:00
4c4882ffe4
Tables: Fixed channel merge when resizing columns with headers. Disable unnecessary and broken merge when using _NoClipX.
ocornut2020-06-15 15:24:59 +02:00
8530b6af3d
Tables: Not flagging whole column as SkipItems based on clipping visibility (breaks layout)
omar2020-06-13 18:02:02 +02:00
363eae94e6
Tables: Further fix#3293, #3163 + fixed for row unfreezing border not always showing due to unset clip rect.
omar2020-06-13 17:27:51 +02:00
b741639468
Tables: Fix rendering of row bg and line separators (#3293, broken by fixes#3163, code was accidently relying on SetCurrentChannel not updating rectangle)
omar2020-06-10 11:15:44 +02:00
58411f27cb
Tables: Avoid TableGetSortSpecs() having a side-effect on sort specs sanitization.
ocornut2020-06-03 19:42:43 +02:00
dc915c86ca
Tables: Fixed a manual resize path not marking settings as dirty, TableSortSpecsSanitize() doesn't need to test table->IsInitializing
ocornut2020-06-02 16:33:06 +02:00
8690d1f9ce
Tables: Fix sort specs sometimes incorrectly reporting sort spec count when table loses _MultiSortable flag during runtime.
Rokas Kupstysandocornut2020-06-01 12:25:08 +03:00
af992d1321
Tables: Tweak settings functions to more prominently clarify the two levels of function.
ocornut2020-06-02 16:03:50 +02:00
7513842284
Tables: Fix assert/crash when a visible column is clipped in a multi clip group situation.
omar2020-05-29 19:31:47 +02:00
fec9d7d226
Tables: Rescale fixed widths when font size change to support varying dpi scale at runtime and on .ini reload.
omar2020-05-24 20:07:21 +02:00
6bc0bbccf3
Tables: Restore width/weight saving/loading code. Non-weighted width currently not font/DPI change friendly.
omar2020-05-22 18:00:23 +02:00
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.
omar2020-05-22 16:48:13 +02:00
95c273618e
Tables: Allow hot-reload of settings (merge policy), tidying up settings code
omar2020-05-13 20:24:37 +02:00
9b6d0fdb7a
Tables: Fixed ignoring DefaultHide or DefaultSort data from flags when loading settings that don't have them.
omar2020-05-13 13:30:41 +02:00
9f43aae226
Tables: Calculating ideal total width, some renaming, comments. Clarify that inner_width is unused with ScrollX=0. Clip many comments to 120 columns.
omar2020-05-12 17:23:10 +02:00
b7ff85d9ad
Tables: Browse settings list in Metrics (outside of Table entry).
omar2020-05-07 23:52:17 +02:00
a956629b40
Tables: Using same allocation for our Columns and DisplayOrder array. Mostly designed to facilitate adding new arrays.
omar2020-03-18 18:17:22 +01:00
054c67079a
Tables: Fix scrolling with more than 32 columns (3058). Fix limit of 63 columms instead of 64. Added BitArray.
ocornut2020-03-13 18:58:55 +01:00
d37cef40f2
Tables: Tidying up TableDrawMergeChannels() with a struct. (3058)
ocornut2020-03-13 16:16:20 +01:00
7277ab6530
Tables: Comments, renamed merge_set_xxx to merge_group_xxx. Removed unused array and incorrect assert, replaced with earlier correct assert. (3058)
ocornut2020-03-13 11:49:52 +01:00
f5eee210a0
Tables: TableHeader() uses provided row min header rather than incremental one to allow multi-item multi-line in header cells. Demo TableHeader() - will caveat, comments.
omar2020-01-20 12:41:23 +01:00
5431cbd3f0
Tables: Honor width/weight passed to TableSetupColumn() after .ini load since we don't actually restore that data currently.
omar2020-01-09 22:02:16 +01:00
0e7b3f2f2f
Tables: Made only first column honor Indent by default (like Columns api) and exposed flags. Added simple Tree demo.
omar2020-01-09 21:10:45 +01:00
2958e37310
Tables: Storing per-column SkipItems as a shortcut. Comments, Spacings.
omar2020-01-09 17:31:26 +01:00
31de161066
Tables: Fix for hiding first column (fix fcceff5c + reading PrevLineTextBaseOffset in EndCell of inactive column).
omar2020-01-06 12:21:15 +01:00
164caa2db7
Tables: Support for multi-line columns name. Renaming of some fields from BackupXXX to HostXXX. Comments.
omar2020-01-06 11:53:04 +01:00
e85c226da4
Tables: Fix reordering across hidden columns. Fix for frozen columns to never be larger than scrolling visible rect width.
omar2020-01-03 18:27:11 +01:00
416e9bb38d
Tables: Clarify internal calculations of row height so that TableGetCellRect() include expected paddings. Add demo code. Comments.
omar2020-01-03 00:31:06 +01:00
325b4c69ba
Tables: Moved border colors to the Style (maybe temporarily?) instead of hardcoding them.
omar2019-12-30 16:31:18 +01:00
17578e215a
Tables: Separating inner/outer borders flags per axis so it is possible to remove outer vertical borders to mimic old columns.
omar2019-12-30 15:14:15 +01:00
1db8d421cf
Tables: Fix scroll when releasing resize for multi-instances. Comments. Renaming.
omar2019-12-30 13:01:36 +01:00
47b39f6371
Tables: Demo: Moved Columns section into Tables & Columns section under a Legacy section.
omar2019-12-29 19:48:10 +01:00
78b12068d9
Tables: Disable initial output prior to NextRow call to avoid misleading users.
omar2019-12-29 17:35:12 +01:00
046fad01f1
Tables: Return false when window is Collapsed (consistent + helpful for doc) + Fix empty context menu.
omar2019-12-29 17:12:09 +01:00
81453ac42c
Tables: Comments, better assert, moved some internal flags out of the way.
omar2019-12-29 17:10:42 +01:00
0c3d7bb154
Tables: Double-clicking on fixed column to resize. Extracted code BeginTableEx().
omar2019-12-28 19:34:19 +01:00
883c236eda
Tables: Handle columns clipped due to host rect
omar2019-12-28 19:17:59 +01:00
eee82e0451
Tables: Columns with no policy in a scrolling table will default to WidthFixed instead of WidthAlwaysAutoResize if an explicit value is passed to TableSetupColumn()
omar2019-12-28 17:45:15 +01:00
e06a36ab12
Tables: Support for multiple Tables using same id where most settings are synced.
omar2019-12-26 11:15:56 +01:00
f9b873662b
Backends: Win32: Fixed setting of io.DisplaySize to invalid/uninitialized data when after hwnd has been closed.
ocornut2020-12-04 11:48:17 +01:00
998d7303b1
Log/Capture: fix capture to work on clipped child windows.
ocornut2020-12-03 15:14:32 +01:00