summaryrefslogtreecommitdiff
path: root/desktop/textarea.c
Commit message (Collapse)AuthorAgeFilesLines
* textarea: C89François Revol2013-01-201-2/+3
|
* Early scrollbar mouse handling.Michael Drake2013-01-181-7/+95
|
* Ensure we know for sure if scrollbar widget will want to scroll us. Avoid ↵Michael Drake2013-01-151-6/+12
| | | | double xy to offset conversion.
* Add parentheses.Michael Drake2013-01-151-2/+2
|
* Add scrollbars to textarea, and improve scrolling to try to keep caret in ↵Michael Drake2013-01-151-118/+310
| | | | centre. Currently the scrollbars are mostly decoration, although they show accuratly where you are scrolled to in the area. TODO: Pass mouse input to scrollbars.
* Use right padding. Thanks jmb.Michael Drake2013-01-141-1/+1
|
* Fix caret removal redraw to take account of border width. Fix ↵Michael Drake2013-01-141-3/+4
| | | | scroll_visible to take account of border width in vertical scroll.
* Implement most of the styling needed for HTML. Allow caret to be hidden.Michael Drake2013-01-131-46/+61
|
* Rewrite redraw to handle selection properly. (Now text can change colour ↵Michael Drake2013-01-131-93/+104
| | | | inside selection, rather than just rendering a rectangle under the normal line of text. This removes colour restrictions, allowing e.g. inversion for selected text.)
* Add background colour to textarea_redraw API. Add source comments.Michael Drake2013-01-121-1/+1
|
* Add textarea_setup struct to textarea_create API.Michael Drake2013-01-121-10/+33
|
* Fix redraw of caret when scroll offsets are non-zero, only caret has moved, ↵Michael Drake2013-01-101-0/+4
| | | | and we're not getting a full textarea redraw.
* Simplify routine to scroll ta so that caret is visible.Michael Drake2013-01-101-16/+2
|
* More wrap behaviour improvement.Michael Drake2013-01-101-15/+17
|
* Fix silly.Michael Drake2013-01-101-1/+1
|
* Fix previous caret position redraw.Michael Drake2013-01-101-32/+4
|
* Improve reflow in multiline textareas.Michael Drake2013-01-101-4/+10
|
* Simplfy caret placement and redraw.Michael Drake2013-01-101-16/+13
|
* Fix caret placement in multi-line textareas.Michael Drake2013-01-101-5/+4
|
* Add support for clipboard. Improve text selection behaviour. Various fixes.Michael Drake2013-01-091-53/+133
|
* Make get_xy_offset return both char and byte offset. (Byte being needed for ↵Michael Drake2013-01-091-19/+35
| | | | selection replacement.)
* Rename selection index markers.Michael Drake2013-01-081-55/+55
|
* Fix redraw of selection hightlight during selection drags.Michael Drake2013-01-071-21/+10
|
* Make comment concise.Michael Drake2013-01-071-3/+1
|
* Remove forward declaration.Michael Drake2013-01-051-448/+441
|
* Put exported function comments in header.Michael Drake2013-01-051-97/+16
|
* Start rationalising textarea widget.Michael Drake2013-01-051-34/+34
|
* Add support for selecting text fragments (based on a patch from Ole Loots)John Mark Bell2012-06-301-0/+58
| | | | svn path=/trunk/netsurf/; revision=14016
* Pass correct width/height values to textarea redraw callback when setting ↵Michael Drake2012-04-121-6/+19
| | | | | | caret position. Reduces flicker. svn path=/trunk/netsurf/; revision=13851
* Fix caret redraw height. Thanks to m0n0.Michael Drake2012-04-121-1/+1
| | | | svn path=/trunk/netsurf/; revision=13850
* Remove redundant break.Michael Drake2011-11-291-1/+0
| | | | svn path=/trunk/netsurf/; revision=13194
* Fix caret position after deleting selection. Thanks to Ole Loots.Michael Drake2011-11-291-3/+6
| | | | svn path=/trunk/netsurf/; revision=13193
* Committing textarea_set_dimensions patch from Ole Loots.John Mark Bell2011-11-211-0/+15
| | | | svn path=/trunk/netsurf/; revision=13160
* Remove plotter table global. Pass a redraw context around redraw functions. ↵Michael Drake2011-06-301-12/+14
| | | | | | Knockout could be handled better. Note: untested on most front ends. svn path=/trunk/netsurf/; revision=12543
* Saturated maths in css fixed point Vincent Sanders2011-03-121-3/+1
| | | | svn path=/trunk/netsurf/; revision=11975
* Pass clip rect to clip plotters as struct. Simplify clip rect handling in ↵Michael Drake2011-02-141-2/+2
| | | | | | debug window code. Pass clip rect to select menu as struct. svn path=/trunk/netsurf/; revision=11683
* Constify.Michael Drake2011-02-141-1/+1
| | | | svn path=/trunk/netsurf/; revision=11682
* Pass clip rect to textarea redraw as struct rect.Michael Drake2011-02-141-39/+36
| | | | svn path=/trunk/netsurf/; revision=11681
* Take some calculations out of line redraw loop and fix rounding error.Michael Drake2010-12-171-15/+17
| | | | svn path=/trunk/netsurf/; revision=11089
* Only draw caret if there is no selection.Michael Drake2010-12-151-1/+7
| | | | svn path=/trunk/netsurf/; revision=11060
* Position text and caret correctly in single line text area. Make caret red ↵Michael Drake2010-12-151-14/+33
| | | | | | so it stands out for now. It should be an OS caret anyway. svn path=/trunk/netsurf/; revision=11059
* + Refactor input handling from browser window code into contentMichael Drake2010-06-041-0/+1
| | | | | | | | | | | | | handlers. + Disentangle all box tree manipulation from browser window code and put it where it belongs. + Move other content specific and other irrelevant code from browser window handling to appropriate places. + Put mouse state enum in new mouse header, since it's not just used by browser window code, and it is used by treeview windows on the treeview branch. svn path=/trunk/netsurf/; revision=10561
* Protect against NULL pointersJohn Mark Bell2009-11-221-0/+3
| | | | svn path=/trunk/netsurf/; revision=9681
* Make textarea widget unaware of its global position. Credit: paulblokus.Michael Drake2009-08-131-87/+61
| | | | svn path=/trunk/netsurf/; revision=9274
* Remove line that was removed in the other branch.Michael Drake2009-07-291-2/+0
| | | | svn path=/trunk/netsurf/; revision=8887
* Merged revisions 8808,8862-8863 via svnmerge from Michael Drake2009-07-291-169/+180
| | | | | | | | | | | | | | | | | | | | | svn://svn.netsurf-browser.org/branches/paulblokus/textinput ........ r8808 | paulblokus | 2009-07-26 22:52:53 +0100 (Sun, 26 Jul 2009) | 2 lines don't recalculate height already aviable ........ r8862 | paulblokus | 2009-07-28 21:39:06 +0100 (Tue, 28 Jul 2009) | 2 lines added css.c and css.h files which caused svn errors after using svnmerge ........ r8863 | paulblokus | 2009-07-28 21:43:53 +0100 (Tue, 28 Jul 2009) | 3 lines changed textarea redraw logic little fix of KEY_DELETE_LINE_START jandling ........ svn path=/trunk/netsurf/; revision=8886
* Port r8808 to trunk.John Mark Bell2009-07-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=8825
* Fix textarea line height.John Mark Bell2009-07-241-2/+3
| | | | svn path=/trunk/netsurf/; revision=8766
* Merge LibCSS port to trunk.John Mark Bell2009-07-231-7/+9
| | | | svn path=/trunk/netsurf/; revision=8752
* Merged revisions 8663 via svnmerge from Michael Drake2009-07-221-0/+15
| | | | | | | | | | | | svn://svn.netsurf-browser.org/branches/paulblokus/textinput ........ r8663 | paulblokus | 2009-07-22 00:46:29 +0100 (Wed, 22 Jul 2009) | 2 lines added getter for textarea dimensions ........ svn path=/trunk/netsurf/; revision=8695