Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change LOG() macro to be varadic | Vincent Sanders | 2015-05-28 | 3 | -19/+12 |
| | | | | | | | | | | | | 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. | ||||
* | To avoid namespace conflicts with ncurses add NetSurf key prefix. | Witold Filipczyk | 2015-03-27 | 1 | -6/+6 |
| | | | | Adds a NetSurf key code prefix of NS_ to all key codes. | ||||
* | Put the font operations table alongside all the other core API | Vincent Sanders | 2014-10-13 | 1 | -1/+1 |
| | | | | | | | | | | | | The netsurf core is driven from numerous operation tables most of which are now set through a common netsurf_register() interface. The font and plotting interfaces are currently separate and unlike all the other operation tables are modified for differing contexts. This change moves the font operations alongside all the other operations table and remove unnecessary interaction with the renderers font internals. Further this also removes the need for css internals to be visible in frontends. | ||||
* | remove unecessary includes | Vincent Sanders | 2014-10-13 | 2 | -2/+0 |
| | |||||
* | Add rudimentary support for resizing. | Michael Drake | 2014-07-26 | 3 | -4/+71 |
| | | | | | | | | | | | - Currently only libnsfb's SDL surface supports resizing. - Flickers like crazy while resizing. Possibly because the SDL surface is not set to use double buffering. - The internal widget library, fbtk, was never intended for this, as such it has no knowledge of how a widget should be positioned with respect to its parent. This means the top level window has to track everything and move them itself. | ||||
* | Add Unicode support to internal font. | Michael Drake | 2014-05-06 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Now contains more glpyhs (was previously limited to cp-1252). + When a glyph is unavailable, the codepoint is now rendered. + Added glyph data file. + Added converter to generate the font's .c file from the data. TODO: The generated file is currently checked into the repo, but it should be generated as part of the build process, in the build-* directory. To update the generated source file, first build the converter: $ gcc -O2 -Wall framebuffer/convert_font.c -lm \ -o build-Linux-framebuffer/tools/convert_font And then use it to generate the souce file: $ build-Linux-framebuffer/tools/convert_font \ framebuffer/res/fonts/glyph_data \ framebuffer/GEN_font_internal.c -v The converter's usage is: convert_font [options] <in_file> <out_file> See convert_font --help for more details. | ||||
* | Register destruction callback to free text widget text. | Michael Drake | 2013-10-23 | 1 | -0/+24 |
| | |||||
* | There must be a next widget for swap_siblings. | Michael Drake | 2013-09-05 | 1 | -2/+3 |
| | |||||
* | Suppress most fbtk logging when FBTK_LOGGING is unset. | Michael Drake | 2013-08-29 | 1 | -1/+8 |
| | |||||
* | FONT_SIZE_SCALE is for preserving fractional parts, so use it properly. | Michael Drake | 2013-08-29 | 1 | -1/+1 |
| | |||||
* | Make delete line key enum value name less missleading. (Doesn't cut to ↵ | Michael Drake | 2013-02-11 | 1 | -1/+1 |
| | | | | clipboard.) | ||||
* | Widget can't be NULL. | Michael Drake | 2012-10-11 | 1 | -0/+3 |
| | |||||
* | Add OSK icon. | Michael Drake | 2012-09-28 | 1 | -11/+9 |
| | |||||
* | Squash warning. | Michael Drake | 2012-08-10 | 1 | -2/+2 |
| | |||||
* | Ensure text is at the right height for Freetype and Internal fonts. | Michael Drake | 2012-08-08 | 1 | -1/+6 |
| | |||||
* | Use enum instead of magic numbers for tracking key modifier states. Pass ↵ | Michael Drake | 2012-08-01 | 2 | -15/+46 |
| | | | | special keys to core (e.g. WORD_LEFT, SELECT_ALL, etc). | ||||
* | Pass pointer hotspots to libnsfb. | Michael Drake | 2012-08-01 | 1 | -1/+3 |
| | |||||
* | Scroll text in writable text widget so caret is always in view. | Michael Drake | 2012-08-01 | 1 | -16/+19 |
| | |||||
* | Only writable text widget needs caret rendering. | Michael Drake | 2012-08-01 | 1 | -18/+0 |
| | |||||
* | Handle CTRL modifier too. CTRL with cursor left/right is same as SHIFT. ↵ | Michael Drake | 2012-07-31 | 1 | -0/+29 |
| | | | | CTRL+U clears writable. | ||||
* | Cursor left/right keys plus modifier move caret to extrems. | Michael Drake | 2012-07-31 | 1 | -6/+15 |
| | |||||
* | Factor out some repeated code. | Michael Drake | 2012-07-31 | 1 | -23/+10 |
| | |||||
* | Make text input widget remove caret on "strip focus" event. | Michael Drake | 2012-07-31 | 1 | -2/+17 |
| | |||||
* | Add widget callback for getting stripped of focus. Call it in the input ↵ | Michael Drake | 2012-07-31 | 1 | -0/+10 |
| | | | | setter, on previous input holder. | ||||
* | Use setter when giving clicked input focus. | Michael Drake | 2012-07-31 | 1 | -1/+1 |
| | |||||
* | When a text input widget has its text set, and it has the caret, move the ↵ | Michael Drake | 2012-07-31 | 1 | -0/+21 |
| | | | | caret to the end. | ||||
* | Claim, position, and render caret in text input widget. Currently does not ↵ | Michael Drake | 2012-07-31 | 1 | -38/+156 |
| | | | | remove caret when input widget is stripped of focus (because widget doesn't know). | ||||
* | When setting fbtk caret, register callback for redrawing caret removal. | Michael Drake | 2012-07-31 | 2 | -4/+15 |
| | |||||
* | Remove strlen from redraw functions. | Michael Drake | 2012-07-31 | 1 | -2/+2 |
| | |||||
* | Add support for editing text input widget contents from arbitrary position ↵ | Michael Drake | 2012-07-31 | 2 | -11/+33 |
| | | | | in string (instead of just end). | ||||
* | Split out common code to generate a font style for text input widget. | Michael Drake | 2012-07-31 | 1 | -13/+15 |
| | |||||
* | Add basic awareness of text input caret to ftbk and functions to get/set ↵ | Michael Drake | 2012-07-31 | 2 | -0/+52 |
| | | | | caret pos. | ||||
* | Scrollbar behaviour fixes. | Michael Drake | 2012-07-27 | 2 | -6/+13 |
| | | | | | Stop scrollbar sliding at different rate from pointer. Stop jump on drag start when scrollbar position indicator isn't at zero. | ||||
* | Only warp pointer once for a sequence of consecutive move events. Further ↵ | Michael Drake | 2012-07-26 | 1 | -5/+28 |
| | | | | reduces lag when dragging scrollbar. | ||||
* | Handle consecutive queued mouse move events together. Reduces pointer lag ↵ | Michael Drake | 2012-07-26 | 1 | -29/+35 |
| | | | | when busy. | ||||
* | Update for modified libnsfb API | Vincent Sanders | 2011-11-21 | 7 | -11/+6 |
| | | | | | | Make thumbnailing work svn path=/trunk/netsurf/; revision=13159 | ||||
* | Remove plotter table global. Pass a redraw context around redraw functions. ↵ | Michael Drake | 2011-06-30 | 1 | -3/+3 |
| | | | | | | Knockout could be handled better. Note: untested on most front ends. svn path=/trunk/netsurf/; revision=12543 | ||||
* | add control of fbtk text widget padding | Vincent Sanders | 2011-03-21 | 2 | -10/+15 |
| | | | | svn path=/trunk/netsurf/; revision=12116 | ||||
* | Fix font sizing in text widget | John Mark Bell | 2011-03-13 | 1 | -2/+5 |
| | | | | svn path=/trunk/netsurf/; revision=12016 | ||||
* | remove malloc.h anachronism | Vincent Sanders | 2011-01-06 | 5 | -5/+5 |
| | | | | svn path=/trunk/netsurf/; revision=11227 | ||||
* | fix off by 1 in previous commit | Vincent Sanders | 2010-12-04 | 1 | -4/+4 |
| | | | | svn path=/trunk/netsurf/; revision=10958 | ||||
* | Stop cursor leaving the root widget and causing a segfault (Found by tlsa) | Vincent Sanders | 2010-12-04 | 1 | -0/+10 |
| | | | | svn path=/trunk/netsurf/; revision=10957 | ||||
* | Give the browser window widget input focus by defualt on startup. | Michael Drake | 2010-11-20 | 2 | -1/+15 |
| | | | | svn path=/trunk/netsurf/; revision=10948 | ||||
* | Make click action happen on release. | Michael Drake | 2010-11-20 | 1 | -1/+1 |
| | | | | svn path=/trunk/netsurf/; revision=10947 | ||||
* | add explicit inlude for varargs | Vincent Sanders | 2010-08-03 | 1 | -0/+1 |
| | | | | svn path=/trunk/netsurf/; revision=10678 | ||||
* | Merge branches/vince/netsurf-fbtk-rework to trunk. | John Mark Bell | 2010-07-07 | 10 | -0/+2784 |
svn path=/trunk/netsurf/; revision=10605 |