summaryrefslogtreecommitdiff
path: root/dw/fltkviewbase.cc
AgeCommit message (Collapse)Author
2016-04-27Reduce in half the redraws when scrolling.Jorge Arellano Cid
Now there's a single fl_scroll() call for each scroll operation, instead of calling fl_scroll() and then draw(). The patch also fixes support for FL_DAMAGE_EXPOSE in FltkViewport::draw(). Test data: FL_DAMAGE_CHILD = 0x01, 1 FL_DAMAGE_EXPOSE = 0x02, 2 FL_DAMAGE_SCROLL = 0x04, 4 FL_DAMAGE_OVERLAY = 0x08, 8 FL_DAMAGE_USER1 = 0x10, 16 FL_DAMAGE_USER2 = 0x20, 32 FL_DAMAGE_ALL = 0x80 128 -----------------------------------------------------------------------------. | scroll: keys | focus click | Alt-Tab | unfocus| | or mousewheel | viewport | statusbar | unfocus | focus | click | -----------------------------------------------------------------------------| d4235 | 5,5 | 16 | | 128 |128,128,128| | d4529 | 5,5 | 16 | | 128 |128,128,128| | dpatch | 5 | 16 | | 128 |128,128,128| | -----------------------------------------------------------------------------' </pre> The first column means dillo version (hg rev). The second one the FLTK damage bits received by FltkViewport::draw() per scroll operation (also viewable at dillo's stdout). The other columns show excessive calls, but that's another bug that is not as relevant as scrolling now, so feel free to ignore them by now.
2014-11-27further fix to fl_oldfocus replacementJorge Arellano Cid
http://lists.dillo.org/pipermail/dillo-dev/2014-November/010303.html for: "If an input has focus and you click on the page to give it focus instead, and then the cursor leaves the page and returns to it, the input is given focus instead."
2014-11-25Fix a problem with FLTK's fl_oldfocus variableJorge Arellano Cid
http://lists.dillo.org/pipermail/dillo-dev/2014-November/010299.html and, from commit text for changeset eb902ac9fc66 "Starting with fltk-1.3.3, we can't use fl_oldfocus, this patch fixes this problem. IOW. this patch is necessary to link with fltk-1.3.3."
2012-12-28move that change to viewportcorvid
2012-12-28don't let the view have ctrl-tabcorvid
2012-12-25tiny cleanupcorvid
2012-12-25move this tabbing focus stuff to a separate functioncorvid
2012-12-25fix drawing when scrolling to widget focused by tabcorvid
2012-12-25rm fltk2-era commentcorvid
2012-12-24when tabbing through widgets, add view to the loopcorvid
I see that firefox includes Location as well, but that would likely be tricky in our case.
2012-12-23don't shift focus to view when right clicking for menucorvid
2012-12-23when tabbing among view's children, scroll to themcorvid
2012-12-23if a view has focus, make Tab give focus to a child widgetcorvid
2012-11-12Text is now correctly drawn as a whole.Sebastian Geerken
2012-10-03comment the fl_pie workaroundcorvid
2012-06-24First part of hyphenation! And some minor changes in "lout".sgeerke
2011-10-27fix small-caps bug introduced in 8c20f260b445corvid
2011-10-25fix letter-spacing with combining characterscorvid
2011-08-26rm unused argcorvid
2011-08-22use the angle args in drawArccorvid
2011-08-04rm my FLTK2-era points array optimisation for drawPolygon()corvid
(I had made it use that less-clear int[][2] interface because fltk2 let you add all of the vertices in one call.) It feels good to change that nasty-looking pointArray in Polygon::draw().
2011-07-28wrap image alt textcorvid
2011-07-17more fl_touppercorvid
2011-07-17clean up FltkViewBase::handlecorvid
no change in behaviour intended
2011-07-08Cancel the tooltip window when a popup menu is shownJorge Arellano Cid
2011-07-08Workaround: fixes hiding a tooltip with the keyboard or mousewheelJorge Arellano Cid
This is a complex problem where it is not clear whether the bug lies in dillo, fltk, or in their interaction. Tooltip handling is fuzzy in FLTK, and there are glitches in it; trying to "fix" it inside dillo produces partial solutions. OTOH, although implementing custom tooltip handling adds complexity, it provides a solution that so far works in all the testcases.
2011-07-03draw the labels when hidden inputs are showncorvid
In fltk-1.3, it doesn't draw inside labels for Fl_Inputs, and it wasn't very nice anyway. Here I move them to the left. Johannes took a look at this change: "The only issue I could think of is that the additional draw_outside_label() would cause excessive redraws for some reason. But I didn't see anything like that during short testing here."
2011-06-12merge in recent changes from main repocorvid
2011-06-03smallcaps use the proper enum valuecorvid
2010-11-24trim some spacescorvid
2010-11-13Full CSS border-style implementationJorge Arellano Cid
The drawBorder{Top,Bottom,Left,Right} functions are similar. They use a trapezium as draw polygon, or drawTypedLine() for dots and dashes. Although the concept is simple, achieving pixel accuracy is laborious [1]. [1] http://www.dillo.org/css_compat/tests/border-style.html
2010-10-09make dillo compile with clangJohannes Hofmann
* Variable length arrays are not allowed in C++. They are supported in C99 and gcc seems to accept them in C++ mode. Replace the few places where variable length arrays are used. * The widget member in ComplexButtonResource was colliding with the widget member of FltkResource, so rename it to childWidget.
2010-10-09Use utf8encode/utf8decode (instead of mbrtowc/wcrtomb) for smallcaps.Jorge Arellano Cid
With these functions there's no need to alter the locale.
2010-10-08Don't touch letter spacing for small-capsJorge Arellano Cid
2010-10-07Add utf8 uppercasing to small-capsJorge Arellano Cid
For some reason utf8decode() didn't work for me, so I used mbrtowc() funcs.
2010-10-07CSS part for font-variant: small-caps supportJorge Arellano Cid
(some uppercasing is done but not utf8)
2010-03-11drawArc() take coordinates of centercorvid
2010-03-11fix clipped drawing of non-filled rectanglesJohannes Hofmann
To avoid artifacts we need clip with a rectangle that is line_width() larger than our expose area. Noticed by: corvid <corvid@lavabit.com>
2009-10-18use letter spacing when drawingcorvid
2009-10-15remove "using namespace" statements from header filesJohannes Hofmann
"using namespace" in headers also affects all files that include the header which is unwanted and unexpected in most cases.
2009-09-23adjust debugging code toocorvid
2009-09-23map default cursor to default cursorcorvid
For me, at least, ARROW and DEFAULT are slightly different.
2009-09-01further reduce size of rectangles before drawingJohannes Hofmann
Make currently exposed area available in FltkViewBase and use it to clip rectangles to the required size before drawing them. We can use the same mechanism to limit drawImage() calls instead of doing it in dw/image.cc as currently done.
2009-09-01improve FltkViewBase::drawRectangleJohannes Hofmann
* allow negative width / height * clip rectangle to size of the view. This avoids issues with 16 bit X11 coordinates overflowing and seems to improve performance.
2009-07-28properly clip draw requestsJohannes Hofmann
We always need to set a clipping rectangle when drawing to avoid that text "leaks" out as in the following test case (by corvid): <input type="image" name="name1" src="whatever" WIDTH="80" HEIGHT="14" alt="name1name1name1name1"> <input type="image" name="name2" src="whatever" width="9" height="14" alt="name2name2name2name2">
2009-03-02Updated the GPL copyright note in the source filesDetlef Riekenberg
2009-02-09whitespace cleanup: 's/ +$//g'Jorge Arellano Cid
2009-02-08's/if(/if (/g' 's/for(/for (/g' 's/while(/while (/g', and indentation.Jorge Arellano Cid
2009-01-16Added lout/msg.h and normalized debug messages to use it.Jorge Arellano Cid
2008-12-10Fix: recover page focus when clicking-out of a widget. (try 2)Jorge Arellano Cid