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

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