omar
|
958d75c00a
|
Style: Added style.WindowMenuButtonPosition (left/right, defaults to ImGuiDir_Left) to move the collapsing/docking button to the other side of the title bar.
|
6 years ago |
omar
|
6c3697f6f1
|
Internal: CloseButton takes an upper-left corner + a size to be consistent with similar widgets.
|
6 years ago |
omar
|
ec3ec24157
|
Internals: Extracted some of the tab bar shrinking code into a ShrinkWidths() function so columns/table can use it.
|
6 years ago |
omar
|
3fda90d6a7
|
Fixed InputScalar, InputScalarN, SliderScalarN, DragScalarN with non-visible label from inserting style.ItemInnerSpacing.x worth of trailing spacing.
|
6 years ago |
omar
|
7bc03f7155
|
Internals: Added InnerWorkRect equal to old InnerClipRect, added InnerWorkRectClipped actually clipped.
|
6 years ago |
omar
|
882d2c3aea
|
Fixed crash when appending with BeginMainMenuBar() more than once and no other window are showing. (#2567) + comments
|
6 years ago |
omar
|
f242cd4d8a
|
Fixed GCC mem-access warnings (#2565)
+ using "if defined" more consistently for Clang.
|
6 years ago |
omar
|
e6109a9145
|
Fixed ColorEdit breakage introduced by d3a387c (#2557, #1875, #2034)
|
6 years ago |
omar
|
d3a387cc18
|
Fixed InputFloatX, SliderFloatX, DragFloatX functions erroneously reporting IsItemEdited() multiple times when the text input doesn't match the formatted output value (e.g. input "1" shows "1.000"). It wasn't much of a problem because we typically use the return value instead of IsItemEdited() here. (#1875, #2034)
|
6 years ago |
omar
|
99a845053a
|
Internal: Renamed fields + minor tweaks (probably shallow break stack-layout pr, sorry!)
|
6 years ago |
omar
|
64dbd932d2
|
Internal: Removed GetNextItemWidth(), relying on ItemAdd or NextItemData.ClearFlags() to clear the width data. Amend 5078fa20 and undo some of its effects of imgui_widgets.cpp
|
6 years ago |
omar
|
632469d2e5
|
Renamed SetNextTreeNodeOpen() to SetNextItemOpen(). Refactored SetNextItemXXX stuff to match SetNextWindowXXX code closely.
|
6 years ago |
omar
|
36e714a459
|
Internal: Storing flags for NextWindowData so that we can clear everything with a single write and remove dummy condition fields.
|
6 years ago |
omar
|
0b485f12d7
|
Internal: Minor tidying/reordering of sections within ImGuiContext / window DC.
|
6 years ago |
omar
|
39eeda0227
|
Internal: Scrollbar: Further sane simplification (using InnerMainRect instead of duplicating calculations).
|
6 years ago |
omar
|
37174c85e2
|
Internal: Scrollbar: Extracted scrollbar code for other uses (eg. table v2 scrolling without using a child window).
|
6 years ago |
omar
|
9534ef9b26
|
Separator: Revert 1.70 "Declare its thickness (1.0f) to the layout" change (c5d83d8a ). It's not incorrect but it breaks existing some layout patterns. Will return back to it when we expose Separator flags.
|
6 years ago |
omar
|
a4d0b0efa4
|
Internal: Refactored Separator into SeparatorEx(), exposed ImGuiSeparatorFlags_SpanAllColumns in imgui_internal.h and support without. (#759) + misc comments
|
6 years ago |
omar
|
b7c2759f95
|
Columns: Fixed Separator from creating an extraneous draw command. Fixed Selectable with SpanAllColumns flag from creating an extraneous draw command. (#125)
|
6 years ago |
omar
|
42fc563fed
|
Version 1.71 WIP + fixed minor typo
|
6 years ago |
omar
|
d1d5075b66
|
Version 1.70
|
6 years ago |
omar
|
2dc81057ec
|
Selectable: With ImGuiSelectableFlags_AllowDoubleClick doesn't return true on the mouse button releas efollowing the double-click. Only first mouse release + second mouse down (double-click) returns true. Likewise for internal ButtonBehavior() with both _PressedOnClickRelease | _PressedOnDoubleClick. (#2503)
|
6 years ago |
omar
|
ce19cb465f
|
Internals: Rename GetContentRegionMaxScreen() -> GetWorkRectMax(). At this point this is mostly useful to facilitate merge of other branches.
|
6 years ago |
omar
|
4dec744795
|
Tidying up BeginMenu() code + comments.
|
6 years ago |
omar
|
bda2cde68e
|
Popups: Closing a popup restores the focused/nav window in place at the time of the popup opening, instead of restoring the window that was in the window stack at the time of the OpenPopup call. (#2517)
Among other things, this allows opening a popup while no window are focused, and pressing Escape to clear the focus again.
|
6 years ago |
omar
|
3276b12765
|
Internals: Added DataTypeApplyOp, DataTypeApplyOpFromText to imgui_internal.h
|
6 years ago |
omar
|
4e81b2d093
|
Internals: Renaming. Renamed ImGuiPopupRef to ImGuiPopupData for consistency and added constructor.
|
6 years ago |
omar
|
3d363c91fd
|
Internals: Exposed ImGuiDataTypeInfo, DataTypeGetInfo(), DataTypeFormatString(). Comments.
|
6 years ago |
omar
|
c5d83d8af2
|
Separator: Declare its thickness (1.0f) to the layout, making items around separator more symmetrical.
|
6 years ago |
omar
|
56c3aaf6bd
|
Nav: Fixed Drag/Slider functions going into text input mode when keyboard CTRL is held while pressing NavActivate.
|
6 years ago |
omar
|
dd15b44230
|
Internals: TempInputText: Tidying up DragScalar / SliderScalar / TempInputTextScalar.
|
6 years ago |
omar
|
0ca1675ff9
|
Internals: TempInputText: Rename InputScalarAsWidgetReplacement() -> TempInputTextScalar(), ScalarAsInputTextId -> TempInputTextId, small tidying up in affected functions.
|
6 years ago |
omar
|
59a3f0476d
|
Internals: Using more explicit PushOverrideID() helper + renamed equivalent internal tree helper.
|
6 years ago |
omar
|
16b18b265e
|
MenuItem, BeginMenu: Fix undesirable tall frames in horizontal layout context, which would be visible when trying to use rounded selectable/menus.
PushStyleVar: Added comments in the assert message.
Minor tweaks.
|
6 years ago |
omar
|
6db0766564
|
Misc comments, internal renaming, added disable indentation option to Columns demo section.
|
6 years ago |
omar
|
59f012d656
|
Internals: ImHashStr() default parameter.
|
6 years ago |
omar
|
5078fa208b
|
Added SetNextItemWidth() helper to avoid using PushItemWidth/PopItemWidth() for single items.
|
6 years ago |
omar
|
f355a40367
|
Added commentary about ContentRegion functions. Added internal GetContentRegionMaxScreen() to facilitate internal code at the moment.
|
6 years ago |
omar
|
9d4a893a77
|
Internals: Moved CalcItemSize next to CalcItemWidth, added comments to clarify their respective intent. Should have no side effect.
|
6 years ago |
omar
|
240dddff87
|
Combo, Slider: Improve rendering in situation when there's there's very little space available.
|
6 years ago |
omar
|
1aeee9d40f
|
Internals: Columns: Tweaks, renaming. Metrics: Show rectangles for child windows.
Renamed SameLine() first parameter.
|
6 years ago |
omar
|
7baf45cffa
|
Metrics: Added "Show windows rectangles" tool to visualize the different rectangles.
|
6 years ago |
omar
|
311469e9d6
|
Internals: Columns: Some renaming, extracted code into GetColumnsID().
|
6 years ago |
omar
|
fb2626c21b
|
Tests: Added hook/tweaks for imgui-test engine. + Fixed warnings.
|
6 years ago |
omar
|
30d81f53cb
|
PlotLines, PlotHistogram: Ignore NaN values when calculating min/max bounds. (#2485)
|
6 years ago |
omar
|
ee02cdbf03
|
Internals, Docs: Added a bunch of clarification about ButtonBehavior in the form of a table (and to facilitate writing tests)
|
6 years ago |
omar
|
07a70dc972
|
Internals: Merge minor things from range_select branch. Added ImGuiButtonFlags_NoHoveredOnNav. Added IsItemToggledSelected() - unused here. Renaming.
|
6 years ago |
omar
|
1391904fd2
|
Internals: Selectable: Added ImGuiSelectableFlags_AllowItemOverlap in imgui_internal.h (~ #684, #2341)
|
6 years ago |
omar
|
b53630813e
|
Internals: Tweak ItemSize calls. Added todo items.
|
6 years ago |
omar
|
c8fd4afd75
|
Misc: Added IM_MALLOC/IM_FREE macros mimicking IM_NEW/IM_DELETE so user doesn't need to revert to using the ImGui::MemAlloc()/MemFree() calls directly.
|
6 years ago |