summaryrefslogtreecommitdiff
path: root/framebuffer/fbtk
Commit message (Collapse)AuthorAgeFilesLines
* Put the font operations table alongside all the other core APIVincent Sanders2014-10-131-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 includesVincent Sanders2014-10-132-2/+0
|
* Add rudimentary support for resizing.Michael Drake2014-07-263-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 Drake2014-05-061-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 Drake2013-10-231-0/+24
|
* There must be a next widget for swap_siblings.Michael Drake2013-09-051-2/+3
|
* Suppress most fbtk logging when FBTK_LOGGING is unset.Michael Drake2013-08-291-1/+8
|
* FONT_SIZE_SCALE is for preserving fractional parts, so use it properly.Michael Drake2013-08-291-1/+1
|
* Make delete line key enum value name less missleading. (Doesn't cut to ↵Michael Drake2013-02-111-1/+1
| | | | clipboard.)
* Widget can't be NULL.Michael Drake2012-10-111-0/+3
|
* Add OSK icon.Michael Drake2012-09-281-11/+9
|
* Squash warning.Michael Drake2012-08-101-2/+2
|
* Ensure text is at the right height for Freetype and Internal fonts.Michael Drake2012-08-081-1/+6
|
* Use enum instead of magic numbers for tracking key modifier states. Pass ↵Michael Drake2012-08-012-15/+46
| | | | special keys to core (e.g. WORD_LEFT, SELECT_ALL, etc).
* Pass pointer hotspots to libnsfb.Michael Drake2012-08-011-1/+3
|
* Scroll text in writable text widget so caret is always in view.Michael Drake2012-08-011-16/+19
|
* Only writable text widget needs caret rendering.Michael Drake2012-08-011-18/+0
|
* Handle CTRL modifier too. CTRL with cursor left/right is same as SHIFT. ↵Michael Drake2012-07-311-0/+29
| | | | CTRL+U clears writable.
* Cursor left/right keys plus modifier move caret to extrems.Michael Drake2012-07-311-6/+15
|
* Factor out some repeated code.Michael Drake2012-07-311-23/+10
|
* Make text input widget remove caret on "strip focus" event.Michael Drake2012-07-311-2/+17
|
* Add widget callback for getting stripped of focus. Call it in the input ↵Michael Drake2012-07-311-0/+10
| | | | setter, on previous input holder.
* Use setter when giving clicked input focus.Michael Drake2012-07-311-1/+1
|
* When a text input widget has its text set, and it has the caret, move the ↵Michael Drake2012-07-311-0/+21
| | | | caret to the end.
* Claim, position, and render caret in text input widget. Currently does not ↵Michael Drake2012-07-311-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 Drake2012-07-312-4/+15
|
* Remove strlen from redraw functions.Michael Drake2012-07-311-2/+2
|
* Add support for editing text input widget contents from arbitrary position ↵Michael Drake2012-07-312-11/+33
| | | | in string (instead of just end).
* Split out common code to generate a font style for text input widget.Michael Drake2012-07-311-13/+15
|
* Add basic awareness of text input caret to ftbk and functions to get/set ↵Michael Drake2012-07-312-0/+52
| | | | caret pos.
* Scrollbar behaviour fixes.Michael Drake2012-07-272-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 Drake2012-07-261-5/+28
| | | | reduces lag when dragging scrollbar.
* Handle consecutive queued mouse move events together. Reduces pointer lag ↵Michael Drake2012-07-261-29/+35
| | | | when busy.
* Update for modified libnsfb APIVincent Sanders2011-11-217-11/+6
| | | | | | Make thumbnailing work svn path=/trunk/netsurf/; revision=13159
* Remove plotter table global. Pass a redraw context around redraw functions. ↵Michael Drake2011-06-301-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 paddingVincent Sanders2011-03-212-10/+15
| | | | svn path=/trunk/netsurf/; revision=12116
* Fix font sizing in text widgetJohn Mark Bell2011-03-131-2/+5
| | | | svn path=/trunk/netsurf/; revision=12016
* remove malloc.h anachronismVincent Sanders2011-01-065-5/+5
| | | | svn path=/trunk/netsurf/; revision=11227
* fix off by 1 in previous commitVincent Sanders2010-12-041-4/+4
| | | | svn path=/trunk/netsurf/; revision=10958
* Stop cursor leaving the root widget and causing a segfault (Found by tlsa)Vincent Sanders2010-12-041-0/+10
| | | | svn path=/trunk/netsurf/; revision=10957
* Give the browser window widget input focus by defualt on startup.Michael Drake2010-11-202-1/+15
| | | | svn path=/trunk/netsurf/; revision=10948
* Make click action happen on release.Michael Drake2010-11-201-1/+1
| | | | svn path=/trunk/netsurf/; revision=10947
* add explicit inlude for varargsVincent Sanders2010-08-031-0/+1
| | | | svn path=/trunk/netsurf/; revision=10678
* Merge branches/vince/netsurf-fbtk-rework to trunk.John Mark Bell2010-07-0710-0/+2784
svn path=/trunk/netsurf/; revision=10605