Commit Graph

34 Commits

Author SHA1 Message Date
Sean Barrett 3025377f4a fix stb_textedit redo, from omar cornut 2018-01-29 07:23:54 -08:00
Sean Barrett 3f01acced4 stb_textedit: allow overriding key-input typedef 2018-01-29 05:39:48 -08:00
Sean Barrett def6a1898c version number 2017-03-03 11:09:36 -08:00
Sean Barrett bee6e9fc2e Merge branch 'textedit-line_start_end_handlers' of https://github.com/ocornut/stb into working 2017-03-03 11:02:17 -08:00
Sean Barrett bd2cb593e0 Merge branch 'old_textedit' into working
Conflicts:
	stb_textedit.h
2017-03-03 11:01:31 -08:00
Sean Barrett d052909923 better handle dragging mouse in single-line mode 2017-03-03 10:57:43 -08:00
Sean Barrett e248e30954 change license to public-domain AND mit (based on twitter vote) 2017-03-03 07:53:07 -08:00
Sean Barrett 996ccf2159 update version numbers 2016-10-25 08:53:48 -07:00
Sean Barrett 5d9423f8fd fix -Wcast-qual in stb_rect_pack, stb_textedit, stb_truetype 2016-10-25 08:50:44 -07:00
ocornut 847d288152 stb_textedit: fix LINESTART when cursor is at end of buffer and no trailing newline. Stopped using find_charpos(), simpler and faster. 2016-10-16 13:33:21 +02:00
Sean Barrett 6f72440159 bump version numbers 2016-08-27 12:38:09 -07:00
Sean Barrett 19c9615e90 rect_pack patch;
fix typo in stb_textedit
2016-08-27 12:36:26 -07:00
Sean Barrett bde8f7c102 tweaks to stb_textedit custom-move-by-word patch 2016-08-27 12:32:45 -07:00
Sean Barrett 841930cca4 Merge branch 'textedit-moveright-moveleft' of https://github.com/ocornut/stb into working 2016-08-27 12:25:29 -07:00
Hansi Raber f710c23bf7 stb_textedit/stb_text_locate_coord:
fix cursor position in the "shouldn't happen, but if it does, fall through to end-of-line case" case (`i=0` causes problems with the return values in this case)
2016-04-29 04:51:48 +02:00
ocornut 75ce29fe0b stb_textedit: Add support for custom move word left/right handlers 2016-04-02 23:55:01 +02:00
Sean Barrett 6e4154737c update version numbers, documentation, and contributors 2016-04-02 04:51:26 -07:00
Sean Barrett d514035d70 Merge branch 'textedit-drag-while-typing' of https://github.com/ocornut/stb 2016-04-02 02:32:51 -07:00
Craig Donner ee6978cb68 Slightly modify the public domain license to keep it in the public domain, but make it clear that even when dedications might not be recognized that the code is still usable. Given that this isn't dual-licensing under a different license, I'm hoping this will be acceptable. 2016-02-25 12:55:44 -08:00
ocornut 9dc860b7cc stb_textedit: better support for keying while holding mouse drag button 2015-12-11 22:55:42 +00:00
Sean Barrett 4de75eb0cc stb_textedit: better support for baseline at bottom
stb_textedit: end-of-line handling places cursor before newline
stb_truetype: avoid compiler warning due to local vars hiding local vars
readme: add list of one-file libs
2015-09-13 13:35:51 -07:00
Ryan Whitworth 76edb4ec4e Added public domain license text 2015-08-01 14:56:04 -04:00
Sean Barrett 9487a59c14 STB_TEXTEDIT_memmove 2015-04-15 02:52:25 -07:00
unknown 198ee828ca Allow to replace memmove function with custom implementation 2015-03-20 14:58:38 -07:00
nothings 87b7e3db41 update version number 2014-09-10 11:03:26 -07:00
Fabian Giesen 40cc1c59b2 Add support for alternative keyboard shortcuts for text/line start/end. 2014-09-10 10:54:22 -07:00
Sean Barrett 492e3f3463 update version numbers 2014-08-17 21:12:16 -07:00
Sean Barrett 45469cfa27 fix warnings 2014-08-17 16:47:55 -07:00
Sean Barrett d4d046be09 update version number 2014-06-19 20:21:08 -07:00
Sean Barrett 79c0470c0c Merge branch 'click-half-character' of https://github.com/sgraham/stb into textedit 2014-06-08 13:26:58 -07:00
Scott Graham 339beafc12 Clicking on left half of character selects before, and right half after 2014-06-08 12:44:28 -07:00
Scott Graham c4530794fb cursor should move on shift-home and shift-end 2014-06-07 14:36:04 -07:00
Sean Barrett e63b3e0702 fix some stuff that used RAD types and so were totally broken, add a compile test/sample 2014-05-27 22:56:57 -07:00
Sean Barrett e2caccb811 initial checkin 2014-05-25 10:18:03 -07:00