omar
b7a563276d
ColorTooltip: Honor ImGuiColorEditFlags_HalfAlphaPreview flag by calling ColorButton(). Added HalfAlphaPreview to demo. ( #346 )
8 years ago
omar
c1c2b2400a
ColorButton: Undo ce203f99f5
8 years ago
omar
2e37db9002
ColorEdit4: Fix not forwarding ImGuiColorEditFlags_AlphaBar flag to ColorPicker4 ( #346 )
8 years ago
omar
27e5b09af1
ColorButton: ImGuiColorEditFlags_HalfAlphaPreview flag to render both opaque and alpha-with-checkerboard versions of the peak preview ( #346 )
8 years ago
omar
69dd1ed583
RenderColorRectWithAlphaCheckerboard() in one layer to shunt out anti-alasing artefacts when rounded. Added ImLerp(int,int,float). ( #346 )
8 years ago
omar
76bae2f015
ColorEdit, ColorPicker: Fixed broken build due to commiting an undesirable change in 78a8f798c5
( #346 )
8 years ago
omar
19c6a9c0e0
ColorButton, ColorPicker: painfully made RenderColorRectWithAlphaCheckerboard more friendly to using Rounding and Border in style, still not perfect :( ( #346 ) + comments
8 years ago
omar
6796e771fd
ColorEdit, ColorPicker: added ImGuiColorEditFlags_NoAlphaPreview flag ( #346 ). Reorder flags again.
8 years ago
omar
ce203f99f5
ColorButton: Push a text baseline offset if higher than g.FontSize. ( #346 )
8 years ago
omar
78a8f798c5
ColorEdit, ColorPicker, ColorButton: Display grid under transparent colors (WIP) ( #346 )
8 years ago
omar
9d0e5beaa7
GetColorU32(ImGuiCol): avoid using GImGui twice since some implementation make it a TLS-ish variable with non-trivial accessors.
8 years ago
omar
95fe11b5bf
Added GetColorU32(u32) variant that does the style alpha multiply without a floating point round trip. Not 100% sure about that before the signature may seem ambiguous? But also make using imgui+drawlist more consistent in end-user extensions.
8 years ago
omar
4f1f251bd2
ColorEdit, ColorPicker: Context / options menu allows to toggle between u8 and float display. Using short words to avoid localization. ( #346 )
8 years ago
omar
8d32e8dae6
ColorPicker: Handle out of 0..1 range colors when displaying the cross hair. ( #346 )
8 years ago
omar
7b2d79cffd
ColorEdit: Added ImGuiColorEditFlags_Float flag to display and edit drag values in 0.0..1.0 range instead of 0..255. ( #346 )
8 years ago
omar
a8b202782f
ColorPicker,ColorButton: Honor Border/Shadow style settings ( #346 )
8 years ago
omar
790d0eb5be
ColorPicker: Added ImGuiColorEditFlags_AlphaBar option ( #346 )
8 years ago
omar
4355b2e422
ColorPicker: Honor ImGuiColorEditFlags_NoColorSquare flag + comments ( #346 )
8 years ago
omar
15be7e1a71
ColorPicker: new prototype for ColorButton() .Added _NoTooltip, _NoLabel flags. Changing _Alpha flag to _NoAlpha makes so much much sense and allow to revert default parameters to zero. ColorEdit4/Picker4 don't attempt to read/write fourth component, making ColorEdit3/Picker3 shorter/faster. Tooltip and Picker called from ColorEdit can have a title. Picker shows colored square. Moved ColorTooltip() to imgui_internal.h ( #346 )
8 years ago
omar
dd9c2f97a8
ColorPicker: Renamed _NoSliders to _NoInputs ( #346 )
8 years ago
omar
eba33deaf3
ColorPicker: Longer white line for hue/alpha selection, scale down according to ItemInnerSpacing. ( #346 )
8 years ago
omar
1edeea2f5a
ColorPicker: Removed extraneous ImGui:: prefixes + minor comments ( #346 )
8 years ago
omar
e79d7553b0
ColorPicker: Don't use Alpha setting when enabling all 3 sliders ( #346 )
8 years ago
omar
97bedd704c
Better, unified color tooltip ( #346 )
8 years ago
omar
c8553817d9
Merge branch 'master' into 2016-02-colorpicker
8 years ago
omar
138a9dbaeb
Tooltip: SetTooltip() is expanded immediately into a window, honoring current font / styling setting. Add internal mechanism to override tooltips (not exposed in BeginTooltip yet because bools are evil) ( #862 )
8 years ago
omar
e4007f7145
Internals: Move GetVisibleRect() a few functions above so it gets to hang out with its peers.
8 years ago
omar
85d9c8fb46
Internals: renaming IndexWithinParent to OrderWithinParent
8 years ago
omar
25f3717a1c
Removed IsPosHoveringAnyWindow() which was severaly broken and misleading (most people want to use io.WantCaptureMouse). Added dummy function with assert for now. ( #1237 )
8 years ago
omar
3e4cb40d45
Merge branch 'master' into 2016-02-colorpicker
8 years ago
omar
41f944238b
Comments about GlyphExtraSpacing ( #1192 )
8 years ago
omar
be7fa76fdd
Fixed Clang unknown-warning-ignored warning by ignoring it..... we are truly living in a special time ( #1090 )
8 years ago
omar
cb6d893a13
Comments ( #383 , #1224 )
8 years ago
omar
d3f4309491
Comments about ImGuiStyleVar enum ( #1198 )
8 years ago
omar
a5e0210902
Revert 978c84d2e9
because int32 >> 32 tends to warns on some compilers/settings. Add ImU64 type. ( #1184 )
8 years ago
omar
e47cf79773
Comments tweaks, typos ( #1188 )
8 years ago
omar
4c8d87d3fb
Comments ( #1188 )
8 years ago
omar
978c84d2e9
Removed dependency on int64_t type (unvailable in VS2008) by rewording an assert ( #1184 )
8 years ago
omar
12d265fa31
Version 1.51 WIP tag
8 years ago
omar
5e1caaaef3
Version 1.50
8 years ago
omar
7ad84b22f8
Comments
8 years ago
omar
62c4698a73
Further clarifications of the key indices passed to IsKeyXXX functions ( #1159 )
8 years ago
omar
8228dc20df
Merge branch 'master' into 2016-07-navigation
8 years ago
omar
c038339a4c
Merge branch 'master' into 2015-02-colorpicker
8 years ago
omar
9da53bcecd
ImFontConfig: Removed MergeGlyphCenterV in favor of a more multipurpose ImFontConfig::GlyphOffset. (Breaking change)
8 years ago
omar
bd9868f447
Scrollbar: Avoid rendering when sizes are negative to reduce glitches (not sure how this ever slipped through - perhaps because of WindowMinSize settings).
8 years ago
omar
dbfd5d6e9a
Ignoring unreasonnable Clang -wformat-pedantic warning ( #1090 )
...
See e.g.
http://clang-developers.42468.n3.nabble.com/The-p-conversion-and-cast-to-void-td4044226.html
8 years ago
omar
27b83a2cac
Merge branch 'master' into 2016-07-navigation
8 years ago
omar
89b1497843
Merge branch 'master' into 2016-02-colorpicker
8 years ago
omar
a0a6c8a2ef
Renamed ImDrawList::PathFill() to ImDrawList::PathFillConvex() for clarity. (breaking API)
8 years ago
omar
d878462866
End() avoid calling Columns() if no columns set is open, not sure what it wasn't the case.
...
Pros: Faster. Avoid early crashes StackId underflow that are meant to be more gracefully caught by CheckStacksSize() (with more explicit assert). Cons: Excercise less code.
8 years ago
omar
bbd44b4edd
Clarified asserts in CheckStacksSize() when there is a stack mismatch
8 years ago
omar
0e1950f7d6
Comments about child menu positioning ( #1086 )
8 years ago
omar
2a3c61e5f8
Merge branch 'master' into 2016-07-navigation
8 years ago
omar
92ea8d1131
Merge branch 'master' into 2016-02-colorpicker
8 years ago
Codecat
fdd11658eb
Fix ColorButton showing wrong hex value for alpha
8 years ago
omar
b8043d3ee5
Internal: Renamed ImLoadFileToMemory to ImFileLoadToMemory to be consistent with ImFileOpen + fix mismatching .h name ( #917 )
8 years ago
omar
b6c0227add
Merge branch 'master' into 2016-02-colorpicker
8 years ago
omar
c76be71acf
Merge branch 'master' into 2016-07-navigation
8 years ago
omar
6257b5814a
Added an explicit (internal) ClearActiveID() helper and removed the default NULL window parameter to internal SetActiveID(),
8 years ago
ocornut
a60b2cc645
Merge branch 'master' into 2016-02-colorpicker
8 years ago
ocornut
bb4d19ff7c
Merge branch 'master' - merge fix
8 years ago
ocornut
fdc70456f4
Merge branch 'master' into 2016-07-navigation
8 years ago
omar
081aec482b
Merge pull request #931 from nlguillemot/master
...
Combo, ListBox: Extra const correctness.
8 years ago
ocornut
baa2e3b451
Minor documentation tweaks
8 years ago
Nicolas Guillemot
36d78e0565
const correctness for Combo and ListBox
...
Since Combo and ListBox only read and display the list of items, they
should not modify the pointers inside the array of pointers passed in.
Adding "const" here makes it possible to call these functions with such
an array of const pointers. Previously, a cast to "const char**" was
required as a workaround, otherwise there was a compile error.
8 years ago
ocornut
55d651812d
Renaming and massaging internal Settings/Ini functions ( #923 )
8 years ago
ocornut
0b6211f907
Fixed clicking on a window's void while staying still overzealously marking .ini settings as dirty ( #923 )
8 years ago
ocornut
9235e0da46
SliderInt, SliderFloat(): Fixed edge case where style.GrabMinSize being bigger than slider width can lead to a division by zero ( #919 )
8 years ago
ocornut
ca9a918535
SliderInt(): Fixed reverse direction mode when (v_max-v_min)==-1 ( #854 ) (+ ref #919 )
8 years ago
ocornut
bbd0a37bd2
ImFileOpen: MinGW uses _wfopen() codepath to support UTF-8 filenames ( #917 )
8 years ago
ocornut
449c47c789
SliderInt, SliderFloat() interacting enforce modifying to the value to be consistent with other widget behaviors ( #919 )
8 years ago
ocornut
94c77edfa5
SliderInt, SliderFloat() Better display support for v_min==v_max range. ( #919 )
8 years ago
ocornut
0a483379af
Split SliderBehaviorCalcRatioFromValue() out of SliderBehavior(), fix + Not using fabsf() anymore
8 years ago
ocornut
004e863727
Split SliderBehaviorCalcRatioFromValue() out from SliderBehavior()
8 years ago
ocornut
67c6d6026a
Nav: SliderFloat() Fixed non-linear sliders in Nav branch ( #787 , #323 )
8 years ago
ocornut
3028ccc25b
Merge remote-tracking branch 'origin' into 2016-07-navigation
8 years ago
ocornut
f4cf972ea9
Merge branch 'master' into 2016-02-colorpicker
8 years ago
ocornut
219e4fb8fb
SliderInt, SliderFloat: Passing v_min==v_max disable setting value from clicking/dragging ( #919 )
8 years ago
ocornut
a868c32ed1
SliderInt, SliderFloat: Renaming
8 years ago
ocornut
61d5b46307
SliderInt, SliderFloat(): support reverse direction ( #854 )
8 years ago
ocornut
104b381023
Using _wfopen() under Windows+MSVC because fopen() doesn't support UTF-8 encoding. Wrapped as ImFileOpen(). ( #917 )
8 years ago
Geoffrey Tucker
66c4281290
Began improvements to columns API by splitting the Columns() function into BeginColumns() and EndColumns() and adding additional flags. The columns data still needs to be placed into a stack.
8 years ago
ocornut
98e1d500d4
Support for #define-ing GImGui and IMGUI_SET_CURRENT_CONTEXT_FUNC to enable custom thread-based hackery ( #586 )
8 years ago
ocornut
8553bab241
Ignoring overzealous GCC warnings ( #883 )
8 years ago
ocornut
941cf1b436
Merge branch 'master' into 2016-07-navigation
8 years ago
ocornut
ccb3db94da
Merge branch 'master' into 2016-02-colorpicker
8 years ago
ocornut
3689efb726
Font: Readme about icons
8 years ago
ocornut
da9feba539
Fixed missing frame padding on title bar text when Collapse triangle is disabled
8 years ago
ocornut
b376b68326
Font: Added io.FontDefault in ImGuiIO structure to make it easier to change default font from third-party or demo code
8 years ago
ocornut
ddf08ec2e8
BeginChild(const char*) applies stack id to provided label ( #894 , #713 )
8 years ago
Matt Keeter
32dbe836d0
Add user-facing IsPopupOpen function
8 years ago
ocornut
dd6163241c
Merge branch 'master' into 2016-02-colorpicker
8 years ago
ocornut
bdb34d1c11
Merge branch 'master' into 2016-07-navigation
8 years ago
ocornut
7252d93dcd
stb_textedit.h Merged from master 1.9 (merged bits from #473 )
8 years ago
ocornut
0d3f8807c7
Added a void* user_data parameter to Clipboard function handlers. ( #875 )
8 years ago
ocornut
cb7e1c18b5
Separator: Fixed zero-height bounding box resulting in clipping when at top of clipping rectangle ( #860 )
8 years ago
ocornut
4de35b4f30
Removed left-over empty op
8 years ago
ocornut
1810b3ff38
Added ImGuiCorner enum to clarify some internal code
8 years ago
ocornut
abaada4224
Removed the inconsistent shadow under RenderCollapseTriangle() (~#707)
8 years ago
ocornut
5957af8a80
Fixed not using IM_ARRAYSIZE() where appropriate
8 years ago
ocornut
fa73e5aa0e
Plot: Fixed calling with values_count == 0
8 years ago
ocornut
51111b0ed5
FAQ clarified the ClipRect entry a little
8 years ago
ocornut
e4deb7a190
Merge remote-tracking branch 'origin' into 2016-07-navigation
8 years ago
ocornut
404979e48d
Merge remote-tracking branch 'origin' into 2016-02-colorpicker
8 years ago
ocornut
a2487bc143
Minor tweaks
8 years ago
ocornut
68c81739bf
Minor tidying up following merge BGRA color PR ( #844 )
8 years ago
ocornut
eb0382a1c1
Merge branch '2016-08-use_bgra_colors' of https://github.com/thedmd/imgui into thedmd-2016-08-use_bgra_colors
8 years ago
ocornut
dfe4683c17
EndGroup(): Made IsItemHovered() work when an item was activated within the group ( #849 ) (loosely follows #840 )
8 years ago
Michał Cichoń
1999c01db8
Apply Omar feedback and convert remaining 0xAABBGGRR's into IM_COL32(RR,GG,BB,AA) format.
8 years ago
Michał Cichoń
d75d2b1871
Introduce IMGUI_USE_BGRA_PACKED_COLOR in imconfig.h.
...
When IMGUI_USE_BGRA_PACKED_COLOR is defined packed color hold in ImU32 use BGRA format instead RGBA.
8 years ago
ocornut
fea0fcb7c3
Merge remote-tracking branch 'origin' into 2016-07-navigation
8 years ago
ocornut
6def01be5d
Fixed IsItemActive() lagging by one frame on initial widget activation ( #840 )
8 years ago
ocornut
f2699de242
Fix using IsItemActive() after EndGroup() or any widget using groups ( #840 , #479 )
8 years ago
ocornut
ed279c0095
Merge remote-tracking branch 'origin' into 2016-07-navigation
8 years ago
ocornut
1b5bbf725b
Merge remote-tracking branch 'origin' into 2016-02-colorpicker
8 years ago
ocornut
56cdbe434d
Style: Added ButtonTextAlign, ImGuiStyleVar_ButtonTextAlign ( #842 )
8 years ago
ocornut
0f303d363a
Refactor text alignment options to use ImVec2, removed ImGuiAlign ( #842 , #222 )
8 years ago
ocornut
de9f8944ea
Internal RenderTextClipped() merged optional/rate clip_min* clip_max* into clip_rect*
8 years ago
ocornut
02cea0c3c3
Comment
8 years ago
ocornut
281898e82e
Tidying up PushStyleVar/PopStyleVar() a little more ( #842 )
8 years ago
ocornut
c5b8c6303a
Refactor PushStyleVar/PopStyleVar so it is constant time + can receive integers (yet unused) ( #842 )
8 years ago
ocornut
6e87f071b8
Shutdown() clear out some remaining pointers ( #836 )
8 years ago
ocornut
0420ab027e
Metrics: Displaying window position + moving extraneous line in IsPopupOpen().
8 years ago
ocornut
b397fb507e
Fixed EndGroup() not restoring offset properly. breaking SameLine() offset (caused by 954c890c67
) ( #829 )
8 years ago
ocornut
612b17ef57
Fixing minor english typos ( #827 )
8 years ago
ocornut
f6d4ca6473
TODO list
8 years ago
ocornut
c0fcf223be
Fixed assert triggering when a window has zero rendering but has a callback ( #810 )
8 years ago
ocornut
3c384c2f10
Examples: Renaming opengl_example/ to opengl2_example/ for clarity (1/2 because git)
9 years ago
ocornut
ef10b984fe
Merge remote-tracking branch 'origin' into 2016-02-colorpicker
9 years ago
ocornut
f39513ac47
Merge remote-tracking branch 'origin' into 2016-07-navigation
9 years ago
ocornut
63d47bc5a4
ImFormatString() Fixed an overflow handling bug with implementation of vsnprintf() that do not return -1 ( #793 )
9 years ago
ocornut
e8e5c6d788
Nav: Comments. Fixed two -Wall warnings. Removed unused function. ( #787 )
9 years ago
ocornut
3883a2027f
Nav: Fixed Selectable() crash introduced earlier today in 43ee5d73
+ added comments/assert ( #323 )
9 years ago
ocornut
df9bdf38f9
Nav: NavActivateId, NavInputId are no repeat actions. Repeat buttons handle it themselves already anyway. ( #323 )
9 years ago
ocornut
c6c7371a4c
Nav: Removed unnecessary test following 49ca1c2b88
( #323 )
9 years ago
ocornut
49ca1c2b88
Nav: InitDefaultRequest saves a fallback item so PadMenu on a collapsed window gets us to the collapse button ( #323 )
9 years ago
ocornut
2303b67c40
Close button submitted after collapse button. Should have no effect. Consistent with expectation & will be used as fallback for nav ( #323 )
9 years ago
ocornut
252f094101
Nav: Undo 87eb749cbc
, agressively including nav focus test in IsItemHovered() ( #323 )
9 years ago
ocornut
fddf9ca10e
Nav: Fixed nav highlight clipping (affected non non-menu items within menubar) ( #323 )
9 years ago
ocornut
78b7e2dfb3
Nav: Process and apply mouse move request immediately after move request result comes ( #323 )
9 years ago
ocornut
f71cdd13b7
Internal tidying up, moved code to CalcNextScrollFromScrollTargetAndClamp() so it can be reused by upcoming nav code.
9 years ago
ocornut
ac7826c8a5
ImRect: Added Translate() helper, removed redundant and misleading Reduce()
9 years ago
ocornut
87eb749cbc
Added IsItemHoveredOrFocused() (provisional name), better handling of popup/tooltip positioning when using mouse+nav ( #323 )
9 years ago
ocornut
ea2425ad9a
Nav: Fixed entering child with PadActivate not setting ActiveIdSource to Nav ( #323 )
9 years ago
ocornut
43ee5d73e9
Nav: Hovering MenuItem/Selectable with mouse makes NavId, matching what seems to be Windows beahvior at least for menus ( #323 )
9 years ago
ocornut
30c04d0dbe
Nav: Mouse pos passed to backend always rounded, so that lossy application of non-integer mouse pos doesn't lead to undesirable movement ( #3
9 years ago
ocornut
bf42657850
Nav: Clearing mouse hover flag using MouseClicked[] test instead of MouseDown[] so that invalid mouse button won't keep breaking nav ( #323 )
9 years ago
ocornut
695ca7bb45
Nav: Tidying up. Comments. ( #323 )
9 years ago
ocornut
4f7c63a7af
Nav: Fixed a bug where mouse positioning requests would be sent while opening submenus with mouse ( #323 )
9 years ago