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

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