Commit Graph

37 Commits

Author SHA1 Message Date
Michael Drake
66493421e6 Plotters: Change stroke width in the plot_style_t to fixed point. 2018-05-23 13:04:19 +01:00
Vincent Sanders
44c5aef1c8 make scrollbar redraw signal errors correctly
allow scrollbar redraw to return error codes and update documentation
commenst appropriately.
2017-03-01 23:30:29 +00:00
Vincent Sanders
2f5e5620e2 Change interface to system colours to allow reporting of errors
Allow system colour interface to report errors instead of silently
failing and propogate the errors. This also fixes teh system colour
documentation.
2017-03-01 12:50:30 +00:00
Vincent Sanders
0f69965805 clean up some of the doxygen generation warnings 2017-02-19 11:32:17 +00:00
Vincent Sanders
3722ff8d86 Update all core use of plotters to new API 2017-02-11 13:55:41 +00:00
Vincent Sanders
7dab7cb43d move plot style header to netsurf include directory
move plotter style header and adjust all callers to use only what they
actually require.
2017-01-13 10:03:24 +00:00
Vincent Sanders
667605869f move plotters header into public API 2016-05-30 21:05:57 +01:00
Vincent Sanders
7fc0a4c481 move desktop window header into public API 2016-05-30 17:32:57 +01:00
Vincent Sanders
8711fbe47d move mouse and pointer state header into public API 2016-05-30 12:10:08 +01:00
Vincent Sanders
69cea38f41 update scrollbar_create error handling to return nserror 2016-04-26 12:14:56 +01:00
Vincent Sanders
c105738fa3 Change LOG() macro to be varadic
This changes the LOG macro to be varadic removing the need for all
callsites to have double bracketing and allows for future improvement
on how we use the logging macros.

The callsites were changed with coccinelle and the changes checked by
hand. Compile tested for several frontends but not all.

A formatting annotation has also been added which allows the compiler
to check the parameters and types passed to the logging.
2015-05-28 16:08:46 +01:00
Vincent Sanders
1097cc40b4 remove unecessary browser.h include from core headers 2014-10-17 12:21:52 +01:00
Michael Drake
2551885fd6 Optimise case where scrollbar_set_extents call changes nothing. 2014-09-19 12:39:02 +01:00
Michael Drake
5b96a84ef7 Setting extents can move scroll pos, so send message. 2014-09-19 12:33:34 +01:00
Michael Drake
6a74106d36 Make code more readable. 2014-09-19 12:32:52 +01:00
Vincent Sanders
277bcec7c6 stop system colours being anything to do with frontends 2014-01-10 14:32:29 +00:00
Vincent Sanders
ee6e6eec05 move options include 2013-05-28 14:16:10 +01:00
Michael Drake
41e4928e25 Fix pointer shape and status bar messages for textareas and their scrollbars. 2013-03-11 12:57:33 +00:00
Michael Drake
4872bc30b8 Remove redundant scrollbar widget message. 2012-08-16 13:13:25 +01:00
Michael Drake
fba2ebeee6 Use gui_system_colours.
svn path=/trunk/netsurf/; revision=13741
2012-03-27 11:53:53 +00:00
Michael Drake
3434883de7 Use system colours for scrollbar widget. Front ends must be updated to set them.
svn path=/trunk/netsurf/; revision=13706
2012-03-25 18:53:34 +00:00
Michael Drake
877988a7ef Add named scroll offset values for page up, page down, top and bottom.
svn path=/trunk/netsurf/; revision=13293
2011-12-18 15:36:38 +00:00
Michael Drake
449e41e306 New function for applying a change in offset to a scrollbar.
svn path=/trunk/netsurf/; revision=13196
2011-11-29 14:16:26 +00:00
Michael Drake
f878fefeed Optimise out scrollbar action induced redraws with no effect.
svn path=/trunk/netsurf/; revision=12688
2011-08-31 13:04:50 +00:00
Michael Drake
525bf15f73 More robustification.
svn path=/trunk/netsurf/; revision=12678
2011-08-30 18:13:23 +00:00
Michael Drake
401072e305 Make more robust. E.g. zero length scrollbars.
svn path=/trunk/netsurf/; revision=12672
2011-08-27 09:13:23 +00:00
Michael Drake
0794f8c4dd Fix step size for clicks on scrollbar arrow icons.
svn path=/trunk/netsurf/; revision=12669
2011-08-25 18:29:21 +00:00
Michael Drake
bbc06d6449 When scrollbar extents are updated, scale current offset appropriately.
svn path=/trunk/netsurf/; revision=12667
2011-08-25 09:21:41 +00:00
Michael Drake
eddae6af06 Remove plotter table global. Pass a redraw context around redraw functions. Knockout could be handled better. Note: untested on most front ends.
svn path=/trunk/netsurf/; revision=12543
2011-06-30 15:48:07 +00:00
Michael Drake
4db9dbe744 Purge unused variable.
svn path=/trunk/netsurf/; revision=12425
2011-05-17 09:05:49 +00:00
Michael Drake
df081a0888 Increase pointer drag range. Setting the clamps correctly seems to cause us not to get the movement event when we hit the clamp (at least on RISC OS).
svn path=/trunk/netsurf/; revision=12380
2011-05-11 10:36:15 +00:00
Michael Drake
d41dcfa780 Fix content drags within scrollable areas. Various tidyups.
svn path=/trunk/netsurf/; revision=12378
2011-05-11 08:34:33 +00:00
Michael Drake
4f8995ae8d Rename scroll offset in scrollbar message data, although nothing seems to use that callback message.
svn path=/trunk/netsurf/; revision=12374
2011-05-10 17:39:23 +00:00
Michael Drake
f78252fc75 Move scrollbar widget API documentation to header.
svn path=/trunk/netsurf/; revision=12373
2011-05-10 17:30:46 +00:00
Michael Drake
dc9e685cde Scrollbar widget changes: Update functon parameters to have names that aren't wrong. Remove confusion and wrongness from API documentation. General source tidy.
svn path=/trunk/netsurf/; revision=12372
2011-05-10 17:17:03 +00:00
Michael Drake
4d8201b8ca Continue improving comments. Fix bugs in scrollbar_set_extents. Rename things so their name matches what they are.
svn path=/trunk/netsurf/; revision=12368
2011-05-10 14:29:10 +00:00
Michael Drake
ac447fc293 s/scroll/scrollbar/ and improve scrollbar widget comments.
svn path=/trunk/netsurf/; revision=12363
2011-05-09 22:49:17 +00:00