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

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