5a47346f5a
ImFont: add RenderGlyph() to allow rendering of individual glyphs
Brian Swetland2016-09-10 18:21:49 -07:00
02399852fe
Examples: OpenGL2: Uploading font texture as RGBA32 to increase compatibility with users shaders for beginners (#824)
ocornut2016-09-10 17:43:07 +02:00
012223114d
Merge pull request #825 from philix/fix-build
omarandGitHub2016-09-10 11:31:41 +02:00
2825eaa0be
Examples: Accessing ImVector fields directly, feel less stl-ey and fix renderer side assert when render list only contains a callback (#810)
ocornut2016-09-03 19:24:57 +02:00
c0fcf223be
Fixed assert triggering when a window has zero rendering but has a callback (#810)
ocornut2016-09-03 19:02:57 +02:00
056e49eec1
Merge pull request #812 from linkemars/master
omarandGitHub2016-09-02 15:00:49 +02:00
aa0cb13aa4
Correct name for linking opengl3_example
Kun Lin2016-09-02 21:57:31 +09:00
5ae71aa04a
Examples: Renaming opengl_example/ to opengl2_example/ for clarity (1/2 because git)
ocornut2016-08-25 10:25:51 +02:00
3c384c2f10
Examples: Renaming opengl_example/ to opengl2_example/ for clarity (1/2 because git)
ocornut2016-08-25 10:18:09 +02:00
ef10b984fe
Merge remote-tracking branch 'origin' into 2016-02-colorpicker
ocornut2016-08-23 17:00:47 +02:00
f39513ac47
Merge remote-tracking branch 'origin' into 2016-07-navigation
ocornut2016-08-23 17:00:11 +02:00
63d47bc5a4
ImFormatString() Fixed an overflow handling bug with implementation of vsnprintf() that do not return -1 (#793)
ocornut2016-08-23 16:55:06 +02:00
49ca1c2b88
Nav: InitDefaultRequest saves a fallback item so PadMenu on a collapsed window gets us to the collapse button (#323)
ocornut2016-08-21 16:07:55 +02:00
2303b67c40
Close button submitted after collapse button. Should have no effect. Consistent with expectation & will be used as fallback for nav (#323)
ocornut2016-08-21 16:05:19 +02:00
252f094101
Nav: Undo 87eb749cbc, agressively including nav focus test in IsItemHovered() (#323)
ocornut2016-08-21 15:26:40 +02:00
fddf9ca10e
Nav: Fixed nav highlight clipping (affected non non-menu items within menubar) (#323)
ocornut2016-08-21 15:25:29 +02:00
78b7e2dfb3
Nav: Process and apply mouse move request immediately after move request result comes (#323)
ocornut2016-08-21 14:53:26 +02:00
f71cdd13b7
Internal tidying up, moved code to CalcNextScrollFromScrollTargetAndClamp() so it can be reused by upcoming nav code.
ocornut2016-08-21 14:39:13 +02:00
87eb749cbc
Added IsItemHoveredOrFocused() (provisional name), better handling of popup/tooltip positioning when using mouse+nav (#323)
ocornut2016-08-21 13:25:40 +02:00
ea2425ad9a
Nav: Fixed entering child with PadActivate not setting ActiveIdSource to Nav (#323)
ocornut2016-08-21 12:44:59 +02:00
43ee5d73e9
Nav: Hovering MenuItem/Selectable with mouse makes NavId, matching what seems to be Windows beahvior at least for menus (#323)
ocornut2016-08-21 11:45:50 +02:00
30c04d0dbe
Nav: Mouse pos passed to backend always rounded, so that lossy application of non-integer mouse pos doesn't lead to undesirable movement (#3ocornut2016-08-21 00:10:48 +02:00
bf42657850
Nav: Clearing mouse hover flag using MouseClicked[] test instead of MouseDown[] so that invalid mouse button won't keep breaking nav (#323)
ocornut2016-08-20 23:59:54 +02:00
3ab0d5cdfd
Nav: NavHighlight gets its own color (default to Header color), made rectangle thicker (#323)
ocornut2016-08-15 13:07:39 +02:00
cf16ba6572
Nav: Exposed RenderNavHighlight() in imgui_internal.h to increase discoverability and reordered arguments to be more consistent (#323)
ocornut2016-08-15 11:52:02 +02:00
6c19d7b13c
Nav: Fixed clipping rect of navigation highlight, notably for collapsing arrow (#323)
ocornut2016-08-15 11:41:56 +02:00
9501cd9991
InputText: Fixed calling callback on frame of losing active id, fix part of 848e62bfe0 (nav branch only)
ocornut2016-08-13 14:22:34 +02:00
cff815fd2d
Merge branch 'master' into 2016-02-colorpicker
ocornut2016-08-11 23:22:15 +02:00
a83f9b7885
Merge branch 'master' into 2016-07-navigation
ocornut2016-08-11 23:21:04 +02:00
0f9addb002
Minor shuffle to ease merging branches. (tentative. fugly but those fields will be removed anyway)
ocornut2016-08-07 20:05:24 +02:00
bfe1e163b8
Merge remote-tracking branch 'origin' into 2016-02-colorpicker
ocornut2016-08-11 23:01:48 +02:00
2afffcdeb9
Merge remote-tracking branch 'origin' into 2016-07-navigation
ocornut2016-08-11 23:00:47 +02:00
4bc3f9d1f7
Minor shuffle to ease merging branches.
ocornut2016-08-11 22:59:44 +02:00
996eb080fa
Merge remote-tracking branch 'origin' into 2016-02-colorpicker
ocornut2016-08-11 22:53:26 +02:00
df1d1b5b25
Nav: DragBehavior: Adjust minimum step to displayed precision when using navigation (#323, #180)
ocornut2016-08-07 20:40:57 +02:00
761a74c62b
Selectable/MenuItem: Not activated on Click but only on Release is more standard (#126, #245, #323)
ocornut2016-08-07 20:21:18 +02:00
8828889d5e
Refactored rare transient bool stacks into a set of flags, added unexposed ImGuiItemFlags_SelectableDontClosePopup (#323)
ocornut2016-08-07 20:05:24 +02:00
525ef5b357
Nav: Tweaked default highlight clipping (clipped by scrollbar) and removed subtle background (#323)
ocornut2016-08-07 15:31:00 +02:00
a68132948b
Nav: Added ImGuiCol_NavWindowingHighlight into style (#323)
ocornut2016-08-07 15:26:04 +02:00
6aa8019763
Nav: Fixed bug where pressing NavInput(Triangle) to turn slider/drag into text input would then change subsequent NavActivate as well (#323)
ocornut2016-08-07 15:19:29 +02:00
e55882f74b
Nav: Allow PadLeft to close a menu (#323)
ocornut2016-08-07 15:18:04 +02:00
c203be94c6
Merge remote-tracking branch 'origin' into 2016-07-navigation
ocornut2016-08-07 13:55:59 +02:00
6eb35b8a04
BulletText(): doesn't stop displaying at the ## mark
ocornut2016-08-07 13:53:41 +02:00
8a6d209f68
Nav: Failed movement request with no current NavId fallback to an InitDefaultRequest so that we always land somewhere on first move (#323)
ocornut2016-08-07 13:34:25 +02:00
af33efb146
Using IM_COL32() for colors in a few spots (#767)
ocornut2016-08-06 09:35:05 +02:00
a7f6ea592f
Moved GetColorU32 out of imgui_internal.h to avoid inlining mess (#759)
ocornut2016-08-06 09:22:41 +02:00
7588dfb67e
Add ability to test arbitrary rectangle for visibility without need of moving cursor.
Michał Cichoń2016-08-05 11:47:16 +02:00
d85c1be6b6
Nav: Reordered Cancel handling code so you you can leave a child within a popup without closing the popup (#323)
ocornut2016-08-04 12:53:46 +02:00
c263961f07
Nav: Menu: Allow PadDown to open a menu from a menu bar, PadRight from a menu (#323, #126)
ocornut2016-08-04 10:41:33 +02:00
dcff032429
Nav: Moving all nav inputs to io.NavInputs[] float array, new enum labelled for gamepad. (#323)
ocornut2016-08-03 23:23:04 +02:00
4ccc87c91d
Typo in commented default-value
ocornut2016-08-03 21:53:07 +02:00
c0dcef4e16
Nav: Moving window with nav stick disables mouse hover (#323)
ocornut2016-08-03 21:02:27 +02:00
4e91b521ee
Demo: Arrange some inputs panels.
ocornut2016-08-03 20:55:54 +02:00
36fa2b9523
Nav: DragBehavior removed bogus test (#323)
ocornut2016-08-01 22:23:56 +02:00
d0801057ba
Demo: Tweak handling of "animate" flag in graph demo so it doesn't keep running.
ocornut2016-08-01 20:55:54 +02:00
2e52bee12e
Merge remote-tracking branch 'origin' into 2016-07-navigation
ocornut2016-07-31 17:00:44 +02:00
907265d632
Using ImGuiID instead of ImU32 is a few places
ocornut2016-07-31 16:48:06 +02:00
8b190f1100
Nav: quick tap on NavMenu with no focused window doesn't focus one (holding still does) (#323)
ocornut2016-07-31 16:12:01 +02:00
e9c881e4de
Nav: fixed using NavMenu/windowing select when no window is already focused + cleanup code (#323)
ocornut2016-07-31 16:07:58 +02:00
1ecbf73c97
Nav: working on early bits of documentation (#323)
ocornut2016-07-31 15:41:51 +02:00
a154625a56
Nav: Not exposing ImGuiWindowFlags_NavFlattened because it requires much more work (#323)
ocornut2016-07-31 13:40:14 +02:00