Commit Graph

  • b0db741770 Demo tweaks. Moved Tabs to Widgets section. Added to Tables demo. Increased version following 00b35c08. ocornut 2021-01-14 11:21:13 +01:00
  • 00b35c081e Tables: (breaking) removed ImGuiTableColumnFlags_WidthAuto which now can be expressed as _Fixed + _NoResize. WidthRequest gets updated when RequestOutputMaskByIndex is set rather than Visible. ocornut 2021-01-13 18:04:27 +01:00
  • 8cea3e3ed3 Tables: fixed border straying out of rect when using ImGuiTableFlags_NoBordersInBody with small height. ocornut 2021-01-13 11:45:58 +01:00
  • 002ba1a69f Tables: comments, tweak. CollapsingHeader: comments. (#3715) ocornut 2021-01-12 14:43:48 +01:00
  • feaa7ea003 Examples: Emscripten: Amend ba636c5. (#3705) ocornut 2021-01-11 18:45:53 +01:00
  • 0f14dd9781 Examples: Emscripten: Add 'make serve' helper, move output to web/ folder. (#3705) Horkiandocornut 2021-01-11 18:25:15 +01:00
  • 31a2f0c164 Tables: fixed outer_width misreported to layout for use with SameLine when ScrollY is set but not ScrollX (#3704, #3414) ocornut 2021-01-11 11:25:30 +01:00
  • e485d451d1 Backends: DX12: improve Windows 7 compatibility (#3696) Matthijs Lavrijsenandocornut 2021-01-04 09:27:15 +01:00
  • 36535514d5 Backends: DX12: Fix warning (#3706). Disable obsolete Tables enums, leave them commented out. Using _MSVC_LANG to enable offsetof() and static_assert() on VS2015.3+ ocornut 2021-01-11 10:26:17 +01:00
  • e18abe3619 Tables: (Breaking) Added ImGuiTableFlags_SizingFixedSame, ImGuiTableFlags_SizingStretchProp. Removed ImGuiTableFlags_SameWidths. ocornut 2021-01-08 18:38:55 +01:00
  • 0e3ba37e6d Tables: Tidying up. Shuffle some columns fields to facilitate debugging + comments + demo tweaks + metrics highlight. ocornut 2021-01-08 18:08:35 +01:00
  • 414f82254b Tables: (Breaking) rename ImGuiTableFlags_SizingPolicyFixed > ImGuiTableFlags_SizingFixedFit, ImGuiTableFlags_SizingPolicyStretch > ImGuiTableFlags_SizingStretchSame in prevision for new policies. ocornut 2021-01-08 18:07:16 +01:00
  • 8b5f3798e0 Tables: Moved demo chunks. Made right-most non-resizable same-width column hidden to alleviate the issue where they are off by 1 pixel. ocornut 2021-01-06 17:39:41 +01:00
  • 94a432275b ImDrawList: Internals: Add ability to scale anti-alias fringe. This enable users to keep geometry sharp while scaling vertex buffer content. thedmdandocornut 2018-05-26 13:10:04 +02:00
  • 9bcf77eb81 Fixed using IsItemEdited() after Combo() not matching the return value from Combo(). (#2034) + fix some PVS warnings, fix typo, blanks. ocornut 2021-01-04 19:12:35 +01:00
  • 7d5d5711c2 Backends: OpenGL2, OpenGL3: Backup and restore GL_SHADE_MODAL, GL_STENCIL_TEST, clear GL_NORMAL_ARRAY. Comments., (#3671, #3668) ocornut 2021-01-03 15:55:12 +01:00
  • 0a5f399805 Tables: Fix hiding column right after the frozen line. Fix hovering/resising column delimiter scrolled under frozen columns. (#3678) ocornut 2021-01-03 15:10:35 +01:00
  • 1c1d3b7ab5 Added 64-bit variants of CheckboxFlags() in imgui_internal.h. Improve assert on mismatched ListBoxFooter() call. Fix FAQ index. (#3687) ocornut 2021-01-03 11:31:30 +01:00
  • 8ec5daf35d Happy new year! ocornut 2021-01-03 14:59:32 +01:00
  • fa963b9aaf Inputs: Internal: added SetItemUsingMouseWheel() and mechanism to request mouse wheel for both HoveredId and ActiveId. (#2891) ocornut 2020-12-25 17:52:01 +01:00
  • eb88fee052 Tables: internal tidying up, calculate WidthAuto in first loop of layout + TableSetupColumn() with unspecified stretch weight leaves it at -1.0f (unset) rather than overrding default. Amend 3b3503e. ocornut 2020-12-25 16:10:12 +01:00
  • 68faa16e1d Tables: report auto-fit width in EndTable(), extracted TableGetColumnWidthAuto(). fix minor flickering with IsPreserveWidthAuto (which is a debug feature still), moved some code. ocornut 2020-12-25 14:35:57 +01:00
  • 3573195112 Tables: (breaking) rename ImGuiTableFlags_ColumnsWidthStretch > ImGuiTableFlags_SizingPolicyStretch, ImGuiTableFlags_ColumnsWidthFixed > ImGuiTableFlags_SizingPolicyFixed in prevision for other policies. ocornut 2020-12-24 18:32:27 +01:00
  • b015ea93fd Style tweaks, disabled default window rounding by default, reduced size of resize grip, made less prominent, increased WindowBg alpha in classic style. ocornut 2020-12-24 11:42:28 +01:00
  • 3fbb928c9f Tables: explicit/custom width in TableSetupColumn() is reapplied when table or column becomes not resizable. Comments. ocornut 2020-12-23 12:11:39 +01:00
  • 956435768f Tables: (breaking) renamed ImGuiTableColumnFlags_WidthAutoResize to _WidthAuto., default to WidthFixed policy when host window has auto-resize. ocornut 2020-12-22 22:32:30 +01:00
  • d497f112e7 Tables: simplified and tidying up TableSetColumnWidth(), fixes resizing a fixed column surrounded by stretch column (manually or via auto-fit menu). TableHeader() showing highlighted when held. ocornut 2020-12-22 16:55:40 +01:00
  • 972ca8166f Tables: extracted code for TableGetMaxColumnWidth(), fixing "stuck" resize being lossy as it used an older calculation for it and didn't honor e.g. _NoKeepColumnsVisible ocornut 2020-12-22 16:40:52 +01:00
  • 1aa59f90d0 Minor API comments and tweaks, standardize index used in imgui.h. Tables: tweaked TableSetupColumn() assert to use IM_ASSERT_USER_ERROR(). ocornut 2020-12-22 14:57:43 +01:00
  • 2e48c2da81 Removed redirecting functions/enums names that were marked obsolete in 1.63 (August 2018) + tables tweaks. ocornut 2020-12-21 19:09:11 +01:00
  • 4d8e839ddf Renamed ImDrawList::AddBezierCurve() to ImDrawList::AddBezierCubic(), ImDrawList::PathBezierCurveTo() to ImDrawList::PathBezierCubicCurveTo(). (#3127, #3664, #3665) ocornut 2020-12-21 17:11:33 +01:00
  • 550bfcfc59 Amend defce31 Add ImDrawList::AddQuadBezierCurve(), ImDrawList::PathQuadBezierCurveTo() (#3127, #3664, #3665) ocornut 2020-12-21 16:25:56 +01:00
  • defce31c2e Add ImDrawList::AddQuadBezierCurve(), ImDrawList::PathQuadBezierCurveTo() (#3127, #3664, #3665) Aiekickandocornut 2020-12-20 20:04:48 +01:00
  • a640698123 Clipper: Fixed incorrect end-list positioning when using ImGuiListClipper with 1 item (bug in 1.79). (#3663) nyorainandocornut 2020-12-21 15:52:02 +01:00
  • ae63d56426 Tables: remove ImGuiTableFlags_NoHeadersWidth since it is so rarely used and can be specified on a per-column basis. ocornut 2020-12-18 19:03:10 +01:00
  • 532aa5a69b Tables: (breaking) change outer_size.x default value to -FLT_MIN, make outer_size.x == 0.0f act as ImGuiTableFlags_NoHostExtendX (#3605, ad83976b) when no scrolling and no stretch column. Which is more consistent. ocornut 2020-12-18 17:27:41 +01:00
  • 22ace4438c Tables: clarify assumption that rendering of bg/borders in bg0/bg1 are cpu-clipped allowing frozen/unfrozen to share drawcmd + remove offset on outer borders of scrolling tables. ocornut 2020-12-18 14:14:15 +01:00
  • 30468829c2 Tables: Internal: Maintain InnerRect to further clarify some code. Renamed Bg1 fields to Bg2 (used by Selectable) as the other handles Bg0+Bg1. ocornut 2020-12-18 12:18:34 +01:00
  • ad83976b35 Tables: Added ImGuiTableFlags_NoHostExtendX (#3605) marked as WIP, will probably rename. ocornut 2020-12-17 22:29:11 +01:00
  • c4dbab8f5e Tables: reset all width apply to hidden stretch columns. Comments. ocornut 2020-12-16 16:06:07 +01:00
  • 1fb26d18c4 Tables: fixed seemingly unnecessarily copy of ImGuiTableColumnFlags_NoDirectResize_ which broken resizing from W3| in a F1 W3 F2 setup. Header only allow overlap on hover, not when active (amend f2df804f) ocornut 2020-12-16 15:27:17 +01:00
  • 892b48e2d6 Tables: Lock contents width while resizing down an horizontal scrolling table. Headers declare ideal width regardless of clipping. Misc comments. ocornut 2020-12-14 19:24:48 +01:00
  • bd899efbd0 Tables: fixed "resize to default" of multiple stretch column (added 3b3503e, broken 7a61f340). ocornut 2020-12-14 11:59:01 +01:00
  • f2df804fcc Tables: four small fixes. ocornut 2020-12-13 19:19:23 +01:00
  • 738606a294 Tables: added ImGuiTableFlags_SortTristate. Renamed ImGuiTableFlags_MultiSortable to ImGuiTableFlags_SortMulti. Removed now unused FlagsIn storage. ocornut 2020-12-11 21:33:37 +01:00
  • cad8935bfd Tables: revert setting colum cliprect.max.x to WorkMax.x instead of Max.x at it complicates header code. Fix clipped sort arrow. (amend 17536f9a) ocornut 2020-12-11 18:20:07 +01:00
  • bff1836922 Internals: added facility to hide windows from render without interfering with the HiddenFramesCanSkipItems/HiddenFramesCannotSkipItems fields which have effects on layout. Compact some fields. ocornut 2020-12-11 14:29:42 +01:00
  • 1ad5502f18 Tables: Closer to zero-clear constructor. Lazily clearing name offsets to avoid an iteration in BeginTable(). Removed unused TableSetColumnIsEnabled(), signature went faulty anyway. ocornut 2020-12-10 18:53:57 +01:00
  • 76964a27ce Tables: moved TableNextRow(), TableBeginRow(), TableEndRow(), TableNextColumn(), TableBeginCell(), TableEndCell() to their own section. ocornut 2020-12-10 18:39:37 +01:00
  • e6b875c09b Tables: Ditch old columns flags/setting if not called again. Displaying right-most border when using _SameWidths. Moving Width-related functions to their own section. ocornut 2020-12-10 16:09:11 +01:00
  • 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 +01:00
  • 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 +01:00
  • 9874077fc0 Merge branch 'tables' ocornut 2020-12-04 19:17:13 +01:00
  • 0b14dd9e55 Tables: fixed propagation of line height from outside the table. Added outer-width demo. ocornut 2020-12-04 19:02:35 +01:00
  • 6e38026627 Tables: changelog. removed TableGetHoveredColumn() from public API in favor of using TableGetColumnFlags(). renamed ImGuiTableSortSpecsColumn to ImGuiTableColumnSortSpecs. ocornut 2020-12-04 17:54:40 +01:00
  • 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 +01:00
  • b194df413c Tables: exposed status flags via TableGetColumnFlags(), removed TableGetColumnIsSorted() ocornut 2020-12-03 18:45:15 +01:00
  • 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 +01:00
  • f70bf69e3b Tables: comments and tweaks on TableUpdateLayout(). changed "apply final width" loop to use natural column order. ocornut 2020-12-03 09:40:47 +01:00
  • 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 +01:00
  • e126a64782 Tables: using a typedef in internal code to specify column/draw channel index storage. ocornut 2020-12-01 19:19:01 +01:00
  • 6aa8388e9f Tables: index tweaks, fixed some inconsistent spacings. ocornut 2020-12-01 17:51:17 +01:00
  • 5877b9d722 Tables: moved TablePushBackgroundChannel(), TablePopBackgroundChannel(), TableDrawBorders() to their own section. ocornut 2020-12-01 17:34:24 +01:00
  • 5180025de5 Tables: moved + renamed TableSetupDrawChannels(), TableMergeDrawChannels() to their own section. ocornut 2020-12-01 17:31:59 +01:00
  • b7c83e4bac Tables: moved TableGetSortSpecs(), TableGetColumnIsSorted(), TableFixColumnSortDirection(), TableSetColumnSortDirection() to their own section. ocornut 2020-12-01 17:16:59 +01:00
  • d6b1f0d13d Tables: moved TableHeadersRow(), TableHeader() to their own section. ocornut 2020-12-01 17:02:56 +01:00
  • 592fc69054 Tables: moved TableDrawContextMenu(), TableOpenContextMenu() to their own section. ocornut 2020-12-01 17:01:58 +01:00
  • 7aed4b152b Tables: improve index, file structure tweaks. ocornut 2020-12-01 16:46:35 +01:00
  • 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 +01:00
  • 79c9eaa78e Tables: Internals: renamed Visible to Enabled to avoid confusion with visibility checks. ocornut 2020-11-23 23:19:08 +01:00
  • 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 +01:00
  • 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 +01:00
  • a70c6aae9f Tables: demo synced tables + fix resizing indented synced tables. ocornut 2020-11-20 19:11:33 +01:00
  • 0c9ab0acdd Tables: setup and maintain ItemWidth per column. ocornut 2020-11-20 16:58:48 +01:00
  • 8f126d5d95 Tables: rename ImGuiTableFlags_SizingPolicyStretchX to ImGuiTableFlags_ColumnsWidthStretch, ImGuiTableFlags_SizingPolicyFixedX to ImGuiTableFlags_ColumnsWidthFixed. ocornut 2020-11-18 20:55:01 +01:00
  • 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 +01:00
  • 3a2f0bfc04 Tables: demo inner_size + scrollx + stretch, added TableGetRowIndex(), renamed _WidthAlwaysAutoResize to _WidthAutoResize. ocornut 2020-11-18 14:15:38 +01:00
  • 3b3503e60f Tables: decent support for auto-resize of stretch columns (trickier than it sounds) ocornut 2020-11-16 20:25:35 +01:00
  • 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 +01:00
  • 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 +01:00
  • 52f24df668 Tables: comments, tweaks, added internal TableSetColumnVisible(), merged the two TableSetColumnWidth(). ocornut 2020-11-11 18:54:39 +01:00
  • 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 +01:00
  • 5465d30d67 Tables: added ImGuiTableFlags_PreciseStretchWidths. ocornut 2020-11-06 14:28:43 +01:00
  • 10db896813 Tables: store RawData in a simple void* pointer, rename ContentMinX > WorkMinX, misc tidying up. ocornut 2020-11-05 17:30:30 +01:00
  • 82cf41d804 Tables: tooltip on clipped TableHeader() (amended) ocornut 2020-11-04 22:37:15 +01:00
  • 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 +01:00
  • fe6131168a Tables: Additionally commentary about clipper in the demo + minor padding tweak. ocornut 2020-11-03 18:47:05 +01:00
  • 94d99f9d0b Tables: Fixed crash when increaasing columns count with bound settings. ocornut 2020-11-03 18:08:26 +01:00
  • 24a7c45b02 Tables: Fix for 64 columns (maximum of 131 temporary draw channels). ocornut 2020-11-03 15:10:22 +01:00
  • e5a5256971 Tables: Garbage collection to relieve draw splitter buffers + for test engine: compact settings, remove table. ocornut 2020-11-03 11:25:36 +01:00
  • f80097ca96 Tables: Fix applying WorkRect in non-scrolling tables. Fix inverted BackgroundClipRect being passed to ImDrawCmd. ocornut 2020-10-30 21:35:23 +01:00
  • 557253e776 Tables: create a separate background draw channel for rows below the frozen line. ocornut 2020-10-30 20:30:53 +01:00
  • 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 +01:00
  • 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 +01:00
  • d3222086f0 Tables: Moved TableSetupScrollFreeze(), TableUpdateDrawChannels() lower in more adequate spots. ocornut 2020-10-27 15:06:05 +01:00
  • 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 +01:00
  • 51abdd53e3 Tables: renamed somehow-duplicate ContentWidth members (implicitly == Max - Min), renamed StartX to ContentMinX for consistency. ocornut 2020-10-26 13:55:53 +01:00
  • 1731ae5a09 Tables: Reworked padding/spacing/width. ocornut 2020-10-07 22:44:02 +02:00
  • 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 +01:00
  • f4800db178 Tables: Extracted parts of BeginTable() into TableFixFlags() and TableBeginInitMemory(). ocornut 2020-10-21 14:07:26 +02:00