Koen Deforche 0c5dc261d3 remove use of deprecated API from examples 12 년 전
..
CMakeLists.txt 9dd3f8912a see Changelog 14 년 전
PaintApplication.C 23c84d699e back-port WDialog fixes from v3 branch 16 년 전
PaintExample.C 0c5dc261d3 remove use of deprecated API from examples 12 년 전
PaintExample.h 64684df250 see Changelog 15 년 전
README.md 8455fb6ae2 added README.md files for examples, several bug fixes 13 년 전
ShapesWidget.C 8abf73851b fixing Windows build issues 15 년 전
ShapesWidget.h 23c84d699e back-port WDialog fixes from v3 branch 16 년 전
painting.css 23c84d699e back-port WDialog fixes from v3 branch 16 년 전

README.md

Painting example

This example illustrates the use of Wt's painting API to render vector graphics in the browser.

The emweb logo is rendered using SVG, VML or Canvas depending on browser capabilities. If the browser is standards compliant, then SVG is used for positive angles and Canvas for negative angles of the logo orientation.

The sliders that control the rendering are actually also, in part, rendered using a painted widget, for the location of the thicks.

How to run

See the README in the parent directory.

What it illustrates

  • how to implement a custom WPaintedWidget
  • how to use WSlider